avcodec/takdec: Fix integer overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 22 Jun 2017 19:21:56 +0000 (21:21 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 23 Jun 2017 01:05:43 +0000 (03:05 +0200)
commit00a6211b458a48fbd235cc6c808861a0e337756e
tree2ba2c734caedc4d6ba075975dbaeef89bd4ba2a0
parent220ee7e58369b0d6f3adf97242034f315b9a9d96
avcodec/takdec: Fix integer overflow

Fixes: runtime error: signed integer overflow: 512 + 2147483146 cannot be represented in type 'int'
Fixes: 2314/clusterfuzz-testcase-minimized-4519333877252096

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