avcodec/aacpsdsp_template: Fix integer overflows in ps_decorrelate_c()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 5 Nov 2017 20:20:08 +0000 (21:20 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 1 Dec 2017 23:28:59 +0000 (00:28 +0100)
commit91aadc6a5b8e295dd649c430e9a994226dc002be
tree6d63d0d5430a26d2f187fb55040e70691b9b1c78
parent43299eabeabc61c6a5b56f85f0901591bd8fb205
avcodec/aacpsdsp_template: Fix integer overflows in ps_decorrelate_c()

Fixes: runtime error: signed integer overflow: 1939661764 - -454942263 cannot be represented in type 'int'
Fixes: 3191/clusterfuzz-testcase-minimized-5688798451073024

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