Skip to content

Commit a4ac039

Browse files
committed
C++/OverflowDestination
1 parent 65d79ff commit a4ac039

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

cpp/ql/src/Critical/OverflowDestination.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,8 @@ module OverflowDestinationConfig implements DataFlow::ConfigSig {
8585

8686
predicate observeDiffInformedIncrementalMode() { any() }
8787

88-
Location getASelectedSourceLocation(DataFlow::Node source) { none() }
89-
9088
Location getASelectedSinkLocation(DataFlow::Node sink) {
91-
exists(FunctionCall fc | result = fc.getLocation() |
89+
exists(FunctionCall fc | result = [fc.getLocation(), sink.getLocation()] |
9290
sourceSized(fc, sink.asIndirectConvertedExpr())
9391
)
9492
}

0 commit comments

Comments
 (0)