[FFmpeg-cvslog] avcodec/pictordec: Fix runtime error: left shift of 64 by 25 places cannot be represented in type 'int'

Michael Niedermayer git at videolan.org
Wed Mar 8 22:15:36 EET 2017


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Mon Mar  6 21:33:18 2017 +0100| [01a33b835f7a9e135eb8c7b7dd98c8b89f15dea1] | committer: Michael Niedermayer

avcodec/pictordec: Fix runtime error: left shift of 64 by 25 places cannot be represented in type 'int'

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 at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=01a33b835f7a9e135eb8c7b7dd98c8b89f15dea1
---

 libavcodec/pictordec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c
index a09ee37..2dbc040 100644
--- a/libavcodec/pictordec.c
+++ b/libavcodec/pictordec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list