You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
execute a bit of python code without checking the return value.
That can lead to weird things playing with import hooks,
for example an assert like this can fail:
This is fixed in the ET 1.3-compatible codebase. Since it's too late to
add ET 1.3 to 2.6, I guess it's time to make a new 1.2 bugfix release
for 2.6.
ferringb commented on Nov 8, 2009
ferringbmannequin
Mannequin
More actions
At this point, this affects 2.5, 2.6, and 3.1 (and the normal 1.0.5
release of cElementTree); what's required to get this fixed and queued
up for micro/minor releases?
Sidenote, the patch posted above still leaks a reference-
loewis commented on Nov 8, 2009
loewismannequin
Mannequin
More actions
For 2.5, this will not be fixed, as it is not security-critical.
effbot commented on Nov 8, 2009
effbotmannequin
Mannequin
More actions
Note that "fail silently" is a bit of a misnomer - if the embedded import
doesn't work, portions of the library will fail pretty loudly. Feel free
to use some variation of the suggested patch, or just wait until the next
upstream release gets imported (if ever).
Activity
naufraghi commentedon Jul 31, 2008
Playing with PyInstaller I have found that the final part of
_elementtree.c:
Index: Modules/_elementtree.c
===================================================================
--- Modules/_elementtree.c (revisione 59540)
+++ Modules/_elementtree.c (copia locale)
@@ -2780,7 +2780,10 @@
+ if (PyRun_String(bootstrap, Py_file_input, g, NULL) == NULL)
+ return;
execute a bit of python code without checking the return value.
That can lead to weird things playing with import hooks,
for example an assert like this can fail:
Index: Lib/test/test_elemettree.py
===================================================================
loewis commentedon Jul 31, 2008
Fredrik, can you take a look?
effbot commentedon Aug 3, 2008
This is fixed in the ET 1.3-compatible codebase. Since it's too late to
add ET 1.3 to 2.6, I guess it's time to make a new 1.2 bugfix release
for 2.6.
ferringb commentedon Nov 8, 2009
At this point, this affects 2.5, 2.6, and 3.1 (and the normal 1.0.5
release of cElementTree); what's required to get this fixed and queued
up for micro/minor releases?
Sidenote, the patch posted above still leaks a reference-
loewis commentedon Nov 8, 2009
For 2.5, this will not be fixed, as it is not security-critical.
effbot commentedon Nov 8, 2009
Note that "fail silently" is a bit of a misnomer - if the embedded import
doesn't work, portions of the library will fail pretty loudly. Feel free
to use some variation of the suggested patch, or just wait until the next
upstream release gets imported (if ever).
florentx commentedon Mar 11, 2010
Fixed with latest xml.etree.