[Webkit-unassigned] [Bug 61053] Using NULL bytes when setting innerHTML in xhtml ASSERT and NULL ptr

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu May 19 08:32:46 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=61053





--- Comment #5 from Darin Adler <darin at apple.com>  2011-05-19 08:32:46 PST ---
(In reply to comment #4)
> It's possible that convertUTF16ToUTF8 (in UTF8.h) should convert nulls to the replacement character in lenient mode (just like how it converts other illegal chars).

I don’t think that’s right.

For one thing, a null character is not an “illegal character”. We may have some call sites that can’t handle null characters because they are using null terminated strings, and they do need to be protected from unexpected null characters, but a null character is not intrinsically bad.

For another, I believe other illegal things are illegal sequences, not characters at all.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list