From: SourceForge.net <no...@so...> - 2005-07-15 08:53:18
|
Bugs item #1238766, was opened at 2005-07-15 10:53 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1238766&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Lukasz Heldt (l_heldt) Assigned to: Nobody/Anonymous (nobody) Summary: bug in xml parser Initial Comment: Jython xml parser has a bug in xmlutils.py file. Function skip_ws(self, necessary=0) does not raise OutOfDataException() in case when it does not reach end of file but surpasses data index. This causes parser error in situation where read buffer (self.data) ends with following characters: '<nexttag '. Parser raises error: index out of range: 16416, traceback: File "shared/python/xmlSerializer.py", line 134, in loadSuitIncarnationString xml.sax.parseString(strArg, handler) File "Lib/xml/sax/__init__.py", line 47, in parseString parser.parse(inpsrc) File "Lib/xml/sax/drivers2/drv_xmlproc.py", line 90, in parse parser.read_from(source.getByteStream(), bufsize) File "Lib/xml/parsers/xmlproc/xmlutils.py", line 137, in read_from self.feed(buf) File "Lib/xml/parsers/xmlproc/xmlutils.py", line 185, in feed self.do_parse() File "Lib/xml/parsers/xmlproc/xmlproc.py", line 96, in do_parse self.parse_start_tag() File "Lib/xml/parsers/xmlproc/xmlproc.py", line 149, in parse_start_tag if self.data[self.pos]!=">" and self.data[self.pos]!="/": This is caused by skip_ws function not throwing apropriate exception in case it reaches end of buffer. It just finishes executing setting self.pos surpassing self.datasize. Another sollution to that problem is to check self.pos in function parse_start_tag after calling skip_ws() but this problem might affect other functions also. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1238766&group_id=12867 |
From: SourceForge.net <no...@so...> - 2006-05-14 03:33:51
|
Bugs item #1238766, was opened at 2005-07-15 08:53 Message generated for change (Settings changed) made by fwierzbicki You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1238766&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None >Group: Deferred Status: Open Resolution: None >Priority: 4 Submitted By: Lukasz Heldt (l_heldt) Assigned to: Nobody/Anonymous (nobody) Summary: bug in xml parser Initial Comment: Jython xml parser has a bug in xmlutils.py file. Function skip_ws(self, necessary=0) does not raise OutOfDataException() in case when it does not reach end of file but surpasses data index. This causes parser error in situation where read buffer (self.data) ends with following characters: '<nexttag '. Parser raises error: index out of range: 16416, traceback: File "shared/python/xmlSerializer.py", line 134, in loadSuitIncarnationString xml.sax.parseString(strArg, handler) File "Lib/xml/sax/__init__.py", line 47, in parseString parser.parse(inpsrc) File "Lib/xml/sax/drivers2/drv_xmlproc.py", line 90, in parse parser.read_from(source.getByteStream(), bufsize) File "Lib/xml/parsers/xmlproc/xmlutils.py", line 137, in read_from self.feed(buf) File "Lib/xml/parsers/xmlproc/xmlutils.py", line 185, in feed self.do_parse() File "Lib/xml/parsers/xmlproc/xmlproc.py", line 96, in do_parse self.parse_start_tag() File "Lib/xml/parsers/xmlproc/xmlproc.py", line 149, in parse_start_tag if self.data[self.pos]!=">" and self.data[self.pos]!="/": This is caused by skip_ws function not throwing apropriate exception in case it reaches end of buffer. It just finishes executing setting self.pos surpassing self.datasize. Another sollution to that problem is to check self.pos in function parse_start_tag after calling skip_ws() but this problem might affect other functions also. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1238766&group_id=12867 |
From: SourceForge.net <no...@so...> - 2006-08-29 03:45:31
|
Bugs item #1238766, was opened at 2005-07-15 03:53 Message generated for change (Settings changed) made by cgroves You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1238766&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Deferred Status: Open Resolution: None Priority: 4 Submitted By: Lukasz Heldt (l_heldt) >Assigned to: Charles Groves (cgroves) Summary: bug in xml parser Initial Comment: Jython xml parser has a bug in xmlutils.py file. Function skip_ws(self, necessary=0) does not raise OutOfDataException() in case when it does not reach end of file but surpasses data index. This causes parser error in situation where read buffer (self.data) ends with following characters: '<nexttag '. Parser raises error: index out of range: 16416, traceback: File "shared/python/xmlSerializer.py", line 134, in loadSuitIncarnationString xml.sax.parseString(strArg, handler) File "Lib/xml/sax/__init__.py", line 47, in parseString parser.parse(inpsrc) File "Lib/xml/sax/drivers2/drv_xmlproc.py", line 90, in parse parser.read_from(source.getByteStream(), bufsize) File "Lib/xml/parsers/xmlproc/xmlutils.py", line 137, in read_from self.feed(buf) File "Lib/xml/parsers/xmlproc/xmlutils.py", line 185, in feed self.do_parse() File "Lib/xml/parsers/xmlproc/xmlproc.py", line 96, in do_parse self.parse_start_tag() File "Lib/xml/parsers/xmlproc/xmlproc.py", line 149, in parse_start_tag if self.data[self.pos]!=">" and self.data[self.pos]!="/": This is caused by skip_ws function not throwing apropriate exception in case it reaches end of buffer. It just finishes executing setting self.pos surpassing self.datasize. Another sollution to that problem is to check self.pos in function parse_start_tag after calling skip_ws() but this problem might affect other functions also. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1238766&group_id=12867 |
From: SourceForge.net <no...@so...> - 2006-08-31 03:48:47
|
Bugs item #1238766, was opened at 2005-07-15 03:53 Message generated for change (Comment added) made by cgroves You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1238766&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Deferred Status: Open Resolution: None Priority: 4 Submitted By: Lukasz Heldt (l_heldt) Assigned to: Charles Groves (cgroves) Summary: bug in xml parser Initial Comment: Jython xml parser has a bug in xmlutils.py file. Function skip_ws(self, necessary=0) does not raise OutOfDataException() in case when it does not reach end of file but surpasses data index. This causes parser error in situation where read buffer (self.data) ends with following characters: '<nexttag '. Parser raises error: index out of range: 16416, traceback: File "shared/python/xmlSerializer.py", line 134, in loadSuitIncarnationString xml.sax.parseString(strArg, handler) File "Lib/xml/sax/__init__.py", line 47, in parseString parser.parse(inpsrc) File "Lib/xml/sax/drivers2/drv_xmlproc.py", line 90, in parse parser.read_from(source.getByteStream(), bufsize) File "Lib/xml/parsers/xmlproc/xmlutils.py", line 137, in read_from self.feed(buf) File "Lib/xml/parsers/xmlproc/xmlutils.py", line 185, in feed self.do_parse() File "Lib/xml/parsers/xmlproc/xmlproc.py", line 96, in do_parse self.parse_start_tag() File "Lib/xml/parsers/xmlproc/xmlproc.py", line 149, in parse_start_tag if self.data[self.pos]!=">" and self.data[self.pos]!="/": This is caused by skip_ws function not throwing apropriate exception in case it reaches end of buffer. It just finishes executing setting self.pos surpassing self.datasize. Another sollution to that problem is to check self.pos in function parse_start_tag after calling skip_ws() but this problem might affect other functions also. ---------------------------------------------------------------------- >Comment By: Charles Groves (cgroves) Date: 2006-08-30 22:48 Message: Logged In: YES user_id=1174327 Could you attach a simple py file that produces this error? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1238766&group_id=12867 |
From: SourceForge.net <no...@so...> - 2006-09-09 04:37:33
|
Bugs item #1238766, was opened at 2005-07-15 03:53 Message generated for change (Settings changed) made by cgroves You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1238766&group_id=12867 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: Deferred >Status: Closed >Resolution: Out of Date Priority: 4 Submitted By: Lukasz Heldt (l_heldt) Assigned to: Charles Groves (cgroves) Summary: bug in xml parser Initial Comment: Jython xml parser has a bug in xmlutils.py file. Function skip_ws(self, necessary=0) does not raise OutOfDataException() in case when it does not reach end of file but surpasses data index. This causes parser error in situation where read buffer (self.data) ends with following characters: '<nexttag '. Parser raises error: index out of range: 16416, traceback: File "shared/python/xmlSerializer.py", line 134, in loadSuitIncarnationString xml.sax.parseString(strArg, handler) File "Lib/xml/sax/__init__.py", line 47, in parseString parser.parse(inpsrc) File "Lib/xml/sax/drivers2/drv_xmlproc.py", line 90, in parse parser.read_from(source.getByteStream(), bufsize) File "Lib/xml/parsers/xmlproc/xmlutils.py", line 137, in read_from self.feed(buf) File "Lib/xml/parsers/xmlproc/xmlutils.py", line 185, in feed self.do_parse() File "Lib/xml/parsers/xmlproc/xmlproc.py", line 96, in do_parse self.parse_start_tag() File "Lib/xml/parsers/xmlproc/xmlproc.py", line 149, in parse_start_tag if self.data[self.pos]!=">" and self.data[self.pos]!="/": This is caused by skip_ws function not throwing apropriate exception in case it reaches end of buffer. It just finishes executing setting self.pos surpassing self.datasize. Another sollution to that problem is to check self.pos in function parse_start_tag after calling skip_ws() but this problem might affect other functions also. ---------------------------------------------------------------------- Comment By: Charles Groves (cgroves) Date: 2006-08-30 22:48 Message: Logged In: YES user_id=1174327 Could you attach a simple py file that produces this error? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=112867&aid=1238766&group_id=12867 |