From b79fd1f14fc73e4f884422f30e6f264c94953653 Mon Sep 17 00:00:00 2001 From: Seven Du Date: Mon, 29 May 2017 17:48:41 +0800 Subject: [PATCH] FS-10352 #resolve fix size doesn't match causing segs when casts to switch_rtp_packet_t --- src/switch_rtp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_rtp.c b/src/switch_rtp.c index bdef4eee6b..278df518c3 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;