Skip to content

Commit f8d1868

Browse files
author
Alvaro Muñoz
committed
Fix template queries
1 parent 8644a80 commit f8d1868

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,9 @@
11
/**
22
* @name Forward Partial Dataflow
33
* @description Forward Partial Dataflow
4-
* @kind problem
5-
* @precision low
6-
* @problem.severity error
7-
* @id seclab/forward-partial-dataflow
8-
* @tags audit
4+
* @kind table
5+
* @id githubsecuritylab/forward-partial-dataflow
6+
* @tags template
97
*/
108

119
import csharp
@@ -22,16 +20,15 @@ private module MyConfig implements DataFlow::ConfigSig {
2220
none()
2321
}
2422

25-
predicate isSink(DataFlow::Node sink) {
26-
none()
27-
}
23+
predicate isSink(DataFlow::Node sink) { none() }
2824
}
2925

3026
private module MyFlow = TaintTracking::Global<MyConfig>; // or DataFlow::Global<..>
27+
3128
int explorationLimit() { result = 10 }
29+
3230
private module PartialFlow = MyFlow::FlowExploration<explorationLimit/0>;
3331

3432
from PartialFlow::PartialPathNode n, int dist
3533
where PartialFlow::partialFlow(_, n, dist)
3634
select dist, n
37-

0 commit comments

Comments
 (0)