32494 Commits

Author SHA1 Message Date
Anthony Baxter
84332f91ee what month is it again? I get confused... v2.4.4c1 2006-10-10 17:28:33 +00:00
Anthony Baxter
126ba449b6 preparing for 2.4.4c1 2006-10-10 16:44:16 +00:00
Anthony Baxter
8bc45dbaf4 note the previous checkin 2006-10-10 16:43:06 +00:00
Tim Peters
c5e1e15117 Note that there are no longer warnings when building
_bsddb on Windows (Martin recently repaired that -- thanks!).
2006-10-10 16:42:09 +00:00
Anthony Baxter
3d62ffe0fa Backport 50567
#1494314: Fix a regression with high-numbered sockets in 2.4.3. This
means that select() on sockets > FD_SETSIZE (typically 1024) work again.
The patch makes sockets use poll() internally where available.
2006-10-10 16:20:41 +00:00
Martin v. Löwis
ad7dd884f0 Ignore libcmt, not msvcrt. 2006-10-10 13:50:39 +00:00
Anthony Baxter
f46d5d3351 Update distutils version number to match the library version number 2006-10-10 08:10:42 +00:00
Ronald Oussoren
6f2b80dd0a fix permission problem in the generated installer 2006-10-10 07:53:36 +00:00
Tim Peters
0af9b87953 Backport rev 51262 from trunk -- squashes a compiler warning on Windows
about truly wrong code.

Checkin comment from 51262:

Can't return NULL from a void function.  If there is a memory error,
about the best we can do is call PyErr_WriteUnraisable and go on.
We won't be able to do the call below either, so verify delstr is valid.
2006-10-09 23:37:58 +00:00
Tim Peters
99887e1430 Move fetching of encoding test files from the end of the
Windows builbot's "build" step to the start of its "test"
step.

This is poke-and-hope.  The hope is that compilation failures
on Windows will become visible to the buildbot (bsddb has
apparently been failing to compile in 2.4 on Windows "for
some time" now, but the buildbots haven't noticed that).
2006-10-09 23:18:44 +00:00
Tim Peters
2b37ea4087 Backport of the pieces of trunk rev 46589 relevant to
fixing an unlikely crash bug in dict resizing, SF
bug 1456209.

The rest of rev 46589 changes whether Python suppresses
exceptions during some dict-related comparisons.  While I
think that's a good idea, it does change visible behavior at
times, and there was already some complaining about that on
the trunk.  Not a good idea for backporting.  The part of
46589 checked in here can at worst stop segfaults, and I doubt
anyone will gripe about that ;-)
2006-10-09 20:24:45 +00:00
Martin v. Löwis
b8f82e6feb Backport r45505, r45573, r45576
- reset errno before calling confstr - use confstr() doc to simplify
  checks afterwards
- Correct implementation and documentation of os.confstr.  Add a simple
  test case.  I've yet to figure out how to provoke a None return I can test.
- Address issues brought up by MvL on python-checkins.
  I tested this with valgrind on amd64.

  The man pages I found for diff architectures are inconsistent on this.
  I'm not entirely sure this change is correct for all architectures
  either.

  Perhaps we should just over-allocate and not worry about it?

The change to return None instead of "" in case of unconfigured
values has not been backported.
2006-10-09 19:29:06 +00:00
Andrew M. Kuchling
2fafa251db [Partial backport of r45947 | neal.norwitz]
Fix problems found by Coverity.

longobject.c: also fix an ssize_t problem
  <a> could have been NULL, so hoist the size calc to not use <a>.

[The ssize_t change isn't needed for 2.4.  The other changes in this revision
 are to modules not present in 2.4. --amk]
2006-10-09 18:42:49 +00:00
Andrew M. Kuchling
cebdc5e373 [Partial backport of r45947 | neal.norwitz]
Fix problems found by Coverity.

_ssl.c: under fail: self is DECREF'd, but it would have been NULL.

_csv.c: I'm not sure if lineterminator could have been anything other than
a string.  However, other string method calls are checked, so check this
one too.
2006-10-09 18:30:13 +00:00
Andrew M. Kuchling
e0235ae1a9 [Backport r42951 | guido.van.rossum]
Fix three nits found by Coverity, adding null checks and comments.

[This commit only makes two changes.  One change in the original patch
 is just adding a comment, and another adds a 'base != NULL' check to
 silence Coverity, but a comment adds that that base is never going to
 be NULL.  I didn't backport that change. --amk]
2006-10-09 18:19:01 +00:00
Andrew M. Kuchling
2a3d88cf9a [Bug #1545341] Let the 'classifiers' parameter be a tuple as well as a list. 2006-10-09 17:15:39 +00:00
Ronald Oussoren
c881bb9213 Backport of r52238 2006-10-08 18:20:10 +00:00
Ronald Oussoren
2dfc23dfd4 Backport of missing part of r52229 2006-10-08 17:43:31 +00:00
Ronald Oussoren
392cafba4f 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.
2006-10-08 17:41:25 +00:00
Hye-Shik Chang
16ca35a2a5 Move an old news entry about cjkcodecs to the right place; "Extension
Modules".
2006-10-08 14:24:26 +00:00
Hye-Shik Chang
2d09be9e48 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)
2006-10-08 13:56:00 +00:00
Andrew M. Kuchling
78754c13ce [Backport r43695 | neal.norwitz]
Remove dead code (reported by HP compiler).

Can probably be backported if anyone cares.
2006-10-06 19:26:14 +00:00
Andrew M. Kuchling
bec63ce9a1 [Backport r46044 | neal.norwitz]
Fix #132 from Coverity, retval could have been derefed
if a continue inside a try failed.
2006-10-06 19:09:36 +00:00
Andrew M. Kuchling
5e27a6cb0b [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)
2006-10-06 18:59:10 +00:00
Andrew M. Kuchling
08d7a49e81 Case fixes 2006-10-06 10:38:10 +00:00