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, 27 Aug 2017 23:44:23 +0000 (01:44 +0200)
commit2ff2402c65dc964fe7f25f34543f0d1369e0cee4
treea16683cd71666950ff8f948ab99b5987b9d1b643
parent6b004e23d7fcdd3c69717bc12e6dcc070ab563b2
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