summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
| |
* | Issue #9566: explain why (int)len cannot underflowVictor Stinner2011-01-041-0/+1
| |
* | Issue #9566: use Py_ssize_t instead of intVictor Stinner2011-01-041-5/+5
| |
* | Issue #10333: Remove ancient GC API, which has been deprecated sinceAntoine Pitrou2011-01-041-1/+1
| | | | | | | | Python 2.2.
* | Issue #6697: Fixed instances of _PyUnicode_AsString() result not checked for ↵Alexander Belopolsky2010-12-081-32/+36
| | | | | | | | NULL
* | #9054: fix crash when using pyexpat with a system expat lib version 2.0.1.Georg Brandl2010-10-151-0/+3
| |
* | #5355: Provide mappings from Expat error numbers to string descriptions and ↵Georg Brandl2010-10-151-5/+36
| | | | | | | | backwards, in order to actually make it possible to analyze error codes provided by ExpatError.
* | Remove compatibility code for Python < 2.1, < 2.2 and < 2.4.Georg Brandl2010-09-111-42/+0
| |
* | Issue #9402: pyexpat uses Py_DECREF() instead of PyObject_DEL()Victor Stinner2010-09-101-15/+8
| | | | | | | | Fix a crash if Python is compiled in pydebug mode.
* | remove dead code #9292Benjamin Peterson2010-08-081-23/+11
| |
* | Recorded merge of revisions 81029 via svnmerge fromAntoine Pitrou2010-05-091-181/+181
| | | | | | | | | | | | | | | | | | | | 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. ........
* | Merged revisions 72487-72488,72879 via svnmerge fromAlexandre Vassalotti2009-07-211-43/+1
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r72487 | jeffrey.yasskin | 2009-05-08 17:51:06 -0400 (Fri, 08 May 2009) | 7 lines PyCode_NewEmpty: Most uses of PyCode_New found by http://www.google.com/codesearch?q=PyCode_New are trying to build an empty code object, usually to put it in a dummy frame object. This patch adds a PyCode_NewEmpty wrapper which lets the user specify just the filename, function name, and first line number, instead of also requiring lots of code internals. ........ r72488 | jeffrey.yasskin | 2009-05-08 18:23:21 -0400 (Fri, 08 May 2009) | 13 lines Issue 5954, PyFrame_GetLineNumber: Most uses of PyCode_Addr2Line (http://www.google.com/codesearch?q=PyCode_Addr2Line) are just trying to get the line number of a specified frame, but there's no way to do that directly. Forcing people to go through the code object makes them know more about the guts of the interpreter than they should need. The remaining uses of PyCode_Addr2Line seem to be getting the line from a traceback (for example, http://www.google.com/codesearch/p?hl=en#u_9_nDrchrw/pygame-1.7.1release/src/base.c&q=PyCode_Addr2Line), which is replaced by the tb_lineno field. So we may be able to deprecate PyCode_Addr2Line entirely for external use. ........ r72879 | jeffrey.yasskin | 2009-05-23 19:23:01 -0400 (Sat, 23 May 2009) | 14 lines Issue #6042: lnotab-based tracing is very complicated and isn't documented very well. There were at least 3 comment blocks purporting to document co_lnotab, and none did a very good job. This patch unifies them into Objects/lnotab_notes.txt which tries to completely capture the current state of affairs. I also discovered that we've attached 2 layers of patches to the basic tracing scheme. The first layer avoids jumping to instructions that don't start a line, to avoid problems in if statements and while loops. The second layer discovered that jumps backward do need to trace at instructions that don't start a line, so it added extra lnotab entries for 'while' and 'for' loops, and added a special case for backward jumps within the same line. I replaced these patches by just treating forward and backward jumps differently. ........
* - Issue #5590: Remove unused global variable in pyexpat extension.Matthias Klose2009-06-221-1/+0
|
* add a replacement API for PyCObject, PyCapsule #5630Benjamin Peterson2009-05-051-2/+2
| | | | | | All stdlib modules with C-APIs now use this. Patch by Larry Hastings
* Issue #1717: rename tp_compare to tp_reserved. I'll change theMark Dickinson2009-02-021-1/+1
| | | | | type of tp_compare in a separate commit, for ease of reversion should things go wrong.
* Issue #1717, stage 2: remove uses of tp_compare in Modules and mostMark Dickinson2009-02-011-1/+1
| | | | Objects.
* Rename PyUnicode_AsString -> _PyUnicode_AsString andMarc-André Lemburg2008-08-071-1/+1
| | | | | | | | | PyUnicode_AsStringAndSize -> _PyUnicode_AsStringAndSize to mark them for interpreter internal use only. We'll have to rework these APIs or create new ones for the purpose of accessing the UTF-8 representation of Unicode objects for 3.1.
* #3247: Get rid of Py_FindMethod:Amaury Forgeot d'Arc2008-07-021-12/+17
| | | | | | | Second step: keep tp_getattr functions when they are complex, but use PyObject_GenericGetAttr() as a fallback. These were the last occurrences of Py_FindMethod.