Commit Graph

3646 Commits

Author SHA1 Message Date
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