File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
swift/ql/test/library-tests/dataflow/taint/libraries Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -241,10 +241,10 @@ func testRawPointers() {
241
241
242
242
let raw2 = UnsafeMutableRawPointer . allocate ( byteCount: 1024 , alignment: 4 )
243
243
raw2. initializeMemory ( as: Int . self, repeating: 0 , count: 1024 )
244
- raw2. storeBytes ( of: 0 , toByteOffset: 0 , as: Int . self)
244
+ // raw2.storeBytes(of: 0, toByteOffset: 0, as: Int.self) --- this line fails on Linux
245
245
sink ( arg: raw2. load ( fromByteOffset: 0 , as: Int . self) )
246
- raw2. storeBytes ( of: sourceInt ( " raw2 " ) , toByteOffset: 0 , as: Int . self)
247
- sink ( arg: raw2. load ( fromByteOffset: 0 , as: Int . self) ) // $ tainted=raw2
246
+ // raw2.storeBytes(of: sourceInt("raw2"), toByteOffset: 0, as: Int.self) --- this line fails on Linux
247
+ sink ( arg: raw2. load ( fromByteOffset: 0 , as: Int . self) ) // $ MISSING: tainted=raw2
248
248
249
249
let raw3 = UnsafeRawPointer ( raw1)
250
250
sink ( arg: raw3. load ( fromByteOffset: 0 , as: Int . self) ) // $ tainted=raw1
You can’t perform that action at this time.
0 commit comments