[SR-9477] Dynamic-stack-buffer-overflow caused by where clause on protocol #51939
Labels
bug
A deviation from expected or documented behavior. Also: expected but undesirable behavior.
compiler
The Swift compiler in itself
crash
Bug: A crash, i.e., an abnormal termination of software
run-time crash
Bug → crash: Swift code crashed during execution
Attachment: Download
Environment
iOS 12.1 (16B92), Xcode 10.1 (10B61), Swift 4.2
Additional Detail from JIRA
md5: 0c19f6a71b8d8b70e4904137b35aa00f
duplicates:
Issue Description:
Sample project to reproduce the crash is attached or can be downloaded at https://github.com/ksoftllc/DynamicStackBufferOverflow. It will crash on launch.
The following code accesses an instance of a UIViewController using the this protocol interface:
Here is the site of the call:
If you remove the where clause from the protocol, the app will not crash and will function as expected:
The text was updated successfully, but these errors were encountered: