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
Benjamin Peterson
18fc493409
fix expandtabs overflow detection to be consistent and not rely on signed overflow
2014-03-30 19:47:57 -04:00
Benjamin Peterson
8312eccd34
add braces and fix indentation
2014-03-30 19:23:24 -04:00
Benjamin Peterson
0e431b9311
fix indentation and add braces
2014-03-30 19:16:44 -04:00
Benjamin Peterson
7a91bf8675
give non-iterable TypeError a message ( closes #20507 )
2014-02-15 13:02:52 -05:00
Serhiy Storchaka
ee09d7c098
Issue #19255 : Clear error after failed PyDict_SetItem() on shutdown.
...
This silences a Coverity complain.
2014-02-12 09:54:48 +02:00
Serhiy Storchaka
98a9722e4a
Issue #20437 : Fixed 43 potential bugs when deleting objects references.
2014-02-09 13:14:04 +02:00
Benjamin Peterson
d16e01cf75
mmap obmalloc arenas so that they may be immediately returned to the system when unused ( closes #20494 )
2014-02-04 10:20:26 -05:00
Serhiy Storchaka
78ad6583d6
Circumventing a bug in glibc (issue #17976 ).
...
Patch by Jaakko Moisio.
2013-12-17 17:32:20 +02:00
Serhiy Storchaka
6d562319d2
Issue #17976 : Fixed potential problem with file.write() not detecting IO error
...
by inspecting the return value of fwrite(). Based on patches by Jaakko Moisio
and test by Victor Stinner.
2013-12-17 14:40:06 +02:00
Victor Stinner
66c6e9dcb4
Issue #14432 : Generator now clears the borrowed reference to the thread state
...
Fix a crash when a generator is created in a C thread that is destroyed while
the generator is still used. The issue was that a generator contains a frame,
and the frame kept a reference to the Python state of the destroyed C thread.
The crash occurs when a trace function is setup.
2013-12-13 02:37:09 +01:00