github / github/codeql

How to filter the result of hasFlowPath API

Đang mở
#10,659 3 bình luận 0 reaction 0 người được giao Xem trên GitHub
question
Ngôn ngữ chính
CodeQL
Star
10.1k
Fork
2.1k
Merge trung bình
2 ngày 15 giờ
Pull request đã merge (30 ngày)
141

Mô tả

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
}
```

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.