-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I've had a crash in this line by using RNCryptor library #22
Comments
@kiritoxcii would you show the demo code or paste crash stack? |
I have the same problem,the crash stack:2019-03-01 17:11:51.292927+0800 AndClient Chinamobile[8572:2364047] /Users/ningliu/AndClient-iOS/AndClient/Extensions/Safe/NSObjectSafe.m|-[NSMutableData(Safe) hookReplaceBytesInRange:withBytes:]|1005|hookReplaceBytesInRange:withBytes: range.location error |
@leo4developer @kiritoxcii actually, it's Assertion failure inside NSObjectSafe because of replaceBytesInRange with range.location == data.length,the default behavior of system api will append bytes to target.change to <= self.length is right. |
谢谢! |
NSObjectSafe/NSObjectSafe/NSObjectSafe.m
Line 868 in 703982e
Setting <= self.length fixed the crash but I don't know whether something else will be broken or not
The text was updated successfully, but these errors were encountered: