Skip to content

Commit f3d51e0

Browse files
committed
C++/ArithmeticUncontrolled
1 parent 1321cbb commit f3d51e0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cpp/ql/src/Security/CWE/CWE-190/ArithmeticUncontrolled.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ module UncontrolledArithConfig implements DataFlow::ConfigSig {
124124
predicate observeDiffInformedIncrementalMode() { any() }
125125

126126
Location getASelectedSourceLocation(DataFlow::Node source) {
127-
result = getExpr(source).getLocation()
127+
result = [getExpr(source).getLocation(), source.getLocation()]
128128
}
129129
}
130130

0 commit comments

Comments
 (0)