[FFmpeg-cvslog] libavformat/hls: Free keys

Michael Niedermayer git at videolan.org
Mon Sep 26 18:14:15 EEST 2022


ffmpeg | branch: release/4.3 | Michael Niedermayer <michael at niedermayer.cc> | Fri Sep  9 00:32:23 2022 +0200| [25d79ebbf5443f5215014f6dbf1d3ee1aa895cf7] | committer: Michael Niedermayer

libavformat/hls: Free keys

Fixes: memleak
Fixes: 50703/clusterfuzz-testcase-minimized-ffmpeg_dem_HLS_fuzzer-6399058578636800

Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
Reviewed-by: Steven Liu <lingjiujianke at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
(cherry picked from commit d32a9f3137c91de86547601a38fea0693c3497f1)
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=25d79ebbf5443f5215014f6dbf1d3ee1aa895cf7
---

 libavformat/hls.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/hls.c b/libavformat/hls.c
index a48c081ece..acaebed040 100644
--- a/libavformat/hls.c
+++ b/libavformat/hls.c
@@ -236,6 +236,7 @@ static void free_init_section_list(struct playlist *pls)
 {
     int i;
     for (i = 0; i < pls->n_init_sections; i++) {
+        av_freep(&pls->init_sections[i]->key);
         av_freep(&pls->init_sections[i]->url);
         av_freep(&pls->init_sections[i]);
     }



More information about the ffmpeg-cvslog mailing list