You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by sc...@apache.org on 2017/09/04 18:41:41 UTC

svn commit: r1807280 - /santuario/xml-security-cpp/trunk/xsec/utils/XSECSafeBuffer.cpp

Author: scantor
Date: Mon Sep  4 18:41:41 2017
New Revision: 1807280

URL: http://svn.apache.org/viewvc?rev=1807280&view=rev
Log:
Fix a length bug in concat method.

Modified:
    santuario/xml-security-cpp/trunk/xsec/utils/XSECSafeBuffer.cpp

Modified: santuario/xml-security-cpp/trunk/xsec/utils/XSECSafeBuffer.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/utils/XSECSafeBuffer.cpp?rev=1807280&r1=1807279&r2=1807280&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/utils/XSECSafeBuffer.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/utils/XSECSafeBuffer.cpp Mon Sep  4 18:41:41 2017
@@ -649,7 +649,7 @@ void safeBuffer::sbXMLChCat(const char *
 
 	assert (t != NULL);
 
-	len += XMLString::stringLen(t);
+	len += XMLString::stringLen(t) * size_XMLCh;
 	len += (xsecsize_t) (2 * size_XMLCh);
 
 	checkAndExpand(len);