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

Git pushed a commit to branch master
in repository ffmpeg.

commit 3b1cbb5e0f66b85d15f1d3527436520b3f4711ec
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Oct 29 00:00:03 2026 +0100
Commit:     michaelni <[email protected]>
CommitDate: Tue Nov 3 16:12:58 2026 +0000

    avcodec/bsf/aac_adtstoasc: check the bit reader initialization before the 
PCE
    
    Fixes: RG0je5bJzuAD
    Fixes: AISLE-2026-0150-00525
    Fixes: NULL pointer dereference
    NULL pointer dereference Replicated through UnModified FFmpeg with ASAN and 
UBSAN
    
    Found-by: Joshua Rogers <[email protected]>
---
 libavcodec/bsf/aac_adtstoasc.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/bsf/aac_adtstoasc.c b/libavcodec/bsf/aac_adtstoasc.c
index dd6e8e8a38..9f8e61e422 100644
--- a/libavcodec/bsf/aac_adtstoasc.c
+++ b/libavcodec/bsf/aac_adtstoasc.c
@@ -79,7 +79,9 @@ static int aac_adtstoasc_filter(AVBSFContext *bsfc, AVPacket 
*pkt)
 
         if (!hdr.chan_config) {
             GetBitContext gb;
-            init_get_bits(&gb, pkt->data, pkt->size * 8);
+            ret = init_get_bits8(&gb, pkt->data, pkt->size);
+            if (ret < 0)
+                goto fail;
             if (get_bits(&gb, 3) != 5) {
                 avpriv_report_missing_feature(bsfc,
                                               "PCE-based channel configuration 
"

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