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>
Wed, 31 Jan 2018 21:56:14 +0000 (22:56 +0100)
commit104d36647cc21fc969a9cb8766c06c30c0e826c9
tree413b784969d7bfa6bbd4d38d0513e0222b825c5c
parenta2d129a841f5f2393196f80df3781ac28607738b
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