2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-05-13 13:11:22 +00:00
Lioncash 0d2b2f45a8 CStringExtras: Prevent potential out of bounds reads with CompareCaseInsensitive
The strcasecmp and _stricmp functions expect the passed in strings to
be null-terminated, however we we're also exposing a std::string_view
overload for that function. std::string_view instances aren't required
to be null-terminated, so this makes the interface a little unsafe.

We can use std::lexicographical_compare() to provide the same behavior
and also properly handle the case of non-null-terminated strings.
2019-09-14 16:43:04 -04:00
..
2018-12-07 19:30:43 -10:00
2018-12-07 19:30:43 -10:00
2018-12-07 19:30:43 -10:00
2018-12-07 19:30:43 -10:00
2017-02-17 16:19:50 -10:00
2018-12-07 19:30:43 -10:00
2018-12-07 19:30:43 -10:00
2016-03-06 17:12:32 -10:00
2016-03-06 17:12:32 -10:00