mirror of
https://github.com/github/codeql.git
synced 2026-02-11 20:51:06 +01:00
C#: Exclude the field access cases from missing argument call.
This commit is contained in:
@@ -60,6 +60,12 @@ private module Input implements InputSig<Location, CsharpDataFlow> {
|
||||
qe.isConditional() and
|
||||
qe.getQualifier() = arg.asExpr()
|
||||
)
|
||||
or
|
||||
// TODO: Remove once underlying issue is fixed
|
||||
exists(AssignableDefinitions::OutRefDefinition def |
|
||||
def.getTargetAccess().(QualifiableExpr) = arg.asExpr() and
|
||||
def.getTargetAccess().isOutArgument()
|
||||
)
|
||||
}
|
||||
|
||||
predicate multipleArgumentCallExclude(ArgumentNode arg, DataFlowCall call) {
|
||||
|
||||
Reference in New Issue
Block a user