Nadeem Vawda
acfdfdafa2
Fix typo in backporting fix of issue #16411 to 2.7.
14 years ago
Nadeem Vawda
3c30970d29
Issue #16411 : Fix a bug where zlib.decompressobj().flush() might try to access previously-freed memory.
Patch by Serhiy Storchaka.
14 years ago
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.
14 years ago
Nadeem Vawda
6cad3712b3
Issue #16350 : Fix zlib decompressor handling of unused_data with multiple calls to decompress() after EOF.
Patch by Serhiy Storchaka.
14 years ago
Antoine Pitrou
0552fc2b8a
Issue #16230 : Fix a crash in select.select() when one the lists changes size while iterated on.
Patch by Serhiy Storchaka.
14 years ago
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.
14 years ago
Andrew Svetlov
227f59b29c
Fix docstring for deque ctor to mark iterable parameter optional
14 years ago
Benjamin Peterson
6da3ed63d8
initialize more global type objects ( closes #16369 )
14 years ago
Petri Lehtinen
5c89c19eae
#14897 : Enhance error messages of struct.pack and struct.pack_into
Patch by Matti Mäki.
14 years ago
Nadeem Vawda
45dba1da32
Issue #14398 : Fix size truncation and overflow bugs in bz2 module.
14 years ago
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.
14 years ago
Jesus Cea
e884be67bd
Closes #15897 : zipimport.c doesn't check return value of fseek()
14 years ago
Senthil Kumaran
d41dc7ce46
2.7 : Issue #16013 : Fix CSV Reader parsing issue with ending quote characters. Patch by Serhiy Storchaka.
14 years ago
Christian Heimes
8112ea2360
Issue #16012 : Fix a regression in pyexpat. The parser's UseForeignDTD()
method doesn't require an argument again.
14 years ago
Ezio Melotti
ba372a59d1
#15796 : Fix \n in readline docstring.
14 years ago
Jesus Cea
8e03b4cae0
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete (fix 2)
14 years ago
Jesus Cea
20f0ea1f61
#15676 : mmap: add empty file check prior to offset check <- Previous patch was incomplete
14 years ago
Jesus Cea
3fb774ec5f
Closes #15910 : MD5 and SHA1 crash when "updated" with strings bigger than 2**32 bytes
14 years ago
Jesus Cea
03a9d2a20b
Closes #15908 : SHA1 crashes in 64 bits when the string to hash is bigger than 2**32 bytes
14 years ago
doko@ubuntu.com
8fa3be2bc8
- Mention _heapq in Setup.dist.
14 years ago
Jesus Cea
8b54d6d733
Closes #15676 : mmap: add empty file check prior to offset check
14 years ago
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.
14 years ago
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.
14 years ago
Ronald Oussoren
a00b100c9c
Fix issue 13370: Ensure that ctypes works on Mac OS X when Python is compiled using the clang compiler
14 years ago
Mark Dickinson
2de4be2efd
Add workaround for log1p(-0.0) on platforms where it's broken.
14 years ago
Antoine Pitrou
c5bef75c77
Issue #15604 : Update uses of PyObject_IsTrue() to check for and handle errors correctly.
Patch by Serhiy Storchaka.
14 years ago
Matthias Klose
c551776f8e
Modules/socketmodule.c: netdb_lock: define static.
14 years ago
Meador Inge
2d639d5665
Issue #15424 : Add a __sizeof__ implementation for array objects.
Patch by Ludwig Hähne.
14 years ago
Antoine Pitrou
76370f4977
Make TextIOWrapper's documentation clearer by copying the newline argument's description from open().
14 years ago
Jesus Cea
4fa7a5fc98
#15512 : Declarations reorganization
14 years ago
Jesus Cea
d4e58dc966
Closes #15469 : Correct __sizeof__ support for deque
14 years ago
Jesus Cea
3e3192d8f7
Closes #15512 : Correct __sizeof__ support for parser
14 years ago
Antoine Pitrou
1fa9f7b3d1
Issue #15538 : Fix compilation of the getnameinfo() / getaddrinfo() emulation code.
Patch by Philipp Hagemeister.
14 years ago
Antoine Pitrou
baee34c344
Issue #15489 : Add a __sizeof__ implementation for BytesIO objects.
Patch by Serhiy Storchaka.
14 years ago
Antoine Pitrou
bff5df0d1c
Issue #15487 : Add a __sizeof__ implementation for buffered I/O objects.
Patch by Serhiy Storchaka.
14 years ago
Meador Inge
6812346808
Issue #15402 : Simplify Struct.__sizeof__ and make tests more precise.
14 years ago
Meador Inge
87c5b94c39
Issue #15402 : Add a __sizeof__ method to struct.Struct.
Initial patch by Serhiy Storchaka.
14 years ago
Meador Inge
25be3f68e0
Issue #6493 : Fix handling of c_uint32 bitfields with width of 32 on Windows.
14 years ago
Antoine Pitrou
c2ec992698
Issue #15247 : FileIO now raises an error when given a file descriptor pointing to a directory.
14 years ago
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
14 years ago
Mark Dickinson
e0afb72402
Closes #14591 : Random.jumpahead could produce an invalid MT state on 64-bit machines.
14 years ago
Antoine Pitrou
d9a5137742
Issue #5067 : improve some json error messages.
Patch by Serhiy Storchaka.
14 years ago
Amaury Forgeot d'Arc
d958cc960f
Issue #15219 : Fix a reference leak when hashlib.new() is called with
invalid parameters.
14 years ago
Charles-François Natali
65dd745fec
Remove useless test (flowinfo is unsigned).
14 years ago
Hynek Schlawack
9bd4bf2a3d
#10053 : Don't close FDs when FileIO.__init__ fails
Loosely based on the work by Hirokazu Yamamoto.
14 years ago
Richard Oudkerk
926f58df57
Issue #10133 : Make multiprocessing deallocate buffer if socket read fails.
Patch by Hallvard B Furuseth.
14 years ago
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.
14 years ago
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.
14 years ago
Hynek Schlawack
877effc298
#4841 : Fix FileIO constructor to honor closefd when called repeatedly
Patch by Victor Stinner.
14 years ago
Antoine Pitrou
cd8799f077
Issue #14888 : Fix misbehaviour of the _md5 module when called on data larger than 2**32 bytes.
14 years ago