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

Git pushed a commit to branch master
in repository ffmpeg.

commit 144af8f81abc1385631b4e1f4672cd415a9c6e05
Author:     James Almer <[email protected]>
AuthorDate: Sun May 3 13:07:32 2026 -0300
Commit:     James Almer <[email protected]>
CommitDate: Fri May 15 20:32:24 2026 -0300

    tools/zmqsend: free the AVBprint buffer after using it
    
    Fixes CVE-2026-30999
    
    Fixes: memleak
    Found-by: Xinghang Lv
    Signed-off-by: James Almer <[email protected]>
---
 tools/zmqsend.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/zmqsend.c b/tools/zmqsend.c
index dc5d426cc8..17a6194b28 100644
--- a/tools/zmqsend.c
+++ b/tools/zmqsend.c
@@ -55,7 +55,7 @@ static void usage(void)
 int main(int argc, char **argv)
 {
     AVBPrint src;
-    char *src_buf, *recv_buf;
+    char *src_buf = NULL, *recv_buf;
     int c;
     int recv_buf_size, ret = 0;
     void *zmq_ctx, *socket;
@@ -165,6 +165,7 @@ int main(int argc, char **argv)
     av_free(recv_buf);
 
 end:
+    av_freep(&src_buf);
     zmq_close(socket);
     zmq_ctx_destroy(zmq_ctx);
     return ret;

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to