Skip to content

Fix a soundness hole in Program - #85

Closed
Absolucy wants to merge 1 commit into
rust3ds:mainfrom
Absolucy:fixsound
Closed

Fix a soundness hole in Program#85
Absolucy wants to merge 1 commit into
rust3ds:mainfrom
Absolucy:fixsound

Conversation

@Absolucy

@Absolucy Absolucy commented Apr 22, 2026

Copy link
Copy Markdown

currently, it's possible for the Library referenced in the Entrypoint passed to Program::new to be dropped before the Program, resulting in an use-after-free and likely crash.

this makes it so that Program cannot outlive the Library in the Entrypoint passed to Program::new, preventing that.

This was annoying to figure out lol

@Absolucy

Absolucy commented May 6, 2026

Copy link
Copy Markdown
Author

implemented better by #84 (i didn't know that pr existed when i wrote/pr'd this lol)

@Absolucy Absolucy closed this May 6, 2026
@Absolucy
Absolucy deleted the fixsound branch May 6, 2026 19:13
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