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

--- src/osipparser2/osip_port.c
+++ src/osipparser2/osip_port.c
@@ -1286,8 +1286,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;
openSUSE Build Service is sponsored by