This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch release/4.3 in repository ffmpeg.
commit a3acba89491b0c05c4e436e2d0eda6e395917108 Author: Marton Balint <[email protected]> AuthorDate: Sat Apr 10 11:59:00 2021 +0200 Commit: James Almer <[email protected]> CommitDate: Fri Jan 2 21:58:51 2026 +0000 avformat/hls: check return value of new_init_section() Fixes part of ticket #8931. Fixes: CVE-2023-6603 Signed-off-by: Marton Balint <[email protected]> (cherry picked from commit 28c83584e8f3cd747c1476a74cc2841d3d1fa7f3) Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit e3e479d077044175dca0376739eeafde49610573) Signed-off-by: Carlos Henrique Lima Melara <[email protected]> --- libavformat/hls.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/hls.c b/libavformat/hls.c index acfb382faa..0e40dceec9 100644 --- a/libavformat/hls.c +++ b/libavformat/hls.c @@ -886,6 +886,10 @@ static int parse_playlist(HLSContext *c, const char *url, ff_parse_key_value(ptr, (ff_parse_key_val_cb) handle_init_section_args, &info); cur_init_section = new_init_section(pls, &info, url); + if (!cur_init_section) { + ret = AVERROR(ENOMEM); + goto fail; + } cur_init_section->key_type = key_type; if (has_iv) { memcpy(cur_init_section->iv, iv, sizeof(iv)); _______________________________________________ ffmpeg-cvslog mailing list -- [email protected] To unsubscribe send an email to [email protected]
