Skip to content

Commit 1a000c3

Browse files
committed
Rust: Remove QL models for reqwest sources.
1 parent 5a73e0b commit 1a000c3

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

rust/ql/lib/codeql/rust/frameworks/Reqwest.qll

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,3 @@
44

55
private import rust
66
private import codeql.rust.Concepts
7-
8-
/**
9-
* A call to `reqwest::get` or `reqwest::blocking::get`.
10-
*/
11-
private class ReqwestGet extends RemoteSource::Range {
12-
ReqwestGet() {
13-
exists(CallExpr ce |
14-
this.asExpr().getExpr() = ce and
15-
ce.getFunction().(PathExpr).getResolvedCrateOrigin().matches("%reqwest") and
16-
ce.getFunction().(PathExpr).getResolvedPath() = ["crate::get", "crate::blocking::get"]
17-
)
18-
}
19-
}

rust/ql/test/library-tests/dataflow/sources/TaintSources.expected

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#select
12
| test.rs:8:10:8:22 | ...::var | Flow source 'EnvironmentSource' of type environment. |
23
| test.rs:9:10:9:25 | ...::var_os | Flow source 'EnvironmentSource' of type environment. |
34
| test.rs:11:16:11:28 | ...::var | Flow source 'EnvironmentSource' of type environment. |
@@ -12,6 +13,7 @@
1213
| test.rs:50:15:50:35 | ...::current_dir | Flow source 'CommandLineArgs' of type commandargs. |
1314
| test.rs:51:15:51:35 | ...::current_exe | Flow source 'CommandLineArgs' of type commandargs. |
1415
| test.rs:52:16:52:33 | ...::home_dir | Flow source 'CommandLineArgs' of type commandargs. |
15-
| test.rs:60:26:60:70 | ...::get(...) | Flow source 'RemoteSource' of type remote (DEFAULT). |
16-
| test.rs:63:26:63:70 | ...::get(...) | Flow source 'RemoteSource' of type remote (DEFAULT). |
17-
| test.rs:66:26:66:60 | ...::get(...) | Flow source 'RemoteSource' of type remote (DEFAULT). |
16+
testFailures
17+
| test.rs:60:82:60:119 | //... | Missing result: Alert[rust/summary/taint-sources] |
18+
| test.rs:63:98:63:135 | //... | Missing result: Alert[rust/summary/taint-sources] |
19+
| test.rs:66:84:66:121 | //... | Missing result: Alert[rust/summary/taint-sources] |

0 commit comments

Comments
 (0)