Rust: add missing QLDocs

This commit is contained in:
Arthur Baars
2025-03-13 19:10:29 +01:00
parent a3cc695da4
commit 81f954a42e
3 changed files with 8 additions and 0 deletions

View File

@@ -290,6 +290,7 @@ module Path {
}
}
/** A data-flow node that checks that a path is safe to access. */
class SafeAccessCheck extends DataFlow::ExprNode {
SafeAccessCheck() { this = DataFlow::BarrierGuard<safeAccessCheck/3>::getABarrierNode() }
}

View File

@@ -1,3 +1,7 @@
/**
* Provides classes modeling security-relevant aspects of the standard libraries.
*/
private import rust
private import codeql.rust.Concepts
private import codeql.rust.controlflow.ControlFlowGraph as Cfg

View File

@@ -30,6 +30,9 @@ module TaintedPath {
*/
abstract class Barrier extends DataFlow::Node { }
/**
* A sanitizer guard for path-traversal vulnerabilities.
*/
class SanitizerGuard extends DataFlow::Node {
SanitizerGuard() { this = DataFlow::BarrierGuard<sanitizerGuard/3>::getABarrierNode() }
}