Skip to content

Commit 248ffa1

Browse files
authored
Merge pull request #16318 from aschackmull/dataflow/doublyboundedfasttc
Dataflow: Use doublyBoundedFastTC.
2 parents 3a2b0a2 + 830b83f commit 248ffa1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

shared/dataflow/codeql/dataflow/internal/DataFlowImpl.qll

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3882,7 +3882,12 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
38823882
n1.getANonHiddenSuccessor(_) = n2 and directReach(n2)
38833883
}
38843884

3885-
private predicate pathSuccPlus(PathNodeImpl n1, PathNodeImpl n2) = fastTC(pathSucc/2)(n1, n2)
3885+
private predicate tcSrc(PathNodeImpl n) { n.isFlowSource() or n.isSource(_) }
3886+
3887+
private predicate tcSink(PathNodeImpl n) { n.isFlowSink() or n instanceof PathNodeSink }
3888+
3889+
private predicate pathSuccPlus(PathNodeImpl n1, PathNodeImpl n2) =
3890+
doublyBoundedFastTC(pathSucc/2, tcSrc/1, tcSink/1)(n1, n2)
38863891

38873892
/**
38883893
* A `Node` augmented with a call context (except for sinks) and an access path.

0 commit comments

Comments
 (0)