Re: CFXMLCreateStringByUnescapingEntities() bombs on "�"
Re: CFXMLCreateStringByUnescapingEntities() bombs on "�"
- Subject: Re: CFXMLCreateStringByUnescapingEntities() bombs on "�"
- From: Kyle Sluder <email@hidden>
- Date: Tue, 25 Mar 2014 11:28:14 -0700
On Tue, Mar 25, 2014, at 10:49 AM, Quincey Morris wrote:
> However, I also see this as a bug in your code, since you’re accepting
> “random” user input as formatted text (i.e. escaped HTML) without
> validation.
Unfortunately, NSTextView lets users paste invalid UTF-16 codepoints
directly into the NSTextStorage that backs the text view. We see this
happen with OmniOutliner documents on occasion. Then the next time we
try to load the document, libxml barfs on the invalid character
entities.
--Kyle Sluder
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden