avcodec/mjpegdec: Fix runtime error: signed integer overflow: -32767 * 130560 cannot...
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 May 2017 19:49:54 +0000 (21:49 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 22 May 2017 00:16:39 +0000 (02:16 +0200)
commit40fa6a2fa2c255293a780a194eecae5df52644a1
treee8b193867fa2a9360ea152371dd0742c9cd97fec
parent7f60dc03a0b88de78298bb57834d9fbc68926b64
avcodec/mjpegdec: Fix runtime error: signed integer overflow: -32767 * 130560 cannot be represented in type 'int'

Fixes: 1724/clusterfuzz-testcase-minimized-4842395432648704

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