Skip to content

Commit 0a7e797

Browse files
committed
update expected outputs after reordering tests
1 parent 946720f commit 0a7e797

File tree

2 files changed

+0
-70
lines changed

2 files changed

+0
-70
lines changed

javascript/ql/test/query-tests/Security/CWE-078/CommandInjection/CommandInjection.expected

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,6 @@ nodes
5050
| child_process-test.js:83:19:83:36 | req.query.fileName |
5151
| child_process-test.js:83:19:83:36 | req.query.fileName |
5252
| child_process-test.js:83:19:83:36 | req.query.fileName |
53-
| child_process-test.js:85:37:85:54 | req.query.fileName |
54-
| child_process-test.js:85:37:85:54 | req.query.fileName |
5553
| child_process-test.js:94:11:94:35 | "ping " ... ms.host |
5654
| child_process-test.js:94:11:94:35 | "ping " ... ms.host |
5755
| child_process-test.js:94:21:94:30 | ctx.params |
@@ -134,16 +132,6 @@ nodes
134132
| form-parsers.js:59:10:59:33 | "touch ... ilename |
135133
| form-parsers.js:59:21:59:24 | part |
136134
| form-parsers.js:59:21:59:33 | part.filename |
137-
| lib/subLib4/index.js:6:32:6:35 | name |
138-
| lib/subLib4/index.js:7:18:7:21 | name |
139-
| lib/subLib4/subsub.js:3:28:3:31 | name |
140-
| lib/subLib4/subsub.js:4:10:4:25 | "rm -rf " + name |
141-
| lib/subLib4/subsub.js:4:10:4:25 | "rm -rf " + name |
142-
| lib/subLib4/subsub.js:4:22:4:25 | name |
143-
| lib/subLib/index.js:7:32:7:35 | name |
144-
| lib/subLib/index.js:8:10:8:25 | "rm -rf " + name |
145-
| lib/subLib/index.js:8:10:8:25 | "rm -rf " + name |
146-
| lib/subLib/index.js:8:22:8:25 | name |
147135
| other.js:5:9:5:49 | cmd |
148136
| other.js:5:15:5:38 | url.par ... , true) |
149137
| other.js:5:15:5:44 | url.par ... ).query |
@@ -238,10 +226,6 @@ edges
238226
| child_process-test.js:73:25:73:31 | req.url | child_process-test.js:73:15:73:38 | url.par ... , true) |
239227
| child_process-test.js:73:25:73:31 | req.url | child_process-test.js:73:15:73:38 | url.par ... , true) |
240228
| child_process-test.js:83:19:83:36 | req.query.fileName | child_process-test.js:83:19:83:36 | req.query.fileName |
241-
| child_process-test.js:85:37:85:54 | req.query.fileName | lib/subLib4/index.js:6:32:6:35 | name |
242-
| child_process-test.js:85:37:85:54 | req.query.fileName | lib/subLib4/index.js:6:32:6:35 | name |
243-
| child_process-test.js:85:37:85:54 | req.query.fileName | lib/subLib/index.js:7:32:7:35 | name |
244-
| child_process-test.js:85:37:85:54 | req.query.fileName | lib/subLib/index.js:7:32:7:35 | name |
245229
| child_process-test.js:94:21:94:30 | ctx.params | child_process-test.js:94:21:94:35 | ctx.params.host |
246230
| child_process-test.js:94:21:94:30 | ctx.params | child_process-test.js:94:21:94:35 | ctx.params.host |
247231
| child_process-test.js:94:21:94:35 | ctx.params.host | child_process-test.js:94:11:94:35 | "ping " ... ms.host |
@@ -314,14 +298,6 @@ edges
314298
| form-parsers.js:59:21:59:24 | part | form-parsers.js:59:21:59:33 | part.filename |
315299
| form-parsers.js:59:21:59:33 | part.filename | form-parsers.js:59:10:59:33 | "touch ... ilename |
316300
| form-parsers.js:59:21:59:33 | part.filename | form-parsers.js:59:10:59:33 | "touch ... ilename |
317-
| lib/subLib4/index.js:6:32:6:35 | name | lib/subLib4/index.js:7:18:7:21 | name |
318-
| lib/subLib4/index.js:7:18:7:21 | name | lib/subLib4/subsub.js:3:28:3:31 | name |
319-
| lib/subLib4/subsub.js:3:28:3:31 | name | lib/subLib4/subsub.js:4:22:4:25 | name |
320-
| lib/subLib4/subsub.js:4:22:4:25 | name | lib/subLib4/subsub.js:4:10:4:25 | "rm -rf " + name |
321-
| lib/subLib4/subsub.js:4:22:4:25 | name | lib/subLib4/subsub.js:4:10:4:25 | "rm -rf " + name |
322-
| lib/subLib/index.js:7:32:7:35 | name | lib/subLib/index.js:8:22:8:25 | name |
323-
| lib/subLib/index.js:8:22:8:25 | name | lib/subLib/index.js:8:10:8:25 | "rm -rf " + name |
324-
| lib/subLib/index.js:8:22:8:25 | name | lib/subLib/index.js:8:10:8:25 | "rm -rf " + name |
325301
| other.js:5:9:5:49 | cmd | other.js:7:33:7:35 | cmd |
326302
| other.js:5:9:5:49 | cmd | other.js:7:33:7:35 | cmd |
327303
| other.js:5:9:5:49 | cmd | other.js:8:28:8:30 | cmd |
@@ -398,8 +374,6 @@ edges
398374
| form-parsers.js:41:10:41:31 | "touch ... ds.name | form-parsers.js:40:26:40:31 | fields | form-parsers.js:41:10:41:31 | "touch ... ds.name | This command line depends on a $@. | form-parsers.js:40:26:40:31 | fields | user-provided value |
399375
| form-parsers.js:53:10:53:31 | "touch ... ds.name | form-parsers.js:52:34:52:39 | fields | form-parsers.js:53:10:53:31 | "touch ... ds.name | This command line depends on a $@. | form-parsers.js:52:34:52:39 | fields | user-provided value |
400376
| form-parsers.js:59:10:59:33 | "touch ... ilename | form-parsers.js:58:30:58:33 | part | form-parsers.js:59:10:59:33 | "touch ... ilename | This command line depends on a $@. | form-parsers.js:58:30:58:33 | part | user-provided value |
401-
| lib/subLib4/subsub.js:4:10:4:25 | "rm -rf " + name | child_process-test.js:85:37:85:54 | req.query.fileName | lib/subLib4/subsub.js:4:10:4:25 | "rm -rf " + name | This command line depends on a $@. | child_process-test.js:85:37:85:54 | req.query.fileName | user-provided value |
402-
| lib/subLib/index.js:8:10:8:25 | "rm -rf " + name | child_process-test.js:85:37:85:54 | req.query.fileName | lib/subLib/index.js:8:10:8:25 | "rm -rf " + name | This command line depends on a $@. | child_process-test.js:85:37:85:54 | req.query.fileName | user-provided value |
403377
| other.js:7:33:7:35 | cmd | other.js:5:25:5:31 | req.url | other.js:7:33:7:35 | cmd | This command line depends on a $@. | other.js:5:25:5:31 | req.url | user-provided value |
404378
| other.js:8:28:8:30 | cmd | other.js:5:25:5:31 | req.url | other.js:8:28:8:30 | cmd | This command line depends on a $@. | other.js:5:25:5:31 | req.url | user-provided value |
405379
| other.js:9:32:9:34 | cmd | other.js:5:25:5:31 | req.url | other.js:9:32:9:34 | cmd | This command line depends on a $@. | other.js:5:25:5:31 | req.url | user-provided value |

