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>
Wed, 19 Jul 2017 13:26:37 +0000 (15:26 +0200)
commit4384481fbcb6154534b3dab5a1cc37529296d532
tree774f80ffdaece29c27bd2dca7bcff353f549bd32
parent347cc89daf90eaa307b966445cbdeff9ba026c64
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