@@ -375,11 +375,11 @@ func test(buffer1: UnsafeMutablePointer<UInt8>, buffer2: UnsafeMutablePointer<UI
375
375
remoteData. copyBytes ( to: buffer2, count: remoteData. count)
376
376
377
377
_ = sqlite3_open ( " myFile.sqlite3 " , & db) // GOOD
378
- _ = sqlite3_open ( remoteString, & db) // $ MISSING: hasPathInjection=253
378
+ _ = sqlite3_open ( remoteString, & db) // $ hasPathInjection=253
379
379
_ = sqlite3_open16 ( buffer1, & db) // GOOD
380
- _ = sqlite3_open16 ( buffer2, & db) // $ MISSING: hasPathInjection=253
380
+ _ = sqlite3_open16 ( buffer2, & db) // $ hasPathInjection=373
381
381
_ = sqlite3_open_v2 ( " myFile.sqlite3 " , & db, 0 , nil ) // GOOD
382
- _ = sqlite3_open_v2 ( remoteString, & db, 0 , nil ) // $ MISSING: hasPathInjection=253
382
+ _ = sqlite3_open_v2 ( remoteString, & db, 0 , nil ) // $ hasPathInjection=253
383
383
384
384
sqlite3_temp_directory = UnsafeMutablePointer < CChar > ( mutating: NSString ( string: " myFile.sqlite3 " ) . utf8String) // GOOD
385
385
sqlite3_temp_directory = UnsafeMutablePointer < CChar > ( mutating: NSString ( string: remoteString) . utf8String) // $ MISSING: hasPathInjection=253
@@ -390,7 +390,7 @@ func test(buffer1: UnsafeMutablePointer<UInt8>, buffer2: UnsafeMutablePointer<UI
390
390
try ! _ = Connection ( Connection . Location. uri ( " myFile.sqlite3 " ) ) // GOOD
391
391
try ! _ = Connection ( Connection . Location. uri ( remoteString) ) // $ MISSING: hasPathInjection=253
392
392
try ! _ = Connection ( " myFile.sqlite3 " ) // GOOD
393
- try ! _ = Connection ( remoteString) // $ MISSING: hasPathInjection=253
393
+ try ! _ = Connection ( remoteString) // $ hasPathInjection=253
394
394
}
395
395
396
396
func testBarriers( ) {
0 commit comments