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 17:40:23 +0000 (19:40 +0200)
commiteefb68c9c335dda423c9115ba11dc4bb3e73e3f9
tree2e7501be0bb7688616670b89c5918bcfc1bfc5bf
parent4f05e2e2dc1a89f38cd9f0960a6561083d714f1e
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>
libavcodec/sbrdsp_fixed.c