NSJSONSerialization crashes with
| Originator: | |||
| Number: | rdar://13383115 | Date Originated: | 2013-03-08 |
| Status: | Duplicate | Resolved: | |
| Product: | iOS SDK | Product Version: | 6.1.2 |
| Classification: | Crash | Reproducible: | Always |
Summary: The +[NSJSONSerialization JSONObjectWithData:options:error:] method consistently crashes when the JSON includes the key "IsReschedule". Renaming it to any other string does not crash. Steps to Reproduce: 1. Run the attached sample project. 2. Observe that it crashes. 3. Comment out the indicated [self loadJSONNamed:@"bad" fix:NO] line in the ViewController. 4. Observe that it no longer crashes. Expected Results: It should not crash. Actual Results: It crashes. Regression: User feedback suggests this only started with the iOS 6.1.2 update, but that isn't proven.
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!
By the way, I dislike how Open Radar displays my userid as "google" -- it is actually google @ my domain, dejal.com.
The sample project is here, if you want to try it yourself:
http://www.dejal.com/files/2013/JSONBugDemo.zip