summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
Commit message (Collapse)AuthorAgeFilesLines
* Specify default values of semantic booleans in Argument Clinic generated ↵Serhiy Storchaka2015-05-301-4/+4
| | | | signatures as booleans.
* Issue #24001: Argument Clinic converters now use accept={type}Larry Hastings2015-05-041-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 Hastings2015-04-141-6/+10
|
* Issue #23501: Argumen Clinic now generates code into separate files by default.Serhiy Storchaka2015-04-031-293/+14
|
* Issue #23685: Fix usage of PyMODINIT_FUNC in _json, _scproxy, nis, pyexpatVictor Stinner2015-03-171-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 integerSerhiy Storchaka2015-02-161-2/+2
|\ | | | | | | overflows. Added few missed PyErr_NoMemory().
| * Issue #23446: Use PyMem_New instead of PyMem_Malloc to avoid possible integerSerhiy Storchaka2015-02-161-2/+2
| | | | | | | | overflows. Added few missed PyErr_NoMemory().
* | Issue #22462: Fix pyexpat's creation of a dummy frame to make it appear in ↵Antoine Pitrou2014-10-081-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 Pitrou2014-10-081-113/+7
| | | | | | | | | | | | exception tracebacks. Initial patch by Mark Shannon.
* | Removed redundant casts to `char *`.Serhiy Storchaka2014-09-281-5/+4
| | | | | | | | Corresponding functions now accept `const char *` (issue #1772673).
* | Issue #20152: Port pyexpat to Argument Clinic.Brett Cannon2014-08-221-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 attemptingNed Deily2014-03-271-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 Storchaka2014-02-091-2/+1
|\
| * Issue #20437: Fixed 21 potential bugs when deleting objects references.Serhiy Storchaka2014-02-091-2/+1
| |
* | silence an overflow warning. slen is smaller than 1MBChristian Heimes2013-11-211-1/+2
| |
* | ssue #19183: Implement PEP 456 'secure and interchangeable hash algorithm'.Christian Heimes2013-11-201-1/+1
| | | | | | | | Python now uses SipHash24 on all major platforms.
* | Check return value of PyEval_GetGlobals() for NULLChristian Heimes2013-07-201-2/+7
|\ \ | |/ | | | | CID 486814
| * Check return value of PyEval_GetGlobals() for NULLChristian Heimes2013-07-201-2/+7
| | | | | | | | CID 486814
* | Check return value of flush_character_buffer()Christian Heimes2013-07-201-1/+3
|\ \ | |/ | | | | CID 486663
| * Check return value of flush_character_buffer()Christian Heimes2013-07-201-1/+3
| | | | | | | | CID 486663
* | Issue #18501, #18408: Fix expat handlers in pyexpat, don't call PythonVictor Stinner2013-07-181-0/+15
| | | | | | | | functions if a Python exception was raised
* | Issue #18408: Fix pyexpat.ParserCreate()Victor Stinner2013-07-151-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 Heimes2013-07-071-6/+6
| | | | | | | | cElementTree uses the same approach since at least Python 2.6
* | Issue #18203: Replace malloc() with PyMem_Malloc() in Python modulesVictor Stinner2013-07-071-9/+9
| | | | | | | | | | Replace malloc() with PyMem_Malloc() when the GIL is held, or with PyMem_RawMalloc() otherwise.
* | Fix segfault in pyexpat.c caused by 84375Christian Heimes2013-06-291-1/+1
| | | | | | | | u can be NULL, use XDECREF
* | Fix memory leak in pyexpat PyUnknownEncodingHandlerChristian Heimes2013-06-291-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 Bendersky2013-05-251-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 whenSerhiy Storchaka2013-05-221-0/+1
| | | | an internal XML encoding is UTF-8 or US-ASCII.
* Issue #17089: Expat parser now correctly works with string input not only whenSerhiy Storchaka2013-02-041-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 whenSerhiy Storchaka2013-02-041-4/+39
| | | | | | | | | | an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and strings larger than 2 GiB.
| * Issue #16012: Fix a regression in pyexpat. The parser's UseForeignDTD()Christian Heimes2012-09-241-1/+1
| | | | | | | | method doesn't require an argument again.
* | Port #16012 fix: parameter parsing regression in pyexpat parser ↵Georg Brandl2012-09-241-1/+1
| | | | | | | | UseForeignDTD() method.
* | Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou2012-08-151-19/+19
|\ \ | |/ | | | | | | | | errors correctly. Patch by Serhiy Storchaka.
| * Issue #15604: Update uses of PyObject_IsTrue() to check for and handle ↵Antoine Pitrou2012-08-151-18/+24
| | | | | | | | | | | | errors correctly. Patch by Serhiy Storchaka.
* | Issue #14007: implement doctype() method calling in XMLParser of _elementtree.Eli Bendersky2012-06-011-0/+1
| | | | | | | | Includes exposing a doctype handler from expat through pyexpat.
* | Fixes Issue 14234: fix for the previous commit, keep compilation whenGregory P. Smith2012-03-151-0/+5
|\ \ | |/ | | | | | | using --with-system-expat working when the system expat does not have salted hash support.
| * Fixes Issue 14234: fix for the previous commit, keep compilation whenGregory P. Smith2012-03-151-0/+5
| | | | | | | | | | using --with-system-expat working when the system expat does not have salted hash support.
* | Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributesGregory P. Smith2012-03-141-0/+2
|\ \ | |/ | | | | | | | | in the hash table internal to the pyexpat module's copy of the expat library to avoid a denial of service due to hash collisions. Patch by David Malcolm with some modifications by the expat project.
| * Fixes Issue #14234: CVE-2012-0876: Randomize hashes of xml attributesGregory P. Smith2012-03-141-0/+2
| |\ | | | | | | | | | | | | | | | in the hash table internal to the pyexpat module's copy of the expat library to avoid a denial of service due to hash collisions. Patch by David Malcolm with some modifications by the expat project.
| | * Fixes issue #14234: CVE-2012-0876: Randomize hashes of xml attributesGregory P. Smith2012-03-141-0/+2
| | | | | | | | | | | | | | | | | | in the hash table internal to the pyexpat module's copy of the expat library to avoid a denial of service due to hash collisions. Patch by David Malcolm with some modifications by the expat project.
| * | merge 3.1Benjamin Peterson2011-06-011-1/+1
| |\ \ | | |/
| | * return NULL on errorBenjamin Peterson2011-06-011-1/+1
| | |
* | | Rename _Py_identifier to _Py_IDENTIFIER.Martin v. Löwis2011-10-141-1/+1
| | |
* | | Use identifier API for PyObject_GetAttrString.Martin v. Löwis2011-10-101-2/+2
| | |
* | | pyexat uses the new Unicode APIVictor Stinner2011-09-301-5/+7
| | |
* | | Implement PEP 393.Martin v. Löwis2011-09-281-3/+8
| | |
* | | remove __version__s dependent on subversion keyword expansion (closes #12221)Benjamin Peterson2011-06-011-5/+0
| | |
* | | merge 3.2 (#12221)Benjamin Peterson2011-06-011-21/+5
|\ \ \ | |/ /
| * | merge 3.1 (#12221)Benjamin Peterson2011-06-011-21/+5
| |\ \ | | |/
| | * simply use the Python version for pyexpat.__version__ #12221Benjamin Peterson2011-05-311-21/+5
| | |