Skip to content

Commit a73032f

Browse files
committed
C++: ArithmeticUncontrolled
1 parent 7cbfa8e commit a73032f

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,10 @@ module UncontrolledArithConfig implements DataFlow::ConfigSig {
121121
node.asExpr().getUnspecifiedType() instanceof PointerType
122122
}
123123

124-
predicate observeDiffInformedIncrementalMode() {
125-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 5 does not select a source or sink originating from the flow call on line 134 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-190/ArithmeticUncontrolled.ql@139:3:139:27)
124+
predicate observeDiffInformedIncrementalMode() { any() }
125+
126+
Location getASelectedSourceLocation(DataFlow::Node source) {
127+
result = getExpr(source).getLocation()
126128
}
127129
}
128130

0 commit comments

Comments
 (0)