Blender Git Commit Log

Git Commits -> Revision 3863071

Revision 3863071 by Campbell Barton (master)
August 25, 2021, 05:28 (GMT)
BLI_string_utf8: remove unnecessary utf8 decoding functions

Remove BLI_str_utf8_as_unicode_and_size and
BLI_str_utf8_as_unicode_and_size_safe.

Use BLI_str_utf8_as_unicode_step instead since it takes
a buffer bounds argument to prevent buffer over-reading.

Commit Details:

Full Hash: 38630711a02e553f209ace9a8627a7a851820a2d
Parent Commit: be906f4
Lines Changed: +51, -70

7 Modified Paths:

/source/blender/blenkernel/intern/text.c (+10, -5) (Diff)
/source/blender/blenlib/BLI_string_utf8.h (+0, -4) (Diff)
/source/blender/blenlib/intern/string_cursor_utf8.c (+13, -7) (Diff)
/source/blender/blenlib/intern/string_search.cc (+9, -8) (Diff)
/source/blender/blenlib/intern/string_utf8.c (+14, -39) (Diff)
/source/blender/editors/space_text/text_autocomplete.c (+3, -4) (Diff)
/source/blender/makesrna/intern/rna_wm.c (+2, -3) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021