avcodec/pictordec: Fix runtime error: left shift of 64 by 25 places cannot be represe...
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 6 Mar 2017 20:33:18 +0000 (21:33 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 8 Mar 2017 20:15:07 +0000 (21:15 +0100)
Fixes: 724/clusterfuzz-testcase-6738249571631104

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/pictordec.c

index a09ee37..2dbc040 100644 (file)
@@ -57,7 +57,7 @@ static void picmemset_8bpp(PicContext *s, AVFrame *frame, int value, int run,
     }
 }
 
-static void picmemset(PicContext *s, AVFrame *frame, int value, int run,
+static void picmemset(PicContext *s, AVFrame *frame, unsigned value, int run,
                       int *x, int *y, int *plane, int bits_per_plane)
 {
     uint8_t *d;