]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-10352 #resolve fix size doesn't match causing segs when casts to switch_rtp_packet_t
authorSeven Du <dujinfang@gmail.com>
Mon, 29 May 2017 09:48:41 +0000 (17:48 +0800)
committerMike Jerris <mike@jerris.com>
Thu, 1 Jun 2017 19:23:12 +0000 (15:23 -0400)
src/switch_rtp.c

index f574003068f6fe41611e269afa34fcbcab2dd094..d19c872c31cee8ab2ec27d565400b825cb7b10d5 100644 (file)
@@ -116,7 +116,7 @@ static switch_hash_t *alloc_hash = NULL;
 
 typedef struct {
        srtp_hdr_t header;
-       char body[SWITCH_RTP_MAX_BUF_LEN];
+       char body[SWITCH_RTP_MAX_BUF_LEN+4+sizeof(char *)];
        switch_rtp_hdr_ext_t *ext;
        char *ebody;
 } rtp_msg_t;