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>
Fri, 15 Jun 2018 20:31:13 +0000 (22:31 +0200)
commitc98d84e2299c710e20133e63848bbce18bfe5b3e
treee1fb093d73892312cf0ee6f918d982be6859b31d
parentb3d740263c08370c9e701ac372dff5cdc0ebd39d
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