avcodec/sbrdsp_fixed: Fix integer overflow in sbr_hf_apply_noise()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 2 Jul 2017 01:30:54 +0000 (03:30 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jul 2017 13:26:37 +0000 (15:26 +0200)
commit8d3ac812ffddeed24e3d7a55b0f997af9df49d61
tree1106a455d0f3c462714279a35587804d81a51be4
parentba3a4a94bcedb10237540d859519d16900cb6b67
avcodec/sbrdsp_fixed: Fix integer overflow in sbr_hf_apply_noise()

Fixes: runtime error: signed integer overflow: -2049425300 + -117591631 cannot be represented in type 'int'
Fixes: part of 2096/clusterfuzz-testcase-minimized-4901566068817920

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