This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit c2173dcc3232b1967d664eeec0a971acd61c00f2 Author: Michael Niedermayer <[email protected]> AuthorDate: Thu Sep 17 22:37:13 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Fri Sep 18 14:11:48 2026 +0000 avformat/hlsenc: clear the freed segment buffer pointer before the init segment error return Fixes: use after free Found during triage/review of the security report XoynvIRQMj1M --- libavformat/hlsenc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavformat/hlsenc.c b/libavformat/hlsenc.c index 4726a4a708..1772be957b 100644 --- a/libavformat/hlsenc.c +++ b/libavformat/hlsenc.c @@ -2535,6 +2535,7 @@ static int hls_write_packet(AVFormatContext *s, AVPacket *pkt) if (hls->segment_type == SEGMENT_TYPE_FMP4) { if (!vs->init_range_length) { range_length = avio_close_dyn_buf(oc->pb, &vs->init_buffer); + oc->pb = NULL; if (range_length <= 0) return AVERROR(EINVAL); avio_write(vs->out, vs->init_buffer, range_length); -- To stop receiving notification emails like this one, please contact [email protected]. _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
