Skip to content

fix: Proper release of the buffer obtained via PyObject_GetBuffer#2643

Merged
hoffstadt merged 1 commit intohoffstadt:masterfrom
v-ein:bugfix/2577-buffer-proto-segfault
May 4, 2026
Merged

fix: Proper release of the buffer obtained via PyObject_GetBuffer#2643
hoffstadt merged 1 commit intohoffstadt:masterfrom
v-ein:bugfix/2577-buffer-proto-segfault

Conversation

@v-ein
Copy link
Copy Markdown
Collaborator

@v-ein v-ein commented Apr 27, 2026


name: Pull Request
about: Create a pull request to help us improve
title: Proper release of the buffer obtained via PyObject_GetBuffer
assignees: ''


Description:

This PR addresses an issue with the use of buffer protocol in DPG that was discovered in #2577 - see this comment. It does not fix the issue #2577 itself (we'll need to properly return nullptr to get a correct exception there), but fixes the segfaults caused by incorrect release of a buffer that was never obtained.

Concerning Areas:
None.

@v-ein v-ein requested a review from hoffstadt April 27, 2026 21:18
@hoffstadt hoffstadt merged commit be049e2 into hoffstadt:master May 4, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants