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>
Mon, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commit269aecafabf84109cce914d236131afc99841cfe
treeada93cb75e9df99a619d6c3cf26fa90a95d43d7e
parent181c3cbacfae86e2e1935049a11f4d0273fa2351
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