diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-21 17:56:34 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2017-06-22 03:08:57 +0200 |
commit | 46842f6de995cd3b530f2112b72e197300b1ed25 (patch) | |
tree | 19d116f7115e9e6052919cf5ee16d339e7813e80 | |
parent | fc30465bcb35c38b411af99f10c0d44f6b19302a (diff) | |
download | ffmpeg-46842f6de995cd3b530f2112b72e197300b1ed25.tar.gz |
avcodec/cfhd: Fix undefined shift
Fixes: runtime error: left shift of negative value -1
Fixes: 2303/clusterfuzz-testcase-minimized-5529675273076736
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 5a950f4e32a9756391f81987246d96b6549dd447)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/cfhd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/cfhd.c b/libavcodec/cfhd.c index 9473473f2d..c7bc54617d 100644 --- a/libavcodec/cfhd.c +++ b/libavcodec/cfhd.c @@ -710,7 +710,7 @@ static int cfhd_decode(AVCodecContext *avctx, void *data, int *got_frame, output = s->plane[plane].subband[0]; for (i = 0; i < lowpass_height * 2; i++) { for (j = 0; j < lowpass_width * 2; j++) - output[j] <<= 2; + output[j] *= 4; output += lowpass_width * 2; } |