-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Taint body on invalid call ABI #142983
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Taint body on invalid call ABI #142983
Conversation
I believe we can coerce a function pointer from |
Yeah, but IDK if it causes an ICE in CTFE and therefore deserves tainting like this. |
ddaee78
to
61e8d05
Compare
These commits modify compiler targets. |
Added |
neat! |
For the record, the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me with the apparent duplication sorted or explained
wonderful! I'm glad that my opinions on the architecture are paying off here. |
61e8d05
to
e776065
Compare
@bors r+ rollup |
Rollup of 15 pull requests Successful merges: - #135731 (Implement parsing of pinned borrows) - #138780 (Add `#[loop_match]` for improved DFA codegen) - #142453 (Windows: make `read_dir` stop iterating after the first error is encountered) - #142633 (Error on invalid signatures for interrupt ABIs) - #142768 (Avoid a bitcast FFI call in transmuting) - #142825 (Port `#[track_caller]` to the new attribute system) - #142844 (Enable short-ice for Windows) - #142934 (Tweak `-Zmacro-stats` measurement.) - #142955 (Couple of test suite fixes for cg_clif) - #142977 (rustdoc: Don't mark `#[target_feature]` functions as ⚠) - #142980 (Reduce mismatched-lifetime-syntaxes suggestions to MaybeIncorrect) - #142982 (Corrected spelling mistake in c_str.rs) - #142983 (Taint body on invalid call ABI) - #142988 (Update wasm-component-ld to 0.5.14) - #142993 (Update cargo) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #142983 - compiler-errors:taint-invalid-call-abi, r=workingjubilee Taint body on invalid call ABI Fixes #142969 I'm not certain if there are any other paths that should be tainted, but they would operate similarly. Perhaps pointer coercion. Introduces `extern "rust-invalid"` for testing purposes. r? ```@workingjubilee``` or ```@oli-obk``` (or anyone)
Fixes #142969
I'm not certain if there are any other paths that should be tainted, but they would operate similarly. Perhaps pointer coercion.
Introduces
extern "rust-invalid"
for testing purposes.r? @workingjubilee or @oli-obk (or anyone)