mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-26 04:50:25 +00:00
avformat/img2dec: Fix probe_buffer leak in ff_img_read_header()
Fixes: memleak Fixes: 15171/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-5683881644130304 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
5ea7f20500
commit
bd3672ba75
@ -356,6 +356,7 @@ int ff_img_read_header(AVFormatContext *s1)
|
||||
}
|
||||
if (s1->flags & AVFMT_FLAG_CUSTOM_IO) {
|
||||
avio_seek(s1->pb, 0, SEEK_SET);
|
||||
av_freep(&probe_buffer);
|
||||
} else
|
||||
ffio_rewind_with_probe_data(s1->pb, &probe_buffer, probe_buffer_size);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user