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, 21 Oct 2021 17:21:14 +0000 (19:21 +0200)
commit1abb9ab2667f6ed30c48fe15052bc382893fbc9f
tree0084928fc1ffdaf1a7bff4e6fd51b60092911f6b
parentbda2d4989609e6be284575c5bc55a6deba3034d7
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>
(cherry picked from commit f059b56195da9c0e2c11a5f7f357a3d6101e6bf0)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/apedec.c