summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
| | |
| | * Merged revisions 85536 via svnmerge fromGeorg Brandl2010-10-241-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://svn.python.org/python/branches/py3k ........ r85536 | georg.brandl | 2010-10-15 18:26:08 +0200 (Fr, 15 Okt 2010) | 1 line #9054: fix crash when using pyexpat with a system expat lib version 2.0.1. ........
| | * Recorded merge of revisions 81032 via svnmerge fromAntoine Pitrou2010-05-091-195/+195
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/branches/py3k ................ r81032 | antoine.pitrou | 2010-05-09 17:52:27 +0200 (dim., 09 mai 2010) | 9 lines Recorded merge of revisions 81029 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk ........ r81029 | antoine.pitrou | 2010-05-09 16:46:46 +0200 (dim., 09 mai 2010) | 3 lines Untabify C files. Will watch buildbots. ........ ................
* | | Merge with 3.2.Ezio Melotti2011-04-111-1/+0
|\ \ \ | |/ /
| * | Remove unnecessary call to PyErr_Clear.Ezio Melotti2011-04-111-1/+0
| | |
* | | Issue #10833: Use PyUnicode_FromFormat() and PyErr_Format() instead ofVictor Stinner2011-03-211-6/+7
|/ / | | | | | | PyOS_snprintf().
* | Issue #9566: Fix pyparse.xmlparser.ParseFile()Victor Stinner2011-01-101-22/+12
| | | | | | | | | | | | Fix readinst() if file.read(n) returns a bytes object longer than n: return -1 instead of the the buffer size to raise an exception. Simplify also the function code.
* | Issue #9566: PyUnicode_FromFormatV() doesn't support %zi, use %zd insteadVictor Stinner2011-01-041-1/+1
| |