[Webkit-unassigned] [Bug 245690] New: string_utils decoder assumes UTF-8 and can crash when encountering other encodings.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Sep 26 12:40:43 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=245690
Bug ID: 245690
Summary: string_utils decoder assumes UTF-8 and can crash when
encountering other encodings.
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: Tools / Tests
Assignee: webkit-unassigned at lists.webkit.org
Reporter: rreno at apple.com
The Micro sign in latin-1 is encoded differently from UTF-8. The Python UTF-8 codec fails if it encounters this symbol because we assume by default UTF-8. In particular, I've encountered the failure when the commit message generator and style checker tools are trying to parse https://github.com/web-platform-tests/wpt/blob/master/content-security-policy/script-src/hash-always-converted-to-utf-8/iso-8859-1.html#L13 on import (LayoutTests/imported/w3c/web-platform-tests/content-security-policy/script-src/hash-always-converted-to-utf-8/iso-8859-1.html).
This causes crashes due to an unhandled UnicodeDecodeError in our string_utils decoder implementation.
--
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/20220926/48868ff1/attachment.htm>
More information about the webkit-unassigned
mailing list