This is an automated email from the git hooks/post-receive script. Git pushed a commit to branch master in repository ffmpeg.
commit 6cf8bfb57dece3f932d5275be8e810de6042838b Author: Michael Niedermayer <[email protected]> AuthorDate: Mon Sep 7 00:37:01 2026 +0200 Commit: michaelni <[email protected]> CommitDate: Mon Sep 28 03:34:38 2026 +0000 avformat/rtpenc_latm: check that the PayloadLengthInfo fits the RTP payload Fixes: negative-size-param Fixes: poc.aac Fixes: vTQwk65AUmDs Found-by: Zheng Yu <[email protected]> --- libavformat/rtpenc_latm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libavformat/rtpenc_latm.c b/libavformat/rtpenc_latm.c index 7bda66af95..5ced2d69e3 100644 --- a/libavformat/rtpenc_latm.c +++ b/libavformat/rtpenc_latm.c @@ -41,6 +41,11 @@ void ff_rtp_send_latm(AVFormatContext *s1, const uint8_t *buff, int size) /* PayloadLengthInfo() */ header_size = size/0xFF + 1; + if (header_size >= s->max_payload_size) { + av_log(s1, AV_LOG_ERROR, "LATM length header of %d bytes does not fit " + "the RTP payload of %d bytes\n", header_size, s->max_payload_size); + return; + } memset(s->buf, 0xFF, header_size - 1); s->buf[header_size - 1] = size % 0xFF; -- 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]
