Skip to content

Commit d6368c3

Browse files
committed
C++: Add QLDoc comments.
1 parent 49807c0 commit d6368c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

cpp/ql/lib/semmle/code/cpp/security/Overflow.qll

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ private predicate stmtDominates(Stmt dominator, Stmt dominated) {
4141
}
4242

4343
/**
44-
* Holds if the value of `use` is guarded to be less than something.
44+
* Holds if the value of `use` is guarded to be less than something, and `e`
45+
* is in code controlled by that guard (where the guard condition held).
4546
*/
4647
pragma[nomagic]
4748
predicate guardedLesser(Operation e, Expr use) {
@@ -67,7 +68,8 @@ predicate guardedLesser(Operation e, Expr use) {
6768
}
6869

6970
/**
70-
* Holds if the value of `use` is guarded to be greater than something.
71+
* Holds if the value of `use` is guarded to be greater than something, and `e`
72+
* is in code controlled by that guard (where the guard condition held).
7173
*/
7274
pragma[nomagic]
7375
predicate guardedGreater(Operation e, Expr use) {

0 commit comments

Comments
 (0)