]> git.sesse.net Git - ffmpeg/commit
avcodec/atrac3: Check for huge block aligns
authorMichael Niedermayer <michael@niedermayer.cc>
Sun, 20 Oct 2019 21:51:58 +0000 (23:51 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 20 Nov 2019 14:50:15 +0000 (15:50 +0100)
commitf09151fff9c754fbc1d2560adf18b14957f8b181
treebeb2cab2a4792a7ff514aa4046e6215deffdcd3e
parent1b7d02642b2096622cee6165fea1301bb9ad54ff
avcodec/atrac3: Check for huge block aligns

The largest documented frame size = block align is 1024 bytes
(https://wiki.multimedia.cx/index.php/ATRAC3)

Without a limit this can allocate arbitrary memory and trigger OOM
Fixes: OOM
Fixes: 18337/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ATRAC3_fuzzer-5763861478637568
Fixes: 18556/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ATRAC3AL_fuzzer-5646183334936576
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/atrac3.c