[XML-SIG] [ pyxml-Bugs-608453 ] xmlproc: fails on >16K entities
noreply@sourceforge.net
noreply@sourceforge.net
Thu, 12 Sep 2002 09:14:37 -0700
Bugs item #608453, was opened at 2002-09-12 18:14
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=608453&group_id=6473
Category: xmlproc
Group: None
Status: Open
Resolution: None
Priority: 7
Submitted By: Jürgen Hermann (jhermann)
Assigned to: Lars Marius Garshol (larsga)
Summary: xmlproc: fails on >16K entities
Initial Comment:
Without the patch below, xmlproc won't read external
parameter entities larger than 16K (actually, it will
only read the first 16K, resulting in
non-wellformedness errors and the like because parts of
the entity are missing).
RCS file:
/cvsroot/pyxml/xml/xml/parsers/xmlproc/xmlutils.py,v
retrieving revision 1.33
diff -u -r1.33 xmlutils.py
--- xml/parsers/xmlproc/xmlutils.py 22 Aug 2002
17:03:14 -0000 1.33
+++ xml/parsers/xmlproc/xmlutils.py 12 Sep 2002
16:04:16 -0000
@@ -162,7 +162,7 @@
tmp = self.seen_xmldecl
self.seen_xmldecl = 0 # Avoid complaints
- self.read_from(inf)
+ self.read_from(inf, -1)
self.seen_xmldecl = tmp
self.flush()
Testcase:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE root [
<!ELEMENT root EMPTY>
<!ENTITY % big-ent SYSTEM "larger-than-16K.ent">
%big-ent;
]>
<root/>
and read it with "xmlproc_val test.xml".
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=106473&aid=608453&group_id=6473