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

Git pushed a commit to branch master
in repository ffmpeg.

commit ee457fdcdb3a069ef35910a2e1cacff10906b131
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Sun Oct 18 05:34:56 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 25 02:45:48 2026 +0000

    avcodec/cbs_jpeg: count byte stuffing only in the entropy-coded part of a 
scan
    
    Fixes: 28PPo4pFl31u
    Fixes: AISLE-2026-0150-00699
    Fixes: assertion failure
    Assertion failure Replicated through UnModified FFmpeg with an ASAN build
    
    Found-by: Joshua Rogers (AISLE)
    
    The report suggested counting 0xff bytes only after the scan header.
---
 libavcodec/cbs_jpeg.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/cbs_jpeg.c b/libavcodec/cbs_jpeg.c
index d64e2baec0..e1631a4246 100644
--- a/libavcodec/cbs_jpeg.c
+++ b/libavcodec/cbs_jpeg.c
@@ -362,7 +362,7 @@ static int cbs_jpeg_assemble_fragment(CodedBitstreamContext 
*ctx,
         unit = &frag->units[i];
         size += 2 + unit->data_size;
         if (unit->type == JPEG_MARKER_SOS) {
-            for (sp = 0; sp < unit->data_size; sp++) {
+            for (sp = AV_RB16(unit->data); sp < unit->data_size; sp++) {
                 if (unit->data[sp] == 0xff)
                     ++size;
             }

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