You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/ffv1dec: Check quant table symbols more completely
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -476,7 +476,7 @@ static int read_quant_table(RangeCoder *c, int16_t *quant_table, int scale)
|
|||||||
for (v = 0; i < 128; v++) {
|
for (v = 0; i < 128; v++) {
|
||||||
unsigned len = get_symbol(c, state, 0) + 1;
|
unsigned len = get_symbol(c, state, 0) + 1;
|
||||||
|
|
||||||
if (len > 128 - i)
|
if (len > 128 - i || !len)
|
||||||
return AVERROR_INVALIDDATA;
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
while (len--) {
|
while (len--) {
|
||||||
|
Reference in New Issue
Block a user