From 01a33b835f7a9e135eb8c7b7dd98c8b89f15dea1 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Mon, 6 Mar 2017 21:33:18 +0100 Subject: [PATCH] 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 --- libavcodec/pictordec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index a09ee379c0..2dbc040b5c 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;