Skip to content

Commit d580722

Browse files
committed
C#: Modify unsupported external library meta query to use call instead of dispatchcall.
1 parent 187ece6 commit d580722

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

csharp/ql/src/meta/frameworks/UnsupportedExternalAPIs.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ private import semmle.code.csharp.dataflow.internal.FlowSummaryImpl as FlowSumma
1414
private import semmle.code.csharp.dataflow.internal.NegativeSummary
1515
private import Telemetry.ExternalApi
1616

17-
from DispatchCall c, ExternalApi api
17+
from Call c, ExternalApi api
1818
where
19-
c = api.getACall() and
19+
c.getTarget().getUnboundDeclaration() = api and
2020
not api.isUninteresting() and
2121
not api.isSupported() and
2222
not api instanceof FlowSummaryImpl::Public::NegativeSummarizedCallable

0 commit comments

Comments
 (0)