avcodec/takdec: Fix integer overflow in decode_lpc()
authorMichael Niedermayer <michael@niedermayer.cc>
Fri, 22 Sep 2017 18:45:27 +0000 (20:45 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 25 Sep 2017 09:10:30 +0000 (11:10 +0200)
commit2c84969cb4aef2526e11d070af5c300b5b4e3818
tree4f1a9f0b65f9308cd771ad5bec78f374495bbd04
parent09913c5ec4cc03fbcf1dcebed00b148f41ed2aba
avcodec/takdec: Fix integer overflow in decode_lpc()

Fixes: runtime error: signed integer overflow: 16748560 + 2143729712 cannot be represented in type 'int'
Fixes: 3202/clusterfuzz-testcase-minimized-4988291642294272

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 5d31f03a0264cac24434c8108daef4ccba6d28f9)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/takdec.c