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

Git pushed a commit to branch master
in repository ffmpeg.

commit 32cc1cf4c1573a99433182f47ba6839d0d9f06d4
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Fri Nov 6 03:52:56 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Sun Nov 8 00:06:10 2026 +0000

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