different behavior of SecCertificateCreateWithData on iOS10 and iOS8, 9

Hi,


Accidentaly, we found different behaviors of SecCertificateCreateWithData between iOS10 and iOS8 or 9. We know 2nd paramter of SecCertificateCreateWithData is not nullable, but when pass NULL to the parameter it causes crash on iOS8,9 but returns NULL without crash or throw on iOS10. Does someone know what status of this change is?


Thank you,

Replies

Does someone know what status of this change is?

I’m not sure what sort of information you’re looking for here. When you call system routines with invalid parameters the exact behaviour you get can change from release to release. In some cases you get an error where you previously would have crashed, and in other cases it’s the reverse.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

eskimo


Thank you for your reply. I expected exactly what you wrote.