You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by bu...@apache.org on 2001/06/27 20:30:43 UTC
[Bug 2363] New: - XMLScanner::sendCharData() can send the wrong length to the handler
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2363
*** shadow/2363 Wed Jun 27 11:30:43 2001
--- shadow/2363.tmp.6963 Wed Jun 27 11:30:43 2001
***************
*** 0 ****
--- 1,34 ----
+ +============================================================================+
+ | XMLScanner::sendCharData() can send the wrong length to the handler |
+ +----------------------------------------------------------------------------+
+ | Bug #: 2363 Product: Xerces-C |
+ | Status: NEW Version: 1.5 |
+ | Resolution: Platform: All |
+ | Severity: Major OS/Version: Other |
+ | Priority: Other Component: Miscellaneous |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xerces-c-dev@xml.apache.org |
+ | Reported By: David_N_Bertoni@lotus.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ If whitespace normalization is done, the amount of data sent to the handler can
+ shrink. The current code always uses the original length of the data. Here's
+ a diff for the fix:
+
+ cvs diff XMLScanner2.cpp (in directory V:\xml-xerces\c\src\internal\)
+ Index: XMLScanner2.cpp
+ ===================================================================
+ RCS file: /home/cvs/xml-xerces/c/src/internal/XMLScanner2.cpp,v
+ retrieving revision 1.38
+ diff -r1.38 XMLScanner2.cpp
+ 845c845
+ < const unsigned int len = toSend.getLen();
+ ---
+ > unsigned int len = toSend.getLen();
+ 898a899
+ > len = toFill.getLen();
+
+ *****CVS exited normally with code 1*****
\ No newline at end of file
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org