Skip to content

Commit de02bb4

Browse files
author
Max Schaefer
committed
JavaScript: Prevent joining on configuration in onPath.
1 parent 2a55ba5 commit de02bb4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -938,8 +938,8 @@ private predicate onPath(DataFlow::Node nd, DataFlow::Configuration cfg, PathSum
938938
or
939939
exists(DataFlow::Node mid, PathSummary stepSummary |
940940
reachableFromSource(nd, cfg, summary) and
941-
flowStep(nd, cfg, mid, stepSummary) and
942-
onPath(mid, cfg, summary.append(stepSummary))
941+
flowStep(nd, id(cfg), mid, stepSummary) and
942+
onPath(mid, id(cfg), summary.append(stepSummary))
943943
)
944944
}
945945

0 commit comments

Comments
 (0)