This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit a13e27336a61a3452e1ab8b4bb132c4174c67498 Author: Michael Niedermayer <[email protected]> AuthorDate: Thu Oct 15 01:42:48 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Mon Oct 19 23:40:15 2026 +0000 avcodec/vvc/refs: take the SPS and PPS references only once the frame buffer is allocated Found during triage/review of the security report q0RFgfMenefI (ANT-2026-HRT03RV0), whose control file vvc-subpic-control-corner.mkv triggers it. Fixes: memleak Regression since: e70225e0a8 Memleak Replicated through UnModified FFmpeg with ASAN --- libavcodec/vvc/refs.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libavcodec/vvc/refs.c b/libavcodec/vvc/refs.c index 6939a22732..c50cd32f5c 100644 --- a/libavcodec/vvc/refs.c +++ b/libavcodec/vvc/refs.c @@ -130,9 +130,6 @@ static VVCFrame *alloc_frame(VVCContext *s, VVCFrameContext *fc) if (frame->frame->buf[0]) continue; - frame->sps = av_refstruct_ref_c(fc->ps.sps); - frame->pps = av_refstruct_ref_c(fc->ps.pps); - // Add LCEVC SEI metadata here, as it's needed in get_buffer() if (fc->sei.common.itut_t35.lcevc) { ret = ff_frame_new_side_data_from_buf(s->avctx, frame->frame, @@ -145,6 +142,9 @@ static VVCFrame *alloc_frame(VVCContext *s, VVCFrameContext *fc) if (ret < 0) return NULL; + frame->sps = av_refstruct_ref_c(fc->ps.sps); + frame->pps = av_refstruct_ref_c(fc->ps.pps); + frame->rpl = av_refstruct_allocz(s->current_frame.nb_units * sizeof(RefPicListTab)); if (!frame->rpl) goto fail; -- 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]
