Skip to content

Commit 53db3bd

Browse files
authored
Merge pull request #22471 from hvitved/rust/exclude-axum-state-steps
Rust: Exclude taint-read-steps for `axum::extract::state::State`
2 parents 4b8b3b8 + d8e57bd commit 53db3bd

5 files changed

Lines changed: 252 additions & 224 deletions

File tree

rust/ql/lib/codeql/rust/frameworks/axum.model.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,9 @@ extensions:
2020
- ["<axum::routing::method_routing::MethodRouter>::patch", "Argument[0].Parameter[0..7]", "remote", "manual"]
2121
# on
2222
- ["axum::routing::method_routing::on", "Argument[1].Parameter[0..7]", "remote", "manual"]
23-
- ["<axum::routing::method_routing::MethodRouter>::on", "Argument[1].Parameter[0..7]", "remote", "manual"]
23+
- ["<axum::routing::method_routing::MethodRouter>::on", "Argument[1].Parameter[0..7]", "remote", "manual"]
24+
- addsTo:
25+
pack: codeql/rust-all
26+
extensible: excludeFieldTaintStep
27+
data:
28+
- ["axum::extract::state::State(0)"]
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
nonUniqueCertainType
2-
| test.rs:131:30:131:39 | ...::get(...) | |
3-
| test.rs:132:34:132:43 | ...::get(...) | |
4-
| test.rs:133:30:133:39 | ...::get(...) | |
2+
| test.rs:132:30:132:39 | ...::get(...) | |
3+
| test.rs:133:34:133:43 | ...::get(...) | |
4+
| test.rs:134:30:134:39 | ...::get(...) | |

0 commit comments

Comments
 (0)