History

avformat/wavdec: Check that smv block fits in available space

Fixes: OOM Fixes: 56271/clusterfuzz-testcase-minimized-ffmpeg_dem_WAV_fuzzer-5290810045497344

Michael Niedermayer committed 3 years ago

Commit a76efaf1 parent d09f50c1 file · +4 −0Browse files

Showing the changes to libavformat (1 of 1 file). Show all

Unified · Split

libavformat/wavdec.c+4−0
@@ -730,6 +730,10 @@ smv_retry: · 729 unmodified lines
730730 goto smv_out;
731731 }
732732 size = avio_rl24(s->pb);
733+ if (size > wav->smv_block_size) {
734+ ret = AVERROR_EOF;
735+ goto smv_out;
736+ }
733737 ret = av_get_packet(s->pb, pkt, size);
734738 if (ret < 0)
735739 goto smv_out;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t