-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Rust: Add default taint flow steps #18202
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
Conversation
1000 + i | ||
} | ||
|
||
fn sink(s: i64) { |
Check notice
Code scanning / CodeQL
Unused variable Note test
} | ||
|
||
mod string { | ||
fn source(i: i64) -> String { |
Check notice
Code scanning / CodeQL
Unused variable Note test
format!("{}", i) | ||
} | ||
|
||
fn sink(s: &str) { |
Check notice
Code scanning / CodeQL
Unused variable Note test
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.
LGTM
I've merged |
Adds default taint flow steps for Rust. As far as I understand, for C/C++ the principle is that as long as more than one bit is carried through in an operation, taint is preserved.
Also adds
as
expressions as a CFG node since I needed that.