Commit Graph

5798 Commits

Author SHA1 Message Date
Benjamin Peterson d6138c426e always allow -1 as a uid 2013-03-23 16:19:04 -05:00
Benjamin Peterson 4d7fc3c5ac undo PyInt -> PyLong change; that was wrong 2013-03-23 15:35:24 -05:00
Benjamin Peterson 31289230e2 return int instead long when possible (#17531) 2013-03-23 15:22:20 -05:00
Kristján Valur Jónsson 9795ca44fb Issue #10212: Support new buffer interface for struct.unpack and
cStringIO
2013-03-19 17:17:47 -07:00
Kristján Valur Jónsson 11f989320e Issue #10296 : Don't handle BreakPoint exceptions using
Structured Exception Handling on windows.
2013-03-19 15:24:10 -07:00
doko@ubuntu.com 4950a3b6cc - Issue #17477: Update the bsddb module to pybsddb 5.3.0, supporting
db-5.x, and dropping support for db-4.1 and db-4.2.
2013-03-19 14:46:29 -07:00
Kristján Valur Jónsson 868f0aac37 issue #9090 : Take the same approach for socketmodule as daytimemodule
when it needs support from timemodule (which is a .so on linux):
link in timemodule.c for the required functions.
2013-03-19 13:53:56 -07:00
R David Murray a39c47aab0 #8862: Fix curses cleanup with getchar is interrupted by a signal.
I have no idea how one would write a test for this.

Patch by July Tikhonov.
2013-03-19 16:26:53 -04:00
Kristján Valur Jónsson 620e36419a issue #9090 : Limit the fix to windows since getting a portable simple
time function on non-windows isn't quite simple.
2013-03-19 13:01:05 -07:00
Kristján Valur Jónsson 6ebc8f3f38 Issue #9090 : Error code 10035 calling socket.recv() on a socket with a timeout
(WSAEWOULDBLOCK - A non-blocking socket operation could not be completed
 immediately)
2013-03-19 10:58:59 -07:00
Gregory P. Smith 46ce27ab1e Fixes issue #17192: Update the ctypes module's libffi to v3.0.13. This
specifically addresses a stack misalignment issue on x86 and issues on
some more recent platforms.
2013-03-18 16:58:50 -07:00
Terry Jan Reedy ce9cc49104 Issue #17047: remove doubled words found in 2.7 to 3.4 Modules/*,
as reported by Serhiy Storchaka and Matthew Barnett.
2013-03-11 17:41:44 -04:00
Antoine Pitrou 49e4dfeec8 Issue #17278: Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently. 2013-03-04 20:30:01 +01:00
Serhiy Storchaka d36d4e0d2b Issue #13555: Fix an integer overflow check. 2013-02-26 10:07:36 +02:00
R David Murray 5b2cf5e651 #17275: Fix class name in init errors in C bufferedio classes.
This fixes an apparent copy-and-paste error.

Original patch by Manuel Jacob.
2013-02-23 22:11:21 -05:00
Serhiy Storchaka 4676448941 Issue #13153: Tkinter functions now raise TclError instead of ValueError when
a unicode argument contains non-BMP character.
2013-02-18 13:00:08 +02:00
Serhiy Storchaka 6a8e2b4982 Issue #9669: Protect re against infinite loops on zero-width matching in
non-greedy repeat.  Patch by Matthew Barnett.
2013-02-16 21:23:01 +02:00
Serhiy Storchaka e18e05cce9 Issue #13169: The maximal repetition number in a regular expression has been
increased from 65534 to 2147483647 (on 32-bit platform) or 4294967294 (on
64-bit).
2013-02-16 16:47:15 +02:00
Richard Oudkerk 36b9d413d7 Issue #16743: Fix mmap overflow check on 32 bit Windows 2013-02-13 12:05:14 +00:00
Serhiy Storchaka cdc7a91dde Issue #13555: cPickle now supports files larger than 2 GiB. 2013-02-12 21:36:47 +02:00
Serhiy Storchaka da5c2a0646 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-12 09:27:53 +02:00
Serhiy Storchaka 083c0aac32 Clean trailing whitespaces in Makefile.pre.in and grpmodule.c. 2013-02-12 09:20:19 +02:00
Raymond Hettinger 6688bdbe77 Minor cleanups. 2013-02-09 18:55:44 -05:00
Serhiy Storchaka 276f1d5139 Issue #7358: cStringIO.StringIO now supports writing to and reading from
a stream larger than 2 GiB on 64-bit systems.
2013-02-09 13:47:43 +02:00
Serhiy Storchaka 62e709c52b Issue #16686: Fixed a lot of bugs in audioop module.
* avgpp() and maxpp() no more crash on empty and 1-samples input fragment. They now work when peak-peak values are greater INT_MAX.
* ratecv() no more crashes on empty input fragment.
* Fixed an integer overflow in ratecv().
* Fixed an integer overflow in add() and bias() for 32-bit samples.
* reverse(), lin2lin() and ratecv() no more lose precision for 32-bit samples.
* max() and rms() no more returns negative result for 32-bit sample -0x80000000.
* minmax() now returns correct max value for 32-bit sample -0x80000000.
* avg(), mul(), tomono() and tostereo() now round negative result down and can return 32-bit sample -0x80000000.
* add() now can return 32-bit sample -0x80000000.
2013-02-09 11:10:30 +02:00
Serhiy Storchaka 35c52b687f Issue #17073: Fix some integer overflows in sqlite3 module. 2013-02-07 16:59:34 +02:00
R David Murray 381372d1be #17091: update docstring for _thread.Lock.acquire.
The main docs were fixed to remove mention of None long ago,
but the docstring was not.  Reported by Armin Rigo, patch
by Ian Cordasco.
2013-02-04 10:29:38 -05:00
Serhiy Storchaka a07a8b4f18 Issue #6083: Fix multiple segmentation faults occured when PyArg_ParseTuple
parses nested mutating sequence.
2013-02-04 12:45:46 +02:00
Serhiy Storchaka 354d50ee37 Issue #17106: Fix a segmentation fault in io.TextIOWrapper when an underlying
stream or a decoder produces data of an unexpected type (i.e. when
io.TextIOWrapper initialized with text stream or use bytes-to-bytes codec).
2013-02-03 17:10:42 +02:00
Nadeem Vawda 1efd9824d8 Back out fix for issue #13886; it introduced a new bug in interactive readline use. 2013-02-02 20:52:54 +01:00
Raymond Hettinger 426453282c Issue 16398: Use memcpy() in deque.rotate(). 2013-02-02 10:23:37 -08:00
Gregory P. Smith a5df290e06 Update the embedded copy of the expat XML parser to 2.1.0. It brings
with it a vareity of bug fixes, both security and behavior.  See
http://www.libexpat.org/ for the list.

NOTE: I already backported the expat hash randomization fix in March.

Fixes issue #14340.
2012-07-14 14:12:35 -07:00
Gregory P. Smith a8a3468abe In the _hashlib module, only initialize the static data for OpenSSL's
constructors once, to avoid memory leaks when finalizing and re-initializing
the Python interpreter.
2013-02-01 17:00:14 -08:00
Gregory P. Smith a998ad0135 Additional fix for Issue #12268: The io module file object writelines() methods
no longer abort early when one of its write system calls is interrupted (EINTR).
2013-02-01 13:02:59 -08:00
Serhiy Storchaka 46f5b35bc0 Issue #17051: Fix a memory leak in os.path.isdir() on Windows. Patch by Robert Xiao. 2013-01-28 20:19:50 +02:00
Stefan Krah 6d3a8605a5 Issue #11729: Backport commit bff052d9 from libffi upstream in order to fix
a ctypes build failure with clang.
2013-01-27 18:00:24 +01:00
Nadeem Vawda 221508cdef Issue #13886: Fix input() to not strip out supposedly-invalid input bytes. 2013-01-27 14:21:26 +01:00
Ronald Oussoren 1c60c7ac4c Issue #1602133: 'environ' is not really available with shared libraries on OSX
There already was a workaround for this for framework builds on OSX,
this changeset enables the same workaround for shared libraries.

Closes #1602133
2013-01-25 17:55:39 +01:00
Serhiy Storchaka b09ec9b618 Issue #13454: Fix a crash when deleting an iterator created by itertools.tee()
if all other iterators were very advanced before.
2013-01-25 13:31:05 +02:00
Charles-François Natali a41cf29c0b Issue #16953: Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
2013-01-19 12:15:56 +01:00
Serhiy Storchaka 74f49ab28b Issue #15989: Fix several occurrences of integer overflow
when result of PyInt_AsLong() or PyLong_AsLong() narrowed
to int without checks.

This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:55:39 +02:00
Raymond Hettinger bca22096a1 Show the function signature in the docstring 2013-01-18 17:35:25 -08:00
Benjamin Peterson 08e153ae37 check windows fd validity (closes #16992) 2013-01-18 00:10:24 -05:00
Richard Oudkerk 90b5d9288d Issue #10527: Use poll() instead of select() for multiprocessing pipes 2013-01-14 23:09:14 +00:00
Benjamin Peterson 40056de9f5 make deque_clear void, since it's infallible 2013-01-12 21:22:18 -05:00
Raymond Hettinger 2cdb6435d6 Issue #16398: Optimize deque.rotate() 2013-01-12 00:05:00 -08:00
Benjamin Peterson 9dccb01703 use PyInt_FromSsize_t instead of PyLong_FromSsize_t (#10182) 2013-01-10 10:37:47 -06:00
Victor Stinner 23a32ba0e5 Issue #16367: Fix FileIO.readall() on Windows for files larger than 2 GB 2013-01-03 03:33:21 +01:00
Nadeem Vawda 895cc22b8b Issue #16828: Fix error incorrectly raised by bz2.compress('').
Patch by Martin Packman.
2013-01-02 22:59:51 +01:00
Benjamin Peterson 5ca88d2b18 get the core to compile --disable-unicode 2013-01-01 23:04:16 -06:00