diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-11 14:34:54 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-16 01:05:30 +0200 |
commit | 753d04b618e7b87ffdad6dd3189c031f4d01b038 (patch) | |
tree | ecade2a09b8d34896bbbe86c7129625c2896b77a /libavcodec | |
parent | 1df8547366469036eb162acac697b6354aa535d1 (diff) | |
download | ffmpeg-753d04b618e7b87ffdad6dd3189c031f4d01b038.tar.gz |
avcodec/snowdec: Fix runtime error: left shift of negative value -1
Fixes: 2197/clusterfuzz-testcase-minimized-6010716676947968
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 2e44126363bc9e23093ceced5d7bde1ee4bbb338)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/snowdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c index 022e9693c7..7d6d7ff44f 100644 --- a/libavcodec/snowdec.c +++ b/libavcodec/snowdec.c @@ -586,7 +586,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, for(; yq<slice_h && yq<h; yq++){ IDWTELEM * line = slice_buffer_get_line(&s->sb, yq); for(x=0; x<w; x++){ - line[x] <<= FRAC_BITS; + line[x] *= 1<<FRAC_BITS; } } } |