Skip to content

Commit 76e8418

Browse files
committed
JS: Check for labeled barriers in reachableFromInput
1 parent 54fba2d commit 76e8418

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

javascript/ql/lib/semmle/javascript/dataflow/Configuration.qll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1142,7 +1142,8 @@ private predicate reachableFromInput(
11421142
DataFlow::Configuration cfg, PathSummary summary
11431143
) {
11441144
callInputStep(f, invk, input, nd, cfg) and
1145-
summary = PathSummary::level()
1145+
summary = PathSummary::level() and
1146+
not cfg.isLabeledBarrier(nd, summary.getEndLabel())
11461147
or
11471148
exists(DataFlow::Node mid, PathSummary oldSummary |
11481149
reachableFromInput(f, invk, input, mid, cfg, oldSummary) and

0 commit comments

Comments
 (0)