python Log

Repo status: analyzing...

Commit Date  
[92d523] by ronald.oussoren ronald.oussoren

Backport of missing part of r52229

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-08 17:43:31 Tree
[ca568f] by ronald.oussoren ronald.oussoren

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.

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-08 17:41:25 Tree
[c840c5] by hyeshik.chang hyeshik.chang

Move an old news entry about cjkcodecs to the right place; "Extension

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-08 14:24:26 Tree
[c10c70] by hyeshik.chang hyeshik.chang

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)

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-08 13:56:00 Tree
[624bff] by andrew.kuchling andrew.kuchling

[Backport r43695 | neal.norwitz]

Remove dead code (reported by HP compiler).

Can probably be backported if anyone cares.

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-06 19:26:14 Tree
[ee0edb] by andrew.kuchling andrew.kuchling

[Backport r46044 | neal.norwitz]

Fix #132 from Coverity, retval could have been derefed
if a continue inside a try failed.

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-06 19:09:36 Tree
[27213c] by andrew.kuchling andrew.kuchling

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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-06 18:59:10 Tree
[27c914] by andrew.kuchling andrew.kuchling

Case fixes

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-06 10:38:10 Tree
[3f3c84] by martin.v.loewis martin.v.loewis

Add user32.lib to the libraries. Fixes #1571023.

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-06 07:01:45 Tree
[5ad3ff] by fred.drake fred.drake

- update links
- remove Sleepycat name now that they have been bought

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-06 00:02:58 Tree
[be0778] by martin.v.loewis martin.v.loewis

Include sgml_input.html.

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 20:04:53 Tree
[7bb3ce] by andrew.kuchling andrew.kuchling

[Backport r50679 | neal.norwitz. This is the last Klocwork bug to be

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.

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 19:42:49 Tree
[937740] by andrew.kuchling andrew.kuchling

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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 19:38:17 Tree
[a2e7a9] by andrew.kuchling andrew.kuchling

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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 19:32:52 Tree
[f0c986] by andrew.kuchling andrew.kuchling

[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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 19:25:26 Tree
[02108e] by andrew.kuchling andrew.kuchling

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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 19:08:30 Tree
[3157e3] by andrew.kuchling andrew.kuchling

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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 19:01:50 Tree
[7e8844] by andrew.kuchling andrew.kuchling

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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 18:57:54 Tree
[754540] by andrew.kuchling andrew.kuchling

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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 18:49:36 Tree
[a397fc] by andrew.kuchling andrew.kuchling

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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 18:37:08 Tree
[bc73a0] by andrew.kuchling andrew.kuchling

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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 18:22:02 Tree
[041e31] by andrew.kuchling andrew.kuchling

[Backport r50743 | neal.norwitz]

Handle allocation failures gracefully. Found with failmalloc.
Many (all?) of these could be backported.

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 18:08:58 Tree
[8a2543] by andrew.kuchling andrew.kuchling

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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 17:30:48 Tree
[ed3097] by andrew.kuchling andrew.kuchling

[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

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 17:24:08 Tree
[dfde29] by andrew.kuchling andrew.kuchling

[Backport r51224 | neal.norwitz]

Move the assert which checks for a NULL pointer first.
Klocwork #274.

git-svn-id: 6015fed2-1504-0410-9fe1-9d1591cc4771

2006-10-05 17:22:15 Tree
Older >