aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/bmvvideo.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2017-05-08 15:46:55 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2017-05-08 15:47:29 +0200
commit29692023b2f1e0580a4065f4c9b62bafd89ab337 (patch)
tree4677e7ed0665c99cfd03e32308bb01e02822d5a6 /libavcodec/bmvvideo.c
parentea59ef0c031b6b92f051f60c19fdd0a716769834 (diff)
downloadffmpeg-29692023b2f1e0580a4065f4c9b62bafd89ab337.tar.gz
avcodec/bmvvideo: Fix runtime error: left shift of 137 by 24 places cannot be represented in type 'int'
Fixes: 1411/clusterfuzz-testcase-minimized-5776085184675840 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/bmvvideo.c')
-rw-r--r--libavcodec/bmvvideo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/bmvvideo.c b/libavcodec/bmvvideo.c
index 78a0945b7a..679b14208a 100644
--- a/libavcodec/bmvvideo.c
+++ b/libavcodec/bmvvideo.c
@@ -107,7 +107,7 @@ static int decode_bmv_frame(const uint8_t *source, int src_len, uint8_t *frame,
if (src < source || src >= source_end)
return AVERROR_INVALIDDATA;
shift += 2;
- val |= *src << shift;
+ val |= (unsigned)*src << shift;
if (*src & 0xC)
break;
}