avcodec/tiertexseqv: reject RLE code tables that do not cover the block

Found during triage of the security report V9Z2ZdGQsUo6

Fixes: V9Z2ZdGQsUo6
Fixes: use of uninitialized memory
Use of uninitialized memory Replicated through UnModified FFmpeg with MSAN
This commit is contained in:
Michael Niedermayer authored and michaelni committed 2026-11-05 22:51:06 +00:00
1 parent c896bbb245
commit acbf987d7b
1 file changed
+2
+2
View File
@@ -72,6 +72,8 @@ static const unsigned char *seq_unpack_rle_block(const unsigned char *src,
dst += len;
dst_size -= len;
}
if (dst_size > 0)
return NULL;
return src;
}