mirror of
https://github.com/github/codeql.git
synced 2026-04-21 23:14:03 +02:00
Merge pull request #14573 from hvitved/flow-summary-impl-param
Move `FlowSummaryImpl.qll` to `dataflow` pack
This commit is contained in:
@@ -304,7 +304,7 @@ class TopJdkApi extends Callable {
|
||||
|
||||
/** Holds if this API has a manual neutral summary model. */
|
||||
private predicate hasManualNeutralSummary() {
|
||||
this.(FlowSummaryImpl::Public::NeutralSummaryCallable).hasManualModel()
|
||||
this = any(FlowSummaryImpl::Public::NeutralSummaryCallable n | n.hasManualModel()).asCallable()
|
||||
}
|
||||
|
||||
/** Holds if this API has a manual MaD model. */
|
||||
|
||||
@@ -79,7 +79,7 @@ class ExternalApi extends Callable {
|
||||
|
||||
/** Holds if this API is a known neutral. */
|
||||
pragma[nomagic]
|
||||
predicate isNeutral() { this instanceof FlowSummaryImpl::Public::NeutralCallable }
|
||||
predicate isNeutral() { this = any(FlowSummaryImpl::Public::NeutralCallable n).asCallable() }
|
||||
|
||||
/**
|
||||
* Holds if this API is supported by existing CodeQL libraries, that is, it is either a
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
private import java
|
||||
private import semmle.code.java.dataflow.internal.DataFlowPrivate
|
||||
private import semmle.code.java.dataflow.internal.FlowSummaryImplSpecific
|
||||
private import semmle.code.java.dataflow.internal.FlowSummaryImpl
|
||||
private import semmle.code.java.dataflow.internal.ModelExclusions
|
||||
private import ModelEditor
|
||||
|
||||
@@ -8,7 +8,7 @@ private import ModelEditor
|
||||
* A class of effectively public callables from source code.
|
||||
*/
|
||||
class PublicEndpointFromSource extends Endpoint, ModelApi {
|
||||
override predicate isSource() { sourceElement(this, _, _, _) }
|
||||
override predicate isSource() { SourceSinkInterpretationInput::sourceElement(this, _, _) }
|
||||
|
||||
override predicate isSink() { sinkElement(this, _, _, _) }
|
||||
override predicate isSink() { SourceSinkInterpretationInput::sinkElement(this, _, _) }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user