You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@santuario.apache.org by bl...@apache.org on 2006/03/29 11:59:00 UTC

svn commit: r389735 - /xml/security/trunk/c/src/canon/XSECXMLNSStack.cpp

Author: blautenb
Date: Wed Mar 29 01:58:59 2006
New Revision: 389735

URL: http://svn.apache.org/viewcvs?rev=389735&view=rev
Log:
Fix potential vector iterator logic bug unearthed by VC 2005

Modified:
    xml/security/trunk/c/src/canon/XSECXMLNSStack.cpp

Modified: xml/security/trunk/c/src/canon/XSECXMLNSStack.cpp
URL: http://svn.apache.org/viewcvs/xml/security/trunk/c/src/canon/XSECXMLNSStack.cpp?rev=389735&r1=389734&r2=389735&view=diff
==============================================================================
--- xml/security/trunk/c/src/canon/XSECXMLNSStack.cpp (original)
+++ xml/security/trunk/c/src/canon/XSECXMLNSStack.cpp Wed Mar 29 01:58:59 2006
@@ -118,10 +118,13 @@
 		if (t->mp_owner == e->mp_elt) {
 
 			// Need to delete this
-			it = m_currentNS.erase(it);
+			m_currentNS.erase(it);
 			if (t->mp_hides != NULL) {
 				m_currentNS.push_back(t->mp_hides);
 			}
+			// TODO - Fix this, it is naieve and slow
+			it = m_currentNS.begin();
+
 		}
 		else {
 			if (t->mp_printed == e->mp_elt)