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
{{ message }}
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.
In this case, \u0000 is actually the null byte. Our use of String.withCString is causing this, and would naturally be mitigated if we even moved to a different method.
Other Unicode validation might be out-of-scope; however, the stdlib's public Unicode handling types do perform such validation.
I tried the following string in both Apple's parser and the JSONParser here
"A\u0000B"
.Apple's gives back the string: "AB"
BNR's gives back the string: "A"
Not sure which is right. Not sure if there is any security vulnerability with illegal unicode characters.
Simply wanted to document the difference.
The text was updated successfully, but these errors were encountered: