Rust: Convert data flow test to @kind path-problem

This commit is contained in:
Tom Hvitved
2025-09-17 20:27:10 +02:00
parent 7670a2bd77
commit aba2cb487e
2 changed files with 1788 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,7 @@
/**
* @kind path-problem
*/
import rust
import codeql.rust.dataflow.DataFlow
import codeql.rust.Concepts
@@ -25,3 +29,8 @@ module MyFlowConfig implements DataFlow::ConfigSig {
module MyFlowTest = TaintFlowTest<MyFlowConfig>;
import MyFlowTest
import PathGraph
from PathNode source, PathNode sink
where flowPath(source, sink)
select sink, source, sink, "$@", source, source.toString()