avcodec/apedec: Fix undefined integer overflow in long_filter_ehigh_3830()
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 27 Sep 2021 22:11:50 +0000 (00:11 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Sat, 9 Oct 2021 16:34:49 +0000 (18:34 +0200)
commitca5f10e0c39729b6b5ea3cccc36032777a3b94f8
tree0305ed927606ad4b1ea37fe1b9b56ded3972b728
parentafe2a1a8c52d880f4862aa278a2c98b7f16c9fa7
avcodec/apedec: Fix undefined integer overflow in long_filter_ehigh_3830()

Fixes: signed integer overflow: -2145648640 - 3357696 cannot be represented in type 'int'
Fixes: 38899/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_APE_fuzzer-5358815017566208

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