mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-08 13:22:53 +02:00
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 40fa6a2fa2
)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
dd373b4027
commit
32ac3f1b1f
@ -728,7 +728,7 @@ static int decode_dc_progressive(MJpegDecodeContext *s, int16_t *block,
|
||||
int component, int dc_index,
|
||||
int16_t *quant_matrix, int Al)
|
||||
{
|
||||
int val;
|
||||
unsigned val;
|
||||
s->bdsp.clear_block(block);
|
||||
val = mjpeg_decode_dc(s, dc_index);
|
||||
if (val == 0xfffff) {
|
||||
|
Loading…
Reference in New Issue
Block a user