[Webkit-unassigned] [Bug 237573] New: Handle empty localeID in localeIDBufferForLanguageTagWithNullTerminator().
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Mar 7 18:22:44 PST 2022
https://bugs.webkit.org/show_bug.cgi?id=237573
Bug ID: 237573
Summary: Handle empty localeID in
localeIDBufferForLanguageTagWithNullTerminator().
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: mark.lam at apple.com
localeIDBufferForLanguageTagWithNullTerminator() uses uloc_forLanguageTag, and uloc_forLanguageTag can return an empty (0 length) localeID. LocaleIDBuilder::initialize() uses localeIDBufferForLanguageTagWithNullTerminator() to return a buffer sized based on the localeID it contains. However, when the localeID is not found, we currently erroneously return a non-empty buffer. This patch fixes this by adding a length check, and returning an empty buffer if the localeID length is 0.
rdar://83326232
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20220308/4a20babb/attachment-0001.htm>
More information about the webkit-unassigned
mailing list