Merge pull request #4865 from esbena/js/fix-execa-model

Approved by erik-krogh
This commit is contained in:
CodeQL CI
2020-12-22 03:32:26 -08:00
committed by GitHub
5 changed files with 48 additions and 16 deletions

View File

@@ -18,15 +18,18 @@ private predicate execApi(string mod, string fn, int cmdArg, int optionsArg, boo
shell = false and
(
fn = "node" or
fn = "shell" or
fn = "shellSync" or
fn = "stdout" or
fn = "stderr" or
fn = "sync"
)
or
shell = true and
(fn = "command" or fn = "commandSync")
(
fn = "command" or
fn = "commandSync" or
fn = "shell" or
fn = "shellSync"
)
) and
cmdArg = 0
}