cpython/Objects
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
..
stringlib Issue #7267: format(int, 'c') now raises OverflowError when the argument is not 2015-11-09 12:21:09 +01:00
abstract.c Issue #25678: Copy buffer objects to null-terminated strings. 2015-11-20 21:56:21 +02:00
boolobject.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
bufferobject.c avoid overflow with large buffer sizes and/or offsets (closes #21831) 2014-06-23 20:12:27 -07:00
bytearrayobject.c Issue #24467: Fixed possible buffer over-read in bytearray. The bytearray 2015-06-29 21:13:54 +03:00
bytes_methods.c Merged revisions 82573 via svnmerge from 2010-07-05 12:04:07 +00:00
capsule.c Backported PyCapsule from 3.1, and converted most uses of 2010-03-25 00:54:54 +00:00
cellobject.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
classobject.c Fix typo in comment. 2014-08-01 23:51:51 -07:00
cobject.c CObject use is marked as a Py3k warning, not a deprecation warning 2010-11-04 21:39:52 +00:00
codeobject.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
complexobject.c Issue #25678: Copy buffer objects to null-terminated strings. 2015-11-20 21:56:21 +02:00
descrobject.c Fixed indentation of Python examples in C comments. 2015-06-11 00:06:27 +03:00
dictnotes.txt Patch #1397848: add the reasoning behind no-resize-on-shrinkage. 2007-02-15 09:51:35 +00:00
dictobject.c Issue #23971: Fix underestimated presizing in dict.fromkeys() 2015-05-13 03:13:28 -07:00
enumobject.c Merged revisions 81468 via svnmerge from 2010-05-22 11:44:30 +00:00
exceptions.c bail in unicode error's __str__ methods if the objects are not properly initialized (closes #21134) 2014-04-02 12:15:06 -04:00
fileobject.c use Py_ssize_t for file offset and length computations in iteration (closes #22526) 2014-09-30 21:17:15 -04:00
floatobject.c Issue #25678: Copy buffer objects to null-terminated strings. 2015-11-20 21:56:21 +02:00
frameobject.c SETUP_WITH acts like SETUP_FINALLY for the purposes of setting f_lineno (closes #14612) 2012-04-18 11:14:31 -04:00
funcobject.c use Py_CLEAR 2012-02-19 01:11:56 -05:00
genobject.c Issue #14432: Generator now clears the borrowed reference to the thread state 2013-12-13 02:37:09 +01:00
intobject.c remove strange casts 2014-11-23 12:58:54 -06:00
iterobject.c Issue #23985: Fixed integer overflow in iterator object. Original patch by 2015-05-21 20:49:34 +03:00
listobject.c fix merge_collapse to actually maintain the invariant it purports to (closes #23515) 2015-02-25 10:12:26 -05:00
listsort.txt Various clarifications based on feedback & questions over the years. 2013-08-24 15:15:19 -05:00
lnotab_notes.txt Issue #6042: 2009-05-23 23:23:01 +00:00
longobject.c Issue #19171: speed some cases of 3-argument long pow(). 2013-10-05 16:53:52 -05:00
memoryobject.c Merged revisions 88097 via svnmerge from 2011-01-18 19:06:19 +00:00
methodobject.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
moduleobject.c Issue #19255: Clear error after failed PyDict_SetItem() on shutdown. 2014-02-12 09:54:48 +02:00
object.c Issue #6477: Revert fbb97f6eb3b3 as it broke test_xpickle. 2013-11-30 17:43:42 -08:00
obmalloc.c make comment not lie about the size of SMALL_REQUEST_THRESHOLD 2015-07-29 22:18:16 -07:00
rangeobject.c Issue #14783: Backport changes from 3.2. 2012-10-07 20:37:54 -07:00
setobject.c Issue #24115: Update uses of PyObject_IsTrue(), PyObject_Not(), 2015-05-30 17:45:12 +03:00
sliceobject.c Issue #14783: Backport changes from 3.2. 2012-10-07 20:37:54 -07:00
stringobject.c Issue #19543: Emit deprecation warning for known non-text encodings. 2015-05-31 20:21:00 +03:00
structseq.c Fix indentation. 2012-02-15 02:57:19 +01:00
tupleobject.c Issue #23629: Fix the default __sizeof__ implementation for variable-sized objects. 2015-03-10 22:32:00 +01:00
typeobject.c Issue #22995: Default implementation of __reduce__ and __reduce_ex__ now 2015-11-12 11:59:03 +02:00
unicodectype.c Recorded merge of revisions 81029 via svnmerge from 2010-05-09 15:15:40 +00:00
unicodeobject.c Issue #24848: Fixed yet one bug in UTF-7 decoder. Testing for BASE64 character 2015-10-10 09:33:11 +03:00
unicodetype_db.h #7643: Unicode codepoints VT (0x0B) and FF (0x0C) are linebreaks according to Unicode Standard Annex #14. 2010-03-30 08:24:06 +00:00
weakrefobject.c Issue #23783: Fixed memory leak in PyObject_ClearWeakRefs() in case of 2015-03-30 09:53:06 +03:00