Merge pull request #16520 from michaelnebel/csharp/fixsummarizedcallabledataflow

C#: Make the flow summary filtering in the adapter.
This commit is contained in:
Michael Nebel
2024-05-24 12:48:03 +02:00
committed by GitHub
6 changed files with 17 additions and 33 deletions

View File

@@ -77,8 +77,7 @@ Element getAssignmentTarget(Expr e) {
Element getCollectionAssignmentTarget(Expr e) {
// Store into collection via method
exists(DataFlowPrivate::PostUpdateNode postNode |
FlowSummaryImpl::Private::Steps::summarySetterStep(DataFlow::exprNode(e), _, postNode,
any(DataFlowDispatch::DataFlowSummarizedCallable sc)) and
FlowSummaryImpl::Private::Steps::summarySetterStep(DataFlow::exprNode(e), _, postNode, _) and
result.(Variable).getAnAccess() = postNode.getPreUpdateNode().asExpr()
)
or