Skip to content

Commit eb02211

Browse files
michaelnebelhvitved
authored andcommitted
C#: Fix issue in ExternalApi.
1 parent 68055bc commit eb02211

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csharp/ql/src/Telemetry/ExternalApi.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ private import semmle.code.csharp.dataflow.FlowSummary
88
private import semmle.code.csharp.dataflow.internal.DataFlowImplCommon as DataFlowImplCommon
99
private import semmle.code.csharp.dataflow.internal.DataFlowPrivate
1010
private import semmle.code.csharp.dataflow.internal.DataFlowDispatch as DataFlowDispatch
11+
private import semmle.code.csharp.dataflow.internal.FlowSummaryImpl as Impl
1112
private import semmle.code.csharp.dataflow.internal.TaintTrackingPrivate
1213
private import semmle.code.csharp.security.dataflow.flowsources.Remote
1314

@@ -80,7 +81,7 @@ class ExternalApi extends DotNet::Callable {
8081

8182
/** Holds if this API has a supported summary. */
8283
predicate hasSummary() {
83-
this instanceof SummarizedCallable or
84+
exists(Impl::Public::SummarizedCallable sc | sc.asCallable() = this) or
8485
defaultAdditionalTaintStep(this.getAnInput(), _)
8586
}
8687

0 commit comments

Comments
 (0)