avcodec/apedec: Fix 2 signed overflows
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 4 Aug 2019 07:46:34 +0000 (09:46 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 5 Aug 2019 15:50:27 +0000 (17:50 +0200)
commit392c028cd23d128f33d93b2159eed5de42f72b4d
tree0598b471b6cd935ce2871e5d7e60a16e6d2ddacb
parent99a172f3f4d0bef024c6293f575caaaddce0b267
avcodec/apedec: Fix 2 signed overflows

Fixes: left shift of 1073741824 by 1 places cannot be represented in type 'int'
Fixes: signed integer overflow: 2049431315 + 262759074 cannot be represented in type 'int'
Fixes: 16012/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5719016003338240

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