-
Notifications
You must be signed in to change notification settings - Fork 10.4k
crash fix with iOS 7 stringByAddingPercentEncodingWithAllowedCharacters method #3028
crash fix with iOS 7 stringByAddingPercentEncodingWithAllowedCharacters method #3028
Conversation
Thanks @softenhard. This has been on my list to fix, but I hadn't yet thought about how to handle some of the double byte characters like emoji. I know relying on NSString length and enumeration can result in a split character. Any thoughts on that? |
@kcharwood Oh yes, forgot about that while fast-fixing my project :)
|
What happens if the split is on the mutlibyte character? Is the character included in both results? Could you add some unit tests demonstrating the fix? Thanks! |
- Added test demonstrating fix
Updated in 6b6d41d |
Merged with 6b6d41d |
- Added test demonstrating fix
Merged in 3_0_0 with 039a317 |
- Added test demonstrating fix
- Added test demonstrating fix
As AFNetworking code is referencing this issue in https://github.com/AFNetworking/AFNetworking/blob/master/AFNetworking/AFURLRequestSerialization.m#L54, I'd like to quote in this pull request the details of this issue. The reason and the workaround was discovered by @PrideChung and is a memory crash issue in
|
nice |
I get a crash in my application. like this |
No description provided.