Antoine Pitrou
1e18102a72
Issue #17928 : Fix test_structmembers on 64-bit big-endian machines.
...
(_testcapi isn't Py_ssize_t-clean, the "s#" code should use an int for length)
2013-05-08 02:07:13 +02:00
Antoine Pitrou
38f1afe8d1
Issue #17926 : Fix dbm.__contains__ on 64-bit big-endian machines.
2013-05-08 01:51:37 +02:00
Antoine Pitrou
31bc8bef63
Issue #17289 : The readline module now plays nicer with external modules or applications changing the rl_completer_word_break_characters global variable.
...
Initial patch by Bradley Froehle.
2013-05-06 21:51:03 +02:00
Charles-Francois Natali
880359c2bd
Issue #12181 : select module: Fix struct kevent definition on OpenBSD 64-bit
...
platforms. Patch by Federico Schwindt.
2013-05-06 21:21:57 +02:00
Antoine Pitrou
d8931c375a
Issue #14173 : Avoid crashing when reading a signal handler during interpreter shutdown.
2013-05-04 23:16:59 +02:00
Gregory P. Smith
06544eacdf
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)
2013-04-30 00:08:51 -07:00
Serhiy Storchaka
8493a04e0f
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.
This bug was already fixed in issue14572 for 2.7 only and then it was
backported back from 3.3 in issue17073.
2013-04-28 14:09:47 +03:00
Antoine Pitrou
be92971b38
Issue #17710 : Fix cPickle raising a SystemError on bogus input.
2013-04-15 21:35:25 +02:00
Serhiy Storchaka
616f2fe28c
Issue #17016 : Get rid of possible pointer wraparounds and integer overflows
...
in the re module. Patch by Nickolai Zeldovich.
2013-04-13 21:15:10 +03:00
doko@ubuntu.com
5ef41abc7c
- Issue #17682 : Add the _io module to Modules/Setup.dist (commented out).
2013-04-09 17:34:39 +02:00
doko@ubuntu.com
6cb4343d0d
- Issue #13150 , #17512 : sysconfig no longer parses the Makefile and config.h
...
files when imported, instead doing it at build time. This makes importing
sysconfig faster and reduces Python startup time by 20%.
2013-04-08 21:20:09 +02:00
Kristjan Valur Jonsson
7e360b3963
Issue #17662 : fix socketmodule compilation with Setup.dist.
...
Patch contributed by Bohuslav "Slavek" Kabrda (bkabrda)
2013-04-08 16:03:30 +00:00
Serhiy Storchaka
6c467a41bc
Revert a premature patch for issue #14010 (changeset d17d10c84d27).
2013-04-06 22:51:29 +03:00
Serhiy Storchaka
bb84565cdb
Issue #14010 : Fix a crash when iterating or deleting deeply nested filters
...
in itertools module (i.e. itertools.izip(), itertools.chain(), etc).
2013-04-06 22:04:10 +03:00
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
Richard Oudkerk
7450a81970
Issue #9586 : Redefine SEM_FAILED on MacOSX to keep compiler happy.
2013-01-01 17:25:09 +00:00
Andrew Svetlov
c08ded9e4a
rename MathcObject to match object in doctrings for re module ( #16760 )
2012-12-25 18:50:03 +02:00
Andrew Svetlov
1c6c90fc73
Issue #16443 : Add docstrings to regular expression match objects.
...
Patch by Anton Kasyanov.
2012-12-23 20:09:01 +02:00
Kristjan Valur Jonsson
ed512a4d09
ctypes: DECREF error_object _after_ re-acquiring GIL
2012-12-21 10:32:57 +00:00
Petri Lehtinen
ab7dd183f3
#8853 : Allow port to be of type long for socket.getaddrinfo()
2012-12-20 21:09:56 +02:00
Benjamin Peterson
a2d6d7121e
call close on the underlying stream even if flush raises ( #16597 )
2012-12-20 12:24:10 -06:00
Andrew Svetlov
4bb142b1b7
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:27:37 +02:00
Benjamin Peterson
b41524dde3
remove dead code
2012-12-15 15:43:58 -05:00
Ezio Melotti
67c563e2f1
#16681 : use "bidirectional class" instead of "bidirectional category" in the docstring too.
2012-12-14 20:12:25 +02:00
Gregory P. Smith
64ab35e11d
1 << 31 is invalid for signed integers, fix it by making 1 unsigned.
...
Found by Clang trunk's Undefined-Behavior Sanitizer. [more to come]
2012-12-10 17:45:54 -08:00
Antoine Pitrou
8eeda72742
Issue #16628 : Fix a memory leak in ctypes.resize().
2012-12-08 11:05:50 +01:00
Antoine Pitrou
b83575b0a5
Issue #10182 : The re module doesn't truncate indices to 32 bits anymore.
...
Patch by Serhiy Storchaka.
2012-12-02 12:52:36 +01:00
Gregory P. Smith
0d68ab3f48
Plug a leak in timemodule. The module dictionary is saved during
...
initialization. If the interpreter is shut down and reinitialized (embedded
CPython), the old module dictionary was not dec-refed during the next import of
the time extension module.
Contributed by Torsten Marek of Google.
2012-11-27 10:19:29 -08:00
Ezio Melotti
ec6486d52d
#16306 : report only the first unknown option and add more tests. Patch by Serhiy Storchaka.
2012-11-23 18:46:11 +02:00
Antoine Pitrou
b83ea144cc
Issue #1160 : Fix compiling large regular expressions on UCS2 builds.
...
Patch by Serhiy Storchaka.
2012-11-20 22:30:42 +01:00
Nadeem Vawda
99f9b8df98
Issue #15677 : Also fix docstrings in zlib module.
2012-11-11 14:01:23 +01:00
Gregory P. Smith
c1ce93a4ab
Fixes issue #9535 : Fix pending signals that have been received but not yet
...
handled by Python to not persist after os.fork() in the child process.
2012-11-10 20:38:17 -08:00
Nadeem Vawda
acfdfdafa2
Fix typo in backporting fix of issue #16411 to 2.7.
2012-11-11 03:28:21 +01:00
Nadeem Vawda
3c30970d29
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
...
Patch by Serhiy Storchaka.
2012-11-11 03:14:56 +01:00
Nadeem Vawda
252f4dc6c9
Issue #16350 , part 2: Set unused_data (and unconsumed_tail) correctly in decompressobj().flush().
...
Additionally, fix a bug where a MemoryError in allocating a bytes object could
leave the decompressor object in an invalid state (with its unconsumed_tail
member being NULL).
Patch by Serhiy Storchaka.
2012-11-11 02:14:15 +01:00
Nadeem Vawda
6cad3712b3
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
...
Patch by Serhiy Storchaka.
2012-11-05 00:55:06 +01:00
Antoine Pitrou
0552fc2b8a
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
...
Patch by Serhiy Storchaka.
2012-11-01 20:13:54 +01:00
Antoine Pitrou
e9e35c3f6b
Issue #16228 : Fix a crash in the json module where a list changes size while it is being encoded.
...
Patch by Serhiy Storchaka.
2012-11-01 20:07:40 +01:00
Andrew Svetlov
227f59b29c
Fix docstring for deque ctor to mark iterable parameter optional
2012-10-31 11:50:00 +02:00
Benjamin Peterson
6da3ed63d8
initialize more global type objects ( closes #16369 )
2012-10-30 23:21:10 -04:00
Petri Lehtinen
5c89c19eae
#14897 : Enhance error messages of struct.pack and struct.pack_into
...
Patch by Matti Mäki.
2012-10-29 21:20:19 +02:00
Nadeem Vawda
45dba1da32
Issue #14398 : Fix size truncation and overflow bugs in bz2 module.
2012-10-21 23:09:08 +02:00
Gregory P. Smith
99716166b1
Fixes Issue #12268 for the io module - File readline, readlines and
...
read or readall methods no longer lose data when an underlying read
system call is interrupted within an io module object. IOError is no
longer raised due to a read system call returning EINTR from within
these methods.
This is a backport of changeset 781b95159954 from 3.2.
The earlier 2.7 changeset 67dc99a989cd already fixed this for the
builtin python 2.x file object.
2012-10-12 13:02:06 -07:00
Jesus Cea
e884be67bd
Closes #15897 : zipimport.c doesn't check return value of fseek()
2012-10-03 02:13:05 +02:00
Senthil Kumaran
d41dc7ce46
2.7 : Issue #16013 : Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka.
2012-09-25 02:48:21 -07:00
Christian Heimes
8112ea2360
Issue #16012 : Fix a regression in pyexpat. The parser's UseForeignDTD()
...
method doesn't require an argument again.
2012-09-24 13:17:08 +02:00
Ezio Melotti
ba372a59d1
#15796 : Fix \n in readline docstring.
2012-09-18 07:17:49 +03:00
Jesus Cea
8e03b4cae0
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
2012-09-10 22:57:34 +02:00
Jesus Cea
20f0ea1f61
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete
2012-09-10 22:45:47 +02:00
Jesus Cea
3fb774ec5f
Closes #15910 : MD5 and SHA1 crash when "updated" with strings bigger than 2**32 bytes
2012-09-10 21:39:07 +02:00
Jesus Cea
03a9d2a20b
Closes #15908 : SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes
2012-09-10 21:04:42 +02:00
doko@ubuntu.com
8fa3be2bc8
- Mention _heapq in Setup.dist.
2012-09-10 11:56:47 +02:00
Jesus Cea
8b54d6d733
Closes #15676 : mmap: add empty file check prior to offset check
2012-09-10 00:22:39 +02:00
Antoine Pitrou
c5eec0e387
Issue #15841 : The readable(), writable() and seekable() methods of io.BytesIO
...
and io.StringIO objects now raise ValueError when the object has been closed.
Patch by Alessandro Moura.
2012-09-05 20:11:49 +02:00
Trent Nelson
da4277a739
Issue #15765 : Fix quirky NetBSD getcwd() behaviour.
...
This is done by extending a previous fix for issue #9185 that was made for
Solaris and OpenBSD to NetBSD as well.
2012-08-29 09:20:41 -04:00
Ronald Oussoren
a00b100c9c
Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler
2012-08-25 11:18:48 +02:00
Mark Dickinson
2de4be2efd
Add workaround for log1p(-0.0) on platforms where it's broken.
2012-08-18 12:31:34 +01:00
Antoine Pitrou
c5bef75c77
Issue #15604 : Update uses of PyObject_IsTrue() to check for and handle errors correctly.
...
Patch by Serhiy Storchaka.
2012-08-15 23:16:51 +02:00
Matthias Klose
c551776f8e
Modules/socketmodule.c: netdb_lock: define static.
2012-08-14 17:24:47 +02:00
Meador Inge
2d639d5665
Issue #15424 : Add a __sizeof__ implementation for array objects.
...
Patch by Ludwig Hähne.
2012-08-10 22:05:45 -05:00
Antoine Pitrou
76370f4977
Make TextIOWrapper's documentation clearer by copying the newline argument's description from open().
2012-08-04 00:55:38 +02:00
Jesus Cea
4fa7a5fc98
#15512 : Declarations reorganization
2012-08-03 15:51:11 +02:00
Jesus Cea
d4e58dc966
Closes #15469 : Correct __sizeof__ support for deque
2012-08-03 14:48:23 +02:00
Jesus Cea
3e3192d8f7
Closes #15512 : Correct __sizeof__ support for parser
2012-08-03 14:25:53 +02:00
Antoine Pitrou
1fa9f7b3d1
Issue #15538 : Fix compilation of the getnameinfo() / getaddrinfo() emulation code.
...
Patch by Philipp Hagemeister.
2012-08-02 20:37:12 +02:00
Antoine Pitrou
baee34c344
Issue #15489 : Add a __sizeof__ implementation for BytesIO objects.
...
Patch by Serhiy Storchaka.
2012-07-30 00:01:06 +02:00
Antoine Pitrou
bff5df0d1c
Issue #15487 : Add a __sizeof__ implementation for buffered I/O objects.
...
Patch by Serhiy Storchaka.
2012-07-29 19:02:46 +02:00
Meador Inge
6812346808
Issue #15402 : Simplify Struct.__sizeof__ and make tests more precise.
2012-07-28 21:58:44 -05:00
Meador Inge
87c5b94c39
Issue #15402 : Add a __sizeof__ method to struct.Struct.
...
Initial patch by Serhiy Storchaka.
2012-07-23 09:27:00 -05:00
Meador Inge
25be3f68e0
Issue #6493 : Fix handling of c_uint32 bitfields with width of 32 on Windows.
2012-07-18 23:51:05 -05:00
Antoine Pitrou
c2ec992698
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
2012-07-06 18:48:24 +02:00
Senthil Kumaran
3b30b19e0a
Fix closes issue # 15033 - Return the proper exitcode for failure when modules are invoked using -m switch. Patch contributed by Jeff Knupp
2012-07-04 19:50:29 -07:00
Mark Dickinson
e0afb72402
Closes #14591 : Random.jumpahead could produce an invalid MT state on 64-bit machines.
2012-06-30 17:19:35 +01:00
Antoine Pitrou
d9a5137742
Issue #5067 : improve some json error messages.
...
Patch by Serhiy Storchaka.
2012-06-29 01:58:26 +02:00
Amaury Forgeot d'Arc
d958cc960f
Issue #15219 : Fix a reference leak when hashlib.new() is called with
...
invalid parameters.
2012-06-29 01:42:46 +02:00
Charles-François Natali
65dd745fec
Remove useless test (flowinfo is unsigned).
2012-06-23 10:06:56 +02:00
Hynek Schlawack
9bd4bf2a3d
#10053 : Don't close FDs when FileIO.__init__ fails
...
Loosely based on the work by Hirokazu Yamamoto.
2012-06-21 19:45:19 +02:00
Richard Oudkerk
926f58df57
Issue #10133 : Make multiprocessing deallocate buffer if socket read fails.
...
Patch by Hallvard B Furuseth.
2012-06-11 15:11:35 +01:00
Antoine Pitrou
ff0e22b6ec
Issue #14775 : Fix a potential quadratic dict build-up due to the garbage collector repeatedly trying to untrack dicts.
...
Additional comments by Tim Silk.
2012-05-28 22:22:34 +02:00
Meador Inge
fe7aa49f24
Issue #9041 : raised exception is misleading
...
An issue in ctypes.c_longdouble, ctypes.c_double, and ctypes.c_float that
caused an incorrect exception to be returned in the case of overflow has been
fixed.
2012-05-28 13:52:59 -05:00
Hynek Schlawack
877effc298
#4841 : Fix FileIO constructor to honor closefd when called repeatedly
...
Patch by Victor Stinner.
2012-05-25 09:24:18 +02:00
Antoine Pitrou
cd8799f077
Issue #14888 : Fix misbehaviour of the _md5 module when called on data larger than 2**32 bytes.
2012-05-23 23:16:14 +02:00
Ned Deily
77e77a1273
Issue #14572 : Prevent build failures with pre-3.5.0 versions of
...
sqlite3, such as was shipped with Centos 5 and Mac OS X 10.4.
2012-05-19 23:35:05 -07:00
Antoine Pitrou
38fbd799d1
Issue #14829 : Fix bisect issues under 64-bit Windows.
2012-05-16 15:01:40 +02:00
Ned Deily
acdc56d0d0
Issue #14662 : Prevent shutil failures on OS X when destination does not
...
support chflag operations. (Patch by Hynek Schlawack)
2012-05-10 17:45:49 -07:00
Richard Oudkerk
9a16fa69dd
Fix for issue 14725 for 2.7 branch
2012-05-05 20:41:08 +01:00
Raymond Hettinger
a68bdc720a
Improve docstring
2012-04-27 00:20:39 -07:00
Mark Dickinson
92678105c5
Remove accidentally-committed debugging code.
2012-04-15 16:45:31 +01:00
Mark Dickinson
0407e96061
Issue 13496: Fix bisect.bisect overflow bug for large collections.
2012-04-15 16:43:19 +01:00
Benjamin Peterson
f235989e0c
protect this call, too
2012-04-02 11:18:18 -04:00
Benjamin Peterson
f73813a8bb
prevent writing to stderr from messing up the exception state ( closes #14474 )
2012-04-02 11:15:17 -04:00
Antoine Pitrou
4b536d4771
Issue #14437 : Fix building the _io module under Cygwin.
2012-03-31 23:53:07 +02:00
Gregory P. Smith
c10f5c2828
Fixes Issue 14234: fix for the previous commit, keep compilation when
...
using --with-system-expat working when the system expat does not have
salted hash support.
2012-03-14 18:12:23 -07:00
Barry Warsaw
e9bc2f773f
- Issue #14234 : CVE-2012-0876: Randomize hashes of xml attributes in the hash
...
table internal to the pyexpat module's copy of the expat library to avoid a
denial of service due to hash collisions. Patch by David Malcolm with some
modifications by the expat project.
2012-03-14 17:10:41 -07:00
Gregory P. Smith
c8ff46032f
Fixes Issue #14234 : CVE-2012-0876: Randomize hashes of xml attributes
...
in the hash table internal to the pyexpat module's copy of the expat
library to avoid a denial of service due to hash collisions.
Patch by David Malcolm with some modifications by the expat project.
2012-03-14 15:28:10 -07:00
Georg Brandl
3aec568e6e
Remove reST markup from --help output. Also: O(n**2) is dict construction, not single insertion.
2012-02-21 22:36:27 +01:00
Benjamin Peterson
4e171d12da
don't need this hack anymore
2012-02-21 15:08:51 -05:00
Antoine Pitrou
776af4002b
Fix crash at startup with -W options.
2012-02-21 20:42:48 +01:00
Barry Warsaw
8757cad394
Backport fix from default branch for ./python -R -Wd where hash('d') would not
...
have gotten randomized.
2012-02-21 11:16:06 -05:00
Barry Warsaw
1e13eb084f
- Issue #13703 : oCERT-2011-003: add -R command-line option and PYTHONHASHSEED
...
environment variable, to provide an opt-in way to protect against denial of
service attacks due to hash collisions within the dict and set types. Patch
by David Malcolm, based on work by Victor Stinner.
2012-02-20 20:42:21 -05:00
Antoine Pitrou
d358e0554b
Issue #13885 : CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.
2012-01-27 09:42:45 +01:00