Martin v. Löwis
d254ca8813
Backport of r61180:
...
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.
2008-03-02 20:32:57 +00:00
Andrew M. Kuchling
88a8fca519
Apply fix for potential heap overflow in PCRE code (CAN-2005-2491)
2005-08-31 12:55:21 +00:00
Alex Martelli
9ddd430505
tiny backport from 2.4, fix a leak in _testcapi
2005-02-07 12:04:22 +00:00
Anthony Baxter
c859084f71
copy.py fixed to first lookup __copy__ from the instance being copied,
...
rather than only looking at the type - this was broken in 2.3.
2005-01-25 12:52:18 +00:00
Martin v. Löwis
85e6c71d1d
Patch 728330: Fix compilation problems on IRIX.
2004-12-30 13:52:17 +00:00
Andrew M. Kuchling
f3478d9d75
[Bug #1083110 ] calling .flush() on decompress objects causes a segfault due to an uninitialized pointer: fixes the problem and adds a test case
2004-12-28 20:31:27 +00:00
Gregory P. Smith
05a24d7fec
* closes SF bug/patch 967763
...
- 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-19 23:59:51 +00:00
Gregory P. Smith
923fae44e0
In 1.17.6.4 part of the patch committed in 1.17.6.3 got reapplied to
...
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-19 23:27:48 +00:00
Gregory P. Smith
139af5593b
redo this patch on release23-maint rather than release23-branch:
...
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-19 22:39:01 +00:00
Andrew MacIntyre
3497a04a6c
fix unterminated comment
2004-12-18 09:46:18 +00:00
Andrew MacIntyre
7c80d34bbe
OS/2 specific fixes related to SF bug # 1003471.
...
Also revise a related function to minimise file handle/pipe leakage
and improve reliability.
Backported from -HEAD.
2004-12-12 08:37:08 +00:00
Tim Peters
64173c8793
handle_weakrefs(): Simplification -- there's no need to make a second
...
pass over the unreachable weakrefs-with-callbacks to unreachable objects.
2004-10-31 22:27:45 +00:00
Tim Peters
7d37a2a564
SF 1055820: weakref callback vs gc vs threads
...
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-31 00:13:07 +00:00
Guido van Rossum
0662a29c1d
Make it ANSI C again.
2004-10-09 17:43:03 +00:00
Gregory P. Smith
a3731c7734
SF bug 1017405: DB keys() values() and items() methods were ignoring
...
their txn argument.
2004-09-04 01:41:01 +00:00
Mark Hammond
4bb4d5d015
Backport [ 1010677 ] thread Module Breaks PyGILState_Ensure()
...
to the 2.3 maint branch.
2004-09-01 22:31:23 +00:00
Matthias Klose
fbfe90ee2e
[Patch #945642 ] Fix non-blocking SSL sockets, which blocked on reads/writes in Python 2.3.
...
Taken from HEAD, tested as part of the unstable and testing Debian packages since May on
various architectures.
2004-08-24 21:48:15 +00:00
Martin v. Löwis
78c2a2e039
Fail fatally if strdup fails.
2004-08-20 06:29:14 +00:00
Martin v. Löwis
d903fc0534
Patch #914291 : Restore locale while calling readline.
2004-08-18 13:35:49 +00:00
Martin v. Löwis
ea64250f15
Patch #1005568 : Use _SC_PAGESIZE on Irix.
2004-08-12 13:26:33 +00:00
Armin Rigo
09f9565f36
back-ported SF bug #808756 : refleaks
2004-08-03 09:02:32 +00:00
Andrew M. Kuchling
e03d9af2a2
Patch #909007 ] Enable a bunch of safe bug workarounds in OpenSSL, for
...
compatibility with various broken SSL implementations out there.
2004-07-12 13:10:47 +00:00
Andrew M. Kuchling
1e731dac11
[Bug #982806 ] The default argument for opening GDBM files is bogus. Patch #984672 by James Lamanna
2004-07-07 14:20:04 +00:00
Brett Cannon
c11c49f865
Allow Modules/getpath.c to compile on OS X in a --disable-framework build.
...
Closes bug #978645 .
2004-06-26 04:10:14 +00:00
Tim Peters
d8b9346a0d
SF 952807: Unpickling pickled instances of subclasses of
...
datetime.date, datetime.datetime and datetime.time could yield insane
objects. Thanks to Jiwon Seo for a fix.
2004-06-07 23:17:48 +00:00