mirror of
https://github.com/github/codeql.git
synced 2026-01-30 06:42:57 +01:00
Allow data flow through receiver for modelled methods
This commit is contained in:
committed by
Owen Mansel-Chan
parent
ede57b6527
commit
9b2f29bbcd
@@ -3,6 +3,7 @@ private import semmle.go.dataflow.FunctionInputsAndOutputs
|
||||
private import semmle.go.dataflow.FlowSummary
|
||||
private import DataFlowPrivate
|
||||
private import FlowSummaryImpl as FlowSummaryImpl
|
||||
private import semmle.go.dataflow.ExternalFlow
|
||||
|
||||
cached
|
||||
private newtype TNode =
|
||||
@@ -711,6 +712,12 @@ module Public {
|
||||
i != -1
|
||||
or
|
||||
exists(c.(MethodCallNode).getTarget().getBody())
|
||||
or
|
||||
exists(string package, string type, string name |
|
||||
c.(MethodCallNode).getTarget().hasQualifiedName(package, type, name)
|
||||
|
|
||||
exists(interpretElement(package, type, _, name, "", _))
|
||||
)
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user