summaryrefslogtreecommitdiff
path: root/Modules
AgeCommit message (Collapse)AuthorLines
2008-03-02Backport of r61180:Martin v. Löwis-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.
2005-08-31Apply fix for potential heap overflow in PCRE code (CAN-2005-2491)Andrew M. Kuchling-9/+20
2005-02-07tiny backport from 2.4, fix a leak in _testcapiAlex Martelli-0/+1
2005-01-25copy.py fixed to first lookup __copy__ from the instance being copied,Anthony Baxter-1/+175
rather than only looking at the type - this was broken in 2.3.
2004-12-30Patch 728330: Fix compilation problems on IRIX.Martin v. Löwis-1/+23
2004-12-28[Bug #1083110] calling .flush() on decompress objects causes a segfault due ↵Andrew M. Kuchling-1/+5
to an uninitialized pointer: fixes the problem and adds a test case
2004-12-19* closes SF bug/patch 967763Gregory P. Smith-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.
2004-12-19In 1.17.6.4 part of the patch committed in 1.17.6.3 got reapplied toGregory P. Smith-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.
2004-12-19redo this patch on release23-maint rather than release23-branch:Gregory P. Smith-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 /* */
2004-12-18fix unterminated commentAndrew MacIntyre-1/+1
2004-12-12OS/2 specific fixes related to SF bug # 1003471.Andrew MacIntyre-66/+65
Also revise a related function to minimise file handle/pipe leakage and improve reliability. Backported from -HEAD.
2004-10-31handle_weakrefs(): Simplification -- there's no need to make a secondTim Peters-58/+28
pass over the unreachable weakrefs-with-callbacks to unreachable objects.
2004-10-31SF 1055820: weakref callback vs gc vs threadsTim Peters-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.
2004-10-09Make it ANSI C again.Guido van Rossum-3/+3
2004-09-04SF bug 1017405: DB keys() values() and items() methods were ignoringGregory P. Smith-1/+1
their txn argument.
2004-09-01Backport [ 1010677 ] thread Module Breaks PyGILState_Ensure()Mark Hammond-5/+3
to the 2.3 maint branch.
2004-08-24[Patch #945642] Fix non-blocking SSL sockets, which blocked on reads/writes ↵Matthias Klose-29/+59
in Python 2.3. Taken from HEAD, tested as part of the unstable and testing Debian packages since May on various architectures.
2004-08-20Fail fatally if strdup fails.Martin v. Löwis-0/+4
2004-08-18Patch #914291: Restore locale while calling readline.Martin v. Löwis-0/+8
2004-08-12Patch #1005568: Use _SC_PAGESIZE on Irix.Martin v. Löwis-0/+5
2004-08-03back-ported SF bug #808756: refleaksArmin Rigo-2/+10
2004-07-12Patch #909007] Enable a bunch of safe bug workarounds in OpenSSL, forAndrew M. Kuchling-0/+1
compatibility with various broken SSL implementations out there.
2004-07-07[Bug #982806] The default argument for opening GDBM files is bogus. Patch ↵Andrew M. Kuchling-1/+1
#984672 by James Lamanna
2004-06-26Allow Modules/getpath.c to compile on OS X in a --disable-framework build.Brett Cannon-1/+1
Closes bug #978645.
2004-06-07SF 952807: Unpickling pickled instances of subclasses ofTim Peters-6/+3
datetime.date, datetime.datetime and datetime.time could yield insane objects. Thanks to Jiwon Seo for a fix.
2004-06-03Backport of 1.47:Jack Jansen-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!
2004-06-02Patch #924294: Do not check for AF_INET6 if it is not defined.Martin v. Löwis-1/+1
2004-06-02Patch #954115: Fix os.stat handling of UNC roots.Martin v. Löwis-18/+94
Closes #513572.
2004-06-01Set data pointer to NULL after an error; this keeps the mmap_dealloc() functionAndrew M. Kuchling-0/+1
from trying to do msync(-1);munmap(-1).
2004-05-11In order to fix SF bug # 824977, we replace calloc()/free() calls inBarry Warsaw-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.
2004-05-11SF #832236: wrap a bunch of _EXPORT_INT calls in #ifdef's, toGreg Ward-0/+18
avoid breaking the build on MkLinux (Linux 2.0).
2004-05-08SF #950057: itertools.chain doesn't "process" exceptions as they occurRaymond Hettinger-0/+12
Both cycle() and chain() were handling exceptions only when switching input sources. The patch makes the handle more immediate.
2004-05-07Fix _sre.CODESIZE on 64-bit machines in UCS-4 mode. Fixes #931848.Martin v. Löwis-1/+1
2004-05-04Fix [ 947405 ] os.utime() raises bad exception for unicode filenames.Mark Hammond-1/+6
2004-04-17Special case normalization of empty strings. Fixes #924361.Martin v. Löwis-0/+7
2004-04-11Backport to 2.3:Andrew MacIntyre-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.
2004-04-04Backport to 2.3 to support Zope 2.7 on OS/2:Andrew MacIntyre-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.
2004-04-04Backport to 2.3 to support Zope 2.7 on OS/2:Andrew MacIntyre-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.
2004-03-29OS/2 VACPP build updates/fixesAndrew MacIntyre-1/+1
2004-03-22Added check for broken poll on OSes where it exists but sets errno forNicholas Bastin-6/+6
bad file descriptor. Fixes SF Bug #850981
2004-03-21Backport checkin:Hye-Shik Chang-2/+6
[Bug #920575] Add a workaround for GNU libc nl_langinfo()'s returning NULL.
2004-03-16fix bug related to SF bug id 788421 where DBC.set_range() could callGregory P. Smith-3/+11
free() on something it did not allocate for non B-Tree based databases.
2004-02-26Fixes SF bsddb module bug 788421:Gregory P. Smith-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().
2004-02-16Fix docstrings to mention the correct functionNeal Norwitz-2/+2
2004-01-20pwd_getpwuid(), pwd_getpwnam(): Patch # 868499, improvement to the errorBarry Warsaw-2/+4
messages.
2004-01-20grp_getgrgid(), grp_getgrnam(): Patch # 868499, improvement to the errorBarry Warsaw-2/+2
messages.
2003-12-03Fix [ 846133 ] os.chmod/os.utime/shutil do not work with unicode filenamesMark Hammond-3/+50
2003-12-02doc nitSkip Montanaro-1/+2
2003-11-24Silence GCC warning when asserts are turned off.Guido van Rossum-2/+1
2003-11-22Indented and repaired the maze of #ifdefs setting USE_RECURSION_LIMIT.Tim Peters-53/+56
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.