File tree Expand file tree Collapse file tree 2 files changed +5
-16
lines changed
lib/codeql/rust/frameworks
test/library-tests/dataflow/sources Expand file tree Collapse file tree 2 files changed +5
-16
lines changed Original file line number Diff line number Diff line change 44
55private import rust
66private 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- }
Original file line number Diff line number Diff line change 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. |
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] |
You can’t perform that action at this time.
0 commit comments