Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-29591: Upgrade Modules/expat to libexpat 2.2 (#2164) | Victor Stinner | 2017-06-14 | 1 | -4/+2 |
| | | | | | | | | | | | | | | | | | | | | | * bpo-29591: Upgrade Modules/expat to libexpat 2.2 * bpo-29591: Restore Python changes on expat * bpo-29591: Remove expat config of unsupported platforms Remove the configuration (Modules/expat/*config.h) of unsupported platforms: * Amiga * MacOS Classic on PPC32 * Open Watcom * bpo-29591: Remove useless XML_HAS_SET_HASH_SALT The XML_HAS_SET_HASH_SALT define of Modules/expat/expat.h became useless since our local expat copy was upgrade to expat 2.1 (it's now expat 2.2.0). | ||||
* | bpo-24037: Add Argument Clinic converter `bool(accept={int})`. (#485) | Serhiy Storchaka | 2017-03-12 | 1 | -2/+2 |
| | |||||
* | bpo-29768: Fixed compile-time check for expat version. (#574) | Serhiy Storchaka | 2017-03-09 | 1 | -1/+1 |
| | |||||
* | Removed redundant Argument Clinic directives. | Serhiy Storchaka | 2017-02-04 | 1 | -5/+0 |
| | |||||
* | Issue #28999: Use Py_RETURN_NONE, Py_RETURN_TRUE and Py_RETURN_FALSE wherever | Serhiy Storchaka | 2017-01-23 | 1 | -8/+4 |
| | | | | possible. Patch is writen with Coccinelle. | ||||
* | Issue #28858: Remove _PyObject_CallArg1() macro | Victor Stinner | 2016-12-05 | 1 | -1/+1 |
| | | | | | | | | | | | Replace _PyObject_CallArg1(func, arg) with PyObject_CallFunctionObjArgs(func, arg, NULL) Using the _PyObject_CallArg1() macro increases the usage of the C stack, which was unexpected and unwanted. PyObject_CallFunctionObjArgs() doesn't have this issue. | ||||
* | Replace PyObject_CallFunction() with fastcall | Victor Stinner | 2016-12-01 | 1 | -1/+1 |
| | | | | | | | | | | | | | | | | | Replace PyObject_CallFunction(func, "O", arg) and PyObject_CallFunction(func, "O", arg, NULL) with _PyObject_CallArg1(func, arg) Replace PyObject_CallFunction(func, NULL) with _PyObject_CallNoArg(func) _PyObject_CallNoArg() and _PyObject_CallArg1() are simpler and don't allocate memory on the C stack. | ||||
* | Issue #28701: Replace PyUnicode_CompareWithASCIIString with ↵ | Serhiy Storchaka | 2016-11-16 | 1 | -22/+21 |
|\ | | | | | | | | | | | _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 | -22/+21 |
| | | | | | | | | | | | | _PyUnicode_EqualToASCIIString. The latter function is more readable, faster and doesn't raise exceptions. | ||||
* | | Add error checking to PyInit_pyexpact | Christian Heimes | 2016-09-08 | 1 | -1/+11 |
| | | | | | | | | | | | | | | The module initializer of the pyexpat module failed to check the return value of PySys_GetObject() for NULL. CID 982779 | ||||
* | | - Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -4/+4 |
|\ \ | |/ | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
| * | Issue #27332: Fixed the type of the first argument of module-level functions | Serhiy Storchaka | 2016-07-07 | 1 | -4/+4 |
| | | | | | | | | generated by Argument Clinic. Patch by Petr Viktorin. | ||||
* | | Issue #22570: Renamed Py_SETREF to Py_XSETREF. | Serhiy Storchaka | 2016-04-06 | 1 | -1/+1 |
|\ \ | |/ | |||||
* | | Issue #20440: Cleaning up the code by using Py_SETREF and Py_CLEAR. | Serhiy Storchaka | 2015-12-27 | 1 | -13/+4 |
| | | | | | | | | | | 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 #25923: Added more const qualifiers to signatures of static and ↵ | Serhiy Storchaka | 2015-12-25 | 1 | -3/+3 |
| | | | | | | | | private functions. | ||||
* | | Issue #25558: Use compile-time asserts. | Serhiy Storchaka | 2015-11-07 | 1 | -1/+2 |
|/ | |||||
* | Raise more correct exception on overflow in setting buffer_size attribute of | Serhiy Storchaka | 2015-09-07 | 1 | -6/+7 |
|\ | | | | | | | expat parser. | ||||
| * | Raise more correct exception on overflow in setting buffer_size attribute of | Serhiy Storchaka | 2015-09-07 | 1 | -6/+7 |
| | | | | | | | | expat parser. | ||||
* | | Issue #25019: Fixed a crash caused by setting non-string key of expat parser. | Serhiy Storchaka | 2015-09-07 | 1 | -1/+6 |
|\ \ | |/ | | | | | | | Added additional tests for expat parser attributes. Based on patch by John Leitch. | ||||
| * | Issue #25019: Fixed a crash caused by setting non-string key of expat parser. | Serhiy Storchaka | 2015-09-07 | 1 | -1/+6 |
| | | | | | | | | | | Added additional tests for expat parser attributes. Based on patch by John Leitch. | ||||
* | | Specify default values of semantic booleans in Argument Clinic generated ↵ | Serhiy Storchaka | 2015-05-30 | 1 | -4/+4 |
| | | | | | | | | signatures as booleans. | ||||
* | | Issue #24001: Argument Clinic converters now use accept={type} | Larry Hastings | 2015-05-04 | 1 | -5/+5 |
| | | | | | | | | instead of types={'type'} to specify the types the converter accepts. | ||||
* | | Issue #23944: Argument Clinic now wraps long impl prototypes at column 78. | Larry Hastings | 2015-04-14 | 1 | -6/+10 |
| | | |||||
* | | Issue #23501: Argumen Clinic now generates code into separate files by default. | Serhiy Storchaka | 2015-04-03 | 1 | -293/+14 |
| | | |||||
* | | Issue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpat | Victor Stinner | 2015-03-17 | 1 | -10/+0 |
| | | | | | | | | | | | | | | | | _codecs_cn, _codecs_hk, _codecs_iso2022, _codecs_jp, _codecs_kr and _codecs_tw modules. pyexpat.c doesn't need to redeclare PyMODINIT_FUNC, it's already declared in Include/pyport.h. | ||||
* | | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer | Serhiy Storchaka | 2015-02-16 | 1 | -2/+2 |
|\ \ | |/ | | | | | overflows. Added few missed PyErr_NoMemory(). | ||||
| * | Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integer | Serhiy Storchaka | 2015-02-16 | 1 | -2/+2 |
| | | | | | | | | overflows. Added few missed PyErr_NoMemory(). | ||||
* | | Issue #22462: Fix pyexpat's creation of a dummy frame to make it appear in ↵ | Antoine Pitrou | 2014-10-08 | 1 | -113/+7 |
|\ \ | |/ | | | | | | | | | exception tracebacks. Initial patch by Mark Shannon. | ||||
| * | Issue #22462: Fix pyexpat's creation of a dummy frame to make it appear in ↵ | Antoine Pitrou | 2014-10-08 | 1 | -113/+7 |
| | | | | | | | | | | | | exception tracebacks. Initial patch by Mark Shannon. | ||||
* | | Removed redundant casts to `char *`. | Serhiy Storchaka | 2014-09-28 | 1 | -5/+4 |
| | | | | | | | | Corresponding functions now accept `const char *` (issue #1772673). | ||||
* | | Issue #20152: Port pyexpat to Argument Clinic. | Brett Cannon | 2014-08-22 | 1 | -154/+471 |
|/ | | | | | Could not emit an external file as pyexpat has a conditionally built method which Clinic won't hide otherwise. | ||||
* | Issue #6676: Ensure a meaningful exception is raised when attempting | Ned Deily | 2014-03-27 | 1 | -1/+1 |
| | | | | | | to parse more than one XML document per pyexpat xmlparser instance. (Original patches by Hirokazu Yamamoto and Amaury Forgeot d'Arc, with suggested wording by David Gutteridge) | ||||
* | Issue #20437: Fixed 22 potential bugs when deleting objects references. | Serhiy Storchaka | 2014-02-09 | 1 | -2/+1 |
|\ | |||||
| * | Issue #20437: Fixed 21 potential bugs when deleting objects references. | Serhiy Storchaka | 2014-02-09 | 1 | -2/+1 |
| | | |||||
* | | silence an overflow warning. slen is smaller than 1MB | Christian Heimes | 2013-11-21 | 1 | -1/+2 |
| | | |||||
* | | ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'. | Christian Heimes | 2013-11-20 | 1 | -1/+1 |
| | | | | | | | | Python now uses SipHash24 on all major platforms. | ||||
* | | Check return value of PyEval_GetGlobals() for NULL | Christian Heimes | 2013-07-20 | 1 | -2/+7 |
|\ \ | |/ | | | | | CID 486814 | ||||
| * | Check return value of PyEval_GetGlobals() for NULL | Christian Heimes | 2013-07-20 | 1 | -2/+7 |
| | | | | | | | | CID 486814 | ||||
* | | Check return value of flush_character_buffer() | Christian Heimes | 2013-07-20 | 1 | -1/+3 |
|\ \ | |/ | | | | | CID 486663 | ||||
| * | Check return value of flush_character_buffer() | Christian Heimes | 2013-07-20 | 1 | -1/+3 |
| | | | | | | | | CID 486663 | ||||
* | | Issue #18501, #18408: Fix expat handlers in pyexpat, don't call Python | Victor Stinner | 2013-07-18 | 1 | -0/+15 |
| | | | | | | | | functions if a Python exception was raised | ||||
* | | Issue #18408: Fix pyexpat.ParserCreate() | Victor Stinner | 2013-07-15 | 1 | -9/+10 |
| | | | | | | | | | | Check if XML_ParserCreate_MM() failed (ex: MemoryError) before using self->itself. | ||||
* | | Issue #18227: pyexpat now uses a static XML_Memory_Handling_Suite. ↵ | Christian Heimes | 2013-07-07 | 1 | -6/+6 |
| | | | | | | | | cElementTree uses the same approach since at least Python 2.6 | ||||
* | | Issue #18203: Replace malloc() with PyMem_Malloc() in Python modules | Victor Stinner | 2013-07-07 | 1 | -9/+9 |
| | | | | | | | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise. | ||||
* | | Fix segfault in pyexpat.c caused by 84375 | Christian Heimes | 2013-06-29 | 1 | -1/+1 |
| | | | | | | | | u can be NULL, use XDECREF | ||||
* | | Fix memory leak in pyexpat PyUnknownEncodingHandler | Christian Heimes | 2013-06-29 | 1 | -1/+3 |
|/ | | | | | CID 1040367 (#1 of 1): Resource leak (RESOURCE_LEAK) leaked_storage: Variable u going out of scope leaks the storage it points to. | ||||
* | Issue #13612: handle unknown encodings without a buffer overflow. | Eli Bendersky | 2013-05-25 | 1 | -31/+27 |
| | | | | | | | This affects pyexpat and _elementtree. PyExpat_CAPI now exposes a new function - DefaultUnknownEncodingHandler. Based on a patch by Serhiy Storchaka. | ||||
* | Issue #16986: ElementTree now correctly parses a string input not only when | Serhiy Storchaka | 2013-05-22 | 1 | -0/+1 |
| | | | | an internal XML encoding is UTF-8 or US-ASCII. | ||||
* | Issue #17089: Expat parser now correctly works with string input not only when | Serhiy Storchaka | 2013-02-04 | 1 | -4/+36 |
|\ | | | | | | | | | an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and strings larger than 2 GiB. | ||||
| * | Issue #17089: Expat parser now correctly works with string input not only when | Serhiy Storchaka | 2013-02-04 | 1 | -4/+39 |
| | | | | | | | | | | an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and strings larger than 2 GiB. |