diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-21 02:20:35 +0100 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-03-23 15:25:48 +0100 |
commit | 0f34c0789f855f04dce518ffc93a01bb943ba1aa (patch) | |
tree | 9e586252f4cec87ca8af4b96db17efc57ca10096 /libavcodec/pictordec.c | |
parent | 3182e19c1c29eef60208a67ad8ecad1d9a2d0694 (diff) | |
download | ffmpeg-0f34c0789f855f04dce518ffc93a01bb943ba1aa.tar.gz |
avcodec/pictordec: runtime error: left shift of 15 by 28 places cannot be represented in type 'int'
Fixes: 898/clusterfuzz-testcase-6149765467209728
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/pictordec.c')
-rw-r--r-- | libavcodec/pictordec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index 8b075bfd0c..b29a484534 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -62,7 +62,7 @@ static void picmemset(PicContext *s, AVFrame *frame, unsigned value, int run, { uint8_t *d; int shift = *plane * bits_per_plane; - unsigned mask = ((1 << bits_per_plane) - 1) << shift; + unsigned mask = ((1U << bits_per_plane) - 1) << shift; value <<= shift; while (run > 0) { |