Project not found: home:kill_it:branches:X11:common:Factory

File xerces-c-CVE-2017-12627.patch of Package xerces-c.31522

From a4dcefe55b185181a670bb955fe47e0afc03ddd2 Mon Sep 17 00:00:00 2001
From: Roger Leigh <rleigh@apache.org>
Date: Wed, 3 Jan 2018 18:59:30 +0000
Subject: [PATCH] XMLString: Don't call catString if relativePath is null

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@1819998 13f79535-47bb-0310-9956-ffa450edef68
---
 src/xercesc/util/PlatformUtils.cpp | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/xercesc/util/PlatformUtils.cpp b/src/xercesc/util/PlatformUtils.cpp
index fc73582d6..9709b746e 100644
--- a/src/xercesc/util/PlatformUtils.cpp
+++ b/src/xercesc/util/PlatformUtils.cpp
@@ -920,7 +920,10 @@ XMLCh* XMLPlatformUtils::weavePaths(const XMLCh* const    basePath
 
     XMLString::subString(tmpBuf, basePath, 0, (basePtr - basePath + 1), manager);
     tmpBuf[basePtr - basePath + 1] = 0;
-    XMLString::catString(tmpBuf, relativePath);
+    if (relativePath)
+    {
+        XMLString::catString(tmpBuf, relativePath);
+    }
 
     removeDotSlash(tmpBuf, manager);
 
openSUSE Build Service is sponsored by