[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-28 Thread Eli Bendersky
Eli Bendersky added the comment: Thanks for the report & patches. Fixed in all active branches. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker __

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 68f1e5262a7a by Eli Bendersky in branch '3.3': Issue #19815: Fix segfault when parsing empty namespace declaration. http://hg.python.org/cpython/rev/68f1e5262a7a New changeset 2b2925c08a6c by Eli Bendersky in branch 'default': Issue #19815: Fix segf

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-28 Thread Roundup Robot
Roundup Robot added the comment: New changeset 395a266bcb5a by Eli Bendersky in branch '2.7': Issue #19815: Fix segfault when parsing empty namespace declaration. http://hg.python.org/cpython/rev/395a266bcb5a -- nosy: +python-dev ___ Python tracker <

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-27 Thread Vajrasky Kok
Vajrasky Kok added the comment: Here is the patch (by Christian Heimes) with unit test (by me). Apparently the namespace handlers (start-ns and end-ns) got problem with empty namespace. But they (start-ns and end-ns) must be combined together to create this problem. start-ns handler only will

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-27 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-27 Thread Christian Heimes
Christian Heimes added the comment: The patch removes the cause of the segfault but I'm no sure if that's the right way. I'm adding Eli und Stefan to the ticket. -- keywords: +patch nosy: +eli.bendersky, scoder Added file: http://bugs.python.org/file32877/empty_uri.patch __

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-27 Thread STINNER Victor
STINNER Victor added the comment: Thanks, I'm able to reproduce the crash using aa.tar.gz. Python traceback on the crash: (gdb) py-bt Traceback (most recent call first): File "/home/haypo/prog/python/default/Lib/xml/etree/ElementTree.py", line 1235, in feed self._parser.feed(data) File

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-27 Thread Yann Diorcet
Changes by Yann Diorcet : Added file: http://bugs.python.org/file32876/aa.tar.gz ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-27 Thread Christian Heimes
Christian Heimes added the comment: Indeed, uri might be null: http://hg.python.org/cpython/file/ab05e7dd2788/Modules/expat/xmlparse.c#l3157 -- nosy: +christian.heimes stage: -> needs patch versions: +Python 3.3, Python 3.4 ___ Python tracker

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-27 Thread STINNER Victor
STINNER Victor added the comment: Can you please provide use the script wadl.py? Or if it's not possible, can you please try to write a short Python script reproducing the crash? -- nosy: +haypo ___ Python tracker

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-27 Thread Yann Diorcet
New submission from Yann Diorcet: I fell on a bug in ElementTree of Python 2.7.5 (default, Nov 12 2013, 16:18:04) The bug seems to be here: http://hg.python.org/cpython/file/ab05e7dd2788/Modules/_elementtree.c#l2341 uri is NULL and not checked before be passed to strlen Maybe linked to my exp

[issue19815] ElementTree segmentation fault in expat_start_ns_handler

2013-11-27 Thread Yann Diorcet
Changes by Yann Diorcet : -- type: -> crash ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho