avcodec/takdec: Fixes: integer overflow in AV_SAMPLE_FMT_U8P output
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Jun 2017 12:37:19 +0000 (14:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 18 Jun 2017 13:17:14 +0000 (15:17 +0200)
commit5aa7d228cbad009939f8d4d6739bb456472a0297
tree0f15c85b35a2e91d25c91c78636d412ca3394534
parent0aa14c7f67b2483b76a685a5ed16ea44ec921f37
avcodec/takdec: Fixes: integer overflow in AV_SAMPLE_FMT_U8P output

Fixes: runtime error: signed integer overflow: 2147483543 + 128 cannot be represented in type 'int'
Fixes: 2234/clusterfuzz-testcase-minimized-6266896041115648

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