avcodec/g723_1dec: Clip bits2 in both directions
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 25 May 2018 19:56:04 +0000 (21:56 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 27 May 2018 21:10:12 +0000 (23:10 +0200)
commit53f241218d9eac368e2e1c58bcca9bbdf10fd0e1
treecf27a21f20a5b7cabe4a71d4900a718adc813898
parente1182fac1afba92a4975917823a5f644bee7e6e8
avcodec/g723_1dec: Clip bits2 in both directions

Fixes: shift exponent 33 is too large for 32-bit type 'int'
Fixes: 6743/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_G723_1_fuzzer-5823772687859712

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