Commit cdce032d9e for ffmpeg

commit cdce032d9e24873626ec0641b399105d35eb8f93
Author: Michael Niedermayer <michael@niedermayer.cc>
Date:   Wed Nov 18 15:52:19 2026 +0100

    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

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;