summaryrefslogtreecommitdiffstats
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2024-01-05 22:52:41 (GMT)
committerGitHub <noreply@github.com>2024-01-05 22:52:41 (GMT)
commit6d9af666165a3a69618ee940631ca6600d2a2027 (patch)
tree670225dcd2dd874795f35a48fa0ede24694be4d9 /Python/symtable.c
parente132751b49a720da97e969542d89258a914cfe94 (diff)
downloadcpython-6d9af666165a3a69618ee940631ca6600d2a2027.zip
cpython-6d9af666165a3a69618ee940631ca6600d2a2027.tar.gz
cpython-6d9af666165a3a69618ee940631ca6600d2a2027.tar.bz2
[3.12] gh-62260: Fix ctypes.Structure subclassing with multiple layers (GH-13374) (GH-113623)
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. (cherry picked from commit 5f3cc90a12d6df404fd6f48a0df1334902e271f2) Co-authored-by: Jeffrey Kintscher <49998481+websurfer5@users.noreply.github.com>
Diffstat (limited to 'Python/symtable.c')
0 files changed, 0 insertions, 0 deletions