Skip to content

Commit 60f2e8a

Browse files
committed
C++: Fix QLDoc.
1 parent 33e991b commit 60f2e8a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference/AllocationToInvalidPointer.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ private module SizeBarrier {
128128
}
129129

130130
/**
131-
* Holds if `small < large + state` holds if `g` evaluates to `edge`.
131+
* Holds if `left < large + state` holds if `g` evaluates to `edge`, where `large` is some
132+
* value that is equal to the size argument of an allocation.
132133
*/
133134
private predicate operandGuardChecks(IRGuardCondition g, Operand left, int state, boolean edge) {
134135
exists(DataFlow::Node nLeft, DataFlow::Node nRight, int k |

0 commit comments

Comments
 (0)