mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
JS: Do not track returned values out of the enclosing function
This commit is contained in:
@@ -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()
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user