Add Actix framework modeling and import to Frameworks.qll

This commit is contained in:
Florin Coada
2025-05-05 10:14:36 -04:00
parent 5c1581d080
commit 52f2a9a8a6
2 changed files with 21 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
* 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.Poem
private import codeql.rust.frameworks.Sqlx

View 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()
)
}
}