summaryrefslogtreecommitdiffstats
path: root/Modules/pyexpat.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Implement PEP 3121: new module initialization and finalization API.Martin v. Löwis2008-06-111-8/+20
|
* Renamed PyString to PyBytesChristian Heimes2008-05-261-4/+4
|
* Renamed PyBytes to PyByteArrayChristian Heimes2008-05-261-2/+2
|
* Merged revisions 59843-59863 via svnmerge fromChristian Heimes2008-01-091-0/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk ........ r59844 | raymond.hettinger | 2008-01-07 21:56:05 +0100 (Mon, 07 Jan 2008) | 1 line Use get() instead of pop() for the optimized version of _replace(). ........ r59847 | raymond.hettinger | 2008-01-07 22:33:51 +0100 (Mon, 07 Jan 2008) | 1 line Documentation nits. ........ r59849 | raymond.hettinger | 2008-01-08 03:02:05 +0100 (Tue, 08 Jan 2008) | 1 line Expand comment. ........ r59850 | raymond.hettinger | 2008-01-08 03:24:15 +0100 (Tue, 08 Jan 2008) | 1 line Docs on named tuple's naming conventions and limits of subclassing ........ r59851 | christian.heimes | 2008-01-08 04:40:04 +0100 (Tue, 08 Jan 2008) | 1 line It's verbose, not debug ........ r59852 | facundo.batista | 2008-01-08 13:25:20 +0100 (Tue, 08 Jan 2008) | 4 lines Issue #1757: The hash of a Decimal instance is no longer affected by the current context. Thanks Mark Dickinson. ........ r59853 | andrew.kuchling | 2008-01-08 15:30:55 +0100 (Tue, 08 Jan 2008) | 1 line Patch 1137: allow assigning to .buffer_size attribute of PyExpat.parser objects ........ r59854 | andrew.kuchling | 2008-01-08 15:56:02 +0100 (Tue, 08 Jan 2008) | 1 line Patch 1114: fix compilation of curses module on 64-bit AIX, and any other LP64 platforms where attr_t isn't a C long ........ r59856 | thomas.heller | 2008-01-08 16:15:09 +0100 (Tue, 08 Jan 2008) | 5 lines Use relative instead of absolute filenames in the C-level tracebacks. This prevents traceback prints pointing to files in this way: File "\loewis\25\python\Modules\_ctypes\callbacks.c", line 206, in 'calling callback function' ........ r59857 | christian.heimes | 2008-01-08 16:46:10 +0100 (Tue, 08 Jan 2008) | 2 lines Added __enter__ and __exit__ functions to HKEY object Added ExpandEnvironmentStrings to the _winreg module. ........ r59858 | georg.brandl | 2008-01-08 17:18:26 +0100 (Tue, 08 Jan 2008) | 2 lines Fix markup errors from r59857 and clarify key.__enter__/__exit__ docs ........ r59860 | georg.brandl | 2008-01-08 20:42:30 +0100 (Tue, 08 Jan 2008) | 2 lines Better method for associating .py files with the interpreter. ........ r59862 | facundo.batista | 2008-01-08 22:10:12 +0100 (Tue, 08 Jan 2008) | 9 lines Issue 846388. Adds a call to PyErr_CheckSignals to SRE_MATCH so that signal handlers can be invoked during long regular expression matches. It also adds a new error return value indicating that an exception occurred in a signal handler during the match, allowing exceptions in the signal handler to propagate up to the main loop. Thanks Josh Hoyt and Ralf Schmitt. ........
* #1629: Renamed Py_Size, Py_Type and Py_Refcnt to Py_SIZE, Py_TYPE and Py_REFCNT.Christian Heimes2007-12-191-3/+3
|
* Cleanup: Replaced most PyInt_ aliases with PyLong_ and disabled the aliases ↵Christian Heimes2007-12-021-15/+15
| | | | in intobject.h
* Fixed #1508 Removal of stale code in _csv.c / pyexpat.cChristian Heimes2007-11-281-14/+0
| | | | Credits belong to Joseph Armbruster