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 51349e31fc avformat/whip: Avoid uninitialized pointer read
51349e31fc is described below

commit 51349e31fca60ed8976a2bc411ce0a3fcf1c2733
Author:     Vignesh Venkat <[email protected]>
AuthorDate: Thu Feb 19 10:58:00 2026 -0800
Commit:     Jack Lau <[email protected]>
CommitDate: Fri Feb 20 01:12:27 2026 +0000

    avformat/whip: Avoid uninitialized pointer read
    
    Do not try to free the io context if it was never allocated.
    
    Fixes coverity #1665383
    
    Signed-off-by: Vignesh Venkatasubramanian <[email protected]>
---
 libavformat/whip.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavformat/whip.c b/libavformat/whip.c
index 8aed0c31e5..fda5fed40c 100644
--- a/libavformat/whip.c
+++ b/libavformat/whip.c
@@ -892,8 +892,7 @@ static int parse_answer(AVFormatContext *s)
 
     if (!whip->sdp_answer || !strlen(whip->sdp_answer)) {
         av_log(whip, AV_LOG_ERROR, "No answer to parse\n");
-        ret = AVERROR(EINVAL);
-        goto end;
+        return AVERROR(EINVAL);
     }
 
     pb = avio_alloc_context(whip->sdp_answer, strlen(whip->sdp_answer), 0, 
NULL, NULL, NULL, NULL);

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

Reply via email to