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

Git pushed a commit to branch master
in repository ffmpeg.

commit a77318037b96d1238a5df4f62b0c3d1356b6fe8a
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Tue Oct 13 05:52:20 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Tue Oct 20 20:41:50 2026 +0000

    avformat/rtpenc_h263_rfc2190: check the return of init_get_bits8()
    
    Fixes: OEXYJTpBYJPS
    Fixes: NULL pointer dereference
    NULL pointer dereference Replicated through API with ASAN
    Found during the review of https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/24916
---
 libavformat/rtpenc_h263_rfc2190.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

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