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

Git pushed a commit to branch release/9.1
in repository ffmpeg.

commit d7f2a9048f57610aa107176c6828452823f2e42a
Author:     Peter Krefting <[email protected]>
AuthorDate: Wed Nov 18 14:49:26 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Thu Nov 19 14:55:53 2026 +0100

    avformat/mov: Fix memory leak
    
    The AES context allocated by cbc1_scheme_decrypt() or
    cbcs_scheme_decrypt() was never cleaned up.
    
    Found-by: Claude Opus 5.5
    (cherry picked from commit 5c35cd56d0b41d6ee786b742b1c3cd870f434a1c)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/mov.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/mov.c b/libavformat/mov.c
index 48b80a15e6..d7c05349df 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -10904,6 +10904,7 @@ static void mov_free_stream_context(AVFormatContext *s, 
AVStream *st)
     mov_free_encryption_index(&sc->cenc.encryption_index);
     av_encryption_info_free(sc->cenc.default_encrypted_sample);
     av_aes_ctr_free(sc->cenc.aes_ctr);
+    av_freep(&sc->cenc.aes_ctx);
 
     av_freep(&sc->stereo3d);
     av_freep(&sc->spherical);

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