avcodec/aacsbr_fixed: Fix overflows in rounding in sbr_hf_assemble()
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 31 Jan 2018 17:13:07 +0000 (18:13 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 12 Apr 2018 22:35:15 +0000 (00:35 +0200)
commita97335b1b3aec9fb449ddf1a8b33cdaf418bf1a2
tree9b73e60cc80b25e05141f0e77f4e3e20075227f7
parentd07a0ae1af038ad6d4a4084d22940b4efbea141e
avcodec/aacsbr_fixed: Fix overflows in rounding in sbr_hf_assemble()

Fixes: runtime error: signed integer overflow: 2052929346 + 204817098 cannot be represented in type 'int'
Fixes: 5275/clusterfuzz-testcase-minimized-5367635958038528

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 b1bef755f617af9685b592d866b3eb7f3c4b02b1)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aacsbr_fixed.c