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, 5 Jun 2017 21:16:54 +0000 (23:16 +0200)
commit32ac3f1b1f916e0b24a202f03f1d45d5bd4e953d
tree779738a320fc81d21b6119c42cef86ff50503b6b
parentdd373b4027d6bcd04619949d0821943dbe25d6a7
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>
(cherry picked from commit 40fa6a2fa2c255293a780a194eecae5df52644a1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mjpegdec.c