Skip to content

Commit 869be94

Browse files
committed
C#: Property, Indexer, Event and dynamic calls may use the result of the entire expression as argument.
1 parent 62032a0 commit 869be94

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

csharp/ql/lib/semmle/code/csharp/dataflow/internal/DataFlowPrivate.qll

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,6 +1579,15 @@ private module ArgumentNodes {
15791579
scope = def.getExpr()
15801580
)
15811581
else scope = e2
1582+
or
1583+
e1.(Argument).isArgumentOf(e2, _) and
1584+
exists(AssignableDefinitions::AssignOperationDefinition def |
1585+
def.getTargetAccess() = e2 and
1586+
def.getExpr() = e1
1587+
) and
1588+
exactScope = false and
1589+
isSuccessor = false and
1590+
scope = e1
15821591
}
15831592
}
15841593

0 commit comments

Comments
 (0)