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 d65510d9f6fd21a640cd1a4344e1af63b0248d63
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sat Oct 24 05:47:15 2026 +0200
Commit:     Michael Niedermayer <[email protected]>
CommitDate: Sun Nov 15 02:24:35 2026 +0100

    avcodec/libxevd: check the NAL unit length against the remaining packet data
    
    Fixes: out of array read
    Fixes: 5sHdL1UwYoZ2 (AISLE-2026-0150-00006)
    Out of array read Replicated through UnModified FFmpeg with ASAN
    Out of array read Replicated through API with ASAN
    Found-by: Joshua Rogers <[email protected]>
    
    (cherry picked from commit e06b3953d4253f8b56271628ba4083fde96aeadb)
    Signed-off-by: Michael Niedermayer <[email protected]>
---
 libavcodec/libxevd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/libxevd.c b/libavcodec/libxevd.c
index dd8ffb2f6a..7db7ec6dc3 100644
--- a/libavcodec/libxevd.c
+++ b/libavcodec/libxevd.c
@@ -348,7 +348,7 @@ static int libxevd_receive_frame(AVCodecContext *avctx, 
AVFrame *frame)
             memset(&stat, 0, sizeof(XEVD_STAT));
 
             nalu_size = read_nal_unit_length(pkt_au->data + bs_read_pos, 
XEVD_NAL_UNIT_LENGTH_BYTE, avctx);
-            if (nalu_size == 0) {
+            if (nalu_size <= 0 || nalu_size > pkt_au->size - bs_read_pos - 
XEVD_NAL_UNIT_LENGTH_BYTE) {
                 av_log(avctx, AV_LOG_ERROR, "Invalid bitstream\n");
                 av_packet_free(&pkt_au);
                 ret = AVERROR_INVALIDDATA;

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