Blender Git Commit Log

Git Commits -> Revision 9648c60

Revision 9648c60 by Campbell Barton (master)
September 15, 2011, 11:49 (GMT)
fix [#28658] python can assign non utf8 and crash because of string lenth limits.

add BLI_strncpy_utf8() which which ensures there are no partially copied UTF8 characters, limited by the buffer size.

Commit Details:

Full Hash: 9648c6016b35a72aa23395f5d200e342df16490b
SVN Revision: 40222
Parent Commit: 86d05b3
Lines Changed: +52, -5

4 Modified Paths:

/source/blender/blenlib/BLI_string.h (+1, -0) (Diff)
/source/blender/blenlib/intern/string_utf8.c (+40, -0) (Diff)
/source/blender/makesrna/intern/makesrna.c (+10, -4) (Diff)
/source/blender/makesrna/intern/rna_ID.c (+1, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021