mattt/CargoBay — pull request #29 by rsanchezsaez (2013-05-13 11:36:02+00:00)
Title: Fixed rare crash when verifying transactions on iOS 5.1.1.

Maybe this crash is caused by Jailbreak or by malicious users who try to crack IAPs.

I have not been able to repro it myself, but I have seen reports of it on my deployed App.

Some additional info from BugSense:

88 instances of this crash happened on 5.1.1, and 1 on 5.1.0. No idea why, maybe this is the only supported iOS version for IAP cracking? No other iOS version show this crash.

It happens on all kind of decices: iPhones, iPads and iPod Touchs.

Partial stack trace:

0 CoreFoundation 0x3780488f __exceptionPreprocess + 162
1 libobjc.A.dylib 0x31879259 objc_exception_throw + 32
2 CoreFoundation 0x37807a9b -[NSObject doesNotRecognizeSelector:] + 174
3 CoreFoundation 0x37806915 ___forwarding___ + 300
4 CoreFoundation 0x37761650 _CF_forwarding_prep_0 + 48
5 MyApp CBPurchaseInfoFromTransactionReceipt (CargoBay.m:603) 0x0012b9fb _mh_execute_header + 203259
6 MyApp -[CargoBay isValidTransaction:error:] (CargoBay.m:952) 0x0012d22b _mh_execute_header + 209451
7 MyApp -[CargoBay verifyTransaction:password:success:failure:] (CargoBay.m:745) 0x0012c405 _mh_execute_header + 205829
8 MyApp -[CargoManager transactionUpdated:] (CargoManager.m:188) 0x0011969d _mh_execute_header + 128669