diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2019-10-20 23:51:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-01-06 11:30:44 +0100 |
commit | 71d17a2827195c5daf7acfe551f154bf5c5e1d22 (patch) | |
tree | 4b35190d33f2743e3b01ed21fc46080006e4c43f /libavcodec/ivi_dsp.c | |
parent | 4d53c962ed53d959421f00859e9707a0f5701113 (diff) | |
download | ffmpeg-71d17a2827195c5daf7acfe551f154bf5c5e1d22.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/ivi_dsp.c')
0 files changed, 0 insertions, 0 deletions