File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
swift/ql/test/query-tests/Security/CWE-022 Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 1
- | testPathInjection.swift:314:35:314:35 | remoteUrl | Unexpected result: hasPathInjection=208 |
2
- | testPathInjection.swift:316:40:316:40 | remoteUrl | Unexpected result: hasPathInjection=208 |
Original file line number Diff line number Diff line change @@ -311,15 +311,15 @@ func test() {
311
311
// Realm
312
312
313
313
_ = Realm . Configuration ( fileURL: safeUrl) // GOOD
314
- _ = Realm . Configuration ( fileURL: remoteUrl) // BAD
314
+ _ = Realm . Configuration ( fileURL: remoteUrl) // $ hasPathInjection=208
315
315
_ = Realm . Configuration ( seedFilePath: safeUrl) // GOOD
316
- _ = Realm . Configuration ( seedFilePath: remoteUrl) // BAD
316
+ _ = Realm . Configuration ( seedFilePath: remoteUrl) // $ hasPathInjection=208
317
317
318
318
var config = Realm . Configuration ( ) // GOOD
319
319
config. fileURL = safeUrl // GOOD
320
- config. fileURL = remoteUrl // BAD [NOT DETECTED]
320
+ config. fileURL = remoteUrl // $ MISSING: hasPathInjection=208
321
321
config. seedFilePath = safeUrl // GOOD
322
- config. seedFilePath = remoteUrl // BAD [NOT DETECTED]
322
+ config. seedFilePath = remoteUrl // $ MISSING: hasPathInjection=208
323
323
}
324
324
325
325
func testSanitizers( ) {
You can’t perform that action at this time.
0 commit comments