javascript/ql/test/query-tests/Security/CWE-078/UselessUseOfCat/UselessUseOfCat.expected

Lines changed: 0 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
readFile
2-
| lib/lib.js:71:2:71:32 | cp.exec ... + name) | fs.readFile("/foO/BAR/" + name) |
3-
| lib/lib.js:73:2:73:32 | cp.exec ... + "\\"") | fs.readFile(""" + name + """) |
4-
| lib/lib.js:75:2:75:30 | cp.exec ... + "'") | fs.readFile("'" + name + "'") |
5-
| lib/lib.js:77:2:77:38 | cp.exec ... + "'") | fs.readFile("'/foo/bar" + name + "'") |
62
| uselesscat.js:10:1:10:43 | exec("c ... ut) {}) | fs.readFile("foo/bar", function(err, out) {...}) |
73
| uselesscat.js:12:1:14:2 | exec("c ... ut);\\n}) | fs.readFile("/proc/" + id + "/status", function(err, out) {...}) |
84
| uselesscat.js:16:1:16:29 | execSyn ... uinfo') | fs.readFileSync("/proc/cpuinfo") |
@@ -39,31 +35,6 @@ readFile
3935
| uselesscat.js:163:1:163:42 | execmod ... utf8'}) | fs.readFile("foo/bar") |
4036
| uselesscat.js:164:1:164:76 | execmod ... (out)}) | fs.readFile("foo/bar", {encoding: 'utf8'}, (err, out) => {...}) |
4137
syncCommand
42-
| child_process-test.js:9:5:9:22 | cp.execSync("foo") |
43-
| child_process-test.js:11:5:11:26 | cp.exec ... ("foo") |
44-
| child_process-test.js:13:5:13:23 | cp.spawnSync("foo") |
45-
| child_process-test.js:18:5:18:20 | cp.execSync(cmd) |
46-
| child_process-test.js:20:5:20:24 | cp.execFileSync(cmd) |
47-
| child_process-test.js:22:5:22:21 | cp.spawnSync(cmd) |
48-
| command-line-parameter-command-injection.js:11:2:11:21 | cp.execSync(args[0]) |
49-
| command-line-parameter-command-injection.js:12:2:12:33 | cp.exec ... rgs[0]) |
50-
| command-line-parameter-command-injection.js:15:2:15:26 | cp.exec ... rgs[0]) |
51-
| command-line-parameter-command-injection.js:16:2:16:38 | cp.exec ... rgs[0]) |
52-
| command-line-parameter-command-injection.js:19:2:19:18 | cp.execSync(arg0) |
53-
| command-line-parameter-command-injection.js:20:2:20:30 | cp.exec ... + arg0) |
54-
| command-line-parameter-command-injection.js:26:2:26:51 | cp.exec ... tion"`) |
55-
| command-line-parameter-command-injection.js:27:2:27:58 | cp.exec ... tion"`) |
56-
| lib/lib.js:419:2:419:52 | cp.exec ... true}) |
57-
| lib/lib.js:420:2:420:49 | cp.spaw ... true}) |
58-
| other.js:7:5:7:36 | require ... nc(cmd) |
59-
| other.js:9:5:9:35 | require ... nc(cmd) |
60-
| other.js:12:5:12:30 | require ... nc(cmd) |
61-
| other.js:30:5:30:36 | require ... ")(cmd) |
62-
| third-party-command-injection.js:6:9:6:28 | cp.execSync(command) |
63-
| tst_shell-command-injection-from-environment.js:5:2:5:62 | cp.exec ... emp")]) |
64-
| tst_shell-command-injection-from-environment.js:6:2:6:54 | cp.exec ... temp")) |
65-
| tst_shell-command-injection-from-environment.js:9:2:9:58 | execa.s ... temp")) |
66-
| tst_shell-command-injection-from-environment.js:12:2:12:34 | execa.s ... + safe) |
6738
| uselesscat.js:16:1:16:29 | execSyn ... uinfo') |
6839
| uselesscat.js:18:1:18:26 | execSyn ... path}`) |
6940
| uselesscat.js:20:1:20:36 | execSyn ... wc -l') |
@@ -95,21 +66,6 @@ syncCommand
9566
| uselesscat.js:158:16:158:46 | cspawn. ... /bar']) |
9667
| uselesscat.js:159:16:159:68 | cspawn. ... tf8' }) |
9768
options
98-
| child_process-test.js:56:5:56:59 | cp.spaw ... cmd])) | child_process-test.js:56:25:56:58 | ['/C', ... , cmd]) |
99-
| child_process-test.js:57:5:57:50 | cp.spaw ... t(cmd)) | child_process-test.js:57:25:57:49 | ['/C', ... at(cmd) |
100-
| child_process-test.js:67:3:67:21 | cp.spawn(cmd, args) | child_process-test.js:67:17:67:20 | args |
101-
| exec-sh2.js:10:12:10:57 | cp.spaw ... ptions) | exec-sh2.js:10:50:10:56 | options |
102-
| exec-sh.js:15:12:15:61 | cp.spaw ... ptions) | exec-sh.js:15:54:15:60 | options |
103-
| lib/lib.js:152:2:152:23 | cp.spaw ... gs, cb) | lib/lib.js:152:21:152:22 | cb |
104-
| lib/lib.js:159:2:159:23 | cp.spaw ... gs, cb) | lib/lib.js:159:21:159:22 | cb |
105-
| lib/lib.js:163:2:167:2 | cp.spaw ... t' }\\n\\t) | lib/lib.js:166:3:166:22 | { stdio: 'inherit' } |
106-
| lib/lib.js:417:2:417:66 | cp.exec ... => {}) | lib/lib.js:417:35:417:47 | {shell: true} |
107-
| lib/lib.js:418:2:418:45 | cp.spaw ... true}) | lib/lib.js:418:32:418:44 | {shell: true} |
108-
| lib/lib.js:419:2:419:52 | cp.exec ... true}) | lib/lib.js:419:39:419:51 | {shell: true} |
109-
| lib/lib.js:420:2:420:49 | cp.spaw ... true}) | lib/lib.js:420:36:420:48 | {shell: true} |
110-
| lib/lib.js:424:2:424:40 | spawn(" ... WN_OPT) | lib/lib.js:424:31:424:39 | SPAWN_OPT |
111-
| lib/lib.js:427:2:427:28 | spawn(" ... WN_OPT) | lib/lib.js:427:19:427:27 | SPAWN_OPT |
112-
| lib/lib.js:428:2:428:70 | spawn(" ... WN_OPT) | lib/lib.js:428:61:428:69 | SPAWN_OPT |
11369
| uselesscat.js:28:1:28:39 | execSyn ... 1000}) | uselesscat.js:28:28:28:38 | {uid: 1000} |
11470
| uselesscat.js:30:1:30:64 | exec('c ... t) { }) | uselesscat.js:30:26:30:38 | { cwd: './' } |
11571
| uselesscat.js:34:1:34:54 | execSyn ... utf8'}) | uselesscat.js:34:36:34:53 | {encoding: 'utf8'} |

0 commit comments

Comments
 (0)