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

Git pushed a commit to branch master
in repository ffmpeg.

commit cdce032d9e24873626ec0641b399105d35eb8f93
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Wed Nov 18 15:52:19 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Thu Nov 19 03:51:55 2026 +0000

    avformat/rtmppkt: forget the partially read message when reading a chunk's 
payload fails
    
    Fixes: write to NULL + offset chosen by the peer
    Fixes: 0Z6vel9moooT
    Fixes: ANT-2026-EZ0OGW39
    Found-by: Anthropic's OSS Scanner
    
    Write to an address chosen by the peer Replicated through UnModified FFmpeg 
with ASAN
---
 libavformat/rtmppkt.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavformat/rtmppkt.c b/libavformat/rtmppkt.c
index 209ecd3257..73f68ded4e 100644
--- a/libavformat/rtmppkt.c
+++ b/libavformat/rtmppkt.c
@@ -276,6 +276,7 @@ static int rtmp_packet_read_one_chunk(URLContext *h, 
RTMPPacket *p,
     toread = FFMIN(size, chunk_size);
     if (ffurl_read_complete(h, p->data + p->offset, toread) != toread) {
         ff_rtmp_packet_destroy(p);
+        prev_pkt[channel_id].read = 0;
         return AVERROR(EIO);
     }
     size      -= toread;

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