diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-21 21:49:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-05-22 02:16:39 +0200 |
commit | 40fa6a2fa2c255293a780a194eecae5df52644a1 (patch) | |
tree | e8b193867fa2a9360ea152371dd0742c9cd97fec /libavcodec/mjpegdec.c | |
parent | 7f60dc03a0b88de78298bb57834d9fbc68926b64 (diff) | |
download | ffmpeg-40fa6a2fa2c255293a780a194eecae5df52644a1.tar.gz |
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>
Diffstat (limited to 'libavcodec/mjpegdec.c')
-rw-r--r-- | libavcodec/mjpegdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/mjpegdec.c b/libavcodec/mjpegdec.c index ed381de66a..5cdb489028 100644 --- a/libavcodec/mjpegdec.c +++ b/libavcodec/mjpegdec.c @@ -757,7 +757,7 @@ static int decode_dc_progressive(MJpegDecodeContext *s, int16_t *block, int component, int dc_index, uint16_t *quant_matrix, int Al) { - int val; + unsigned val; s->bdsp.clear_block(block); val = mjpeg_decode_dc(s, dc_index); if (val == 0xfffff) { |