avcodec/aacdec_template: Fix undefined integer overflow in apply_tns()
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 13 Jul 2017 22:45:29 +0000 (00:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 19 Jul 2017 01:54:39 +0000 (03:54 +0200)
commita2c3c9bc6038b03af917c7d840ca56d062574ba2
tree053dd0c484b326dbb72c71920e7a6ab4c7d8eff4
parent94077cf6735afd1a166848d388c3a59764e7c71c
avcodec/aacdec_template: Fix undefined integer overflow in apply_tns()

Fixes: runtime error: signed integer overflow: -2147483648 - 1202286525 cannot be represented in type 'int'
Fixes: 2071/clusterfuzz-testcase-minimized-6036414271586304

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 0ef8f03133a0bd83c74200a8cf30982c0f574016)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/aac_defines.h
libavcodec/aacdec_template.c