History

avformat/mxfdec: Check for duplicate mxf_read_index_entry_array()

Fixes: memleak Fixes: 41596/clusterfuzz-testcase-minimized-ffmpeg_dem_MXF_fuzzer-6439060204290048

Michael Niedermayer committed 4 years ago

Commit 4f44a211 parent 0ec75721 file · +3 −0Browse files

Unified · Split

libavformat/mxfdec.c+3−0
@@ -1111,6 +1111,9 @@ static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *seg · 1110 unmodified lines
11111111 {
11121112 int i, length;
11131113
1114+ if (segment->temporal_offset_entries)
1115+ return AVERROR_INVALIDDATA;
1116+
11141117 segment->nb_index_entries = avio_rb32(pb);
11151118
11161119 length = avio_rb32(pb);

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