diff options
author | Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com> | 2024-01-01 16:24:24 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-01 16:24:24 (GMT) |
commit | 5f3cc90a12d6df404fd6f48a0df1334902e271f2 (patch) | |
tree | b0939a5ee6d6b2477179fc74f31fe854fcc57091 /Python/tracemalloc.c | |
parent | 4036e48d59b0f9e8057e01458ab7df3dfd323a10 (diff) | |
download | cpython-5f3cc90a12d6df404fd6f48a0df1334902e271f2.zip cpython-5f3cc90a12d6df404fd6f48a0df1334902e271f2.tar.gz cpython-5f3cc90a12d6df404fd6f48a0df1334902e271f2.tar.bz2 |
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>
Diffstat (limited to 'Python/tracemalloc.c')
0 files changed, 0 insertions, 0 deletions