This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 5c02093341 avcodec/nvdec: take the output sw_format from the decoder's 
frames context
5c02093341 is described below

commit 5c02093341182a0015d2229c4e9722439e824a56
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Oct 14 21:25:49 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Mon Oct 19 23:38:37 2026 +0000

    avcodec/nvdec: take the output sw_format from the decoder's frames context
    
    Fixes: heap-use-after-free
    Fixes: R2BPZKw47umx
    Fixes: RAP_B_Bossen_1.bit
    Regression since: 767f53533a
    Heap use after free Replicated through UnModified FFmpeg with ASAN
    
    Found during triage of the review of 
https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24765
    
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/nvdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/nvdec.c b/libavcodec/nvdec.c
index d2c176e4f9..3f5c7ea122 100644
--- a/libavcodec/nvdec.c
+++ b/libavcodec/nvdec.c
@@ -800,7 +800,7 @@ static int nvdec_retrieve_data(void *logctx, AVFrame *frame)
     NVDECFrame        *cf = (NVDECFrame*)fdd->hwaccel_priv;
     NVDECDecoder *decoder = cf->decoder;
 
-    AVHWFramesContext *hwctx = (AVHWFramesContext *)frame->hw_frames_ctx->data;
+    AVHWFramesContext *hwctx = (AVHWFramesContext 
*)decoder->real_hw_frames_ref->data;
 
     CUVIDPROCPARAMS vpp = { 0 };
     NVDECFrame *unmap_data = NULL;

-- 
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]

Reply via email to