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>
Mon, 22 Oct 2018 23:44:40 +0000 (01:44 +0200)
commitfe37daf25dc60b92724953224b1a97713c9621e4
tree3110b5ec13c8b0e613f37c4ed3f64c52fd4fdeb4
parent0d585110131186b47c092b683c7758922576ae61
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>
(cherry picked from commit 53f241218d9eac368e2e1c58bcca9bbdf10fd0e1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/g723_1dec.c