diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-10-20 23:51:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-07-01 12:49:26 +0200 |
commit | d9a8345d215574b192e68312e0f957965d6c76b3 (patch) | |
tree | 9bf00d0a8981d9031202475508707ca62cea6a3c /libavcodec/cavsdsp.c | |
parent | 5454e8d95f2deb8e87031a4c96c5d7fd5746f1c7 (diff) | |
download | ffmpeg-d9a8345d215574b192e68312e0f957965d6c76b3.tar.gz |
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>
(cherry picked from commit f09151fff9c754fbc1d2560adf18b14957f8b181)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/cavsdsp.c')
0 files changed, 0 insertions, 0 deletions