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. */ |