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

Git pushed a commit to branch master
in repository ffmpeg.

commit b66ddebf8b2021fedbb32c87204bcd517ce5d08b
Author:     Michael Niedermayer <[email protected]>
AuthorDate: Thu Sep 24 18:37:11 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Fri Sep 25 00:49:05 2026 +0000

    avformat/rtpdec_h263_rfc2190: check that the payload holds the bits to be 
merged
    
    Fixes: negative bit count passed to get_bits()
---
 libavformat/rtpdec_h263_rfc2190.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavformat/rtpdec_h263_rfc2190.c 
b/libavformat/rtpdec_h263_rfc2190.c
index 47aaec0fbc..6211e95bae 100644
--- a/libavformat/rtpdec_h263_rfc2190.c
+++ b/libavformat/rtpdec_h263_rfc2190.c
@@ -145,6 +145,8 @@ static int h263_handle_packet(AVFormatContext *ctx, 
PayloadContext *data,
             ret = init_get_bits(&gb, buf, len*8 - ebit);
             if (ret < 0)
                 return ret;
+            if (get_bits_left(&gb) < sbit + (data->endbyte_bits ? 8 - 
data->endbyte_bits : 0))
+                return AVERROR_INVALIDDATA;
             skip_bits(&gb, sbit);
             if (data->endbyte_bits) {
                 data->endbyte |= get_bits(&gb, 8 - data->endbyte_bits);

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