Skip to content

do not crash on __delitem__#235

Open
mildsunrise wants to merge 1 commit intopython-cffi:mainfrom
mildsunrise:delitem-check
Open

do not crash on __delitem__#235
mildsunrise wants to merge 1 commit intopython-cffi:mainfrom
mildsunrise:delitem-check

Conversation

@mildsunrise
Copy link

@mildsunrise mildsunrise commented Mar 20, 2026

what it says on the tin: we're forgetting to check for deletions in many cases, so it's easy to crash the python process by doing del pointer[slice] or del buffer[anything]

@mattip
Copy link
Contributor

mattip commented Mar 20, 2026

Please add a test that fails before, passes after

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