@@ -45,7 +45,7 @@ class NSString {
4545}
4646
4747class Data {
48- struct ReadingOptions : OptionSet { let rawValue : Int }
48+ struct ReadingOptions : OptionSet { let rawValue : Int }
4949 struct WritingOptions : OptionSet { let rawValue : Int }
5050
5151 init < S> ( _ elements: S ) { count = 0 }
@@ -369,10 +369,10 @@ func test(buffer1: UnsafeMutablePointer<UInt8>, buffer2: UnsafeMutablePointer<UI
369369 // sqlite3
370370
371371 var db : OpaquePointer ?
372- let localData = Data ( 0 )
373- let remoteData = Data ( contentsOf: URL ( string: " http://example.com/ " ) !, options: [ ] )
374- localData. copyBytes ( to: buffer1, count: localData. count)
375- remoteData. copyBytes ( to: buffer2, count: remoteData. count)
372+ let localData = Data ( 0 )
373+ let remoteData = Data ( contentsOf: URL ( string: " http://example.com/ " ) !, options: [ ] )
374+ localData. copyBytes ( to: buffer1, count: localData. count)
375+ remoteData. copyBytes ( to: buffer2, count: remoteData. count)
376376
377377 _ = sqlite3_open ( " myFile.sqlite3 " , & db) // GOOD
378378 _ = sqlite3_open ( remoteString, & db) // $ hasPathInjection=253
@@ -386,7 +386,7 @@ func test(buffer1: UnsafeMutablePointer<UInt8>, buffer2: UnsafeMutablePointer<UI
386386
387387 // SQLite.swift
388388
389- try ! _ = Connection ( )
389+ try ! _ = Connection ( )
390390 try ! _ = Connection ( Connection . Location. uri ( " myFile.sqlite3 " ) ) // GOOD
391391 try ! _ = Connection ( Connection . Location. uri ( remoteString) ) // $ MISSING: hasPathInjection=253
392392 try ! _ = Connection ( " myFile.sqlite3 " ) // GOOD
0 commit comments