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 2003/11/27 12:25:14 UTC
cvs commit: xml-security/c/src/canon XSECCannon.cpp
blautenb 2003/11/27 03:25:14
Modified: c/src/canon XSECCannon.cpp
Log:
Fix for 2nd Canonicalisation bug reported by Milan Tomic (Strings over 16K get truncated)
Revision Changes Path
1.5 +1 -1 xml-security/c/src/canon/XSECCannon.cpp
Index: XSECCannon.cpp
===================================================================
RCS file: /home/cvs/xml-security/c/src/canon/XSECCannon.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- XSECCannon.cpp 11 Sep 2003 11:14:57 -0000 1.4
+++ XSECCannon.cpp 27 Nov 2003 11:25:14 -0000 1.5
@@ -141,7 +141,7 @@
}
- if (m_allNodesDone) {
+ if (m_allNodesDone && (remaining < bytesToGo)) {
// Was not enough data to fill everything up
memcpy (&outBuffer[i], &m_buffer[m_bufferPoint], remaining);