Skip to content
New issue

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

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

Already on GitHub? # to your account

pypy: fix FFI definition of Py_Buffer #1737

Merged
merged 1 commit into from
Jul 24, 2021
Merged

Conversation

davidhewitt
Copy link
Member

Fixes #1736

Looks like PyPy has extra fields for the Py_Buffer struct - https://foss.heptapod.net/pypy/pypy/-/blob/branch/default/pypy/module/cpyext/parse/cpyext_object.h#L78

Needs a CHANGELOG entry and also tests (in pyo3-pytests, because this is PyPy) before this can be merged. Will write them later, got to go to work now! 💼

@oconnor663
Copy link
Contributor

Confirmed, this fixes the crash on my box!

Copy link
Member

@messense messense left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@messense messense merged commit 1a0f46b into PyO3:main Jul 24, 2021
@davidhewitt davidhewitt deleted the pypy-buffer branch July 24, 2021 08:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

PyBuffer::get leads to memory corruption under PyPy
3 participants