We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
swift-DEVELOPMENT-SNAPSHOT-03-25-a-windows10
md5: 2d0adc051f541edd78bb07f5c76c73c6
Issue Description:
Code below crashes with C00000FD (STATUS_STACK_OVERFLOW)
C00000FD
STATUS_STACK_OVERFLOW
import Foundation class C: NSObject, NSCoding { func encode(with aCoder: NSCoder) { aCoder.encode(d, forKey: "d") } required init?(coder aDecoder: NSCoder) { d = aDecoder.decodeObject(forKey: "d") as? D } override init() { super.init() } var d: D? } class D: NSObject, NSCoding { func encode(with aCoder: NSCoder) { aCoder.encode(c, forKey: "c") } required init?(coder aDecoder: NSCoder) { c = aDecoder.decodeObject(forKey: "c") as? C } override init() { super.init() } var c: C? } let c = C() let d = D() c.d = d d.c = c let data2 = NSKeyedArchiver.archivedData(withRootObject: c) // crashes here let c_out_any: Any? = try NSKeyedUnarchiver.unarchiveTopLevelObjectWithData(data2) let c_out = c_out_any as? C print("c: \(c_out)")
The text was updated successfully, but these errors were encountered:
cc @compnerd
Sorry, something went wrong.
No branches or pull requests
Environment
swift-DEVELOPMENT-SNAPSHOT-03-25-a-windows10
Additional Detail from JIRA
md5: 2d0adc051f541edd78bb07f5c76c73c6
Issue Description:
Code below crashes with
C00000FD
(STATUS_STACK_OVERFLOW
)The text was updated successfully, but these errors were encountered: