Staging
v0.5.1
https://github.com/python/cpython

sort by:
Revision Author Date Message Commit Date
c881bb9 Backport of r52238 08 October 2006, 18:20:10 UTC
2dfc23d Backport of missing part of r52229 08 October 2006, 17:43:31 UTC
392cafb Port of universal binary support for Mac OSX from python 2.5. This takes away the need for the out-of-tree universal binary support that was used to build the 2.4.3 installer. Missing here relative to that tree are some changes to IDLE, IMHO those patches aren't appropriate for the 2.4 branch and users are better of using 2.5's IDLE. 08 October 2006, 17:41:25 UTC
16ca35a Move an old news entry about cjkcodecs to the right place; "Extension Modules". 08 October 2006, 14:24:26 UTC
2d09be9 Backport from trunk r52223: Bug #1572832: fix a bug in ISO-2022 codecs which may cause segfault when encoding non-BMP unicode characters. (Submitted by Ray Chason) 08 October 2006, 13:56:00 UTC
78754c1 [Backport r43695 | neal.norwitz] Remove dead code (reported by HP compiler). Can probably be backported if anyone cares. 06 October 2006, 19:26:14 UTC
bec63ce [Backport r46044 | neal.norwitz] Fix #132 from Coverity, retval could have been derefed if a continue inside a try failed. 06 October 2006, 19:09:36 UTC
5e27a6c [Backport r46602 | neal.norwitz] Patch #1357836: Prevent an invalid memory read from test_coding in case the done flag is set. In that case, the loop isn't entered. I wonder if rather than setting the done flag in the cases before the loop, if they should just exit early. This code looks like it should be refactored. Backport candidate (also the early break above if decoding_fgets fails) 06 October 2006, 18:59:10 UTC
08d7a49 Case fixes 06 October 2006, 10:38:10 UTC
5cef0bb Add user32.lib to the libraries. Fixes #1571023. 06 October 2006, 07:01:45 UTC
d176806 - update links - remove Sleepycat name now that they have been bought 06 October 2006, 00:02:58 UTC
15db383 Include sgml_input.html. 05 October 2006, 20:04:53 UTC
3e35669 [Backport r50679 | neal.norwitz. This is the last Klocwork bug to be backported.] Use sizeof(buffer) instead of duplicating the constants to ensure they won't be wrong. The real change is to pass (bufsz - 1) to PyOS_ascii_formatd and 1 to strncat. strncat copies n+1 bytes from src (not dest). Reported by Klocwork #58. 05 October 2006, 19:42:49 UTC
32f378b [Backport r50681 | neal.norwitz] PyFunction_SetDefaults() is documented as taking None or a tuple. A NULL would crash the PyTuple_Check(). Now make NULL return a SystemError. Reported by Klocwork #73. 05 October 2006, 19:38:17 UTC
20cc6be [Backport r51222 | neal.norwitz -- if you hack the code to set r=NULL, you find that Python does print "MemoryError". There's no traceback and no indication of which line of code is responsible, but it's better than a segfault.] Handle NULL nodes while parsing. I'm not entirely sure this is correct. There might be something else that needs to be done to setup the error. Klocwork #295. 05 October 2006, 19:32:52 UTC
6d0bc3e [Backport r51246 | neal.norwitz] Handle a whole lot of failures from PyString_FromInternedString(). Should fix most of Klocwork 234-272. [Backport r51400 | neal.norwitz] Move initialization of interned strings to before allocating the object so we don't leak op. (Fixes an earlier patch to this code) Klockwork #350 05 October 2006, 19:25:26 UTC
154a884 [Backport r51221 | neal.norwitz -- the original commit message is wrong; this code is only used if WITHOUT_COMPLEX is *not* defined, which is the common case for Python builds.] This code is actually not used unless WITHOUT_COMPLEX is defined. However, there was no error checking that PyFloat_FromDouble returned a valid pointer. I believe this change is correct as it seemed to follow other code in the area. Klocwork # 292. 05 October 2006, 19:08:30 UTC
720ea07 [Backport r51220 | neal.norwitz] It's highly unlikely, though possible for PyEval_Get*() to return NULLs. So be safe and do an XINCREF. Klocwork # 221-222. 05 October 2006, 19:01:50 UTC
e67841f [Backport r50685 | neal.norwitz] Reported by Klocwork #151. v2 can be NULL if exception2 is NULL. I don't think that condition can happen, but I'm not sure it can't either. Now the code will protect against either being NULL. 05 October 2006, 18:57:54 UTC
da604c1 [Backport r50783 | neal.norwitz. The bytes_left code is complicated, but looks correct on a casual inspection and hasn't been modified in the trunk. Does anyone want to review further?] Ensure we don't write beyond errText. I think I got this right, but it definitely could use some review to ensure I'm not off by one and there's no possible overflow/wrap-around of bytes_left. Reported by Klocwork #1. Fix a problem if there is a failure allocating self->db. Found with failmalloc. 05 October 2006, 18:49:36 UTC
9788095 [Partial backport of r51218 | neal.norwitz -- the changes to ast.c, symtable.c, and _elementtree.c weren't applicable] Klocwork made another run and found a bunch more problems. This is the first batch of fixes that should be easy to verify based on context. This fixes problem numbers: 220 (ast), 323-324 (symtable), 321-322 (structseq), 215 (array), 210 (hotshot), 182 (codecs), 209 (etree). 05 October 2006, 18:37:08 UTC
9781e5d [Partial backport of r50773 | neal.norwitz -- other parts of this patch applied to pyarena.c, compile.c, and symtable.c, which were different in 2.4.] Fix more memory allocation issues found with failmalloc. 05 October 2006, 18:22:02 UTC
8a28c16 [Backport r50743 | neal.norwitz] Handle allocation failures gracefully. Found with failmalloc. Many (all?) of these could be backported. 05 October 2006, 18:08:58 UTC
af4defb [Backport r52147 | andrew.kuchling] Cause a PyObject_Malloc() failure to trigger a MemoryError, and then add 'if (PyErr_Occurred())' checks to various places so that NULL is returned properly. 05 October 2006, 17:30:48 UTC
a1ade3e [Backport r51223 | neal.norwitz] If _stat_float_times is false, we will try to INCREF ival which could be NULL. Return early in that case. The caller checks for PyErr_Occurred so this should be ok. Klocwork #297 05 October 2006, 17:24:08 UTC
165e797 [Backport r51224 | neal.norwitz] Move the assert which checks for a NULL pointer first. Klocwork #274. 05 October 2006, 17:22:15 UTC
fb36924 [Backport r51247 | neal.norwitz] cpathname could be NULL if it was longer than MAXPATHLEN. Don't try to write the .pyc to NULL. Check results of PyList_GetItem() and PyModule_GetDict() are not NULL. Klocwork 282, 283, 285 05 October 2006, 17:19:30 UTC
1af9f68 [Backport r51248 | neal.norwitz] Fix segfault when doing string formatting on subclasses of long if __oct__, __hex__ don't return a string. Klocwork 308 05 October 2006, 17:18:13 UTC
68e1e03 [Backport r51255 | neal.norwitz] Really address the issue of where to place the assert for leftblock. (Followup of Klocwork 274) 05 October 2006, 17:06:59 UTC
c3554cd Remove bogus openssl-0.9.8a directory. 04 October 2006, 16:34:35 UTC
d005dd9 Build _ssl.pyd with OpenSSL 0.9.7l 04 October 2006, 16:02:55 UTC
589f333 [Backport r51225 | neal.norwitz] Try to handle a malloc failure. I'm not entirely sure this is correct. There might be something else we need to do to handle the exception. Klocwork # 212-213 [I think this needs more work; a malloc() failure will cause a match to fail, but nothing raises MemoryError. I'll work on this on the trunk and backport. --amk] 04 October 2006, 13:30:17 UTC
d3499a3 [Backport r51232 | neal.norwitz] Verify verdat which is returned from malloc is not NULL. Ensure we don't pass NULL to free. Klocwork #306 (at least the first part, checking malloc) 04 October 2006, 13:20:05 UTC
3b93688 [Backport r51245 | neal.norwitz] Move/copy assert for tstate != NULL before first use. Verify that PyEval_Get{Globals,Locals} returned valid pointers. Klocwork 231-232 04 October 2006, 13:17:42 UTC
3184f24 [Backport r51251 | neal.norwitz] Handle malloc and fopen failures more gracefully. Klocwork 180-181 04 October 2006, 13:14:48 UTC
a2a1661 [Backport r51226 | neal.norwitz] I'm not sure why this code allocates this string for the error message. I think it would be better to always use snprintf and have the format limit the size of the name appropriately (like %.200s). Klocwork #340 04 October 2006, 13:12:26 UTC
baab23e Compilation problem caused by conflicting typedefs for uint32_t (unsigned long vs. unsigned int). 04 October 2006, 10:23:57 UTC
b2d0f34 A review of overflow-detecting code in the 2.4 branch. * unified the way intobject, longobject and mystrtoul handle values around -sys.maxint-1. * in general, trying to entierely avoid overflows in any computation involving signed ints or longs is extremely involved. Fixed a few simple cases where a compiler might be too clever (but that's all guesswork). * more overflow checks against bad data in marshal.c. 04 October 2006, 10:13:32 UTC
f44c100 Add uuids for upcoming 2.4.4 release. 04 October 2006, 09:18:51 UTC
a50f9a4 Patch #1570253: Fix build problems caused by backports. 04 October 2006, 09:12:40 UTC
98041d7 Fix integer negation and absolute value to not rely on undefined behaviour of the C compiler anymore. 04 October 2006, 05:48:05 UTC
e346a73 decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to test for parts > 3 when we use .split(..., 2). 04 October 2006, 02:05:15 UTC
397935f [Backport r51252 | neal.norwitz] It's very unlikely, though possible that source is not a string. Verify that PyString_AsString() returns a valid pointer. (The problem can arise when zlib.decompress doesn't return a string.) Klocwork 346 03 October 2006, 19:39:54 UTC
1673922 [backport r51253 | neal.norwitz] Handle failures from lookup. Klocwork 341-342 03 October 2006, 19:33:56 UTC
9986884 [Backport r51033 | neal.norwitz] Prevent memory leak on error. Reported by Klocwork #36 03 October 2006, 19:30:04 UTC
cc17b6f [Backport r50858 | neal.norwitz] No functional change. Add comment and assert to describe why there cannot be overflow which was reported by Klocwork. Discussed on python-dev. 03 October 2006, 19:27:00 UTC
c45e5d9 [Backport r50782 | neal.norwitz] nextlink can be NULL if teedataobject_new fails, so use XINCREF. Ensure that dataobj is never NULL. Reported by Klocwork #102 03 October 2006, 19:22:30 UTC
a204025 [Partial backport of r50777 | neal.norwitz] Handle more mem alloc issues found with failmalloc [The other half of this patch affected Python/symtable.c, and wasn't relevant for the 2.4 branch. --amk] 03 October 2006, 19:18:33 UTC
58e5c11 [Backport r51443 | neal.norwitz] Handle a few more error conditions. Klocwork 301 and 302. Will backport. 03 October 2006, 19:11:32 UTC
fec7674 [Backport r51231 | neal.norwitz] PyModule_GetDict() can fail, produce fatal errors if this happens on startup. Klocwork #298-299. 03 October 2006, 19:08:48 UTC
59e0e1e [Backport r51230 | neal.norwitz] Check return of PyMem_MALLOC (garbage) is non-NULL. Check seq in both portions of if/else. Klocwork #289-290. 03 October 2006, 19:07:06 UTC
2b06e0e [Backport r51229 | neal.norwitz] Don't deref v if it's NULL. Klocwork #214 03 October 2006, 19:02:58 UTC
2bf83ca [Backport r50781 | neal.norwitz] Fix memory leaks spotted by Klocwork #37. 03 October 2006, 18:55:06 UTC
b1d7043 [Backport r50779 | neal.norwitz] Move the initialization of size_a down below the check for a being NULL. Reported by Klocwork #106. [Slight change required: in 2.5 Py_ssize_t is used, but 2.4 uses int.] 03 October 2006, 18:52:07 UTC
5cf2fb9 [Backport r50683 | neal.norwitz] Stop INCREFing name, then checking if it's NULL. name (f_name) should never be NULL so assert it. Fix one place where we could have passed NULL. Reported by Klocwork #66. 03 October 2006, 18:43:28 UTC
9169792 [Backport r50680 | neal.norwitz] Handle a NULL name properly. 03 October 2006, 18:40:23 UTC
0370431 [Backport r51256 | neal.norwitz] Handle malloc failure. Klocwork 281 03 October 2006, 18:34:29 UTC
1c0d8f0 [Backport r50678 | neal.norwitz] Fix memory leak under some conditions. Reported by Klocwork, #98. 03 October 2006, 18:32:25 UTC
6127431 [Backport r50677 | neal.norwitz] Fix memory leaks in some conditions. Reported by Klocwork #152. 03 October 2006, 18:29:35 UTC
c6994f2 [Backport rev. 42545 by georg.brandl] Make staticmethod and classmethod complain about keyword args. 03 October 2006, 18:25:19 UTC
7828783 [Backport rev. 47010 by neal.norwitz] Fix memory leak reported by valgrind while running test_subprocess 03 October 2006, 14:07:53 UTC
9569ea3 [Backport rev. 51728 by neal.norwitz] Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34]. 03 October 2006, 13:08:57 UTC
26acb2c [Backport rev. 51669 by brett.cannon] Make sure memory is properly cleaned up in file_init. Backport candidate. 03 October 2006, 13:04:29 UTC
ceb4914 [Backport rev. 47171 by neal.norwitz] Another problem reported by Coverity. Backport candidate. 03 October 2006, 12:58:52 UTC
ed0681f Guard uintptr_t test with HAVE_STDINT_H, test for stdint.h. 02 October 2006, 15:24:15 UTC
750ab95 Fix test for uintptr_t. Fixes #1568842. 02 October 2006, 14:56:30 UTC
4b32cdd Back out r52076, it's causing the buildbots to fail because of test_charmapcodec. 30 September 2006, 14:48:03 UTC
cae0a86 Bug #1446043: correctly raise a LookupError if an encoding name given to encodings.search_function() contains a dot. (backport from rev. 52075) 30 September 2006, 11:22:31 UTC
16e469b Bug #1556784: allow format strings longer than 127 characters in datetime's strftime function. (backport from rev. 52072) 30 September 2006, 11:17:39 UTC
ee2940d Bug #1560617: in pyclbr, return full module name not only for classes, but also for functions. (backport from rev. 52069) 30 September 2006, 11:06:51 UTC
86b66b9 Bug #1566602: correct failure of posixpath unittest when $HOME ends with a slash. (backport from rev. 52065) 30 September 2006, 09:13:25 UTC
adf8a1d Patch #1567691: super() and new.instancemethod() now don't accept keyword arguments any more (previously they accepted them, but didn't use them). (backport from rev. 52058) 30 September 2006, 08:43:35 UTC
3b3a7fc Bug #1567375: a minor logical glitch in example description. (backport from rev. 52053) 30 September 2006, 07:24:53 UTC
712bb34 wording change 30 September 2006, 06:09:07 UTC
c138772 [Backport rev. 46882 by neal.norwitz] Fix the socket tests so they can be run concurrently. Backport candidate 29 September 2006, 18:30:59 UTC
960a7a4 Typo fix from rev. 46879 29 September 2006, 18:23:33 UTC
942f75d [Backport rev. 46878 by neal.norwitz] Don't leak the list object if there's an error allocating the item storage. Backport candidate. 29 September 2006, 18:22:07 UTC
ab68637 [Backport rev. 39743 by lemburg] Bug fix for [ 1331062 ] utf 7 codec broken. Backport candidate. 29 September 2006, 17:57:58 UTC
21e2af3 [Backport rev. 41696 by neal.norwitz] Fix an int/long mismatch identified here: http://www.tortall.net/mu/blog/2005/12/01 Pointed out from SF #1365916. Backport candidate. 29 September 2006, 17:52:32 UTC
100e7d7 [Backport rev39767 by nnorwitz] Free coding spec (cs) if there was an error to prevent mem leak. Maybe backport candidate. [Bugfix seems applicable to 2.4 to me. --amk] 29 September 2006, 17:42:30 UTC
7de2818 [Backport rev.39739 by nnorwitz] SF bug #1328915, try to word kill a bit more generically. Backport candidate. 29 September 2006, 12:47:00 UTC
0fe32a9 [Backport rev 39653 by nnorwitz] SF Bug # 941346, AIX shared library fix Since I can't test this, I'm just adding a comment. If we get access to AIX boxes, we can test this and really resolve. Anyone from IBM want to offer help? Backport candidate I suppose. 29 September 2006, 12:44:26 UTC
7e580c9 [Backport rev. 39645 by nnorwitz] SF patch #1227568, bug #1219273, Expression AST node not documented. Backport candidate if anyone cares. 29 September 2006, 12:41:36 UTC
602117a [Backport rev. 39135 by mwh] Fix bug [ 1232517 ] OverflowError in time.utime() causes strange traceback A needed error check was missing. (Actually, this error check may only have become necessary in fairly recent Python, not sure). Backport candidate. [A few lines below the code in 2.4 touched by the patch, there's already a similar check of (intval == -1 && PyErr_Occurred()), so I think this function can already report such errors, and therefore the fix still applies. Perhaps Michael can clarify what he was referring to. --amk] 28 September 2006, 17:16:25 UTC
6eb4283 [Backport rev.39030 by nascheme] Add missing INCREF. 28 September 2006, 17:08:01 UTC
c91fb6f [Backport rev. 39012 by mwh] Add a missing incref. 28 September 2006, 17:05:18 UTC
f21bdb4 [Backport rev. 38534 by loewis] [Possibly controversial because it adds a parameter to a method. This parameter isn't documented, however, so arguably it's a private detail, and the fix is necessary to make GzipFile.flush() behave more similarly to regular file object.] Patch #1110248: SYNC_FLUSH the zlib buffer for GZipFile.flush. Partially fixes #1110242. 27 September 2006, 19:37:27 UTC
c39c7c1 Make examples do error checking on Py_InitModule 27 September 2006, 19:23:38 UTC
e703122 [Backport of rev. 42093 by neal.norwitz] Check return result from Py_InitModule*(). This API can fail. Probably should be backported. 27 September 2006, 19:17:32 UTC
4c16bac [Backport of rev. 51683 by neal.norwitz] Bug #1548092: fix curses.tparm seg fault on invalid input. Needs backport to 2.5.1 and earlier. 27 September 2006, 19:04:53 UTC
124696a [Backport rev.51254 from neal.norwitz] Handle failure from PyModule_GetDict() (Klocwork 208). Fix a bunch of refleaks in the init of the module. This would only be found when running python -v. 27 September 2006, 19:02:02 UTC
570c655 fix a bug with bsddb.DB.stat reversing its flags and txn keyword arguments. (reported by Louis Zechtzer) 19 September 2006, 17:23:50 UTC
27d7e8d Backport 51850 from release25-maint branch. As mentioned on python-dev, reverting patch #1504333 because it introduced an infinite loop in rev 47154. This patch also adds a test to prevent the regression. 11 September 2006, 04:18:06 UTC
56b5458 Backport from trunk r51737: Fixed a few bugs on cjkcodecs: - gbk and gb18030 codec now handle U+30FB KATAKANA MIDDLE DOT correctly. - iso2022_jp_2 codec now encodes into G0 for KS X 1001, GB2312 codepoints to conform the standard. - iso2022_jp_3 and iso2022_jp_2004 codec can encode JIS X 0213:2 codepoints now. 07 September 2006, 13:06:10 UTC
63e4644 Remove bogus NEWS entry. 07 September 2006, 06:02:23 UTC
e00ffff Fix missing import of the types module in logging.config. (backport from rev. 51785) 06 September 2006, 20:06:20 UTC
5e6d031 Bug #1551427: fix a wrong NULL pointer check in the win32 version of os.urandom(). (backport from rev. 51762) 06 September 2006, 06:04:03 UTC
e63dab5 Merge rev 51711 from the 2.5 branch. i_divmod(): As discussed on Python-Dev, changed the overflow checking to live happily with recent gcc optimizations that assume signed integer arithmetic never overflows. 05 September 2006, 02:00:47 UTC
ba8522a Backport trunk's revision 51565: Fix SF bug #1545837: array.array borks on deepcopy. array.__deepcopy__() needs to take an argument, even if it doesn't actually use it. Will backport to 2.5 and 2.4 (if applicable.) 24 August 2006, 18:55:01 UTC
79ba8e5 Backport rev 51448: - Patch #1541585: fix buffer overrun when performing repr() on a unicode string in a build with wide unicode (UCS-4) support. 22 August 2006, 08:25:33 UTC
back to top