Skip to content

disallow retain from stashing away items#252

Merged
sunshowers merged 3 commits into
mainfrom
sunshowers/spr/disallow-retain-from-stashing-away-items
May 22, 2026
Merged

disallow retain from stashing away items#252
sunshowers merged 3 commits into
mainfrom
sunshowers/spr/disallow-retain-from-stashing-away-items

Conversation

@sunshowers
Copy link
Copy Markdown
Collaborator

The retain signature was wrong -- we could previously stash away items and then return false, causing a use-after-free. Restrict the lifetime, and add UI tests to ensure that it always fails.

This is technically a breaking change but we're treating it as a soundness bugfix.

Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
Created using spr 1.3.6-beta.1
@sunshowers sunshowers merged commit facdc56 into main May 22, 2026
34 checks passed
@sunshowers sunshowers deleted the sunshowers/spr/disallow-retain-from-stashing-away-items branch May 22, 2026 07:10
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.

1 participant