avcodec/sanm: apply the codec 23 LUT loaded from the frame

Fixes: 4dmaFsb0C0KW
Fixes: AISLE-2026-0150-00882
Fixes: use of uninitialized memory
Use of uninitialized memory Replicated through UnModified FFmpeg with MSAN

Found-by: Joshua Rogers (AISLE)
This commit is contained in:
Michael Niedermayer authored and michaelni committed 2026-11-05 23:27:36 +00:00
1 parent 592208bf7f
commit d42cb19259
1 file changed
+1
+1
View File
@@ -797,6 +797,7 @@ static int old_codec23(SANMVideoContext *ctx, GetByteContext *gb, int top, int l
if (bytestream2_get_bytes_left(gb) < 256)
return AVERROR_INVALIDDATA;
bytestream2_get_bufferu(gb, ctx->c23lut, 256);
memcpy(lut, ctx->c23lut, 256);
} else if (param2 < 256) {
for (i = 0; i < 256; i++)
lut[i] = (i + param2) & 0xff;