C#: Only disregard generated summaries in case there is a static call target in source code.

This commit is contained in:
Michael Nebel
2025-02-03 14:57:00 +01:00
parent 7476d9ed6b
commit dde28a1bed

View File

@@ -364,7 +364,7 @@ class NonDelegateDataFlowCall extends DataFlowCall, TNonDelegateCall {
DispatchCall getDispatchCall() { result = dc }
pragma[nomagic]
private predicate hasSourceTarget() { dc.getADynamicTarget().fromSource() }
private predicate hasSourceTarget() { dc.getAStaticTarget().fromSource() }
pragma[nomagic]
private FlowSummary::SummarizedCallable getASummarizedCallableTarget() {