mirror of
https://github.com/github/codeql.git
synced 2025-12-17 09:13:20 +01:00
only use neutral models of kind "sink"
This commit is contained in:
@@ -79,7 +79,7 @@ module ApplicationCandidatesImpl implements SharedCharacteristics::CandidateSig
|
|||||||
predicate isNeutral(Endpoint e) {
|
predicate isNeutral(Endpoint e) {
|
||||||
exists(string package, string type, string name, string signature |
|
exists(string package, string type, string name, string signature |
|
||||||
sinkSpec(e, package, type, name, signature, _, _) and
|
sinkSpec(e, package, type, name, signature, _, _) and
|
||||||
ExternalFlow::neutralModel(package, type, name, [signature, ""], _, _)
|
ExternalFlow::neutralModel(package, type, name, [signature, ""], "sink", _)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,7 +60,7 @@ module FrameworkCandidatesImpl implements SharedCharacteristics::CandidateSig {
|
|||||||
predicate isNeutral(Endpoint e) {
|
predicate isNeutral(Endpoint e) {
|
||||||
exists(string package, string type, string name, string signature |
|
exists(string package, string type, string name, string signature |
|
||||||
sinkSpec(e, package, type, name, signature, _, _) and
|
sinkSpec(e, package, type, name, signature, _, _) and
|
||||||
ExternalFlow::neutralModel(package, type, name, [signature, ""], _, _)
|
ExternalFlow::neutralModel(package, type, name, [signature, ""], "sink", _)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user