aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-06-11 14:34:54 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-06-11 15:22:07 +0200
commit2e44126363bc9e23093ceced5d7bde1ee4bbb338 (patch)
treeb0ec4559b66344a8e9b3046e897ad56e97a3cb7c /libavcodec
parent6d499ecef9c2467772b6066176ffda0b7ab27cc2 (diff)
downloadffmpeg-2e44126363bc9e23093ceced5d7bde1ee4bbb338.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>
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/snowdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/snowdec.c b/libavcodec/snowdec.c
index 6cf15c5ae6..c80901b754 100644
--- a/libavcodec/snowdec.c
+++ b/libavcodec/snowdec.c
@@ -584,7 +584,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;
}
}
}