Skip to content

Commit 7e6ff7c

Browse files
committed
Swift: Disable the part of the test that triggers an extraction issue.
1 parent 987cdff commit 7e6ff7c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: swift/ql/test/query-tests/Security/CWE-327/test_commoncrypto.swift

+2-2
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func test_commoncrypto1(key: Data, iv: Data, dataIn: Data, dataOut: inout Data)
127127
var myCryptor: CCCryptorRef?
128128
var dataOutWritten = 0
129129

130-
key.withUnsafeBytes({
130+
/*key.withUnsafeBytes({
131131
keyPtr in
132132
iv.withUnsafeBytes({
133133
// create the cryptor object
@@ -175,7 +175,7 @@ func test_commoncrypto1(key: Data, iv: Data, dataIn: Data, dataOut: inout Data)
175175
})
176176
})
177177
})
178-
})
178+
})*/
179179
}
180180

181181
func test_commoncrypto2(

0 commit comments

Comments
 (0)