Skip to content

librt: Fix aliasing related segfault with vec append#21303

Merged
JukkaL merged 1 commit intomasterfrom
mypyc-vec-aliasing-fix
Apr 23, 2026
Merged

librt: Fix aliasing related segfault with vec append#21303
JukkaL merged 1 commit intomasterfrom
mypyc-vec-aliasing-fix

Conversation

@JukkaL
Copy link
Copy Markdown
Collaborator

@JukkaL JukkaL commented Apr 23, 2026

If there is another reference to the vec buffer that is grown during append, the other buffer could see NULL pointers and trigger a segfault. Now we only clear the buffer if there are no other references.

If there is another reference to the vec buffer that is grown during
append, the other buffer could see NULL pointers and trigger a segfault.
Now we only clear the buffer if there are no other references.
@JukkaL JukkaL merged commit d99e2c9 into master Apr 23, 2026
17 checks passed
@JukkaL JukkaL deleted the mypyc-vec-aliasing-fix branch April 23, 2026 15:39
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