We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75a3c93 commit d8b58f2Copy full SHA for d8b58f2
rust/ql/lib/codeql/rust/frameworks/Reqwest.qll
@@ -9,8 +9,11 @@ private import codeql.rust.Concepts
9
* A call to `reqwest::get` or `reqwest::blocking::get`.
10
*/
11
private class ReqwestGet extends RemoteSource::Range {
12
+ CallExpr ce;
13
+
14
ReqwestGet() {
- this.asExpr().getExpr().(CallExpr).getExpr().(PathExpr).getPath().getResolvedPath() =
- ["crate::get", "crate::blocking::get"]
15
+ this.asExpr().getExpr() = ce and
16
+ ce.getExpr().(PathExpr).getPath().getResolvedCrateOrigin().matches("%reqwest") and
17
+ ce.getExpr().(PathExpr).getPath().getResolvedPath() = ["crate::get", "crate::blocking::get"]
18
}
19
0 commit comments