Zachary Ware
79b98df023
Issue #21279 : Flesh out str.translate docs
Initial patch by Kinga Farkas, Martin Panter, and John Posner.
11 years ago
Benjamin Peterson
a82f77fb00
protect against mutation of the dict during insertion ( closes #24407 )
11 years ago
Serhiy Storchaka
7b6e3b91f5
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.
11 years ago
Serhiy Storchaka
d741a88049
Fixed indentation of Python examples in C comments.
11 years ago
Benjamin Peterson
0823ffb2fb
properly handle malloc failure ( closes #24044 )
Patch by Christian Heimes.
11 years ago
Serhiy Storchaka
fa494fd883
Issue #24115 : Update uses of PyObject_IsTrue(), PyObject_Not(),
PyObject_IsInstance(), PyObject_RichCompareBool() and _PyDict_Contains()
to check for and handle errors correctly.
11 years ago
Serhiy Storchaka
08d230a540
Issue #24257 : Fixed incorrect uses of PyObject_IsInstance().
Fixed segmentation fault in sqlite3.Row constructor with faked cursor type.
Fixed system error in the comparison of faked types.SimpleNamespace.
11 years ago
Serhiy Storchaka
4faf5c5655
Issue #23985 : Fixed integer overflow in iterator object. Patch by
Clement Rouault.
11 years ago
Antoine Pitrou
f6d1f1fa8a
Fix some compilation warnings when using gcc (-Wmaybe-uninitialized).
11 years ago
Antoine Pitrou
2545411e28
Issue #23985 : Fix a possible buffer overrun when deleting a slice from the front of a bytearray and then appending some other bytes data.
Patch by Martin Panter.
11 years ago
Serhiy Storchaka
7e29eea926
Fixed typos in comments.
11 years ago
Raymond Hettinger
610a51f364
Issue #23757 : Only call the concrete list API for exact lists.
11 years ago
Andrew Svetlov
9df36c9456
Issue #21354 : PyCFunction_New function is exposed by python DLL again.
11 years ago
Antoine Pitrou
7403e91630
Issue #23996 : Avoid a crash when a delegated generator raises an unnormalized StopIteration exception. Patch by Stefan Behnel.
11 years ago
Benjamin Peterson
ac22c6b923
improved range docstring ( closes #22785 )
Patch by Ned Batchelder.
11 years ago
Serhiy Storchaka
4aa867959f
Issue #23783 : Fixed memory leak in PyObject_ClearWeakRefs() in case of
MemoryError.
11 years ago
Serhiy Storchaka
48070c1248
Issue #23803 : Fixed str.partition() and str.rpartition() when a separator
is wider then partitioned string.
11 years ago
Serhiy Storchaka
d357b89f0b
Issue #22079 : Deprecation warning now is issued in PyType_Ready() instead of
raising TypeError when statically allocated type subclasses dynamically
allocated type
11 years ago
Antoine Pitrou
a654510150
Issue #23629 : Fix the default __sizeof__ implementation for variable-sized objects.
11 years ago
Benjamin Peterson
a915723dc7
fix potential refleak in PyFloat_AsDouble ( closes #23590 )
11 years ago
Benjamin Peterson
e5a853c390
use PyMem_NEW to detect overflow ( closes #23362 )
11 years ago
Benjamin Peterson
b808d590a2
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"
11 years ago
Serhiy Storchaka
e55181f517
Issue #23490 : Fixed possible crashes related to interoperability between
old-style and new API for string with 2**30-1 characters.
11 years ago
Serhiy Storchaka
1a1ff29659
Issue #23446 : Use PyMem_New instead of PyMem_Malloc to avoid possible integer
overflows. Added few missed PyErr_NoMemory().
11 years ago
Steve Dower
b4e20bb588
Fix definition mismatch for type_is_subtype_base_chain.
11 years ago
Benjamin Peterson
104b9e0cca
fix many custom mro() edge cases and improve code quality ( #22735 )
Patch by Eldar Abusalimov.
11 years ago
Serhiy Storchaka
4fdb68491e
Issue #22896 : Avoid to use PyObject_AsCharBuffer(), PyObject_AsReadBuffer()
and PyObject_AsWriteBuffer().
11 years ago
Stefan Krah
7213fcc27e
Issue #23370 : Fix off-by-one error for non-contiguous buffers.
11 years ago
Serhiy Storchaka
aed198426a
Issue #23055 : Fixed read-past-the-end error in PyUnicode_FromFormatV.
11 years ago
Stefan Krah
fa5d6a5ff3
Issue #22668 : Ensure that format strings survive slicing after casting.
11 years ago
Serhiy Storchaka
e09bcc874a
Issue #22079 : PyType_Ready() now checks that statically allocated type has
no dynamically allocated bases.
11 years ago
Serhiy Storchaka
4dbc305002
Issue #23055 : Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
and fix by Guido Vranken.
11 years ago
Serhiy Storchaka
3f95292be6
Issue #23055 : Fixed a buffer overflow in PyUnicode_FromFormatV. Analysis
and fix by Guido Vranken.
11 years ago
Serhiy Storchaka
f4b7a02e93
Issue #21408 : The default __ne__() now returns NotImplemented if __eq__()
returned NotImplemented. Removed incorrect implementations of __ne__().
11 years ago
Serhiy Storchaka
7e4b9057b3
Issue #23321 : Fixed a crash in str.decode() when error handler returned
replacment string longer than mailformed input data.
11 years ago
Serhiy Storchaka
d3faf43f9b
Issue #23181 : More "codepoint" -> "code point".
11 years ago
Benjamin Peterson
bcf8554fd4
remove buzzword ( closes #23210 )
11 years ago
Serhiy Storchaka
b757c83ec6
Issue #22581 : Use more "bytes-like object" throughout the docs and comments.
11 years ago
Serhiy Storchaka
83cf99d733
Issue #20335 : bytes constructor now raises TypeError when encoding or errors
is specified with non-string argument. Based on patch by Renaud Blanch.
11 years ago
Serhiy Storchaka
133b11b566
Issue #22975 : Close block at right place.
11 years ago
Benjamin Peterson
e823933f9f
remove tautological condition ( closes #22954 )
11 years ago
Antoine Pitrou
b6dc9b7554
Fixed signed/unsigned comparison warning
11 years ago
Benjamin Peterson
1e211ff10d
it suffices to check for PY_SSIZE_T_MAX overflow ( #22643 )
11 years ago
Benjamin Peterson
c0e64f5027
make sure length is unsigned
11 years ago
Benjamin Peterson
e1bd38c03c
fix integer overflow in unicode case operations ( closes #22643 )
11 years ago
Georg Brandl
ff3e5e3779
Fix unicode_aswidechar() for 4b unicode and 2b wchar_t (AIX).
11 years ago
Benjamin Peterson
736b8012b4
prevent overflow in unicode_repr ( closes #22520 )
11 years ago
Benjamin Peterson
d48bc9468f
these variables ought to be Py_ssize_t
11 years ago
Benjamin Peterson
42ff105539
fix overflow checking in PyBytes_Repr ( closes #22519 )
11 years ago
Benjamin Peterson
a1c1be4e03
cleanup overflowing handling in unicode_decode_call_errorhandler and unicode_encode_ucs1 ( closes #22518 )
11 years ago