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 2011/05/20 04:38:14 UTC
svn commit: r1125207 - in /santuario/xml-security-cpp/trunk: CHANGELOG.txt
xsec/xenc/impl/XENCCipherImpl.cpp
Author: scantor
Date: Fri May 20 02:38:14 2011
New Revision: 1125207
URL: http://svn.apache.org/viewvc?rev=1125207&view=rev
Log:
https://issues.apache.org/jira/browse/SANTUARIO-272
Modified:
santuario/xml-security-cpp/trunk/CHANGELOG.txt
santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCCipherImpl.cpp
Modified: santuario/xml-security-cpp/trunk/CHANGELOG.txt
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/CHANGELOG.txt?rev=1125207&r1=1125206&r2=1125207&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/CHANGELOG.txt (original)
+++ santuario/xml-security-cpp/trunk/CHANGELOG.txt Fri May 20 02:38:14 2011
@@ -1,6 +1,7 @@
Changes since 1.6.0
* [SANTUARIO-268] - TXFMXPathFilter->evaluateExpr crashes on Windows
* [SANTUARIO-270] - DSIGObject::load method crashes for ds:Object without Id attribute
+* [SANTUARIO-272] - Memory bug inside XENCCipherImpl::deSerialise
Changes since 1.5.1
=====================================
Modified: santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCCipherImpl.cpp
URL: http://svn.apache.org/viewvc/santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCCipherImpl.cpp?rev=1125207&r1=1125206&r2=1125207&view=diff
==============================================================================
--- santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCCipherImpl.cpp (original)
+++ santuario/xml-security-cpp/trunk/xsec/xenc/impl/XENCCipherImpl.cpp Fri May 20 02:38:14 2011
@@ -228,8 +228,9 @@ DOMDocumentFragment * XENCCipherImpl::de
for (XMLSize_t i = 0; i < length; ++i) {
DOMNode * att = atts->item(i);
- if (strEquals(att->getNodeName(), DSIGConstants::s_unicodeStrXmlns) || (XMLString::compareNString(
- att->getNodeName(), DSIGConstants::s_unicodeStrXmlns, 5) && att->getNodeName()[5] == chColon)) {
+ if (strEquals(att->getNodeName(), DSIGConstants::s_unicodeStrXmlns) ||
+ (XMLString::compareNString(att->getNodeName(), DSIGConstants::s_unicodeStrXmlns, 5) == 0 &&
+ att->getNodeName()[5] == chColon)) {
// Check to see if this node has already been found
DOMNode * p = ctxParent;