avcodec/shorten: Fix signed 32bit overflow in shift in shorten_decode_frame()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 12 Aug 2018 21:06:55 +0000 (23:06 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 15 Aug 2018 22:55:39 +0000 (00:55 +0200)
commit9b604e96a51a1fca92bbabfe4f7ac53f0470ee41
tree90f2f367c9a142482c1c76b639932d8133b6f09d
parentdb7e9082e1a1479c6a8844f7adf77eae03cc2aa7
avcodec/shorten: Fix signed 32bit overflow in shift in shorten_decode_frame()

Fixes: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
Fixes: 9480/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SHORTEN_fuzzer-6647324284551168 -rss_limit_mb=2000

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/shorten.c