Blender Git Commit Log

Git Commits -> Revision adadfaa

Revision adadfaa by Bastien Montagne (master)
January 1, 2017, 01:15 (GMT)
Fix (unreported) fully broken 'sanitize utf-8' helper.

That code was a joke, letting some invalid utf8 bytes pass, returning
wrong offset for some invalid sequences, not to mention length and
pointer easily going out of sync, NULL final byte being 'forgotten' by
memcpy, etc. etc.

The miracle here is that we could survive using this for so long!
Probably because we do not use utf-8 sanitizing enough in Blender,
actually... :/

Commit Details:

Full Hash: adadfaad880b2ad56fde72a38b13d42b512de81d
Parent Commit: acbb84b
Lines Changed: +79, -62

By: Miika HämäläinenLast update: Nov-07-2014 14:18 MiikaHweb | 2003-2018