Luke Wilde
e864444fe3
LibTextCodec/Latin1: Iterate over input string with u8 instead of char
...
Using char causes bytes equal to or over 0x80 to be treated as a
negative value and produce incorrect results when implicitly casting to
u32.
For example, `atob` in LibWeb uses this decoder to convert non-ASCII
values to UTF-8, but non-ASCII values are >= 0x80 and thus produces
incorrect results in such cases:
```js
Uint8Array.from(atob("u660"), c => c.charCodeAt(0));
```
This used to produce [253, 253, 253] instead of [187, 174, 180].
Required by Cloudflare's IUAM challenges.
2023-02-28 08:46:06 +00:00
..
2023-02-13 00:50:07 +00:00
2023-02-27 18:28:12 +01:00
2023-02-24 20:35:45 +01:00
2023-02-21 00:54:04 +01:00
2023-02-13 00:50:07 +00:00
2023-02-21 00:54:04 +01:00
2023-02-13 00:50:07 +00:00
2023-02-13 00:50:07 +00:00
2023-02-25 22:31:17 +01:00
2023-02-13 00:50:07 +00:00
2023-02-21 00:54:04 +01:00
2023-02-25 20:51:49 +01:00
2023-02-24 19:09:27 +01:00
2023-02-13 00:50:07 +00:00
2023-02-24 23:56:37 +01:00
2023-02-13 00:50:07 +00:00
2023-02-25 20:49:41 -07:00
2023-02-10 09:14:20 +00:00
2023-02-24 22:26:07 +01:00
2023-02-16 20:11:52 +01:00
2023-02-13 00:50:07 +00:00
2023-02-28 08:33:01 +00:00
2023-02-21 00:54:04 +01:00
2023-02-25 20:51:49 +01:00
2023-01-30 13:49:52 -05:00
2023-02-27 09:36:37 -05:00
2023-02-13 00:50:07 +00:00
2023-02-21 00:54:04 +01:00
2023-02-21 00:54:04 +01:00
2023-02-13 00:50:07 +00:00
2023-02-24 15:50:42 -05:00
2023-02-27 23:57:08 +00:00
2023-02-13 00:50:07 +00:00
2023-02-13 00:50:07 +00:00
2023-02-08 19:15:45 +00:00
2023-02-25 20:51:49 +01:00
2023-01-27 20:38:49 +00:00
2023-02-21 00:54:04 +01:00
2023-02-26 19:43:17 +01:00
2023-02-13 00:50:07 +00:00
2023-02-17 16:32:02 +00:00
2023-02-18 01:45:00 +01:00
2023-02-21 00:54:04 +01:00
2023-02-19 13:47:11 +01:00
2023-02-21 00:54:04 +01:00
2023-02-28 08:46:06 +00:00
2023-02-08 19:15:45 +00:00
2023-02-13 00:50:07 +00:00
2023-02-25 22:23:39 +01:00
2023-02-13 00:22:23 +00:00
2023-02-13 00:50:07 +00:00
2023-02-08 19:15:45 +00:00
2023-02-26 10:54:23 +03:30
2023-02-28 08:45:23 +00:00
2023-02-13 00:50:07 +00:00
2023-02-19 15:58:20 +01:00
2023-02-04 18:47:02 -07:00