avcodec/rangecoder: Test for invalid corner case
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 May 2017 00:58:54 +0000 (02:58 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 8 May 2017 01:25:17 +0000 (03:25 +0200)
commit5f928c5201c077b9765610bc5304235c3f1d9bd6
treef8ad2efb4faa42464c371a3df09eac21ff535c35
parent3a4d387195a5eb3c1700071af8d8150e4f7f6600
avcodec/rangecoder: Test for invalid corner case

Fixes runtime error: left shift of 1912602815 by 8 places cannot be represented in type 'int'
Fixes: 1403/clusterfuzz-testcase-minimized-4724820484816896

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