-
Notifications
You must be signed in to change notification settings - Fork 13.7k
Closed
Labels
E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.
Description
rust/compiler/rustc_smir/src/stable_mir/mod.rs
Lines 113 to 114 in 7f74ae5
f(); | |
TLV.replace(std::ptr::null_mut()); |
TLV
is left set to a dangling pointer if f
unwinds. This is unsound because a later call to with
will use that dangling pointer. There is a similar issue with with
and unwinding.
since you're on the Stable MIR cc list:
cc @oli-obk, @celinval
Metadata
Metadata
Assignees
Labels
E-mediumCall for participation: Medium difficulty. Experience needed to fix: Intermediate.Call for participation: Medium difficulty. Experience needed to fix: Intermediate.E-mentorCall for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.T-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.