diff options
author | Zane van Iperen <zane@zanevaniperen.com> | 2020-11-03 23:41:53 +1000 |
---|---|---|
committer | Zane van Iperen <zane@zanevaniperen.com> | 2020-11-05 07:58:06 +1000 |
commit | 769ab6b86421aab3936bcef3fe1813875c7a5eb0 (patch) | |
tree | c08af8560475bacf0c0af49c4a0f1ed9a1981f95 /libavformat/rmdec.c | |
parent | 63f5f01226ff0d335ce1c2005fb73eaa05742741 (diff) | |
download | ffmpeg-769ab6b86421aab3936bcef3fe1813875c7a5eb0.tar.gz |
avformat/argo_brp: remove block_align check for audio
Causes a divide-by-zero in the rare case where:
- the file has an audio stream,
- the first audio frame isn't within the first BRP_BASF_LOOKAHEAD frames,
- an audio frame is encountered later, and
- its chunk header (except num_blocks) contains all zeros
(matching the uninitialised structure in the context)
The decoder will discard any garbage data, so the check isn't really needed.
Fixes: division by 0
Fixes: 26667/clusterfuzz-testcase-minimized-ffmpeg_dem_ARGO_BRP_fuzzer-5645146928185344.fuzz
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Zane van Iperen <zane@zanevaniperen.com>
Diffstat (limited to 'libavformat/rmdec.c')
0 files changed, 0 insertions, 0 deletions