Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bpo-18060: Updating _fields_ of a derived struct type yields a bad cif #13374

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Conversation

websurfer5
Copy link
Contributor

@websurfer5 websurfer5 commented May 17, 2019

Use the size of the fields elements array in the parent class of a Srtructure or Union derived subclass when cloning or modifying the fields array. 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, which can result in segfaults or exceptions. Tests are included.

https://bugs.python.org/issue18060

websurfer5 added 2 commits May 14, 2019
the base class when computing the length of the derived class.
class of a Srtructure or Union derived subclass when cloning or
modifying the _fields_ array. 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. Tests are included.
auvipy
auvipy approved these changes May 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants