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>
Mon, 19 Feb 2018 01:40:54 +0000 (02:40 +0100)
commit6baa0e811b761f6d8256cbbedc1808da676acf50
tree2e6fffe7ac064647bab588dc948c00c186d9ddb0
parent35f47ac0d54b7591e8c390e47d209034b788d940
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