Skip to content

Commit 36d0148

Browse files
committed
Swift: Comment out lines that don't extract correctly right now.
1 parent e8f8aa2 commit 36d0148

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

swift/ql/test/library-tests/dataflow/taint/libraries/unsafepointer.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,10 +241,10 @@ func testRawPointers() {
241241

242242
let raw2 = UnsafeMutableRawPointer.allocate(byteCount: 1024, alignment: 4)
243243
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
245245
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
248248

249249
let raw3 = UnsafeRawPointer(raw1)
250250
sink(arg: raw3.load(fromByteOffset: 0, as: Int.self)) // $ tainted=raw1

0 commit comments

Comments
 (0)