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 1b89c9c493e9360780cc2cdd9b396910a70beda3
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Fri Nov 6 03:52:56 2026 +0100
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 06:17:20 2026 +0100

    avformat/nsvdec: fail on aux chunks larger than the video size
    
    Fixes: N4g8ebEjqVoK
    Fixes: swarm-Unsigned-vsize-underflow-in-NSV-aux-chunk-parsing-07da0a
    
    Found-by: zhang xingxing <[email protected]>
    
    Wrong error code Replicated through UnModified FFmpeg
    
    (cherry picked from commit 32cc1cf4c1573a99433182f47ba6839d0d9f06d4)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavformat/nsvdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/nsvdec.c b/libavformat/nsvdec.c
index b18fc46a4e..1ea5364f47 100644
--- a/libavformat/nsvdec.c
+++ b/libavformat/nsvdec.c
@@ -587,6 +587,8 @@ null_chunk_retry:
         auxsize = avio_rl16(pb);
         auxtag = avio_rl32(pb);
         avio_skip(pb, auxsize);
+        if (vsize < auxsize + sizeof(uint16_t) + sizeof(uint32_t))
+            return AVERROR_INVALIDDATA;
         vsize -= auxsize + sizeof(uint16_t) + sizeof(uint32_t); /* that's 
becoming brain-dead */
     }
 

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