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>
Sat, 27 Jan 2018 03:29:30 +0000 (04:29 +0100)
commit1bfc1aa004950c5ad527d823a08b8a19eef34eb0
treed4cbc466b530530d08ca995725d405da8811e162
parentc6939f65a116b1ffed345d29d8621ee4ffb32235
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>
libavcodec/mjpegdec.c