Skip to content

Commit df03269

Browse files
committed
C#: Exclude the field access cases from missing argument call.
1 parent 2ece2cc commit df03269

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

csharp/ql/consistency-queries/DataFlowConsistency.ql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,12 @@ private module Input implements InputSig<Location, CsharpDataFlow> {
6060
qe.isConditional() and
6161
qe.getQualifier() = arg.asExpr()
6262
)
63+
or
64+
// TODO: Remove once underlying issue is fixed
65+
exists(AssignableDefinitions::OutRefDefinition def |
66+
def.getTargetAccess().(QualifiableExpr) = arg.asExpr() and
67+
def.getTargetAccess().isOutArgument()
68+
)
6369
}
6470

6571
predicate multipleArgumentCallExclude(ArgumentNode arg, DataFlowCall call) {

0 commit comments

Comments
 (0)