github / github/codeql

How to filter the result of hasFlowPath API

Open
#10,659 3 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
CodeQL
Stars
10.1k
Forks
2.1k
Avg merge
2d 15h
Merged PRs (30d)
141

Description

I want to operate each node in the result of hasFlowPath(source, sink) data flow.

For example, I want to get every method call in the `A a to if(c)` data flow. The results I expect are getA, getB, getC. But the `hasFlowPath()` API only return the dataflow path which can not be

But the result of `hasFlowPath()` API contains only the nodes of the data flow, so there is no way to distinguish the method call node from it.

```
A a = getA();
B b = getB(a);
C c = getC(b);
if(c){
xx
}
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.