Skip to content

Conversation

paldepind
Copy link
Contributor

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.

@github-actions github-actions bot added the Rust Pull requests that update Rust code label Dec 4, 2024
1000 + i
}

fn sink(s: i64) {

Check notice

Code scanning / CodeQL

Unused variable Note test

Variable 's' is not used.
}

mod string {
fn source(i: i64) -> String {

Check notice

Code scanning / CodeQL

Unused variable Note test

Variable 'i' is not used.
format!("{}", i)
}

fn sink(s: &str) {

Check notice

Code scanning / CodeQL

Unused variable Note test

Variable 's' is not used.
@paldepind paldepind marked this pull request as ready for review December 4, 2024 13:25
hvitved
hvitved previously approved these changes Dec 4, 2024
Copy link
Contributor

@hvitved hvitved left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@paldepind
Copy link
Contributor Author

I've merged main.

hvitved
hvitved previously approved these changes Dec 4, 2024
@paldepind paldepind merged commit 1dbcaa0 into github:main Dec 5, 2024
15 checks passed
@paldepind paldepind deleted the rust-taint branch December 5, 2024 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Rust Pull requests that update Rust code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants