avcodec/sbrdsp_fixed: Fix undefined overflows in autocorrelate()
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 26 Aug 2017 12:00:55 +0000 (14:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 17 Sep 2017 10:21:32 +0000 (12:21 +0200)
commita4cc1101cc98819ed4704274d8d7ce40725cd774
tree6c246aeefc46f97d8004c8c303467f69ff0a71e2
parentd4fc6b211f19365fbae4b4388ec396b293fda249
avcodec/sbrdsp_fixed: Fix undefined overflows in autocorrelate()

Fixes: runtime error: signed integer overflow: 8903997421129740175 + 354481484684609529 cannot be represented in type 'long'
Fixes: 2045/clusterfuzz-testcase-minimized-6751255865065472

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