mirror of
https://github.com/github/codeql.git
synced 2026-04-22 23:35:14 +02:00
Swift: Fix inline expectations.
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
| testPathInjection.swift:314:35:314:35 | remoteUrl | Unexpected result: hasPathInjection=208 |
|
||||
| testPathInjection.swift:316:40:316:40 | remoteUrl | Unexpected result: hasPathInjection=208 |
|
||||
|
||||
@@ -311,15 +311,15 @@ func test() {
|
||||
// Realm
|
||||
|
||||
_ = Realm.Configuration(fileURL: safeUrl) // GOOD
|
||||
_ = Realm.Configuration(fileURL: remoteUrl) // BAD
|
||||
_ = Realm.Configuration(fileURL: remoteUrl) // $ hasPathInjection=208
|
||||
_ = Realm.Configuration(seedFilePath: safeUrl) // GOOD
|
||||
_ = Realm.Configuration(seedFilePath: remoteUrl) // BAD
|
||||
_ = Realm.Configuration(seedFilePath: remoteUrl) // $ hasPathInjection=208
|
||||
|
||||
var config = Realm.Configuration() // GOOD
|
||||
config.fileURL = safeUrl // GOOD
|
||||
config.fileURL = remoteUrl // BAD [NOT DETECTED]
|
||||
config.fileURL = remoteUrl // $ MISSING: hasPathInjection=208
|
||||
config.seedFilePath = safeUrl // GOOD
|
||||
config.seedFilePath = remoteUrl // BAD [NOT DETECTED]
|
||||
config.seedFilePath = remoteUrl // $ MISSING: hasPathInjection=208
|
||||
}
|
||||
|
||||
func testSanitizers() {
|
||||
|
||||
Reference in New Issue
Block a user