Serhiy Storchaka
e37003e9ae
Issue #19543 : Added Py3k warning for decoding unicode.
2015-12-03 20:47:48 +02:00
Serhiy Storchaka
ee1b24ccaa
Issue #24097 : Fixed crash in object.__reduce__() if slot name is freed inside
...
__getattr__. Original patch by Antoine Pitrou.
2015-11-25 18:35:33 +02:00
Serhiy Storchaka
8d30ad7c8a
Issue #24731 : Fixed crash on converting objects with special methods
...
__str__, __trunc__, and __float__ returning instances of subclasses of
str, long, and float to subclasses of str, long, and float correspondingly.
2015-11-25 15:55:54 +02:00
Serhiy Storchaka
6156560e4b
Issue #25678 : Copy buffer objects to null-terminated strings.
...
Avoid buffer overreads when int(), long(), float(), and compile()
are passed buffer objects. Similar code is removed from the
complex() constructor, where it was not reachable.
Patch backported from issue #24802 by Eryk Sun.
2015-11-20 21:56:21 +02:00
Serhiy Storchaka
fedcf9474e
Issue #22995 : Default implementation of __reduce__ and __reduce_ex__ now
...
rejects builtin types with not defined __new__.
2015-11-12 11:59:03 +02:00
Victor Stinner
e192d0bbb9
Issue #7267 : format(int, 'c') now raises OverflowError when the argument is not
...
in range(0, 256).
2015-11-09 12:21:09 +01:00
Serhiy Storchaka
462502b084
Issue #24848 : Fixed yet one bug in UTF-7 decoder. Testing for BASE64 character
...
was locale depending.
2015-10-10 09:33:11 +03:00
Raymond Hettinger
9c90e255e0
Issue #25326 : Improve an obscure error message.
2015-10-08 21:14:15 -04:00
Benjamin Peterson
77d12ecaad
prevent unacceptable bases from becoming bases through multiple inheritance ( #24806 )
2015-10-06 19:36:54 -07:00
Serhiy Storchaka
e12f632186
Issue #24848 : Fixed bugs in UTF-7 decoding of misformed data:
...
1. Non-ASCII bytes were accepted after shift sequence.
2. A low surrogate could be emitted in case of error in high surrogate.
2015-10-02 13:14:53 +03:00
Benjamin Peterson
1edd2f6241
make comment not lie about the size of SMALL_REQUEST_THRESHOLD
2015-07-29 22:18:16 -07:00
Serhiy Storchaka
ab766350b6
Issue #24467 : Fixed possible buffer over-read in bytearray. The bytearray
...
object now always allocates place for trailing null byte and it's buffer now
is always null-terminated.
2015-06-29 21:13:54 +03:00
Serhiy Storchaka
f0aa88f6e8
Fixed indentation of Python examples in C comments.
2015-06-11 00:06:27 +03:00
Serhiy Storchaka
c7797dc748
Issue #19543 : Emit deprecation warning for known non-text encodings.
...
Backported issues #19619 : encode() and decode() methods and constructors
of str, unicode and bytearray classes now emit deprecation warning for known
non-text encodings when Python is ran with the -3 option.
Backported issues #20404 : io.TextIOWrapper (and hence io.open()) now uses the
internal codec marking system added to emit deprecation warning for known non-text
encodings at stream construction time when Python is ran with the -3 option.
2015-05-31 20:21:00 +03:00
Serhiy Storchaka
5127ed727c
Issue #24115 : Update uses of PyObject_IsTrue(), PyObject_Not(),
...
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
2015-05-30 17:45:12 +03:00
Serhiy Storchaka
d43e928753
Issue #23985 : Fixed integer overflow in iterator object. Original patch by
...
Clement Rouault.
2015-05-21 20:49:34 +03:00
Raymond Hettinger
51dbc9a4ad
Issue #23757 : Only call the concrete list API for exact lists.
2015-05-17 14:37:39 -07:00
Raymond Hettinger
77b3ae5e2c
Issue #23971 : Fix underestimated presizing in dict.fromkeys()
2015-05-13 03:13:28 -07:00
Benjamin Peterson
b529c24921
allow 2.7 to be built with asan ( closes #24061 )
2015-04-26 20:33:38 -04:00
Serhiy Storchaka
07e03ab9f9
Issue #23783 : Fixed memory leak in PyObject_ClearWeakRefs() in case of
...
MemoryError.
2015-03-30 09:53:06 +03:00
Serhiy Storchaka
ce16424b0b
Issue #22079 : Py3k warning now is issued in PyType_Ready() instead of
...
raising TypeError when statically allocated type subclasses dynamically
allocated type
2015-03-22 09:45:35 +02:00
Antoine Pitrou
323ab6d732
Issue #23629 : Fix the default __sizeof__ implementation for variable-sized objects.
2015-03-10 22:32:00 +01:00
Benjamin Peterson
f050648a50
fix potential refleak in PyFloat_AsDouble ( closes #23590 )
2015-03-06 09:08:44 -05:00
Benjamin Peterson
082a960425
fix merge_collapse to actually maintain the invariant it purports to ( closes #23515 )
...
See
de Gouw, Stijn and Rot, Jurriaan and de Boer, Frank S and Bubel, Richard and Hähnle, Reiner
"OpenJDK’s java.utils.Collection.sort() is broken: The good, the bad and the worst case"
2015-02-25 10:12:26 -05:00
Stefan Krah
0a7fc53be2
Issue #23370 : Fix off-by-one error for non-contiguous buffers.
2015-02-01 16:10:35 +01:00
Serhiy Storchaka
227526dc5c
Issue #23055 : Fixed read-past-the-end error in PyUnicode_FromFormatV.
2015-01-31 01:15:29 +02:00
Serhiy Storchaka
5ec0bbf27d
Issue #23055 : Fixed off-by-one error in PyUnicode_FromFormatV.
2015-01-30 23:35:03 +02:00
Stefan Krah
5606cd9800
Issue #23349 : Fix off-by-one error in PyBuffer_ToContiguous(). Initial patch
...
by Richard Hansen.
2015-01-30 20:11:10 +01:00
Serhiy Storchaka
4c54387f11
Issue #22079 : PyType_Ready() now checks that statically allocated type has
...
no dynamically allocated bases.
2015-01-28 10:52:49 +02:00
Serhiy Storchaka
0e0282eb14
Issue #23055 : Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
...
and fix by Guido Vranken.
2015-01-27 22:17:56 +02:00
Serhiy Storchaka
e8c9e14af9
Issue #23181 : More "codepoint" -> "code point".
2015-01-18 11:42:50 +02:00
Benjamin Peterson
e2defc4132
remove tautological condition ( closes #22954 )
2014-11-26 23:03:11 -06:00
Benjamin Peterson
c6b6ab0caa
remove strange casts
2014-11-23 12:58:54 -06:00
Georg Brandl
409062c669
Closes #22772 : fix __ifloordiv__ and __itruediv__ docstring.
2014-10-31 13:12:57 +01:00
Antoine Pitrou
d0a5e9bb4a
Issue #22604 : Fix assertion error in debug mode when dividing a complex number by (nan+0j).
2014-10-10 23:49:32 +02:00
Benjamin Peterson
95bc0e4703
use Py_ssize_t for file offset and length computations in iteration ( closes #22526 )
2014-09-30 21:17:15 -04:00
Benjamin Peterson
f8c4b3a730
fix overflow checking in PyString_Repr ( closes #22519 )
2014-09-29 19:01:18 -04:00
Benjamin Peterson
ed4c130d3d
cleanup overflowing handling in unicode_decode_call_errorhandler and unicode_encode_ucs1 ( closes #22518 )
2014-09-29 18:18:57 -04:00
Benjamin Peterson
1643d5cb08
give exception a nice message ( closes #22379 )
...
Patch by Yongzhi Pan.
2014-09-28 12:48:46 -04:00
Raymond Hettinger
9376c8b5e3
Fix typo in comment.
2014-08-01 23:51:51 -07:00
Victor Stinner
2af8d2f698
Issue #22023 : Fix %S, %R and %V formats of PyUnicode_FromFormat().
2014-07-30 00:39:05 +02:00
Benjamin Peterson
df71dcbef2
don't overwrite the error from PyObject_GetAttrString ( closes #4346 )
2014-06-26 23:27:41 -07:00
Benjamin Peterson
550b945fd6
avoid overflow with large buffer sizes and/or offsets ( closes #21831 )
2014-06-23 20:12:27 -07:00
Charles-François Natali
e4cda6ce21
Merge.
2014-06-19 22:45:09 +01:00
Charles-François Natali
cee4f03438
Issue #21810 : Backport mmap-based arena allocation failure check.
2014-06-19 22:42:51 +01:00
Raymond Hettinger
f643b9a9c7
Issue 8743: Improve interoperability between sets and the collections.Set abstract base class.
2014-05-25 22:13:41 -07:00
Antoine Pitrou
b0acc1b0a3
Issue #21350 : Fix file.writelines() to accept arbitrary buffer objects, as advertised.
...
Patch by Brian Kearns.
2014-05-08 19:26:04 +02:00
Kristján Valur Jónsson
be580f2e48
Issue #20434 Correct error handlin of _PyString_Resize and _PyBytes_Resize
2014-04-25 09:51:21 +00:00
Eric V. Smith
9a55cd8857
Issue #12546 : Allow \x00 as a fill character for builtin type __format__ methods.
2014-04-14 11:22:33 -04:00
Benjamin Peterson
c4e6e0a279
bail in unicode error's __str__ methods if the objects are not properly initialized ( closes #21134 )
2014-04-02 12:15:06 -04:00