Blender Git Loki

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

1 Modified Path:

/source/blender/blenlib/intern/string_utf8.c (+79, -62) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021