JS: Do not track returned values out of the enclosing function

This commit is contained in:
Asger F
2022-10-25 11:27:52 +02:00
parent a3234503b8
commit 414bd40c41

View File

@@ -1197,7 +1197,8 @@ private predicate reachesReturn(
exists(DataFlow::Node mid, PathSummary oldSummary, PathSummary newSummary |
flowStep(read, cfg, mid, oldSummary) and
reachesReturn(f, mid, cfg, newSummary) and
summary = oldSummary.append(newSummary)
summary = oldSummary.append(newSummary) and
pragma[only_bind_out](summary).isLevel()
)
}