avcodec/apedec: Fix various integer overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jun 2019 09:32:10 +0000 (11:32 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 Jul 2019 09:26:35 +0000 (11:26 +0200)
commit240bf0e5960fca424e43b7ab1048897fdecabf26
tree91135098ab0392b3e8b40ac61af13a41f3116a8c
parent0af08cb803844b9eba4ff3e552c26452ec6fa7d2
avcodec/apedec: Fix various integer overflows

Fixes: signed integer overflow: -538976267 * 31 cannot be represented in type 'int'
Fixes: left shift of 65312 by 16 places cannot be represented in type 'int'
Fixes: 15255/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5718831688843264
Fixes: 15547/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5691384901664768

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c