This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: xml.sax Contenthandler passes truncated data
Type: Stage:
Components: XML Versions:
process
Status: closed Resolution: not a bug
Dependencies: Superseder:
Assigned To: Nosy List: gtreutwein, loewis
Priority: normal Keywords:

Created on 2003-05-28 20:11 by gtreutwein, last changed 2022-04-10 16:08 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
pysax-error.zip gtreutwein, 2003-05-28 20:11 production of test data and reproducable error detection
readXml_2.py loewis, 2003-06-14 07:56
Messages (2)
msg16193 - (view) Author: Guido Treutwein (gtreutwein) Date: 2003-05-28 20:11
Error-Message in Python xml.sax module

writeXml_1 generates a xml file ('testOut.xml' )containing 
random strings and checksums
'readXml_2 testOut.xml' reads the file and verifies the 
checksums

Observation: readXml_2 reports checksum errors. The 
error occurs on all tried combinations of (Win2000, Win98 
and OpenBSD 3.2) with (Python 2.2.2 and 2.3a1).
The corrupted strings reported are located shortly before 
64kByte boundaries in the file.
msg16194 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2003-06-14 07:56
Logged In: YES 
user_id=21627

This is a bug in your code. There is no guarantee that, for
a chunk of PCDATA text, there will only be one .characters
callback; the parser may split this up into multiple calls. 

With the attached modified readXml_2.py, the data validate
just fine.
History
Date User Action Args
2022-04-10 16:08:58adminsetgithub: 38564
2003-05-28 20:11:08gtreutweincreate