cpython/Modules/_ctypes
Miss Islington (bot) f02d1a43c6
bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375)
The final addition (cur += step) may overflow, so use size_t for "cur".
"cur" is always positive (even for negative steps), so it is safe to use
size_t here.

Co-Authored-By: Martin Panter <vadmium+py@gmail.com>
(cherry picked from commit 14514d9084)

Co-authored-by: Zackery Spytz <zspytz@gmail.com>
2019-05-17 00:33:10 -07:00
..
darwin Recorded merge of revisions 81032 via svnmerge from 2010-05-09 16:14:21 +00:00
libffi_msvc [3.7] bpo-34906: Doc: Fix typos (2) (GH-9735) 2018-10-10 15:39:17 +02:00
libffi_osx Issue #24381: Avoid unused function warning when building bundled macOS libffi. 2016-10-20 15:38:27 -04:00
_ctypes.c bpo-36946: Fix possible signed integer overflow when handling slices. (GH-13375) 2019-05-17 00:33:10 -07:00
_ctypes_test.c bpo-34603, ctypes/libffi_msvc: Fix returning structs from functions (GH-9258) 2018-09-15 22:53:13 -07:00
_ctypes_test.h
callbacks.c [3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322) 2019-03-14 10:47:27 +02:00
callproc.c [3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322) 2019-03-14 10:47:27 +02:00
cfield.c bpo-28129: fix ctypes crashes (#386) 2017-03-02 18:42:40 +01:00
ctypes.h fix a PY_LONG_LONG straggler 2016-09-08 09:25:03 -07:00
ctypes_dlfcn.h Remove outdated PEP 291 compatibility requirement comment 2016-05-14 05:55:38 +00:00
malloc_closure.c [3.7] bpo-36254: Fix invalid uses of %d in format strings in C. (GH-12264). (GH-12322) 2019-03-14 10:47:27 +02:00
stgdict.c Fix miscellaneous typos (#4275) 2017-11-05 15:37:50 +02:00