-
Notifications
You must be signed in to change notification settings - Fork 67
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
Detect and report #[no_mangle] #104
Comments
Thanks for opening this issue. The linked github issue was an interesting read and I agree that cargo-geiger should probably try to find #[no_mangle]. |
I'd like to voice my support for this.
|
This should be relatively easy to add support for. The main work will be in https://github.com/rust-secure-code/cargo-geiger/blob/master/geiger/src/lib.rs It will still be easy to intentionally hide usage of no_mangle (and unsafe), since we don't have #102 yet, resulting in shenanigans like #101. This task is a great first issue, so anyone who's feeling tempted to contribute, feel free to jump right in! :) I'm currently in minimal effort mode when it comes to open source projects and will probably be doing release and dependency upgrades but not much else for the foreseeable future. |
Running this program results in a segfault, because using
#[no_mangle]
to override C functions can be UB (see also rust-lang/rust#28179)But
cargo-geiger
marks this crate as beingunsafe
freeThe text was updated successfully, but these errors were encountered: