File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
extensions/ql-vscode/src/data-extensions-editor/queries Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,7 @@ private import semmle.code.java.dataflow.ExternalFlow
3939private import semmle.code.java.dataflow.FlowSources
4040private import semmle.code.java.dataflow.FlowSummary
4141private import semmle.code.java.dataflow.internal.DataFlowPrivate
42+ private import semmle.code.java.dataflow.internal.FlowSummaryImpl as FlowSummaryImpl
4243private import semmle.code.java.dataflow.TaintTracking
4344
4445pragma[nomagic]
@@ -124,8 +125,17 @@ class ExternalApi extends Callable {
124125 pragma[nomagic]
125126 predicate isSink() { sinkNode(this.getAnInput(), _) }
126127
127- /** Holds if this API is supported by existing CodeQL libraries, that is, it is either a recognized source or sink or has a flow summary. */
128- predicate isSupported() { this.hasSummary() or this.isSource() or this.isSink() }
128+ /** Holds if this API is a known neutral. */
129+ pragma[nomagic]
130+ predicate isNeutral() { this = any(FlowSummaryImpl::Public::NeutralCallable nsc).asCallable() }
131+
132+ /**
133+ * Holds if this API is supported by existing CodeQL libraries, that is, it is either a
134+ * recognized source, sink or neutral or it has a flow summary.
135+ */
136+ predicate isSupported() {
137+ this.hasSummary() or this.isSource() or this.isSink() or this.isNeutral()
138+ }
129139}
130140
131141/** DEPRECATED: Alias for ExternalApi */
You can’t perform that action at this time.
0 commit comments