You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by bu...@apache.org on 2001/02/26 14:37:33 UTC

[Bug 709] New - Cannot parse XML of exactly 16Kb in size (perhaps multiples thereof)

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=709

*** shadow/709	Mon Feb 26 05:37:33 2001
--- shadow/709.tmp.18180	Mon Feb 26 05:37:33 2001
***************
*** 0 ****
--- 1,30 ----
+ +============================================================================+
+ | Cannot parse XML of exactly 16Kb in size (perhaps multiples thereof)       |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 709                         Product: Xerces-J                |
+ |       Status: NEW                         Version: 1.3.0                   |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Normal                   OS/Version: All                     |
+ |     Priority:                           Component: Core                    |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: xerces-j-dev@xml.apache.org                                  |
+ |  Reported By: michael.manning@ubs.com                                      |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ If one attempts to parse an XML stream that is exactly 16K in size Xerces fails 
+ to read it correctly.
+ 
+ This is due to an error in the class: org.apache.xerces.readers.CharReader
+ 
+ On line 196 in the file CharReader.java
+ 
+ xml-xerces/java/src/org/apache/xerces/readers/CharReader.java:196
+ 
+ is:
+ if (fOverflowEnd == CharDataChunk.CHUNK_SIZE) {
+ 
+ This line should be:
+ if (fOutputOffset == CharDataChunk.CHUNK_SIZE) {