avcodec/mjpegdec: Fix integer overflow in DC dequantization
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 24 Jan 2018 02:28:49 +0000 (03:28 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commitdbe356a00974632a18612c7a395366cee4c49118
tree14e2e3193d07001c56341d89bd9767276978578f
parentce82d4722bde503f899521519d3a8e8c2200c205
avcodec/mjpegdec: Fix integer overflow in DC dequantization

Fixes: runtime error: signed integer overflow: -65535 * 65312 cannot be represented in type 'int'
Fixes: 4900/clusterfuzz-testcase-minimized-5769019744321536

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