ladybird/Tests/LibUnicode
Timothy Flynn e6b7c8cde2 LibUnicode: Consistently reject out-of-bounds segmenter indices
In the UTF-8 implementation, this prevents out-of-bounds access of the
underlying text data, as the ICU macro would essentially do something
akin to `text[text.length()]`.

The UTF-16 implementation already checks for out-of-bounds, but would
previously return 0. We now return an empty Optional in both impls. This
doesn't affect LibJS (the user of the UTF-16 impl), as it already does
bounds checking before invoking LibUnicode APIs.
2025-01-16 23:22:48 +01:00
..
CMakeLists.txt LibUnicode: Remove unused emoji support methods 2024-09-06 15:42:33 -04:00
TestDisplayNames.cpp LibUnicode+Everywhere: Merge LibLocale back into LibUnicode 2024-06-23 19:52:45 +02:00
TestIDNA.cpp LibUnicode: Add IDNA::to_ascii 2023-12-10 08:04:58 -05:00
TestLocale.cpp LibUnicode+Everywhere: Merge LibLocale back into LibUnicode 2024-06-23 19:52:45 +02:00
TestSegmenter.cpp LibUnicode: Consistently reject out-of-bounds segmenter indices 2025-01-16 23:22:48 +01:00
TestTimeZone.cpp LibUnicode: Cache the system time zone 2024-08-25 09:47:42 +02:00
TestUnicodeCharacterTypes.cpp Tests: Remove duplicated test for UnicodeCharacterTypes 2024-11-06 09:22:44 +00:00
TestUnicodeNormalization.cpp