mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2026-11-06 05:17:42 +00:00
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:
1 parent
592208bf7f
commit
d42cb19259
1 file changed
+1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user