avcodec/apedec: Fix 2 integer overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Thu, 14 Nov 2019 15:38:36 +0000 (16:38 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 10 Dec 2019 15:09:14 +0000 (16:09 +0100)
commit6e15ba2d1f688c61759001839811b11903de9ce0
treec384aba77aa3d93173ec7f495e207cfdef72c31c
parenta9cbd25d89dbdf72f7b616fdf672d7da36143cfe
avcodec/apedec: Fix 2 integer overflows

Fixes: signed integer overflow: 2119056926 - -134217728 cannot be represented in type 'int'
Fixes: 18728/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5747539563511808

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