Skip to content

Commit 063db6a

Browse files
committed
experimental: enable a bit more.
1 parent a65ca1e commit 063db6a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,12 +126,12 @@ func test_commoncrypto1(key: Data, iv: Data, dataIn: Data, dataOut: inout Data)
126126
// semi-realistic test case
127127
var myCryptor: CCCryptorRef?
128128
var dataOutWritten = 0
129-
/*
129+
130130
key.withUnsafeBytes({
131131
keyPtr in
132132
iv.withUnsafeBytes({
133133
// create the cryptor object
134-
ivPtr in
134+
/*ivPtr in
135135
let result1 = CCCryptorCreate(
136136
CCOperation(kCCEncrypt),
137137
CCAlgorithm(kCCAlgorithm3DES), // BAD [NOT DETECTED]
@@ -173,9 +173,9 @@ func test_commoncrypto1(key: Data, iv: Data, dataIn: Data, dataOut: inout Data)
173173
return // fail
174174
}
175175
})
176-
})
176+
})*/
177177
})
178-
})*/
178+
})
179179
}
180180

181181
func test_commoncrypto2(

0 commit comments

Comments
 (0)