mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Merge pull request #1677 from xiemaisi/js/flow-summary-fixes
Approved by esben-semmle
This commit is contained in:
@@ -11,7 +11,7 @@ import Configurations
|
||||
import PortalExitSource
|
||||
import SinkFromAnnotation
|
||||
|
||||
from TaintTracking::Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink, Portal p
|
||||
from DataFlow::Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink, Portal p
|
||||
where
|
||||
cfg.hasFlowPath(source, sink) and
|
||||
p = source.getNode().(PortalExitSource).getPortal() and
|
||||
|
||||
@@ -11,7 +11,7 @@ import Configurations
|
||||
import PortalEntrySink
|
||||
import SourceFromAnnotation
|
||||
|
||||
from TaintTracking::Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink, Portal p
|
||||
from DataFlow::Configuration cfg, DataFlow::PathNode source, DataFlow::PathNode sink, Portal p
|
||||
where
|
||||
cfg.hasFlowPath(source, sink) and
|
||||
p = sink.getNode().(PortalEntrySink).getPortal() and
|
||||
|
||||
@@ -11,8 +11,7 @@ class PortalEntrySink extends DataFlow::AdditionalSink {
|
||||
PortalEntrySink() { this = p.getAnEntryNode(true) }
|
||||
|
||||
override predicate isSinkFor(DataFlow::Configuration cfg, DataFlow::FlowLabel lbl) {
|
||||
cfg instanceof TaintTracking::Configuration and
|
||||
lbl = any(DataFlow::FlowLabel l)
|
||||
any()
|
||||
}
|
||||
|
||||
/** Gets the portal of which this is an entry node. */
|
||||
|
||||
@@ -11,8 +11,7 @@ class PortalExitSource extends DataFlow::AdditionalSource {
|
||||
PortalExitSource() { this = p.getAnExitNode(true) }
|
||||
|
||||
override predicate isSourceFor(DataFlow::Configuration cfg, DataFlow::FlowLabel lbl) {
|
||||
cfg instanceof TaintTracking::Configuration and
|
||||
lbl = any(DataFlow::FlowLabel l)
|
||||
any()
|
||||
}
|
||||
|
||||
/** Gets the portal of which this is an exit node. */
|
||||
|
||||
Reference in New Issue
Block a user