2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-08-03 04:15:36 +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
..
2019-08-18 18:49:54 -07:00
2019-07-19 18:27:21 -10:00
2019-09-09 04:21:01 -07: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
2018-12-07 19:30:43 -10:00
2019-07-19 18:27:21 -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
2018-12-07 19:30:43 -10:00
2019-08-25 18:29:25 -07:00
2018-12-07 19:30:43 -10:00
2019-02-17 19:47:46 -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
2018-12-07 19:30:43 -10:00
2018-12-07 19:30:43 -10:00
2019-02-15 15:32:05 -10:00
2018-12-07 19:30:43 -10:00
2019-07-19 18:27:21 -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
2019-07-19 18:27:21 -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
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
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
2019-07-19 18:27:21 -10:00
2018-12-07 19:30:43 -10:00
2018-12-07 19:30:43 -10:00
2019-07-19 18:27:21 -10:00
2019-07-19 18:27:21 -10:00