]> 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)
committerSeven Du <dujinfang@gmail.com>
Mon, 29 May 2017 09:48:57 +0000 (17:48 +0800)
src/switch_rtp.c

index bdef4eee6b6fe12337582638277abb3756c56cdd..278df518c366fbe25449a6f30ae2a084965b9992 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;