News for hackers. Stuff that matters.
Re:Fast UTF-8 validation by zamadatix on Tuesday October 20, 2020 @03:53PM (#24841697)
Or you reserved the string ahead of time or it was reused and not zeroed properly or there is more than 1 null in the data and copying must be done with care.

Again, it's doable, or you can validate the string once (including more than "it's valid encoding") and make a ton of safe assumptions later instead of each thing that interacts with the string. UTF or not.

There are no comments on this comment yet.