[SR-8219] Memory corruption of private enum property #50751
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
regression
swift 4.2
Attachment: Download
Environment
Swift 4.2 beta (Xcode 10b3)
Additional Detail from JIRA
md5: f5386839f0fc18425de06594c88ac4ec
Issue Description:
Given the following code, a caller to init(...) from another module will often trigger the
fatalError
. The resultingcredential
will be.password
with a garbage value (mostly a string of \0, with occasionally other values).A more complete example project is attached (minimized; this is not the full RNCryptor code). Run the unit test. The failure case is either the fatalError firing or a crash in DecryptorV3.deinit.
This failure is new in Xcode 10b3. See RNCryptor/RNCryptor#276.
The text was updated successfully, but these errors were encountered: