-
Notifications
You must be signed in to change notification settings - Fork 483
Unexpected UB: retagging of variadic arguments #5058
Copy link
Copy link
Closed
rust-lang/rust
#157622Labels
A-aliasingArea: This affects the aliasing model (Stacked/Tree Borrows)Area: This affects the aliasing model (Stacked/Tree Borrows)C-bugCategory: This is a bug.Category: This is a bug.I-false-UBImpact: makes Miri falsely report UB, i.e., a false positive (with default settings)Impact: makes Miri falsely report UB, i.e., a false positive (with default settings)
Metadata
Metadata
Assignees
Labels
A-aliasingArea: This affects the aliasing model (Stacked/Tree Borrows)Area: This affects the aliasing model (Stacked/Tree Borrows)C-bugCategory: This is a bug.Category: This is a bug.I-false-UBImpact: makes Miri falsely report UB, i.e., a false positive (with default settings)Impact: makes Miri falsely report UB, i.e., a false positive (with default settings)
Type
Fields
Give feedbackNo fields configured for issues without a type.
I would not expect this code to have UB:
(Example by @icmccorm)
We end up retagging with a protector at that call based on caller-side type information. That shouldn't happen, the with-protector retagging is a callee operation and shouldn't use caller-side type information.
Cc @folkertdev