avcodec/apedec: Fix multiple integer overflows in predictor_update_filter()
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 16 Jun 2019 08:54:13 +0000 (10:54 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 21 Jul 2019 09:26:35 +0000 (11:26 +0200)
commit0af08cb803844b9eba4ff3e552c26452ec6fa7d2
tree52533b4d1f5b3aeec363842b5fd07ae770f655e9
parent54bd47f861e8cdc74aea816ebfbbaac25fefd0d1
avcodec/apedec: Fix multiple integer overflows in predictor_update_filter()

Fixes: signed integer overflow: -829262115 + -1410750414 cannot be represented in type 'int'
Fixes: 15251/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5651742252859392

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