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() {
311311 // Realm
312312
313313 _ = Realm . Configuration ( fileURL: safeUrl) // GOOD
314- _ = Realm . Configuration ( fileURL: remoteUrl) // BAD
314+ _ = Realm . Configuration ( fileURL: remoteUrl) // $ hasPathInjection=208
315315 _ = Realm . Configuration ( seedFilePath: safeUrl) // GOOD
316- _ = Realm . Configuration ( seedFilePath: remoteUrl) // BAD
316+ _ = Realm . Configuration ( seedFilePath: remoteUrl) // $ hasPathInjection=208
317317
318318 var config = Realm . Configuration ( ) // GOOD
319319 config. fileURL = safeUrl // GOOD
320- config. fileURL = remoteUrl // BAD [NOT DETECTED]
320+ config. fileURL = remoteUrl // $ MISSING: hasPathInjection=208
321321 config. seedFilePath = safeUrl // GOOD
322- config. seedFilePath = remoteUrl // BAD [NOT DETECTED]
322+ config. seedFilePath = remoteUrl // $ MISSING: hasPathInjection=208
323323}
324324
325325func testSanitizers( ) {
You can’t perform that action at this time.
0 commit comments