unicode-org / icu4x

Solving i18n for client-side and resource-constrained environments.
https://icu4x.unicode.org
Other
1.29k stars 164 forks source link

Fix integer overflow for `LiteMap` by using correct `Store` trait method #5113

Closed jsatka closed 5 days ago

jsatka commented 6 days ago

In the latest version calling last() on empty LiteMap panics on attempt to subtract with overflow.

The correct method that should be called internally is Store trait method lm_last().

CLAassistant commented 6 days ago

CLA assistant check
All committers have signed the CLA.

sffc commented 5 days ago

Oops, thank you!