cpython/Objects
Miss Islington (bot) fd82f16c1e
[3.7] gh-97616: list_resize() checks for integer overflow (GH-97617) (#97629)
Fix multiplying a list by an integer (list *= int): detect the
integer overflow when the new allocated length is close to the
maximum size.  Issue reported by Jordan Limor.

list_resize() now checks for integer overflow before multiplying the
new allocated length by the list item size (sizeof(PyObject*)).
(cherry picked from commit a5f092f3c4)

Co-authored-by: Victor Stinner <vstinner@python.org>
2022-10-05 14:55:53 -07:00
..
clinic [3.7] bpo-38409: Fix grammar in str.strip() docstring (GH-16682) (GH-16686) 2019-10-09 16:56:07 -05:00
stringlib [3.7] bpo-24214: Fixed the UTF-8 and UTF-16 incremental decoders. (GH-14304) (GH-14369) 2019-06-25 12:29:18 +02:00
abstract.c [3.7] bpo-38643: Raise SystemError instead of crashing when PyNumber_ToBase is called with invalid base. (GH-18863). (GH-18955) 2020-03-12 10:15:17 +02:00
accu.c Replace KB unit with KiB (#4293) 2017-11-08 14:44:44 -08:00
boolobject.c
bytearrayobject.c bpo-37417: Fix error handling in bytearray.extend. (GH-14407) 2019-06-26 12:23:19 -07:00
bytes_methods.c bpo-38383: Fix possible integer overflow in startswith() of bytes and bytearray. (GH-16603) 2019-10-06 05:36:44 -07:00
bytesobject.c bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375) 2019-05-17 00:33:10 -07:00
call.c bpo-39884: Add method name in "bad call flags" error (GH-18944) (GH-18957) 2020-03-12 13:37:08 +01:00
capsule.c bpo-35436: Add missing PyErr_NoMemory() calls and other minor bug fixes. (GH-11015) (GH-11020) 2018-12-07 14:17:43 +02:00
cellobject.c bpo-33029: Fix signatures of getter and setter functions. (GH-10746) 2018-11-27 09:58:07 -08:00
classobject.c bpo-35444: Fix error handling when fail to look up builtin "getattr". (GH-11047) (GH-11107) 2018-12-11 10:51:27 +02:00
codeobject.c bpo-24618: Add a check in the code constructor. (GH-8283) 2018-07-16 00:09:44 -07:00
complexobject.c bpo-31979: Simplify transforming decimals to ASCII (#4336) 2017-11-13 21:23:48 +02:00
descrobject.c bpo-36433: fix confusing error messages in classmethoddescr_call (GH-12556) 2019-03-26 02:47:08 -07:00
dict-common.h bpo-33312: Fix clang ubsan out of bounds warnings in dict. (GH-6537) (GH-6543) 2018-04-20 10:06:21 -07:00
dictnotes.txt
dictobject.c [3.7] bpo-38588: Fix possible crashes in dict and list when calling P… (GH-17765) 2019-12-31 04:15:10 +00:00
enumobject.c bpo-31579: Fixed a possible leak in enumerate() with large indices. (#3753) 2017-09-26 08:14:58 +03:00
exceptions.c bpo-33029: Fix signatures of getter and setter functions. (GH-10746) 2018-11-27 09:58:07 -08:00
fileobject.c bpo-36251: Fix format strings used in match_repr() and stdprinter_repr(). (GH-12252) 2019-03-10 03:52:44 -07:00
floatobject.c bpo-38096: Clean up the "struct sequence" / "named tuple" docs (GH-15895) (GH-15962) 2019-09-11 19:50:51 -07:00
frameobject.c bpo-35504: Fix segfaults and SystemErrors when deleting certain attrs. (GH-11175) 2018-12-17 07:10:20 -08:00
funcobject.c bpo-33029: Fix signatures of getter and setter functions. (GH-10746) 2018-11-27 09:58:07 -08:00
genobject.c bpo-33786: Fix asynchronous generators to handle GeneratorExit in athrow() (GH-7467) (GH-21878) 2020-08-14 05:44:00 -04:00
iterobject.c
listobject.c [3.7] gh-97616: list_resize() checks for integer overflow (GH-97617) (#97629) 2022-10-05 14:55:53 -07:00
listsort.txt Fixes in sorting descriptions (GH-18317) 2020-02-03 16:30:44 -08:00
lnotab_notes.txt
longobject.c [3.7] gh-95778: Mention sys.set_int_max_str_digits() in error message (GH-96874) (GH-96877) (GH-97836) 2022-10-04 11:59:43 -07:00
memoryobject.c Give proper credits for the memoryview implementation. (GH-18626) (#18643) 2020-02-24 11:51:40 +01:00
methodobject.c bpo-35444: Fix error handling when fail to look up builtin "getattr". (GH-11047) (GH-11107) 2018-12-11 10:51:27 +02:00
moduleobject.c [3.7] Fix misleading mentions of tp_size in comments. (GH-9136) 2018-09-10 10:22:55 -07:00
namespaceobject.c bpo-35454: Fix miscellaneous minor issues in error handling. (GH-11077) 2018-12-10 23:05:13 -08:00
object.c bpo-38400 Don't check for NULL linked list pointers in _PyObject_IsFreed (GH-16630) 2020-01-19 15:43:12 -08:00
obmalloc.c closes bpo-30364: Replace deprecated no_address_safety_analysis attribute. (GH-17702) 2019-12-26 19:08:30 -08:00
odictobject.c bpo-39778: Don't traverse weak-reference lists OrderedDict's tp_traverse and tp_clear (GH-18749) 2020-03-02 15:53:03 -08:00
rangeobject.c bpo:34848 : Correct an incorrect docstring for range().index method (GH-9877) 2019-05-03 05:39:17 -07:00
README
setobject.c [3.7] bpo-37219: Remove erroneous optimization for differencing an empty set (GH-13965) (GH-13968) 2019-06-11 02:01:06 -07:00
sliceobject.c bpo-35961: Fix a crash in slice_richcompare() (GH-11830) 2019-02-13 03:49:34 -08:00
structseq.c bpo-38096: Complete the "structseq" and "named tuple" cleanup (GH-16010) (GH-16063) 2019-09-12 08:20:07 -07:00
tupleobject.c Fix a possible refleak in tupleobject.c (GH-19018) 2020-03-15 12:55:41 -07:00
typeobject.c [3.7] Fix a possible crash due to PyType_FromSpecWithBases() (GH-10304) (GH-13495) 2019-05-28 23:35:33 -04:00
typeslots.inc
typeslots.py
unicodectype.c
unicodeobject.c [3.7] bpo-38409: Fix grammar in str.strip() docstring (GH-16682) (GH-16686) 2019-10-09 16:56:07 -05:00
unicodetype_db.h update to Unicode 11.0.0 (closes bpo-33778) (GH-7439) (GH-7470) 2018-06-07 03:36:22 -04:00
weakrefobject.c [3.7] bpo-38395: Fix ownership in weakref.proxy methods (GH-16632) (GH-16663) 2019-10-11 13:28:49 -07:00

Source files for various builtin objects