Skip to content

Commit 066adde

Browse files
committed
C++: ArithmeticWithExtremeValues
1 parent a73032f commit 066adde

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -114,12 +114,10 @@ module Config implements DataFlow::ConfigSig {
114114
)
115115
}
116116

117-
predicate observeDiffInformedIncrementalMode() {
118-
any() // TODO: Make sure that the location overrides match the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 122 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-190/ArithmeticWithExtremeValues.ql@126:8:126:9)
119-
}
117+
predicate observeDiffInformedIncrementalMode() { any() }
120118

121119
Location getASelectedSinkLocation(DataFlow::Node sink) {
122-
none() // TODO: Make sure that this sink location matches the query's select clause: Column 1 does not select a source or sink originating from the flow call on line 122 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Security/CWE/CWE-190/ArithmeticWithExtremeValues.ql@126:8:126:9)
120+
exists(VariableAccess va | result = va.getLocation() | isSink(sink, va, _))
123121
}
124122
}
125123

0 commit comments

Comments
 (0)