summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Fix deallocation of array objects when allocation ran out of memory.Martin v. Löwis2008-02-151-0/+1
|
* Added checks for integer overflows, contributed by Google. Some areMartin v. Löwis2008-02-1412-37/+269
| | | | | only available if asserts are left in the code, in cases where they can't be triggered from Python code.
* issue 2045: Infinite recursion when printing a subclass of defaultdict,Amaury Forgeot d'Arc2008-02-081-1/+11
| | | | | | if default_factory is set to a bound method. Backport of r60663.
* Fix the way methods are created for the _ctypes.COMError exceptionThomas Heller2008-02-061-9/+19
| | | | type; this fix is already in the trunk.
* Backport r59862 (issue #712900): make long regexp matches interruptableGuido van Rossum2008-02-041-0/+8
| | | | by signals.
* backport r60544 from trunk:Gregory P. Smith2008-02-031-2/+6
| | | | | | | | Merge this fix from the pybsddb tree: r293 | jcea | 2008-01-31 01:08:19 -0800 (Thu, 31 Jan 2008) | 4 lines Solved memory leak when using cursors with databases without environment.
* Backport 60542:Andrew MacIntyre2008-02-031-2/+2
| | | | | The wrapper function is supposed to be for spawnvpe() so that's what we should call [this wrapper only available on OS/2].
* Revert rev. 59926, it breaks comtypes (I need to further examine this).Thomas Heller2008-01-281-5/+0
|
* #1940: make it possible to use curses.filter() before curses.initscr()Georg Brandl2008-01-261-1/+10
| | | | | as the documentation says. (backport from rev. 60322)
* Invert the checks in get_[u]long and get_[u]longlong. The intent wasThomas Heller2008-01-241-19/+15
| | | | | to not accept float types; the result was that integer-like objects were not accepted.
* Backport from trunk:Thomas Heller2008-01-161-1/+1
| | | | | | Fix a potential 'SystemError: NULL result without error'. NULL may be a valid return value from PyLong_AsVoidPtr. Also move an older ctypes NEWS item in the correct category.
* Added NEWS entry, plus:Thomas Heller2008-01-111-0/+5
| | | | | | | | | | | | | | Merged revisions 59925 via svnmerge from svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes ........ r59925 | thomas.heller | 2008-01-11 20:34:06 +0100 (Fr, 11 Jan 2008) | 5 lines Raise an error instead of crashing with a segfault when a NULL function pointer is called. Will backport to release25-maint. ........
* Patch 1114: fix compilation of curses module on 64-bit AIX, and any other ↵Andrew M. Kuchling2008-01-081-25/+79
| | | | LP64 platforms where attr_t isn't a C long
* Fix bug #1301 -- a bad assert in _tkinter.Guido van Rossum2008-01-031-3/+5
|
* Backport of fix for issue 1695.Brett Cannon2007-12-241-2/+2
|
* Change ctypes version number to 1.0.3 (when Python 2.5.2 is released,Thomas Heller2007-12-191-1/+1
| | | | ctypes 1.0.3 will be also be released).
* Issue #1642: Fix segfault in ctypes when trying to delete attributes.Thomas Heller2007-12-182-0/+21
|
* Backport patch #1643738.Guido van Rossum2007-12-101-5/+26
|
* os.access now returns True on Windows for any existing directory.Martin v. Löwis2007-12-031-2/+5
|
* - Backported a workaround for a bug in SQLite 3.2.x/3.3.x versions where aGerhard Häring2007-11-252-4/+14
| | | | | | | statement recompilation with no bound parameters lead to a segfault - Backported a fix necessary because of an SQLite API change in version 3.5. This prevents segfaults when executing empty queries, like our test suite does.
* Fixed #1372: zlibmodule.c: int overflow in PyZlib_decompressChristian Heimes2007-11-211-2/+3
|
* * fix failing test_recno.py - backport from trunk.Gregory P. Smith2007-11-071-1/+1
| | | | * bump _bsddb patch version number.
* Backport r58757, r58758, r58759.Gregory P. Smith2007-11-011-1/+3
| | | | | | | | | | | | | | | | | | | | Undoes incorrect dbtables fix and errant strdup introduced as described below: r58757 | gregory.p.smith | 2007-11-01 14:08:14 -0700 (Thu, 01 Nov 2007) | 4 lines Fix bug introduced in revision 58385. Database keys could no longer have NULL bytes in them. Replace the errant strdup with a malloc+memcpy. Adds a unit test for the correct behavior. r58758 | gregory.p.smith | 2007-11-01 14:15:36 -0700 (Thu, 01 Nov 2007) | 3 lines Undo revision 58533 58534 fixes. Those were a workaround for a problem introduced by 58385. r58759 | gregory.p.smith | 2007-11-01 14:17:47 -0700 (Thu, 01 Nov 2007) | 2 lines false "fix" undone as correct problem was found and fixed.
* Silence a compiler warning about a function definition not being a prototype.Brett Cannon2007-10-121-1/+1
|
* Fix ctypes on 32-bit systems when Python is configured --with-system-ffi.Thomas Heller2007-10-121-6/+10
| | | | See also https://bugs.launchpad.net/bugs/72505.
* Backport 58385 from trunk: fix a double free bug in the _bsddb moduleGregory P. Smith2007-10-091-1/+13
| | | | on DBCursor.get (and a friends) when passing in a string key.
* Backport rev 58343: fix DBSequence.get_key() to not crash/fail/etc.Gregory P. Smith2007-10-061-1/+7
|
* Backport 58332: Fix Coverity #159.Neal Norwitz2007-10-051-1/+1
| | | | | This code was broken if save() returned a negative number since i contained a boolean value and then we compared i < 0 which should never be true.
* issue1140: Guido's patch from revision 58098 (2.6) applied to 2.5.Sean Reifscheider2007-09-171-17/+8
|
* issue1597011: Fix for bz2 module corner-case error due to error checking bug.Sean Reifscheider2007-09-171-23/+17
|
* Backport of r58004.Armin Rigo2007-09-061-2/+14
|
* Patch #786737: Allow building in a tree of symlinks pointing toMartin v. Löwis2007-09-051-1/+1
| | | | a readonly source.
* - Fix libffi configure for hppa*-*-linux* | parisc*-*-linux*.Matthias Klose2007-09-042-2/+2
|
* Fix compilation warning.Georg Brandl2007-08-081-1/+1
| | | | (backport from rev. 56833)
* Revert the fix for #1548891, it broke backwards compatibility with arbitrary ↵Georg Brandl2007-08-081-2/+5
| | | | | | | read buffers. Fixes #1730114. (backport from rev. 56830)
* Backport from trunk r56727:Hye-Shik Chang2007-08-041-0/+1
| | | | | Fix gb18030 codec's bug that doesn't map two-byte characters on GB18030 extension in encoding. (bug reported by Bjorn Stabell)
* Bug #1704793: Raise KeyError if unicodedata.lookup cannotMartin v. Löwis2007-07-281-1/+11
| | | | represent the result in a single character.
* PyType_stgdict() returns a borrowed reference which must not beThomas Heller2007-07-131-2/+0
| | | | Py_DECREF'd.
* Fix for SF# 1649098: avoid zero-sized array declaration in structure.Thomas Heller2007-07-132-2/+2
|
* Merged revisions 55896 via svnmerge fromThomas Heller2007-06-152-13/+17
| | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk/Modules/_ctypes ........ r55896 | thomas.heller | 2007-06-11 17:58:33 +0200 (Mo, 11 Jun 2007) | 3 lines Use "O&" in calls to PyArg_Parse when we need a 'void*' instead of "k" or "K" codes. ........
* Patch #1733960: Allow T_LONGLONG to accept ints.Martin v. Löwis2007-06-091-3/+27
|
* Merged revisions 55129-55131 via svnmerge fromThomas Heller2007-06-082-11/+17
| | | | | | | | | | | | | | | | svn+ssh://pythondev@svn.python.org/python/trunk/Lib/ctypes ........ r55129 | thomas.heller | 2007-05-04 21:54:22 +0200 (Fr, 04 Mai 2007) | 3 lines Do not truncate 64-bit pointers to 32-bit integers. Fixes SF #1703286, will backport to release25-maint. ........ r55131 | thomas.heller | 2007-05-04 21:56:32 +0200 (Fr, 04 Mai 2007) | 1 line Oops, these tests do not run on Windows CE. ........
* backport change 55821 to release25-maintKristján Valur Jónsson2007-06-071-2/+9
|
* Backport rev. 55783:Georg Brandl2007-06-051-0/+1
| | | | Patch by Tim Delany (missing DECREF). SF #1731330.
* (Backport from r55770)Hye-Shik Chang2007-06-051-1/+5
| | | | | | Bug #1728403: Fix a bug that CJKCodecs StreamReader hangs when it reads a file that ends with incomplete sequence and sizehint argument for .read() is specified.
* Backout the original 'fix' to 1721309 which had no effect.Neal Norwitz2007-05-201-5/+9
| | | | | | | | | Different versions of Berkeley DB handle this differently. The comments and bug report should have the details. Memory is allocated in 4.4 (and presumably earlier), but not in 4.5. Thus 4.5 has the free error, but not earlier versions. Mostly update comments, plus make the free conditional.
* Backport rev 55452:Neal Norwitz2007-05-191-1/+1
| | | | | Whoops, need to pay attention to those test failures. Move the clear to *before* the first use, not after.
* Backport rev 55450:Neal Norwitz2007-05-191-0/+1
| | | | SF bug #1721309: Clear data so random memory does not get freed.
* Backport checkin:Walter Dörwald2007-05-091-1/+1
| | | | | Fix a segfault when b"" was passed to b2a_qp() -- it was using strchr() instead of memchr().
* Backport r55070: Stop using PyMem_FREE while the GIL is not held.Neal Norwitz2007-05-091-1/+1
|