]> granicus.if.org Git - python/commit
Prevent creation (followed by a segfault) of array types when the size
authorThomas Heller <theller@ctypes.org>
Fri, 23 Mar 2007 19:56:45 +0000 (19:56 +0000)
committerThomas Heller <theller@ctypes.org>
Fri, 23 Mar 2007 19:56:45 +0000 (19:56 +0000)
commitb151f721a95637b3d29a188d7064e1375bd8e7eb
treedd739f9a2d5ab1c6c6ffc029da0ad50fc14028d2
parenta8ddae61496de68b3c70d8dab364a204f53c153b
Prevent creation (followed by a segfault) of array types when the size
overflows the valid Py_ssize_t range.  Check return values of
PyMem_Malloc.

Backported from trunk.
Modules/_ctypes/_ctypes.c