SourceForge has been redesigned. Learn more.
Close

python Log

Repo status: analyzing...


Commit Date  
[af4bfc] by martin.v.loewis martin.v.loewis

Patch #1570253: Fix build problems caused by backports.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52133 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-04 09:12:40 Tree
[135803] by martin.v.loewis martin.v.loewis

Fix integer negation and absolute value to not rely
on undefined behaviour of the C compiler anymore.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52132 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-04 05:48:05 Tree
[38a175] by barry.warsaw barry.warsaw

decode_rfc2231(): As Christian Robottom Reis points out, it makes no sense to
test for parts > 3 when we use .split(..., 2).

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52127 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-04 02:05:15 Tree
[df6e87] by andrew.kuchling andrew.kuchling

[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

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52120 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 19:39:54 Tree
[b4a4f5] by andrew.kuchling andrew.kuchling

[backport r51253 | neal.norwitz]

Handle failures from lookup.

Klocwork 341-342

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52119 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 19:33:56 Tree
[0560fa] by andrew.kuchling andrew.kuchling

[Backport r51033 | neal.norwitz]

Prevent memory leak on error.

Reported by Klocwork #36

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52118 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 19:30:04 Tree
[ec8269] by andrew.kuchling andrew.kuchling

[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.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52117 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 19:27:00 Tree
[430ba5] by andrew.kuchling andrew.kuchling

[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

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52116 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 19:22:30 Tree
[11ce38] by andrew.kuchling andrew.kuchling

[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]

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52115 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 19:18:33 Tree
[8925a5] by andrew.kuchling andrew.kuchling

[Backport r51443 | neal.norwitz]

Handle a few more error conditions.

Klocwork 301 and 302. Will backport.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52114 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 19:11:32 Tree
[c3dcd8] by andrew.kuchling andrew.kuchling

[Backport r51231 | neal.norwitz]

PyModule_GetDict() can fail, produce fatal errors if this happens on startup.

Klocwork #298-299.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52113 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 19:08:48 Tree
[93202d] by andrew.kuchling andrew.kuchling

[Backport r51230 | neal.norwitz]

Check return of PyMem_MALLOC (garbage) is non-NULL.
Check seq in both portions of if/else.

Klocwork #289-290.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52112 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 19:07:06 Tree
[6ee5d3] by andrew.kuchling andrew.kuchling

[Backport r51229 | neal.norwitz]

Don't deref v if it's NULL.

Klocwork #214

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52111 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 19:02:58 Tree
[8c5393] by andrew.kuchling andrew.kuchling

[Backport r50781 | neal.norwitz]

Fix memory leaks spotted by Klocwork #37.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52110 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 18:55:06 Tree
[4810b9] by andrew.kuchling andrew.kuchling

[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.]

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52109 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 18:52:07 Tree
[cb39d5] by andrew.kuchling andrew.kuchling

[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.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52108 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 18:43:28 Tree
[64edc4] by andrew.kuchling andrew.kuchling

[Backport r50680 | neal.norwitz]

Handle a NULL name properly.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52107 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 18:40:23 Tree
[fc62fd] by andrew.kuchling andrew.kuchling

[Backport r51256 | neal.norwitz]

Handle malloc failure.

Klocwork 281

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52106 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 18:34:29 Tree
[521328] by andrew.kuchling andrew.kuchling

[Backport r50678 | neal.norwitz]

Fix memory leak under some conditions.

Reported by Klocwork, #98.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52105 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 18:32:25 Tree
[8918f7] by andrew.kuchling andrew.kuchling

[Backport r50677 | neal.norwitz]

Fix memory leaks in some conditions.

Reported by Klocwork #152.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52104 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 18:29:35 Tree
[754ee4] by andrew.kuchling andrew.kuchling

[Backport rev. 42545 by georg.brandl]

Make staticmethod and classmethod complain about keyword args.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52103 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 18:25:19 Tree
[7b15af] by andrew.kuchling andrew.kuchling

[Backport rev. 47010 by neal.norwitz]

Fix memory leak reported by valgrind while running test_subprocess

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52099 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 14:07:53 Tree
[e29b14] by andrew.kuchling andrew.kuchling

[Backport rev. 51728 by neal.norwitz]

Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34].

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52098 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 13:08:57 Tree
[8cf1b9] by andrew.kuchling andrew.kuchling

[Backport rev. 51669 by brett.cannon]

Make sure memory is properly cleaned up in file_init.

Backport candidate.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52097 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 13:04:29 Tree
[3e2426] by andrew.kuchling andrew.kuchling

[Backport rev. 47171 by neal.norwitz]

Another problem reported by Coverity. Backport candidate.

git-svn-id: http://svn.python.org/projects/python/branches/release24-maint@52096 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-03 12:58:52 Tree
Older >