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, 12 Feb 2018 02:02:29 +0000 (03:02 +0100)
commit5b6324a94c2086fcd243f2f615024b32fa1e27ce
tree82d9e5cd87e332c59029af38393b1776573f2e31
parentc95d343ae17039510cd779eecc739b3641cc53f6
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