Skip to content

Commit 8247086

Browse files
committed
unified: Update test output after rebasing on type inference
1 parent 4b67a4b commit 8247086

2 files changed

Lines changed: 13 additions & 1 deletion

File tree

‎unified/ql/test/query-tests/security/CWE-022/PathInjection/PathInjectionTest.expected‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@
8080
| testPathInjection.swift:498:49:498:60 | remoteString | testPathInjection.swift:340:24:340:78 | String(...) | testPathInjection.swift:498:49:498:60 | remoteString | This path depends on a $@. | testPathInjection.swift:340:24:340:78 | String(...) | user-provided value |
8181
| testPathInjection.swift:510:37:510:48 | remoteString | testPathInjection.swift:504:24:504:78 | String(...) | testPathInjection.swift:510:37:510:48 | remoteString | This path depends on a $@. | testPathInjection.swift:504:24:504:78 | String(...) | user-provided value |
8282
| testPathInjection.swift:512:33:512:44 | remoteString | testPathInjection.swift:504:24:504:78 | String(...) | testPathInjection.swift:512:33:512:44 | remoteString | This path depends on a $@. | testPathInjection.swift:504:24:504:78 | String(...) | user-provided value |
83+
| testPathInjection.swift:525:28:525:93 | ... .appendingPathComponent(...) | testPathInjection.swift:519:24:519:78 | String(...) | testPathInjection.swift:525:28:525:93 | ... .appendingPathComponent(...) | This path depends on a $@. | testPathInjection.swift:519:24:519:78 | String(...) | user-provided value |
8384
| testPathInjection.swift:527:28:527:29 | u1 | testPathInjection.swift:519:24:519:78 | String(...) | testPathInjection.swift:527:28:527:29 | u1 | This path depends on a $@. | testPathInjection.swift:519:24:519:78 | String(...) | user-provided value |
8485
| testPathInjection.swift:529:28:529:39 | remoteString | testPathInjection.swift:519:24:519:78 | String(...) | testPathInjection.swift:529:28:529:39 | remoteString | This path depends on a $@. | testPathInjection.swift:519:24:519:78 | String(...) | user-provided value |
8586
| testPathInjection.swift:541:32:541:43 | remoteString | testPathInjection.swift:519:24:519:78 | String(...) | testPathInjection.swift:541:32:541:43 | remoteString | This path depends on a $@. | testPathInjection.swift:519:24:519:78 | String(...) | user-provided value |
@@ -177,6 +178,7 @@ edges
177178
| testPathInjection.swift:504:9:504:20 | remoteString | testPathInjection.swift:510:37:510:48 | remoteString | provenance | |
178179
| testPathInjection.swift:504:9:504:20 | remoteString | testPathInjection.swift:512:33:512:44 | remoteString | provenance | |
179180
| testPathInjection.swift:504:24:504:78 | String(...) | testPathInjection.swift:504:9:504:20 | remoteString | provenance | |
181+
| testPathInjection.swift:519:9:519:20 | remoteString | testPathInjection.swift:525:28:525:29 | u1 | provenance | |
180182
| testPathInjection.swift:519:9:519:20 | remoteString | testPathInjection.swift:527:28:527:29 | u1 | provenance | |
181183
| testPathInjection.swift:519:9:519:20 | remoteString | testPathInjection.swift:529:28:529:39 | remoteString | provenance | |
182184
| testPathInjection.swift:519:9:519:20 | remoteString | testPathInjection.swift:541:32:541:43 | remoteString | provenance | |
@@ -186,6 +188,10 @@ edges
186188
| testPathInjection.swift:519:9:519:20 | remoteString | testPathInjection.swift:559:35:559:46 | remoteString | provenance | |
187189
| testPathInjection.swift:519:9:519:20 | remoteString | testPathInjection.swift:560:41:560:52 | remoteString | provenance | |
188190
| testPathInjection.swift:519:24:519:78 | String(...) | testPathInjection.swift:519:9:519:20 | remoteString | provenance | |
191+
| testPathInjection.swift:525:28:525:29 | u1 | testPathInjection.swift:16:74:16:77 | self | provenance | |
192+
| testPathInjection.swift:525:28:525:29 | u1 | testPathInjection.swift:525:28:525:66 | ... .appendingPathComponent(...) | provenance | |
193+
| testPathInjection.swift:525:28:525:66 | ... .appendingPathComponent(...) | testPathInjection.swift:16:74:16:77 | self | provenance | |
194+
| testPathInjection.swift:525:28:525:66 | ... .appendingPathComponent(...) | testPathInjection.swift:525:28:525:93 | ... .appendingPathComponent(...) | provenance | |
189195
| testPathInjection.swift:546:5:546:6 | [post] s1 [pointee] | testPathInjection.swift:547:32:547:33 | s1 [pointee] | provenance | |
190196
| testPathInjection.swift:546:5:546:14 | ... .pointee | testPathInjection.swift:546:5:546:6 | [post] s1 [pointee] | provenance | |
191197
| testPathInjection.swift:546:18:546:29 | remoteString | testPathInjection.swift:546:5:546:14 | ... .pointee | provenance | |
@@ -196,6 +202,7 @@ edges
196202
| testPathInjection.swift:580:9:580:20 | remoteString | testPathInjection.swift:588:22:588:33 | remoteString | provenance | |
197203
| testPathInjection.swift:580:24:580:78 | String(...) | testPathInjection.swift:580:9:580:20 | remoteString | provenance | |
198204
nodes
205+
| testPathInjection.swift:16:74:16:77 | self | semmle.label | self |
199206
| testPathInjection.swift:340:9:340:20 | remoteString | semmle.label | remoteString |
200207
| testPathInjection.swift:340:24:340:78 | String(...) | semmle.label | String(...) |
201208
| testPathInjection.swift:351:34:351:45 | remoteString | semmle.label | remoteString |
@@ -285,6 +292,9 @@ nodes
285292
| testPathInjection.swift:512:33:512:44 | remoteString | semmle.label | remoteString |
286293
| testPathInjection.swift:519:9:519:20 | remoteString | semmle.label | remoteString |
287294
| testPathInjection.swift:519:24:519:78 | String(...) | semmle.label | String(...) |
295+
| testPathInjection.swift:525:28:525:29 | u1 | semmle.label | u1 |
296+
| testPathInjection.swift:525:28:525:66 | ... .appendingPathComponent(...) | semmle.label | ... .appendingPathComponent(...) |
297+
| testPathInjection.swift:525:28:525:93 | ... .appendingPathComponent(...) | semmle.label | ... .appendingPathComponent(...) |
288298
| testPathInjection.swift:527:28:527:29 | u1 | semmle.label | u1 |
289299
| testPathInjection.swift:529:28:529:39 | remoteString | semmle.label | remoteString |
290300
| testPathInjection.swift:541:32:541:43 | remoteString | semmle.label | remoteString |
@@ -304,3 +314,5 @@ nodes
304314
| testPathInjection.swift:586:38:586:49 | remoteString | semmle.label | remoteString |
305315
| testPathInjection.swift:588:22:588:33 | remoteString | semmle.label | remoteString |
306316
subpaths
317+
| testPathInjection.swift:525:28:525:29 | u1 | testPathInjection.swift:16:74:16:77 | self | testPathInjection.swift:16:74:16:77 | self | testPathInjection.swift:525:28:525:66 | ... .appendingPathComponent(...) |
318+
| testPathInjection.swift:525:28:525:66 | ... .appendingPathComponent(...) | testPathInjection.swift:16:74:16:77 | self | testPathInjection.swift:16:74:16:77 | self | testPathInjection.swift:525:28:525:93 | ... .appendingPathComponent(...) |

‎unified/ql/test/query-tests/security/CWE-022/PathInjection/testPathInjection.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ func testPathInjection2(
522522
_ = NSData(contentsOf: u1)
523523
_ = NSData(contentsOf: u1.appendingPathComponent(""))
524524
_ = NSData(contentsOf: u1.appendingPathComponent(remoteString)) // $ MISSING: Alert
525-
_ = NSData(contentsOf: u1.appendingPathComponent(remoteString).appendingPathComponent("")) // $ MISSING: Alert
525+
_ = NSData(contentsOf: u1.appendingPathComponent(remoteString).appendingPathComponent("")) // $ Alert
526526
u1.appendPathComponent(remoteString)
527527
_ = NSData(contentsOf: u1) // $ Alert
528528

0 commit comments

Comments
 (0)