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

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new 0857141823 avformat/rtpenc_xiph: bail out when the max payload size 
underflows
0857141823 is described below

commit 085714182302333dd83dcb9c36cf828dc4eba929
Author:     Franciszek Kalinowski <[email protected]>
AuthorDate: Tue May 19 09:34:01 2026 +0200
Commit:     michaelni <[email protected]>
CommitDate: Thu May 21 01:15:30 2026 +0000

    avformat/rtpenc_xiph: bail out when the max payload size underflows
    
    Reported by Franciszek Kalinowski (isec.pl / striga.ai) and Bartosz 
Smigielski.
---
 libavformat/rtpenc_xiph.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/rtpenc_xiph.c b/libavformat/rtpenc_xiph.c
index 00c29a7d02..afea1eb79f 100644
--- a/libavformat/rtpenc_xiph.c
+++ b/libavformat/rtpenc_xiph.c
@@ -38,6 +38,10 @@ void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t 
*buff, int size)
     uint8_t *q;
 
     max_pkt_size = s->max_payload_size - 6; // 
ident+frag+tdt/vdt+pkt_num+pkt_length
+    if (max_pkt_size <= 0) {
+        av_log(s1, AV_LOG_ERROR, "Max payload size too small for Xiph RTP\n");
+        return;
+    }
 
     // set xiph data type
     switch (*buff) {

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to