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
TestDisplayNames.cpp
TestIDNA.cpp
TestLocale.cpp
TestSegmenter.cpp LibUnicode: Consistently reject out-of-bounds segmenter indices 2025-01-16 23:22:48 +01:00
TestTimeZone.cpp
TestUnicodeCharacterTypes.cpp Tests: Remove duplicated test for UnicodeCharacterTypes 2024-11-06 09:22:44 +00:00
TestUnicodeNormalization.cpp