Stable MIR's thread local not properly handled on unwind #112940
Labels
E-medium
Call for participation: Medium difficulty. Experience needed to fix: Intermediate.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
rust/compiler/rustc_smir/src/stable_mir/mod.rs
Lines 113 to 114 in 7f74ae5
TLV
is left set to a dangling pointer iff
unwinds. This is unsound because a later call towith
will use that dangling pointer. There is a similar issue withwith
and unwinding.since you're on the Stable MIR cc list:
cc @oli-obk, @celinval
The text was updated successfully, but these errors were encountered: