mirror of
https://github.com/github/codeql.git
synced 2025-12-24 12:46:34 +01:00
11 lines
460 B
Plaintext
11 lines
460 B
Plaintext
import experimental.dataflow.callGraphConfig
|
|
|
|
from DataFlow::Node source, DataFlow::Node sink
|
|
where
|
|
source.getLocation().getFile().getBaseName() = "classes.py" and
|
|
sink.getLocation().getFile().getBaseName() = "classes.py" and
|
|
exists(CallGraphConfig cfg | cfg.hasFlow(source, sink))
|
|
select source, sink
|
|
// Ideally, we would just have 1-step paths either from argument to parameter
|
|
// or from return to call. This gives a bit more, so should be rewritten.
|