projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf0ba75
)
avformat/mpsubdec: Clear queue on error
author
Michael Niedermayer
<michael@niedermayer.cc>
Sat, 21 Sep 2019 11:43:19 +0000
(13:43 +0200)
committer
Michael Niedermayer
<michael@niedermayer.cc>
Tue, 8 Oct 2019 14:24:58 +0000
(16:24 +0200)
Fixes: Memleaks
Fixes: 17219/clusterfuzz-testcase-minimized-ffmpeg_DEMUXER_fuzzer-
5720539124989952
Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/mpsubdec.c
patch
|
blob
|
history
diff --git
a/libavformat/mpsubdec.c
b/libavformat/mpsubdec.c
index
3d8dcb3
..
82c7345
100644
(file)
--- a/
libavformat/mpsubdec.c
+++ b/
libavformat/mpsubdec.c
@@
-163,6
+163,9
@@
static int mpsub_read_header(AVFormatContext *s)
ff_subtitles_queue_finalize(s, &mpsub->q);
end:
+ if (res < 0)
+ ff_subtitles_queue_clean(&mpsub->q);
+
av_bprint_finalize(&buf, NULL);
return res;
}