avcodec/diracdec: Fix integer overflow with quant
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 7 Jan 2018 19:43:24 +0000 (20:43 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commit347744121bc88c82088234ce8cc086453b077179
treeed08909203b0ae534ccc25a934ca830bb11225ce
parentba2f8469ba951db28c7d7ede25908cb8beeacfae
avcodec/diracdec: Fix integer overflow with quant

Fixes: signed integer overflow: 2 + 2147483646 cannot be represented in type 'int'
Fixes: 4792/clusterfuzz-testcase-minimized-6322450775146496

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 eaa93175895568ef6c2542b13104874907d9c4ef)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/diracdec.c