mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
JS: Check for labeled barriers in reachableFromInput
This commit is contained in:
@@ -1142,7 +1142,8 @@ private predicate reachableFromInput(
|
||||
DataFlow::Configuration cfg, PathSummary summary
|
||||
) {
|
||||
callInputStep(f, invk, input, nd, cfg) and
|
||||
summary = PathSummary::level()
|
||||
summary = PathSummary::level() and
|
||||
not cfg.isLabeledBarrier(nd, summary.getEndLabel())
|
||||
or
|
||||
exists(DataFlow::Node mid, PathSummary oldSummary |
|
||||
reachableFromInput(f, invk, input, mid, cfg, oldSummary) and
|
||||
|
||||
Reference in New Issue
Block a user