[XML-SIG] [ pyxml-Patches-485882 ] Crash on valid XML
noreply@sourceforge.net
noreply@sourceforge.net
Mon, 26 Nov 2001 20:14:31 -0800
Patches item #485882, was opened at 2001-11-26 20:14
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=306473&aid=485882&group_id=6473
Category: DOM
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Crash on valid XML
Initial Comment:
There is a bug in xmlproc.py:start_tag.
In particular,
self.pos=self.pos+1 # Skips the '<'
name=self._get_name()
self.skip_ws()
....
if self.data[self.pos]!=">" and
self.data[self.pos]!="/":
This last line may get an IndexError since skip_ws may
have advanced the cursor past the end of the available
data.
The attached patch fixes the problem.
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=306473&aid=485882&group_id=6473