Browse Source

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@niedermayer.cc>
tags/n3.3
Michael Niedermayer 8 years ago
parent
commit
01a33b835f
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavcodec/pictordec.c

+ 1
- 1
libavcodec/pictordec.c View 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) int *x, int *y, int *plane, int bits_per_plane)
{ {
uint8_t *d; uint8_t *d;


Loading…
Cancel
Save