godot/core/string
Alistair Leslie-Hughes 87fe71f52f Stop possible underrun when processing a string
Calling String::utf8("Unicode String", -1) assumes that the string will be NULL terminated.
However, the length parameter is always used to find the end of the string.  So there is the
chance the character before th start of the string is read.

Making the pointer NULL in the case where it's out of range, still allows the following
to work as expected
while (ptrtmp != ptrtmp_limit && *ptrtmp)
....
2024-03-19 20:17:11 +11:00
..
char_range.inc Add Unicode support to String.to_*_case() methods 2024-02-22 13:58:46 +03:00
char_utils.h Add Unicode support to String.to_*_case() methods 2024-02-22 13:58:46 +03:00
locales.h Fix script name of Hant and Hans 2023-07-20 15:01:39 +08:00
node_path.cpp Added NodePath::slice method. 2023-12-13 13:30:28 -05:00
node_path.h Added NodePath::slice method. 2023-12-13 13:30:28 -05:00
optimized_translation.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
optimized_translation.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
print_string.cpp Add const lvalue ref to core/* container parameters 2024-02-14 11:20:36 -03:00
print_string.h Add const lvalue ref to core/* container parameters 2024-02-14 11:20:36 -03:00
SCsub Reorganized core/ directory, it was too fatty already 2020-11-07 20:17:12 -03:00
string_buffer.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
string_builder.cpp One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
string_builder.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
string_name.cpp [X11] Add fallback from desktop GL to GLES, suppress PRIME detector error spam. 2023-11-06 12:40:44 +02:00
string_name.h Remove _HashUnion from StringName 2024-02-14 15:38:57 -05:00
translation_po.cpp Remove unnecessary this-> expressions 2024-01-29 09:59:18 +01:00
translation_po.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
translation.compat.inc Fix some DEFVALs to use the right type 2024-02-23 01:50:18 +01:00
translation.cpp Merge pull request #87191 from Mickeon/autocompletion-TranslationServer 2024-03-01 14:56:18 +01:00
translation.h Merge pull request #87191 from Mickeon/autocompletion-TranslationServer 2024-03-01 14:56:18 +01:00
ucaps.h One Copyright Update to rule them all 2023-01-05 13:25:55 +01:00
ustring.cpp Stop possible underrun when processing a string 2024-03-19 20:17:11 +11:00
ustring.h Enforce template syntax typename over class 2024-03-07 22:39:09 -06:00