This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 2dc2eb0f808e01d0c8bee3dd876f634f3c235d5b Author: Michael Niedermayer <[email protected]> AuthorDate: Tue Sep 22 00:30:21 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Fri Sep 25 00:49:05 2026 +0000 avformat/rtpdec_h261: check that the payload holds the bits to be merged Found-by: zhang xingxing <[email protected]> Suggested-by: zhang xingxing <[email protected]> Fixes: negative bit count passed to get_bits() Fixes: TpkkPldjeLLt --- libavformat/rtpdec_h261.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/rtpdec_h261.c b/libavformat/rtpdec_h261.c index 57bc10fb3d..1fb71f2b10 100644 --- a/libavformat/rtpdec_h261.c +++ b/libavformat/rtpdec_h261.c @@ -122,6 +122,8 @@ static int h261_handle_packet(AVFormatContext *ctx, PayloadContext *rtp_h261_ctx res = init_get_bits(&gb, buf, len*8 - ebit); if (res < 0) return res; + if (get_bits_left(&gb) < sbit + (rtp_h261_ctx->endbyte_bits ? 8 - rtp_h261_ctx->endbyte_bits : 0)) + return AVERROR_INVALIDDATA; skip_bits(&gb, sbit); if (rtp_h261_ctx->endbyte_bits) { rtp_h261_ctx->endbyte |= get_bits(&gb, 8 - rtp_h261_ctx->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]
