Skip to content

Commit df9c756

Browse files
committed
C++: Add more comments.
1 parent c265113 commit df9c756

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ private module InvalidPointerToDerefBarrier {
128128
Instruction getABarrierInstruction(PointerArithmeticInstruction pai) {
129129
exists(IRGuardCondition g, ValueNumber value, Operand use, boolean edge, int delta, int k |
130130
use = value.getAUse() and
131+
// value < pai + k
131132
operandGuardChecks(pai, pragma[only_bind_into](g), pragma[only_bind_into](use),
132133
pragma[only_bind_into](k), pragma[only_bind_into](edge)) and
133134
// result <= value + delta

0 commit comments

Comments
 (0)