You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
avcodec/pictordec: Fix runtime error: left shift of 805306368 by 2 places cannot be represented in type 'int'
Fixes: 823/clusterfuzz-testcase-6727060074528768 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -62,7 +62,7 @@ static void picmemset(PicContext *s, AVFrame *frame, unsigned value, int run,
|
||||
{
|
||||
uint8_t *d;
|
||||
int shift = *plane * bits_per_plane;
|
||||
int mask = ((1 << bits_per_plane) - 1) << shift;
|
||||
unsigned mask = ((1 << bits_per_plane) - 1) << shift;
|
||||
value <<= shift;
|
||||
|
||||
while (run > 0) {
|
||||
|
Reference in New Issue
Block a user