WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 245742
245690
string_utils decoder assumes UTF-8 and can crash when encountering other encodings.
https://bugs.webkit.org/show_bug.cgi?id=245690
Summary
string_utils decoder assumes UTF-8 and can crash when encountering other enco...
Ryan Reno
Reported
2022-09-26 12:40:43 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-09-26 12:41:08 PDT
<
rdar://problem/100423966
>
Alexey Proskuryakov
Comment 2
2022-09-29 09:13:01 PDT
Is this what
254967@main
fixed? Not entirely sure of the context in this bug.
Ryan Reno
Comment 3
2022-09-29 09:32:04 PDT
(In reply to Alexey Proskuryakov from
comment #2
)
> Is this what
254967@main
fixed? Not entirely sure of the context in this bug.
Yes. *** This bug has been marked as a duplicate of
bug 245742
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug