Skip to content

Commit 81f954a

Browse files
committed
Rust: add missing QLDocs
1 parent a3cc695 commit 81f954a

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

rust/ql/lib/codeql/rust/Concepts.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ module Path {
290290
}
291291
}
292292

293+
/** A data-flow node that checks that a path is safe to access. */
293294
class SafeAccessCheck extends DataFlow::ExprNode {
294295
SafeAccessCheck() { this = DataFlow::BarrierGuard<safeAccessCheck/3>::getABarrierNode() }
295296
}

rust/ql/lib/codeql/rust/frameworks/stdlib/Stdlib.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Provides classes modeling security-relevant aspects of the standard libraries.
3+
*/
4+
15
private import rust
26
private import codeql.rust.Concepts
37
private import codeql.rust.controlflow.ControlFlowGraph as Cfg

rust/ql/lib/codeql/rust/security/TaintedPathExtensions.qll

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ module TaintedPath {
3030
*/
3131
abstract class Barrier extends DataFlow::Node { }
3232

33+
/**
34+
* A sanitizer guard for path-traversal vulnerabilities.
35+
*/
3336
class SanitizerGuard extends DataFlow::Node {
3437
SanitizerGuard() { this = DataFlow::BarrierGuard<sanitizerGuard/3>::getABarrierNode() }
3538
}

0 commit comments

Comments
 (0)