class_conformsToProtocol call crashes

Originator:yuribalashkevych
Number:rdar://33824169 Date Originated:August 10 2017, 12:34 PM
Status:Open Resolved:
Product: Product Version:
Classification: Reproducible:
 
Area:
Something not on this list

Summary:
When we do call class_conformsToProtocol on the class which adopts the protocol dynamically, in runtime (class_addProtocol) then application crashes.

Steps to Reproduce:
1. add protocol to class with class_addProtocol
2. call class_conformsToProtocol for the class, can be called with any protocol

Expected Results:
No crash, returns YES or NO depending which protocol is checked

Observed Results:
Crash, crash log is attached

Version:
iOS 11

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!