1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-08 05:27:14 +09:00
ladybird/Libraries/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
..
CharacterTypes.cpp
CharacterTypes.h
CMakeLists.txt
Collator.cpp
Collator.h
CurrencyCode.cpp Everywhere: Include HashMap only where it's actually used 2024-12-09 12:31:16 +01:00
CurrencyCode.h Everywhere: Include HashMap only where it's actually used 2024-12-09 12:31:16 +01:00
DateTimeFormat.cpp
DateTimeFormat.h
DisplayNames.cpp
DisplayNames.h
DurationFormat.cpp
DurationFormat.h
Forward.h
ICU.cpp
ICU.h
IDNA.cpp LibUnicode: Support IgnorePunnycode option in ToAscii algorithm 2024-12-05 17:29:49 +01:00
IDNA.h LibUnicode: Support IgnorePunnycode option in ToAscii algorithm 2024-12-05 17:29:49 +01:00
ListFormat.cpp
ListFormat.h
Locale.cpp
Locale.h
Normalize.cpp
Normalize.h
NumberFormat.cpp LibJS+LibUnicode: Designate a sort order for Intl.PluralRules categories 2024-12-05 09:49:55 +01:00
NumberFormat.h
PartitionRange.h
PluralRules.cpp
PluralRules.h LibJS+LibUnicode: Designate a sort order for Intl.PluralRules categories 2024-12-05 09:49:55 +01:00
RelativeTimeFormat.cpp
RelativeTimeFormat.h
Segmenter.cpp LibUnicode: Consistently reject out-of-bounds segmenter indices 2025-01-16 23:22:48 +01:00
Segmenter.h
String.cpp
TimeZone.cpp
TimeZone.h
UnicodeKeywords.cpp
UnicodeKeywords.h