avcodec/apedec: Fix integer overflow in intermediate
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 15 Sep 2021 20:00:47 +0000 (22:00 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Tue, 5 Oct 2021 21:19:39 +0000 (23:19 +0200)
commitbea287bdadd13b8045f6c043950ee5a405c3d768
tree472678e5ebcadd641b95cfc9c234b995daa74a62
parent2a7b3e62e0274f359ee1420f1d765292beb0508b
avcodec/apedec: Fix integer overflow in intermediate

Fixes: signed integer overflow: 559334865 * 4 cannot be represented in type 'int'
Fixes: 37929/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-6751932295806976

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 90da43557f7257d72e95504f63ae6504406d6eab)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c