From: Seven Du Date: Mon, 29 May 2017 09:48:41 +0000 (+0800) Subject: FS-10352 #resolve fix size doesn't match causing segs when casts to switch_rtp_packet_t X-Git-Tag: v1.6.18~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dadf19e38c1807d27bb806c23d113fc45d76550a;p=thirdparty%2Ffreeswitch.git FS-10352 #resolve fix size doesn't match causing segs when casts to switch_rtp_packet_t --- diff --git a/src/switch_rtp.c b/src/switch_rtp.c index f574003068..d19c872c31 100644 --- a/src/switch_rtp.c +++ b/src/switch_rtp.c @@ -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;