Skip to content

Commit 8bee391

Browse files
committed
Rust: Fixup queries.
1 parent a020bb4 commit 8bee391

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

rust/ql/src/utils/modelgenerator/CaptureContentSummaryModels.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,5 @@
99
import internal.CaptureModels
1010

1111
from DataFlowSummaryTargetApi api, string flow
12-
where flow = ContentSensitive::captureFlow(api, _)
12+
where flow = ContentSensitive::captureFlow(api, _, _)
1313
select flow order by flow

rust/ql/src/utils/modelgenerator/debug/CaptureSummaryModelsPartialPath.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import PartialFlow::PartialPathGraph
1414

1515
int explorationLimit() { result = 3 }
1616

17-
module PartialFlow = Heuristic::PropagateFlow::FlowExplorationFwd<explorationLimit/0>;
17+
module PartialFlow = Heuristic::PropagateTaintFlow::FlowExplorationFwd<explorationLimit/0>;
1818

1919
from
2020
PartialFlow::PartialPathNode source, PartialFlow::PartialPathNode sink,

rust/ql/src/utils/modelgenerator/debug/CaptureSummaryModelsPath.ql

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,15 @@
1111
private import codeql.rust.dataflow.DataFlow
1212
import utils.modelgenerator.internal.CaptureModels
1313
import Heuristic
14-
import PropagateFlow::PathGraph
14+
import PropagateTaintFlow::PathGraph
1515

1616
from
17-
PropagateFlow::PathNode source, PropagateFlow::PathNode sink, DataFlowSummaryTargetApi api,
18-
DataFlow::Node p, DataFlow::Node returnNodeExt
17+
PropagateTaintFlow::PathNode source, PropagateTaintFlow::PathNode sink,
18+
DataFlowSummaryTargetApi api, DataFlow::Node p, DataFlow::Node returnNodeExt
1919
where
20-
PropagateFlow::flowPath(source, sink) and
20+
PropagateTaintFlow::flowPath(source, sink) and
2121
p = source.getNode() and
2222
returnNodeExt = sink.getNode() and
23-
exists(captureThroughFlow0(api, p, returnNodeExt))
23+
captureThroughFlow0(api, p, returnNodeExt)
2424
select sink.getNode(), source, sink, "There is flow from $@ to the $@.", source.getNode(),
2525
"parameter", sink.getNode(), "return value"

rust/ql/test/utils-tests/modelgenerator/CaptureSummaryModels.ql

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import utils.modelgenerator.internal.CaptureModels
33
import utils.test.InlineMadTest
44

55
module InlineMadTestConfig implements InlineMadTestConfigSig {
6-
string getCapturedModel(Function f) { result = ContentSensitive::captureFlow(f, _) }
6+
string getCapturedModel(Function f) { result = ContentSensitive::captureFlow(f, _, _) }
77

88
string getKind() { result = "summary" }
99
}

0 commit comments

Comments
 (0)