summaryrefslogtreecommitdiffstats
path: root/Modules
Commit message (Collapse)AuthorAgeFilesLines
* Backport of r61180:Martin v. Löwis2008-03-029-24/+203
| | | | | | Added checks for integer overflows, contributed by Google. Some are only available if asserts are left in the code, in cases where they can't be triggered from Python code.
* Apply fix for potential heap overflow in PCRE code (CAN-2005-2491)Andrew M. Kuchling2005-08-311-9/+20
|
* tiny backport from 2.4, fix a leak in _testcapiAlex Martelli2005-02-071-0/+1
|
* copy.py fixed to first lookup __copy__ from the instance being copied,Anthony Baxter2005-01-251-1/+175
| | | | rather than only looking at the type - this was broken in 2.3.
* Patch 728330: Fix compilation problems on IRIX.Martin v. Löwis2004-12-301-1/+23
|
* [Bug #1083110] calling .flush() on decompress objects causes a segfault due ↵Andrew M. Kuchling2004-12-281-1/+5
| | | | to an uninitialized pointer: fixes the problem and adds a test case
* * closes SF bug/patch 967763Gregory P. Smith2004-12-191-45/+78
| | | | | | | | - fixes various memory leaks found by valgrind and a follup closer code inspection of the bsddb module. (merges r1.32 of _bsddb.c and an associated test case) - also merges the one line r1.37 _bsddb.c fix that fixes a leak on the rare DBEnv creation failed error path.
* In 1.17.6.4 part of the patch committed in 1.17.6.3 got reapplied toGregory P. Smith2004-12-191-9/+1
| | | | | | | the end of a second function whos code was identical enough for patch not to reject the patch. this reverses that misapplication (only the DBC_set_range method needed modification, not DBC_set as well). This problem only exists in the release32-maint branch.
* redo this patch on release23-maint rather than release23-branch:Gregory P. Smith2004-12-191-8/+8
| | | | | | revision 1.17.4.1 date: 2003/11/03 21:37:43; author: greg; state: Exp; lines: +9 -9 * SF patch 835100 - C++ // comments are not allowed. use /* */
* fix unterminated commentAndrew MacIntyre2004-12-181-1/+1
|
* OS/2 specific fixes related to SF bug # 1003471.Andrew MacIntyre2004-12-121-68/+67
| | | | | | | Also revise a related function to minimise file handle/pipe leakage and improve reliability. Backported from -HEAD.
* handle_weakrefs(): Simplification -- there's no need to make a secondTim Peters2004-10-311-58/+28
| | | | pass over the unreachable weakrefs-with-callbacks to unreachable objects.
* SF 1055820: weakref callback vs gc vs threadsTim Peters2004-10-312-107/+296
| | | | | | | | In cyclic gc, clear all weakrefs to unreachable objects before allowing any Python code (weakref callbacks or __del__ methods) to run. This is a critical bugfix, affecting all versions of Python since weakrefs were introduced.
* Make it ANSI C again.Guido van Rossum2004-10-091-3/+3
|
* SF bug 1017405: DB keys() values() and items() methods were ignoringGregory P. Smith2004-09-041-1/+1
| | | | their txn argument.
* Backport [ 1010677 ] thread Module Breaks PyGILState_Ensure()Mark Hammond2004-09-011-5/+3
| | | | to the 2.3 maint branch.
* [Patch #945642] Fix non-blocking SSL sockets, which blocked on reads/writes ↵Matthias Klose2004-08-241-29/+59
| | | | | | | in Python 2.3. Taken from HEAD, tested as part of the unstable and testing Debian packages since May on various architectures.
* Fail fatally if strdup fails.Martin v. Löwis2004-08-201-0/+4
|
* Patch #914291: Restore locale while calling readline.Martin v. Löwis2004-08-181-0/+8
|
* Patch #1005568: Use _SC_PAGESIZE on Irix.Martin v. Löwis2004-08-121-0/+5
|
* back-ported SF bug #808756: refleaksArmin Rigo2004-08-031-2/+10
|
* Patch #909007] Enable a bunch of safe bug workarounds in OpenSSL, forAndrew M. Kuchling2004-07-121-0/+1
| | | | compatibility with various broken SSL implementations out there.
* [Bug #982806] The default argument for opening GDBM files is bogus. Patch ↵Andrew M. Kuchling2004-07-071-1/+1
| | | | #984672 by James Lamanna
* Allow Modules/getpath.c to compile on OS X in a --disable-framework build.Brett Cannon2004-06-261-1/+1
| | | | Closes bug #978645.
* SF 952807: Unpickling pickled instances of subclasses ofTim Peters2004-06-071-6/+3
| | | | | datetime.date, datetime.datetime and datetime.time could yield insane objects. Thanks to Jiwon Seo for a fix.
* Backport of 1.47:Jack Jansen2004-06-031-0/+17
| | | | | | | | | Fix for #932977: MacOSX does not pass the whole pathname in argv[0] for #!-scripts, only the filename part, and this can lead to incorrect initialization of sys.path and sys.executable if there is another python on $PATH before the one used in #!. The fix was picked up from the darwinports crowd, thanks!
* Patch #924294: Do not check for AF_INET6 if it is not defined.Martin v. Löwis2004-06-021-1/+1
|
* Patch #954115: Fix os.stat handling of UNC roots.Martin v. Löwis2004-06-021-18/+94
| | | | Closes #513572.
* Set data pointer to NULL after an error; this keeps the mmap_dealloc() functionAndrew M. Kuchling2004-06-011-0/+1
| | | | from trying to do msync(-1);munmap(-1).
* In order to fix SF bug # 824977, we replace calloc()/free() calls inBarry Warsaw2004-05-111-9/+16
| | | | | | | binascii_a2b_qp() and binascii_b2a_qp() with calls to PyMem_Malloc() and PyMem_Free(). These won't return NULL unless the allocations actually fail, so it won't trigger a bogus memory error on some platforms <cough>AIX</cough> when passed a length of zero.
* SF #832236: wrap a bunch of _EXPORT_INT calls in #ifdef's, toGreg Ward2004-05-111-0/+18
| | | | avoid breaking the build on MkLinux (Linux 2.0).
* SF #950057: itertools.chain doesn't "process" exceptions as they occurRaymond Hettinger2004-05-081-0/+12
| | | | | Both cycle() and chain() were handling exceptions only when switching input sources. The patch makes the handle more immediate.
* Fix _sre.CODESIZE on 64-bit machines in UCS-4 mode. Fixes #931848.Martin v. Löwis2004-05-071-1/+1
|
* Fix [ 947405 ] os.utime() raises bad exception for unicode filenames.Mark Hammond2004-05-041-1/+6
|
* Special case normalization of empty strings. Fixes #924361.Martin v. Löwis2004-04-171-0/+7
|
* Backport to 2.3:Andrew MacIntyre2004-04-111-0/+4
| | | | | | | | | | Fixes for AF_UNIX support on OS/2: - return the full size of the sockaddr_un structure, without which bind() fails with EINVAL; - set test_socketserver to use a socket name that meets the form required by the underlying implementation; - don't bother exercising the forking AF_UNIX tests on EMX - its fork() can't handle the stress.
* Backport to 2.3 to support Zope 2.7 on OS/2:Andrew MacIntyre2004-04-041-4/+4
| | | | | | OS/2's TCP/IP stack supports AF_UNIX sockets, with the limitation that the socket name must start with /socket32/. Unlike Unix systems, this file never exists in the file system.
* Backport to 2.3 to support Zope 2.7 on OS/2:Andrew MacIntyre2004-04-041-0/+229
| | | | | | | | OS/2 has support for spawnvp() and spawnvpe() in the C libraries supplied with major C compilers (VACPP, EMX+gcc and [Open]Watcom). Also tidy up the export of spawn*() symbols in the os module to match what is found/implemented.
* OS/2 VACPP build updates/fixesAndrew MacIntyre2004-03-291-1/+1
|
* Added check for broken poll on OSes where it exists but sets errno forNicholas Bastin2004-03-221-6/+6
| | | | bad file descriptor. Fixes SF Bug #850981
* Backport checkin:Hye-Shik Chang2004-03-211-2/+6
| | | | [Bug #920575] Add a workaround for GNU libc nl_langinfo()'s returning NULL.
* fix bug related to SF bug id 788421 where DBC.set_range() could callGregory P. Smith2004-03-161-3/+11
| | | | free() on something it did not allocate for non B-Tree based databases.
* Fixes SF bsddb module bug 788421:Gregory P. Smith2004-02-261-2/+10
| | | | | | | | | * Fixed a bug in the compatibility interface set_location() method where it would not properly search to the next nearest key when used on BTree databases. [SF bug id 788421] * Fixed a bug in the compatibility interface set_location() method where it could crash when looking up keys in a hash or recno format database due to an incorrect free().
* Fix docstrings to mention the correct functionNeal Norwitz2004-02-161-2/+2
|
* pwd_getpwuid(), pwd_getpwnam(): Patch # 868499, improvement to the errorBarry Warsaw2004-01-201-2/+4
| | | | messages.
* grp_getgrgid(), grp_getgrnam(): Patch # 868499, improvement to the errorBarry Warsaw2004-01-201-2/+2
| | | | messages.
* Fix [ 846133 ] os.chmod/os.utime/shutil do not work with unicode filenamesMark Hammond2003-12-031-3/+50
|
* doc nitSkip Montanaro2003-12-021-1/+2
|
* Silence GCC warning when asserts are turned off.Guido van Rossum2003-11-241-2/+1
|
* Indented and repaired the maze of #ifdefs setting USE_RECURSION_LIMIT.Tim Peters2003-11-221-55/+58
| | | | | | | | | | | | | Indented because it was incomprehensible. "Repaired" means someone checked in a change that screwed up the multiple nesting levels, causing USE_RECURSION_LIMIT to stop getting defined on all non-LP64 boxes other than FreeBSD. Tried to repair that in a more-robust way. That error in turn caused a bogus change to get checked in to test_re.py, which I repaired earlier. This needs fresh testing on all non-Win32 platforms (Win32 never used USE_RECURSION_LIMIT, and still doesn't). Running the standard test_re.py is an adequate test.