You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are seeing crashes from the addingPercentEncoding(withAllowedCharacters:) method. From the comment in the NSStringAPI.swift file, I'm not sure what's going on with that method, but wonder if perhaps on the rare occasion that malloc() fails and returns NULL, this is not being successfully translated into a nil return.
I also see that comment has not been modified in 6 years. Any plans to address the "FIX:"?
Moving this to swift-corelibs-foundation, but note that swift-corelibs-foundation is not under active development. From the stack trace, this seems like it might be better suited as a Feedback report, but I'll leave that to @jmschonfeld and @parkera to sort out.
Hello!
that's a great question. We think this occurs for a subset of users. Exclusively on 18.1.1. The last crash report occurred 16th January.
Unfortunately we don't have the input.
Now, here's the thing. Within the addingPercentEncoding method, there is a FIX comment. The comment states that there is a defect whereby failure to transform should return nil. We suspect that because of this defect, memory is mishandled. So, rather than return nil, a SEGV_MAPERR occurs.
We could spend more time on this. However, users are upgrading from 18.1.1. Our plan is to keep under observation. If we see reports on 18.2.x or higher, we will investigate further.
Description
We are seeing crashes from the addingPercentEncoding(withAllowedCharacters:) method. From the comment in the NSStringAPI.swift file, I'm not sure what's going on with that method, but wonder if perhaps on the rare occasion that malloc() fails and returns NULL, this is not being successfully translated into a nil return.
I also see that comment has not been modified in 6 years. Any plans to address the "FIX:"?
Reproduction
Stack dump
Expected behavior
Nil return
Environment
All crash reports show iOS 18.1.1
Additional information
No response
The text was updated successfully, but these errors were encountered: