SafeSlingerProject / SafeSlinger-iOS

Source code for iOS platform client SafeSlinger
MIT License
6 stars 2 forks source link

Exc Bad Access, Kern Invalid Address in SSEngine Sign:withPrikey #33

Closed mwfarb closed 9 years ago

mwfarb commented 10 years ago

Crashlytics #117 SafeSlinger 1.7.0 edu.cmu.cylab.safeslinger.app EVP_PKEY_get1_RSA

Crashed: com.apple.main-thread EXC_BAD_ACCESS KERN_INVALID_ADDRESS at 0x00000000

Thread : Crashed: com.apple.main-thread 0 SafeSlinger 0x000d367a EVP_PKEY_get1_RSA 1 SafeSlinger 0x000421f3 +SSEngine Sign:withPrikey: 2 SafeSlinger 0x000421f3 +SSEngine Sign:withPrikey: 3 SafeSlinger 0x00043341 +SSEngine PackMessage:PubKey:Prikey: 4 SafeSlinger 0x0004410f +SSEngine BuildCipher:Message:Attach:RawFile:MIMETYPE:Cipher: 5 SafeSlinger 0x000201bd -MessageDetailView sendSecureText: 6 SafeSlinger 0x00025cf3 -MessageDetailView alertView:clickedButtonAtIndex: 7 UIKit 0x33165209 -[_UIModalItemsCoordinator _notifyDelegateModalItem:tappedButtonAtIndex:] + 144 8 UIKit 0x33164edb -[_UIModalItemAlertContentView tableView:didSelectRowAtIndexPath:] + 378 9 UIKit 0x3306c7d3 -[UITableView _selectRowAtIndexPath:animated:scrollPosition:notifyDelegate:] + 1078 10 UIKit 0x3311ec93 -[UITableView _userSelectRowAtPendingSelectionIndexPath:] + 214 11 UIKit 0x32fcdde9 _applyBlockToCFArrayCopiedToStack + 316 12 UIKit 0x32f46b37 _afterCACommitHandler + 430 13 CoreFoundation 0x306e7ff9 CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION + 20 14 CoreFoundation 0x306e5987 CFRunLoopDoObservers + 286 15 CoreFoundation 0x306e5cd3 CFRunLoopRun + 738 16 CoreFoundation 0x30650729 CFRunLoopRunSpecific + 524 17 CoreFoundation 0x3065050b CFRunLoopRunInMode + 106 18 GraphicsServices 0x355bf6d3 GSEventRunModal + 138 19 UIKit 0x32fb1871 UIApplicationMain + 1136 20 SafeSlinger 0x00051f0f main (main.m:17)

mwfarb commented 10 years ago

Seen in 1.7.0 and 1.6.x so I'm not sure if this is still an issue in 1.7.1 or not.

mwfarb commented 10 years ago

Also crashlytics 124 SafeSlinger 1.7.1 iPhone 6 iOS 8.0.2

tenmalin commented 9 years ago

Similar issue to https://github.com/SafeSlingerProject/SafeSlinger-iOS/issues/89

tenmalin commented 9 years ago

Add additional NULL check for RSA private key loading. Close in https://github.com/SafeSlingerProject/SafeSlinger-iOS/commit/8da3c6ec6dd870588cf12d2f272649c8903a6545