summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* #6990: clear threading.local's key only after its thread state is removed:Philip Jenvey2009-09-291-1/+1
| | | | | | fixes local subclasses leaving old state around after a ref cycle GC which could be recycled by new locals (backported from r75123)
* Issue #1040026: Fix os.times result on systems where HZ is incorrect.Martin v. Löwis2008-12-131-9/+16
|
* Backport of r64212Martin v. Löwis2008-12-131-0/+1
| | | | Issue #1683: prevent forking from interfering in threading storage.
* Issue #4228: Pack negative values the same way as 2.4Martin v. Löwis2008-12-131-6/+6
| | | | in struct's L format.
* #4317: Fix an Array Bounds Read in imageop.rgb2rgb8.Amaury Forgeot d'Arc2008-11-181-1/+1
| | | | Backport of r67266
* backport r67077 from the trunk: parser module now correctly validates ↵Benjamin Peterson2008-11-031-2/+2
| | | | relative imports
* Issue #4176: Pickle would crash the interpreter when a __reduce__ functionAmaury Forgeot d'Arc2008-10-301-26/+33
| | | | | | | does not return an iterator for the 4th and 5th items. (sequence-like and mapping-like state) Backport of r67049.
* Modify ctypes types with 'official' functions. Backport from trunk,Thomas Heller2008-10-181-1/+1
| | | | snv rev 59943 and 59946.
* Issue #4046: Backport of issue #3312's patch: fixes two crashes in the sqlite3Gerhard Häring2008-10-082-3/+13
| | | | module.
* Fix a refleak introduced by r66678 (backport of r66700).Brett Cannon2008-09-301-10/+1
|
* backport r66689: imageop could segfault due to poor argument validationBenjamin Peterson2008-09-301-160/+109
|
* Fix issue #3547 for MingW, update comments (backport from trunk).Thomas Heller2008-09-291-3/+5
|
* Backport of r66677: _lsprof crasher when a bad external timer is used duringBrett Cannon2008-09-291-1/+10
| | | | garbage collection of a Profiler object.
* Fix issue #3547: ctypes is confused by bitfields of varying integer typesThomas Heller2008-09-241-1/+1
| | | | | | Reviewed by Fredrik Lundh and Skip Montanaro. Backport from trunk.
* backport r66496: integer overflow in _hashopenssl #3886Benjamin Peterson2008-09-181-9/+42
|
* Issue 1179: [CVE-2007-4965] Integer overflow in imageop module.Guido van Rossum2008-08-192-12/+73
| | | | Also fixes rgbimg module (just before it is removed from 2.6).
* Backport of r64767 from trunkGregory P. Smith2008-08-171-0/+1
| | | | | | Fixes Issue #3309: Fix bz2.BZFile iterator to release its internal lock properly when raising an exception due to the bz2file being closed. Prevents a deadlock.
* Backport r65745: Issue #2222: Fixed reference leak when occuredHirokazu Yamamoto2008-08-171-28/+26
| | | | os.rename() fails unicode conversion on 2nd parameter. (windows only)
* #3205: bz2 iterator fails silently on MemoryErrorGeorg Brandl2008-08-121-0/+1
| | | | (backport from r65609)
* (backport of r61652 and r61665 from trunk)Gregory P. Smith2008-08-041-5/+14
| | | | | Issue #1471: Arguments to fcntl.ioctl are no longer broken on 64-bit OpenBSD and similar platforms due to sign extension.
* Security patches from Apple: prevent int overflow when allocating memoryNeal Norwitz2008-07-313-2/+22
|
* Backport code from r65182:Neal Norwitz2008-07-283-4/+10
| | | | | | | | | Issue #2620: Overflow checking when allocating or reallocating memory was not always being done properly in some python types and extension modules. PyMem_MALLOC, PyMem_REALLOC, PyMem_NEW and PyMem_RESIZE have all been updated to perform better checks and places in the code that would previously leak memory on the error path when such an allocation failed have been fixed.
* #Issue3088 in-progress: Race condition with instances of classes derived ↵Amaury Forgeot d'Arc2008-07-011-1/+4
| | | | | | | | | | | | | from threading.local: When a thread touches such an object for the first time, a new thread-local __dict__ is created, and the __init__ method is run. But a thread switch can occur here; if the other thread touches the same object, it installs another __dict__; when the first thread resumes, it updates the dictionary of the second... This is the deep cause of the failures in test_multiprocessing involving "managers" objects. Backport of r64601.
* #3157: Fix docstrings for cursor methods.Georg Brandl2008-06-221-3/+3
|
* Patch #2111: Avoid mmap segfault when modifying a PROT_READ block.Martin v. Löwis2008-05-231-0/+4
|
* fix issue2858: potential memory corruption when any of the bsddb.db.*Gregory P. Smith2008-05-171-7/+5
| | | | constructors raised an exception. backportes from trunk c63403.
* Issue #2682: ctypes callback functions no longer contain a cyclicThomas Heller2008-04-253-51/+135
| | | | | | reference to themselves. Backport from trunk.
* Merge r62235 from trunk.Gregory P. Smith2008-04-091-0/+4
| | | | | Fix zlib crash from zlib.decompressobj().flush(val) when val was not positive. It tried to allocate negative or zero memory. That fails.
* Fix for Issue2515: Don't crash when trying to fetch data from a closed cursor.Gerhard Häring2008-04-061-8/+10
|
* Remove the advertising clause from the BSD license in timing.h.Guido van Rossum2008-04-011-6/+3
| | | | | I have the email trail to prove that George Neville-Neil approved this. (Backport of r62097.)
* Backport #1442: report exception when startup file cannot be run.Georg Brandl2008-03-291-0/+9
|
* Backport r61450 from trunk:Gregory P. Smith2008-03-181-2/+2
| | | | | | | | Fix chown on 64-bit linux. It needed to take a long (64-bit on 64bit linux) as uid and gid input to accept values >=2**31 as valid while still accepting negative numbers to pass -1 to chown for "no change". Fixes issue1747858.
* Backport r61286 adding GC to the grouper for itertools.groupby() fixing ↵Raymond Hettinger2008-03-061-5/+15
| | | | Issue 2246.
* 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
|