Re:Fast UTF-8 validation
by smsm42 on Tuesday October 20, 2020 @08:24PM
(#24843718)
I've seen serious bugs and even security issues due to invalid utf-8 and code just assuming it's valid (e.g. if there's half of the surrogate present the code just assumes the other half is there too). Display is not the only thing done with utf-8 text, and when parsing utf-8 strings being able to quickly validate utf-8 is a great capability.
[ Parent
| on HN ]
There are no comments on this comment yet.