mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-03-28 12:32:17 +02:00
avcodec/utvideodec: Fix integer overflow in decode_plane()
Fixes: signed integer overflow: 2147483594 + 142 cannot be represented in type 'int' Fixes: 20492/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_UTVIDEO_fuzzer-5658568101724160 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 876cfa67f37e944b0f42cb67b2de4e2e06f52e82) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8858e92b7a
commit
15062f6466
@ -260,7 +260,7 @@ static int decode_plane(UtvideoContext *c, int plane_no,
|
|||||||
for (i = 0; i < width * step; i += step) {
|
for (i = 0; i < width * step; i += step) {
|
||||||
pix = fsym;
|
pix = fsym;
|
||||||
if (use_pred) {
|
if (use_pred) {
|
||||||
prev += pix;
|
prev += (unsigned)pix;
|
||||||
pix = prev;
|
pix = prev;
|
||||||
}
|
}
|
||||||
dest[i] = pix;
|
dest[i] = pix;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user