Skip to content

Commit 8109613

Browse files
committed
Rust: Correct + clarify qldoc.
1 parent 7c8e44d commit 8109613

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ module AccessInvalidPointer {
6262
}
6363

6464
/**
65-
* A barrier for invalid pointer access vulnerabilities for values found to be `null` in
66-
* a comparison.
65+
* A barrier for invalid pointer access vulnerabilities for values checked to
66+
* be non-`null`.
6767
*/
68-
private class NullCheckBarrier extends Barrier instanceof Barriers::NotNullCheckBarrier { }
68+
private class NotNullCheckBarrier extends Barrier instanceof Barriers::NotNullCheckBarrier { }
6969
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ private predicate notNullCheck(CfgNodes::AstCfgNode g, Cfg::CfgNode node, boolea
5858
}
5959

6060
/**
61-
* A node representing a check that the value is not null, which may be an
61+
* A node representing a value checked to be non-null. This may be an
6262
* appropriate taint flow barrier for some queries.
6363
*/
6464
class NotNullCheckBarrier extends DataFlow::Node {

0 commit comments

Comments
 (0)