avcodec/ffv1dec: Fix integer overflow in read_quant_table()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 18 Sep 2017 15:26:09 +0000 (17:26 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 24 Sep 2017 00:41:19 +0000 (02:41 +0200)
commit3386a57b086f91bf7e3053523f3b8d233f2dd357
tree50f2d8d4d0d5ab65a44c2fa78a1a97126b1cdba3
parent145fce8c4b2d61f5866e0afbc77f42ec60ec0b76
avcodec/ffv1dec: Fix integer overflow in read_quant_table()

Fixes: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int'
Fixes: 3361/clusterfuzz-testcase-minimized-5065842955911168

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit d00fc952b6c261dd8eb0f7552b9ccf985dbc2b20)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/ffv1dec.c