mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/pgxdec: Fix invalid shift in write_frame_*
Fixes: left shift of negative value -121 Fixes: 23911/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_PGX_fuzzer-4986800258154496 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
4106013523
commit
165d6b876b
@ -102,7 +102,7 @@ error:
|
||||
for (i = 0; i < height; i++) { \
|
||||
PIXEL *line = (PIXEL*)frame->data[0] + i*frame->linesize[0]/sizeof(PIXEL); \
|
||||
for (j = 0; j < width; j++) { \
|
||||
int val; \
|
||||
unsigned val; \
|
||||
if (sign) \
|
||||
val = (PIXEL)bytestream2_get_ ##suffix(g) + (1 << (depth - 1)); \
|
||||
else \
|
||||
|
Loading…
Reference in New Issue
Block a user