mirror of
https://github.com/github/codeql.git
synced 2026-05-05 05:35:13 +02:00
Only generate models for local supertypes
Avoid generating models for classes implementing external SPI (e.g. `FileFilter`). Keep `toString` models intact as they're commonly used as taint-propagation method (e.g. see `Joiner`).
This commit is contained in:
@@ -29,7 +29,7 @@ class FromSourceConfiguration extends TaintTracking::Configuration {
|
||||
}
|
||||
}
|
||||
|
||||
// TODO: better way than rely on internals?
|
||||
// TODO: better way than rely on internals to capture kind?
|
||||
cached
|
||||
predicate specificSourceNode(DataFlow::Node node, string output, string kind) {
|
||||
exists(InterpretNode n | Private::External::isSourceNode(n, output, kind) and n.asNode() = node)
|
||||
|
||||
Reference in New Issue
Block a user