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)
commita5018026af1d1eb89005fe5f4646398276e9fcfd
tree37d65caf8e570b6f211b2387f1b8d8aad8af8552
parent9a73a776816b359cc5befe2ddaa7edef22c4f353
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