cpython/Modules/_ctypes
Jeffrey Kintscher 5f3cc90a12
gh-62260: Fix ctypes.Structure subclassing with multiple layers (GH-13374)
The length field of StgDictObject for Structure class contains now
the total number of items in ffi_type_pointer.elements (excluding
the trailing null).

The old behavior of using the number of elements in the parent class can
cause the array to be truncated when it is copied, especially when there
are multiple layers of subclassing.

Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
2024-01-01 18:24:24 +02:00
..
clinic gh-107603: Argument Clinic: Only include pycore_gc.h if needed (#108726) 2023-08-31 23:42:34 +02:00
_ctypes.c gh-62260: Fix ctypes.Structure subclassing with multiple layers (GH-13374) 2024-01-01 18:24:24 +02:00
_ctypes_test.c gh-110190: Fix ctypes structs with array on PPCLE64 (GH-112959) 2023-12-13 17:08:15 +01:00
_ctypes_test.h
callbacks.c gh-108082: Remove _PyErr_WriteUnraisableMsg() (GH-111643) 2023-11-03 09:45:53 +02:00
callproc.c gh-111789: Use PyDict_GetItemRef() in _ctypes (GH-111828) 2023-11-14 11:28:34 +02:00
cfield.c Add missing PyDoc_STR calls (#109393) 2023-09-15 15:10:48 +02:00
ctypes.h gh-103092: Port _ctypes.COMError to heap type (#104020) 2023-05-04 13:03:24 +00:00
malloc_closure.c gh-108765: Python.h no longer includes <unistd.h> (#108783) 2023-09-02 16:50:18 +02:00
stgdict.c gh-62260: Fix ctypes.Structure subclassing with multiple layers (GH-13374) 2024-01-01 18:24:24 +02:00