View | Details | Raw Unified | Return to bug 223574
Collapse All | Expand All

(-)net/libosip2/Makefile (+1 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	libosip2
3
PORTNAME=	libosip2
4
PORTVERSION=	5.0.0
4
PORTVERSION=	5.0.0
5
PORTREVISION=	1
5
CATEGORIES=	net
6
CATEGORIES=	net
6
MASTER_SITES=	GNU/osip
7
MASTER_SITES=	GNU/osip
7
8
(-)net/libosip2/files/patch-src_osipparser2_osip__message__parse.c (+15 lines)
Line 0 Link Here
1
--- src/osipparser2/osip_message_parse.c.orig	2016-09-05 14:19:31 UTC
2
+++ src/osipparser2/osip_message_parse.c
3
@@ -784,6 +784,12 @@ msg_osip_body_parse (osip_message_t * sip, const char 
4
     if ('\n' == start_of_body[0] || '\r' == start_of_body[0])
5
       start_of_body++;
6
 
7
+    /* if message body is empty or contains a single CR/LF */
8
+    if (end_of_body <= start_of_body) {
9
+      osip_free (sep_boundary);
10
+      return OSIP_SYNTAXERROR;
11
+    }
12
+
13
     body_len = end_of_body - start_of_body;
14
 
15
     /* Skip CR before end boundary. */

Return to bug 223574