[issue4877] xml.parsers.expat ParseFile() causes segmentation fault when passed a closed file object

Ezio Melotti report at bugs.python.org
Sat Apr 9 03:29:10 CEST 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

The attached patch combines the changes done to pyexpat in 825041fc8e2c (http://hg.python.org/cpython/diff/825041fc8e2c/Modules/pyexpat.c), the cleanup of c52f5df50448 and the tests of issue4877.patch.
The tests segfault without the changes on pyexpat, and pass once they are applied.

----------
Added file: http://bugs.python.org/file21590/issue4877-2.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4877>
_______________________________________


More information about the Python-bugs-list mailing list