mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-19 05:49:09 +02:00
avformat/mxfdec: Check for duplicate mxf_read_index_entry_array()
Fixes: memleak Fixes: 41596/clusterfuzz-testcase-minimized-ffmpeg_dem_MXF_fuzzer-6439060204290048 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> (cherry picked from commit 4f44a218e53cd92e64ba10a935bc1e7583c3e218) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
4023a8af63
commit
f4f397ebc1
@ -1092,6 +1092,9 @@ static int mxf_read_index_entry_array(AVIOContext *pb, MXFIndexTableSegment *seg
|
|||||||
{
|
{
|
||||||
int i, length;
|
int i, length;
|
||||||
|
|
||||||
|
if (segment->temporal_offset_entries)
|
||||||
|
return AVERROR_INVALIDDATA;
|
||||||
|
|
||||||
segment->nb_index_entries = avio_rb32(pb);
|
segment->nb_index_entries = avio_rb32(pb);
|
||||||
|
|
||||||
length = avio_rb32(pb);
|
length = avio_rb32(pb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user