| Summary: | Remove invalid ASSERT in LocaleIDBuilder::overrideLanguageScriptRegion(). | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Mark Lam <mark.lam> | ||||||
| Component: | JavaScriptCore | Assignee: | Mark Lam <mark.lam> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | ews-watchlist, keith_miller, msaboff, saam, tzagallo, webkit-bug-importer, ysuzuki | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | WebKit Nightly Build | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Mark Lam
2022-03-07 18:22:44 PST
Created attachment 454059 [details]
proposed patch.
Comment on attachment 454059 [details]
proposed patch.
r=me
Comment on attachment 454059 [details]
proposed patch.
Looks like my fix is wrong. Will investigate.
Turns out the ASSERT(length) in LocaleIDBuilder::overrideLanguageScriptRegion() is simply incorrect. The length can be 0 if uloc_forLanguageTag returns a 0 length in localeIDBufferForLanguageTagWithNullTerminator(). LocaleIDBuilder::overrideLanguageScriptRegion() already handles this scenario correctly. We just need to remove this incorrect ASSERT. Created attachment 454064 [details]
[fast-cq] proposed patch.
Comment on attachment 454064 [details]
[fast-cq] proposed patch.
r=me
Comment on attachment 454064 [details]
[fast-cq] proposed patch.
Thanks for the review. Landing now.
Committed r290981 (248159@main): <https://commits.webkit.org/248159@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 454064 [details]. |