Commit 3dfbdb32 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/ffv1dec: Check quant table symbols more completely

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent eb9fb508
......@@ -476,7 +476,7 @@ static int read_quant_table(RangeCoder *c, int16_t *quant_table, int scale)
for (v = 0; i < 128; v++) {
unsigned len = get_symbol(c, state, 0) + 1;
if (len > 128 - i)
if (len > 128 - i || !len)
return AVERROR_INVALIDDATA;
while (len--) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment