OSDN Git Service

avcodec/g723_1dec: Clip after shift in estimate_sid_gain()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 12:16:57 +0000 (14:16 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 20 May 2017 15:55:01 +0000 (17:55 +0200)
commit23868ad5cb9b78ef95d2f71371d4f568b36218d5
tree1e906d2d97fd7e301125a79438c1510afe75a64f
parent1a950f32abf3bb0de7a94b26be2dfa62810ffc28
avcodec/g723_1dec: Clip after shift in estimate_sid_gain()

Fixes: runtime error: left shift of 706 by 22 places cannot be represented in type 'int'
See: L_shl() in the reference software
Fixes: 1609/clusterfuzz-testcase-minimized-5102163007111168

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