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

Git pushed a commit to branch master
in repository ffmpeg.

commit 353cb778b1f13de93badde3f708531069858dcc3
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Oct 8 02:13:57 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Sun Oct 11 01:31:37 2026 +0000

    avformat/rtpenc_h263_rfc2190: Limit the bit reader to the picture header
    
    Fixes: NULL pointer dereference
    Fixes: signed integer overflow
    Fixes: 2zAkARzDBRFd
    NULL pointer dereference Replicated through UnModified FFmpeg with 
ASAN,UBSAN
    Signed integer overflow Replicated through UnModified FFmpeg with UBSAN
    Found during triage of the security report nd3rLqSpKgo5
---
 libavformat/rtpenc_h263_rfc2190.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/rtpenc_h263_rfc2190.c 
b/libavformat/rtpenc_h263_rfc2190.c
index 3567202d8d..590cbc75b6 100644
--- a/libavformat/rtpenc_h263_rfc2190.c
+++ b/libavformat/rtpenc_h263_rfc2190.c
@@ -111,7 +111,7 @@ void ff_rtp_send_h263_rfc2190(AVFormatContext *s1, const 
uint8_t *buf, int size,
 
     s->timestamp = s->cur_timestamp;
 
-    init_get_bits(&gb, buf, size*8);
+    init_get_bits8(&gb, buf, FFMIN(size, 6));
     if (get_bits(&gb, 22) == 0x20) { /* Picture Start Code */
         info.tr  = get_bits(&gb, 8);
         skip_bits(&gb, 2); /* PTYPE start, H.261 disambiguation */

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