Skip to content

Commit c265113

Browse files
MathiasVPjketema
andauthored
Update cpp/ql/lib/semmle/code/cpp/security/InvalidPointerDereference/InvalidPointerToDereference.qll
Co-authored-by: Jeroen Ketema <[email protected]>
1 parent 2c6bbd8 commit c265113

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -114,11 +114,11 @@ private module InvalidPointerToDerefBarrier {
114114
private predicate operandGuardChecks(
115115
PointerArithmeticInstruction pai, IRGuardCondition g, Operand small, int k, boolean edge
116116
) {
117-
exists(DataFlow::Node source, DataFlow::Node nSmall, DataFlow::Node nBig |
117+
exists(DataFlow::Node source, DataFlow::Node nSmall, DataFlow::Node nLarge |
118118
nSmall.asOperand() = small and
119119
BarrierConfig::isSource(source, pai) and
120-
BarrierFlow::flow(source, nBig) and
121-
BarrierConfig::isSink(nSmall, nBig, g, k, edge)
120+
BarrierFlow::flow(source, nLarge) and
121+
BarrierConfig::isSink(nSmall, nLarge, g, k, edge)
122122
)
123123
}
124124

0 commit comments

Comments
 (0)