Skip to content

Commit 830b83f

Browse files
committed
Dataflow: Use doublyBoundedFastTC.
1 parent b2f0994 commit 830b83f

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
@@ -3874,7 +3874,12 @@ module MakeImpl<LocationSig Location, InputSig<Location> Lang> {
38743874
n1.getANonHiddenSuccessor(_) = n2 and directReach(n2)
38753875
}
38763876

3877-
private predicate pathSuccPlus(PathNodeImpl n1, PathNodeImpl n2) = fastTC(pathSucc/2)(n1, n2)
3877+
private predicate tcSrc(PathNodeImpl n) { n.isFlowSource() or n.isSource(_) }
3878+
3879+
private predicate tcSink(PathNodeImpl n) { n.isFlowSink() or n instanceof PathNodeSink }
3880+
3881+
private predicate pathSuccPlus(PathNodeImpl n1, PathNodeImpl n2) =
3882+
doublyBoundedFastTC(pathSucc/2, tcSrc/1, tcSink/1)(n1, n2)
38783883

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

0 commit comments

Comments
 (0)