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
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
assignee='https://github.com/serhiy-storchaka'closed_at=<Date2015-05-19.12:51:10.048>created_at=<Date2015-05-01.13:56:07.806>labels= ['extension-modules', 'expert-XML', 'type-crash']
title='Use after free in Element.extend (1)'updated_at=<Date2015-05-19.12:51:10.048>user='https://bugs.python.org/pkt'
Activity
pkt commentedon May 1, 2015
\bpo-1055 for (i = 0; i < seqlen; i++) {
# (gdb) n
\bpo-1056 PyObject* element = PySequence_Fast_GET_ITEM(seq, i);
# (gdb) n
\bpo-1057 if (!PyObject_IsInstance(element, (PyObject *)&Element_Type)) {
# (gdb) print *element
# $19 = {_ob_next = 0x4060e6fc, _ob_prev = 0x4056cd8c, ob_refcnt = 1, ob_type = 0x406de3e4}
# (gdb) n
\bpo-1066 if (element_add_subelement(self, element) < 0) {
# (gdb) print *element
# $20 = {ob_next = 0xdbdbdbdb, _ob_prev = 0xdbdbdbdb, ob_refcnt = -606348325, ob_type = 0xdbdbdbdb}
#
# Fatal Python error: /home/p/Python-3.4.1/Modules/elementtree.c:267 object at 0x4056c4cc has negative ref count -606348326
#
# "element" is removed in __getattribute method.
serhiy-storchaka commentedon May 2, 2015
Here is a patch that fixes bpo-24091, bpo-24092, bpo-24093, and several other similar bugs.
python-dev commentedon May 18, 2015
New changeset 34523e53a342 by Serhiy Storchaka in branch '2.7':
Issue bpo-24091: Fixed various crashes in corner cases in cElementTree.
https://hg.python.org/cpython/rev/34523e53a342
New changeset 157c4afca186 by Serhiy Storchaka in branch '3.4':
Issue bpo-24091: Fixed various crashes in corner cases in C implementation of
https://hg.python.org/cpython/rev/157c4afca186
New changeset a8b8d1b211fe by Serhiy Storchaka in branch 'default':
Issue bpo-24091: Fixed various crashes in corner cases in C implementation of
https://hg.python.org/cpython/rev/a8b8d1b211fe