Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.6] bpo-31728: Prevent crashes in _elementtree due to unsafe cleanup of ↵ | Miss Islington (bot) | 2017-10-10 | 1 | -34/+28 |
| | | | | | Element.text and Element.tail (GH-3924) (#3945) (cherry picked from commit 39ecb9c71b6e55d8a61a710d0144231bd88f9ada) | ||||
* | [3.6] bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash (GH-3641) (#3645) | Miss Islington (bot) | 2017-09-18 | 1 | -1/+5 |
| | | | | | | | | | | * bpo-31499, xml.etree: Fix xmlparser_gc_clear() crash xml.etree: xmlparser_gc_clear() now sets self.parser to NULL to prevent a crash in xmlparser_dealloc() if xmlparser_gc_clear() was called previously by the garbage collector, because the parser was part of a reference cycle. Co-Authored-By: Serhiy Storchaka <storchaka@gmail.com> (cherry picked from commit e727d41ffcd91b21ce82026ec8c8381d34a16209) | ||||
* | [3.6] bpo-31455: Fix an assertion failure in ElementTree.XMLParser(). ↵ | Miss Islington (bot) | 2017-09-14 | 1 | -2/+33 |
| | | | | | | | | (GH-3545) (#3585) * Avoid calling "PyObject_GetAttrString()" (and potentially executing user code) with a live exception set. * Ignore only AttributeError on attribute lookups in ElementTree.XMLParser() and propagate all other exceptions. (cherry picked from commit c8d8e15bfc24abeeaaf3d8be9073276b0c011cdf) | ||||
* | bpo-31095: fix potential crash during GC (GH-3195) | INADA Naoki | 2017-09-04 | 1 | -1/+3 |
| | | | (cherry picked from commit a6296d34a478b4f697ea9db798146195075d496c) | ||||
* | bpo-30892: Fix _elementtree module initialization (#2647) (#2649) | Victor Stinner | 2017-07-10 | 1 | -0/+5 |
| | | | | | Handle getattr(copy, 'deepcopy') error in _elementtree module initialization. (cherry picked from commit b136f11f3a51f9282ae992bac68f170ca5563b55) | ||||
* | Expand the PySlice_GetIndicesEx macro. (#1023) (#1044) | Serhiy Storchaka | 2017-04-08 | 1 | -6/+6 |
| | | | (cherry picked from commit b879fe82e7e5c3f7673c9a7fa4aad42bd05445d8) | ||||
* | bpo-27863: Fixed multiple crashes in ElementTree. (#765) (#903) | Serhiy Storchaka | 2017-03-30 | 1 | -48/+52 |
| | | | | (cherry picked from commit 576def096ec7b64814e038f03290031f172886c3) | ||||
* | Merge from 3.5. | Serhiy Storchaka | 2016-12-21 | 1 | -0/+2 |
|\ | |||||
| * | Issue #28871: Fixed a crash when deallocate deep ElementTree. | Serhiy Storchaka | 2016-12-21 | 1 | -0/+2 |
| | | |||||
* | | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -3/+3 |
|\ \ | |/ | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
| * | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -3/+3 |
| | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
* | | Fix xml.etree.ElementTree.Element.getiterator() | Victor Stinner | 2016-09-29 | 1 | -1/+1 |
| | | | | | | | | | | Issue #28314: Fix function declaration (C flags) for the getiterator() method of xml.etree.ElementTree.Element. | ||||
* | | replace PY_SIZE_MAX with SIZE_MAX | Benjamin Peterson | 2016-09-07 | 1 | -1/+1 |
| | | |||||
* | | replace Py_(u)intptr_t with the c99 standard types | Benjamin Peterson | 2016-09-06 | 1 | -4/+4 |
| | | |||||
* | | Avoid calling functions with an empty string as format string | Victor Stinner | 2016-09-06 | 1 | -1/+1 |
| | | | | | | | | Directly pass NULL rather than an empty string. | ||||
* | | Rename _PyObject_FastCall() to _PyObject_FastCallDict() | Victor Stinner | 2016-08-22 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | Issue #27809: * Rename _PyObject_FastCall() function to _PyObject_FastCallDict() * Add _PyObject_FastCall(), _PyObject_CallNoArg() and _PyObject_CallArg1() macros calling _PyObject_FastCallDict() | ||||
* | | _elementtree: deepcopy() now uses fast call | Victor Stinner | 2016-08-19 | 1 | -8/+4 |
| | | | | | | | | Issue #27128. | ||||
* | | Issue #25455: Fixed a crash in repr of ElementTree.Element with recursive tag. | Serhiy Storchaka | 2016-06-12 | 1 | -3/+16 |
|\ \ | |/ | |||||
| * | Issue #25455: Fixed a crash in repr of ElementTree.Element with recursive tag. | Serhiy Storchaka | 2016-06-12 | 1 | -3/+16 |
| | | |||||
* | | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -4/+4 |
|\ \ | |/ | | | | | in places where Py_DECREF was used. | ||||
| * | Issue #26200: Added Py_SETREF and replaced Py_XSETREF with Py_SETREF | Serhiy Storchaka | 2016-04-10 | 1 | -4/+4 |
| | | | | | | | | in places where Py_DECREF was used. | ||||
* | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -13/+13 |
|\ \ | |/ | |||||
| * | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -11/+11 |
| | | |||||
* | | Issue #20440: Cleaning up the code by using Py_SETREF. | Serhiy Storchaka | 2016-01-05 | 1 | -3/+1 |
| | | |||||
* | | Issue #20440: Cleaning up the code by using Py_SETREF and Py_CLEAR. | Serhiy Storchaka | 2015-12-27 | 1 | -5/+1 |
| | | | | | | | | | | Old code is correct, but with Py_SETREF and Py_CLEAR it can be cleaner. This patch doesn't fix bugs and hence there is no need to backport it. | ||||
* | | Issue #20440: More use of Py_SETREF. | Serhiy Storchaka | 2015-12-27 | 1 | -22/+12 |
|\ \ | |/ | | | | | | | This patch is manually crafted and contains changes that couldn't be handled automatically. | ||||
| * | Issue #20440: More use of Py_SETREF. | Serhiy Storchaka | 2015-12-27 | 1 | -24/+14 |
| | | | | | | | | | | This patch is manually crafted and contains changes that couldn't be handled automatically. | ||||
* | | Issue #24103: Fixed possible use after free in ElementTree.XMLPullParser. | Serhiy Storchaka | 2015-12-24 | 1 | -19/+13 |
|\ \ | |/ | |||||
| * | Issue #24103: Fixed possible use after free in ElementTree.XMLPullParser. | Serhiy Storchaka | 2015-12-24 | 1 | -19/+13 |
| | | |||||
* | | Issue #25869: Optimized deepcopying ElementTree; it is now 20 times faster. | Serhiy Storchaka | 2015-12-21 | 1 | -24/+54 |
| | | |||||
* | | Issue #25873: Optimized iterating ElementTree. | Serhiy Storchaka | 2015-12-21 | 1 | -158/+101 |
| | | | | | | | | | | Iterating elements Element.iter() is now 40% faster, iterating text Element.itertext() is now up to 2.5 times faster. | ||||
* | | Issue #25902: Fixed various refcount issues in ElementTree iteration. | Serhiy Storchaka | 2015-12-21 | 1 | -32/+58 |
|\ \ | |/ | |||||
| * | Issue #25902: Fixed various refcount issues in ElementTree iteration. | Serhiy Storchaka | 2015-12-21 | 1 | -32/+58 |
| | | |||||
* | | Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. | Serhiy Storchaka | 2015-12-19 | 1 | -1/+1 |
|\ \ | |/ | | | | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined. | ||||
| * | Issue #25421: __sizeof__ methods of builtin types now use dynamic basic size. | Serhiy Storchaka | 2015-12-19 | 1 | -1/+1 |
| | | | | | | | | | | This allows sys.getsize() to work correctly with their subclasses with __slots__ defined. | ||||
* | | Issue #25638: Optimized ElementTree parsing; it is now 10% faster. | Serhiy Storchaka | 2015-12-10 | 1 | -9/+20 |
| | | |||||
* | | Fixed possible leaks in ElementTree parser. | Serhiy Storchaka | 2015-12-09 | 1 | -2/+8 |
|\ \ | |/ | |||||
| * | Fixed possible leaks in ElementTree parser. | Serhiy Storchaka | 2015-12-09 | 1 | -2/+8 |
| | | |||||
* | | Fixed possible leak in ElementTree.Element.iter(). | Serhiy Storchaka | 2015-12-09 | 1 | -11/+11 |
|\ \ | |/ | |||||
| * | Fixed possible leak in ElementTree.Element.iter(). | Serhiy Storchaka | 2015-12-09 | 1 | -11/+11 |
| | | |||||
* | | Issue #25638: Optimized ElementTree.iterparse(); it is now 2x faster. | Serhiy Storchaka | 2015-12-07 | 1 | -16/+19 |
| | | | | | | | | | | ElementTree.XMLParser._setevents now accepts any objects with the append method, not just a list. | ||||
* | | Issue25814: Propagate all errors from custom XML parser handlers | Serhiy Storchaka | 2015-12-06 | 1 | -88/+39 |
|\ \ | |/ | | | | | in ElementTree.iterparse(). | ||||
| * | Issue25814: Propagate all errors from custom XML parser handlers | Serhiy Storchaka | 2015-12-06 | 1 | -88/+39 |
| |\ | | | | | | | | | | in ElementTree.iterparse(). | ||||
| | * | Issue25814: Propagate all errors from custom XML parser handlers | Serhiy Storchaka | 2015-12-06 | 1 | -88/+39 |
| | | | | | | | | | | | | in ElementTree.iterparse(). | ||||
| | * | Issue #19687: Fixed possible integer overflows in ElementTree. | Serhiy Storchaka | 2015-11-25 | 1 | -10/+34 |
| | | | | | | | | | | | | Based on patch by Christian Heimes. | ||||
* | | | Issue #7990: dir() on ElementTree.Element now lists properties: "tag", | Serhiy Storchaka | 2015-11-25 | 1 | -76/+94 |
|/ / | | | | | | | "text", "tail" and "attrib". Original patch by Santoso Wijaya. | ||||
* | | Issue #25691: Fixed crash on deleting ElementTree.Element attributes. | Serhiy Storchaka | 2015-11-23 | 1 | -0/+6 |
|\ \ | |/ | |||||
| * | Issue #25691: Fixed crash on deleting ElementTree.Element attributes. | Serhiy Storchaka | 2015-11-23 | 1 | -0/+6 |
| | | |||||
* | | Issue #19687: Fixed memory leak on failed Element slice assignment. | Serhiy Storchaka | 2015-11-22 | 1 | -21/+15 |
|\ \ | |/ | | | | | Added new tests for Element slice assignments. | ||||
| * | Issue #19687: Fixed memory leak on failed Element slice assignment. | Serhiy Storchaka | 2015-11-22 | 1 | -21/+15 |
| | | | | | | | | Added new tests for Element slice assignments. |