avcodec/apedec: Use 64bit to avoid overflow
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 29 Sep 2021 18:53:53 +0000 (20:53 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 7 Oct 2021 21:38:57 +0000 (23:38 +0200)
commitf059b56195da9c0e2c11a5f7f357a3d6101e6bf0
treeacf70cffa3b650b1853c0b3310bf989f3c2542e7
parentad517ee6e44f093e28021ffd51c7eb2e1394b1a9
avcodec/apedec: Use 64bit to avoid overflow

Fixes: runtime error: signed integer overflow: 727298502 * 3 cannot be represented in type 'int'
Fixes: 39172/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-638602483033702

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