File 0001-Patch-3-Fixes-heap-buffer-overflow-in-osip_clrncpy.patch of Package libosip2

--- ../../test/applications/orthrus/libosip2-4.1.0/src/osipparser2/osip_port.c	2013-12-18 19:36:46.000000000 +0100
+++ src/osipparser2/osip_port.c	2016-07-15 16:36:07.049069353 +0200
@@ -1462,9 +1462,11 @@
   char *p;
   size_t spaceless_length;
 
-  if (src == NULL)
+  /* Orthrus patch */
+  if (src == NULL || len == 0) {
+    *dst = '\0';
     return NULL;
-
+  }
   /* find the start of relevant text */
   pbeg = src;
   while ((' ' == *pbeg) || ('\r' == *pbeg) || ('\n' == *pbeg) || ('\t' == *pbeg))
openSUSE Build Service is sponsored by