Skip to content

Commit c94f12f

Browse files
committed
C++: OverflowDestination
1 parent e44e1cb commit c94f12f

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

cpp/ql/src/Critical/OverflowDestination.ql

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,14 @@ module OverflowDestinationConfig implements DataFlow::ConfigSig {
8383
)
8484
}
8585

86-
predicate observeDiffInformedIncrementalMode() {
87-
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 91 (/Users/d10c/src/semmle-code/ql/cpp/ql/src/Critical/OverflowDestination.ql@93:8:93:9)
86+
predicate observeDiffInformedIncrementalMode() { any() }
87+
88+
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
89+
90+
Location getASelectedSinkLocation(DataFlow::Node sink) {
91+
exists(FunctionCall fc | result = fc.getLocation() |
92+
sourceSized(fc, sink.asIndirectConvertedExpr())
93+
)
8894
}
8995
}
9096

0 commit comments

Comments
 (0)