mirror of
https://github.com/github/codeql.git
synced 2025-12-22 03:36:30 +01:00
C++: some experimental product flow queries
This commit is contained in:
@@ -26,7 +26,7 @@ module ProductFlow {
|
||||
) {
|
||||
isSourcePair(source1.getNode(), source2.getNode()) and
|
||||
isSinkPair(sink1.getNode(), sink2.getNode()) and
|
||||
reachablePair(this, source1, source2, sink1, sink2)
|
||||
reachablePair2(this, source1, source2, sink1, sink2)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -52,6 +52,10 @@ module ProductFlow {
|
||||
override predicate isSink(DataFlow::Node sink) {
|
||||
exists(Configuration conf | conf.isSinkPair(_, sink))
|
||||
}
|
||||
|
||||
override int explorationLimit() {
|
||||
result = 10
|
||||
}
|
||||
}
|
||||
|
||||
predicate reachablePair1(
|
||||
|
||||
Reference in New Issue
Block a user