mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Add Actix framework modeling and import to Frameworks.qll
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
* This file imports all models of frameworks and libraries.
|
* This file imports all models of frameworks and libraries.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
private import codeql.rust.frameworks.Actix
|
||||||
private import codeql.rust.frameworks.rustcrypto.RustCrypto
|
private import codeql.rust.frameworks.rustcrypto.RustCrypto
|
||||||
private import codeql.rust.frameworks.Poem
|
private import codeql.rust.frameworks.Poem
|
||||||
private import codeql.rust.frameworks.Sqlx
|
private import codeql.rust.frameworks.Sqlx
|
||||||
|
|||||||
20
rust/ql/lib/codeql/rust/frameworks/Actix.qll
Normal file
20
rust/ql/lib/codeql/rust/frameworks/Actix.qll
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
/**
|
||||||
|
* Provides modeling for the `Actix` library.
|
||||||
|
*/
|
||||||
|
|
||||||
|
private import rust
|
||||||
|
private import codeql.rust.Concepts
|
||||||
|
private import codeql.rust.dataflow.DataFlow
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Parameters of a handler function
|
||||||
|
*/
|
||||||
|
private class ActixHandlerParam extends RemoteSource::Range {
|
||||||
|
ActixHandlerParam() {
|
||||||
|
exists(TupleStructPat param |
|
||||||
|
param.getResolvedPath() = ["crate::types::query::Query"]
|
||||||
|
|
|
||||||
|
this.asPat().getPat() = param.getAField()
|
||||||
|
)
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user