Benjamin Peterson
49991deb6e
fix poor spelling
12 years ago
Benjamin Peterson
6ef2b36afa
disallow a negative idx parameter
12 years ago
Benjamin Peterson
99b5afab74
in scan_once, prevent the reading of arbitrary memory when passed a negative index
Bug reported by Guido Vranken.
12 years ago
Benjamin Peterson
fbf648ebba
complain when nbytes > buflen to fix possible buffer overflow ( closes #20246 )
12 years ago
Serhiy Storchaka
a9217a42e6
Issue #17857 : Prevent build failures with pre-3.5.0 versions of sqlite3,
such as was shipped with Centos 5 and Mac OS X 10.4.
13 years ago
Gregory P. Smith
910bfb7beb
This local change was lost during the fixing of issue17192 to update
libffi to 3.0.13. (i'm not sure if it is needed anymore but see
issue 10309 for details which makes no mention of upstream; this
change is already in 3.3 and 3.4 but may need reapplying to 2.7
as done here)
13 years ago
Gregory P. Smith
933059710c
* Fix issue 17192 for 3.2 - reapply the issue11729 patch that was undone
in the merge fun from upstream which already had it in 3.0.13.
* Add the missing update to libffi.info.
13 years ago
Kristján Valur Jónsson
5aed330e37
Issue #10296 : Don't handle BreakPoint exceptions using
Structured Exception Handling on windows.
13 years ago
R David Murray
f5d7cc239e
#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.
13 years ago
Gregory P. Smith
029273fc90
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.
13 years ago
Terry Jan Reedy
0158af38b7
Issue #17047 : remove doubled words found in 2.7 to 3.4 Modules/*,
as reported by Serhiy Storchaka and Matthew Barnett.
13 years ago
Antoine Pitrou
44d5214927
Issue #17278 : Fix a crash in heapq.heappush() and heapq.heappop() when the list is being resized concurrently.
13 years ago
R David Murray
67bfe80758
#17275 : Fix class name in init errors in C bufferedio classes.
This fixes an apparent copy-and-paste error.
Patch by Manuel Jacob.
13 years ago
Serhiy Storchaka
59f5dee3d6
Issue #13153 : Tkinter functions now raise TclError instead of ValueError when
a string argument contains non-BMP character.
13 years ago
Serhiy Storchaka
fa46816915
Issue #9669 : Protect re against infinite loops on zero-width matching in
non-greedy repeat. Patch by Matthew Barnett.
13 years ago
Serhiy Storchaka
70ca0210e8
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).
13 years ago
Richard Oudkerk
0d09ba8e0b
Issue #16743 : Fix mmap overflow check on 32 bit Windows
13 years ago
Serhiy Storchaka
e4ad8aacd1
Issue #4591 : Uid and gid values larger than 2**31 are supported now.
13 years ago
Antoine Pitrou
4de7457009
Issue #17173 : Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter.
I've left a couple of them in: zlib (third-party lib), getaddrinfo.c
(doesn't include Python.h, and probably obsolete), _sre.c (legitimate
use for the re.LOCALE flag).
13 years ago
Serhiy Storchaka
01ad622a2c
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.
13 years ago
Serhiy Storchaka
3cf96ac248
Issue #17073 : Fix some integer overflows in sqlite3 module.
13 years ago
Serhiy Storchaka
43536e9e37
Issue #17089 : Expat parser now correctly works with string input not only when
an internal XML encoding is UTF-8 or US-ASCII. It now accepts bytes and
strings larger than 2 GiB.
13 years ago
R David Murray
95b7110a11
#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.
13 years ago
Serhiy Storchaka
19c4e0df29
Issue #6083 : Fix multiple segmentation faults occured when PyArg_ParseTuple
parses nested mutating sequence.
13 years ago
Kristjan Valur Jonsson
9946bd69fa
Don't DECREF the ctypes error_object without the GIL held.
13 years ago
Gregory P. Smith
64359d203e
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 .
14 years ago
Serhiy Storchaka
94dc6736bd
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).
13 years ago
Nadeem Vawda
6375257188
Back out fix for issue #13886 ; it introduced a new bug in interactive readline use.
13 years ago
Gregory P. Smith
aded2e5e59
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.
13 years ago
Gregory P. Smith
b9817b01ed
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).
13 years ago
Nadeem Vawda
6f02ea02c8
Issue #13886 : Fix input() to not strip out supposedly-invalid input bytes.
Also fix sporadic failures in test_builtin due to dependence on whether the
readline module has previously been imported.
13 years ago
Ronald Oussoren
697e56d0f5
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
13 years ago
Serhiy Storchaka
e7e9c32195
Clean trailing whitespace in itertoolsmodule.c.
13 years ago
Serhiy Storchaka
a3e9128aba
Issue #13454 : Fix a crash when deleting an iterator created by itertools.tee()
if all other iterators were very advanced before.
13 years ago
Charles-François Natali
986a56cefe
Issue #16953 : Fix socket module compilation on platforms with HAVE_BROKEN_POLL.
Patch by Jeffrey Armstrong.
13 years ago
Serhiy Storchaka
441d30fac7
Issue #15989 : Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.
This is a backport of changesets 13e2e44db99d and 525407d89277.
13 years ago
Richard Oudkerk
ad1d5f908a
Issue #10527 : Use poll() instead of select() for multiprocessing pipes
13 years ago
Eli Bendersky
b09b167419
Issue #16922 : fixed findtext() to return empty Unicode string instead of empty bytes object when there's no text.
Patch by Serhiy Storchaka.
13 years ago
Victor Stinner
c44057dfbd
Issue #16367 : Fix FileIO.readall() on Windows for files larger than 2 GB
13 years ago
Nadeem Vawda
638fb9bbed
Issue #16828 : Fix error incorrectly raised by bz2.compress('').
Patch by Martin Packman.
13 years ago
Victor Stinner
e4110dc11f
Issue #9644 : Fix the encoding used by os.statvfs(): use the filesystem encoding
with the surrogateescape error handler, instead of UTF-8 in strict mode.
13 years ago
Richard Oudkerk
9866231eab
Issue #9586 : Redefine SEM_FAILED on MacOSX to keep compiler happy.
13 years ago
Andrew Svetlov
c08ded9e4a
rename MathcObject to match object in doctrings for re module ( #16760 )
13 years ago
Andrew Svetlov
0b64c1415e
rename MathcObject to match object in doctrings for re module ( #16760 )
13 years ago
Andrew Svetlov
1c6c90fc73
Issue #16443 : Add docstrings to regular expression match objects.
Patch by Anton Kasyanov.
13 years ago
Andrew Svetlov
56ad5ed5ad
Issue #16443 : Add docstrings to regular expression match objects.
Patch by Anton Kasyanov.
13 years ago
Kristjan Valur Jonsson
ed512a4d09
ctypes: DECREF error_object _after_ re-acquiring GIL
13 years ago
Petri Lehtinen
ab7dd183f3
#8853 : Allow port to be of type long for socket.getaddrinfo()
13 years ago
Benjamin Peterson
a2d6d7121e
call close on the underlying stream even if flush raises ( #16597 )
13 years ago
Andrew Svetlov
4bb142b1b7
Issue #16714 : use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
13 years ago