Behdad Esfahbod and Claude Opus 4.8
cd570b6f54
[aat] Match morx language-tag features against ltag without interning the font's tags
...
Chain::compile_flags() resolved every type-39 (language tag) feature
record by interning the font's ltag string with
hb_language_from_string(), whose process-wide language list is a
linear, never-freed linked list meant for the handful of languages an
application passes in. A font controls both the number of records and
the number of distinct tags, so shape-plan creation became quadratic
(about a minute for a 125 KB font) and the tags stayed in the list for
the life of the process.
Add ltag::matches_language(i, specific), which compares the tag bytes
directly against the buffer language, applying the same
canonicalization hb_language_from_string() does (at most 63 bytes,
lowercase, '_' to '-', stop at the first other non-alphanumeric) and
the same prefix rule as hb_language_matches(); each record now costs
at most the length of the buffer's language and nothing is added to
the global list. get_language() is kept for the name table, which
genuinely needs an hb_language_t. Behaviour is unchanged for every
real tag; only a degenerate tag with no valid leading byte, which used
to become the empty/invalid language, now matches nothing.
Adds a regression font to the in-house aat-morx tests whose type-39
features gate substitutions by tags 'sr' and 'Zh_Hant', exercising
case folding, '_' canonicalization, subtag prefix matching and
non-matches.
Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-KYZIZMO6.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-11-02 10:52:07 -06:00
..
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-07-25 13:35:41 +03:00
2021-08-11 19:33:00 -06:00
2026-11-01 09:28:05 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-08-22 12:48:13 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-09-03 08:58:35 -06:00
2021-08-11 19:33:00 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-10-01 20:40:06 -06:00
2021-08-11 18:49:59 -06:00
2026-04-18 19:54:27 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2025-03-20 18:05:30 -06:00
2021-08-11 18:49:59 -06:00
2026-08-09 12:37:15 -06:00
2022-12-04 10:46:47 -07:00
2026-11-01 13:35:37 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2025-03-07 14:30:53 +02:00
2022-07-13 16:02:39 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-02 10:51:40 -06:00
2021-08-11 18:49:59 -06:00
2026-10-21 19:42:13 -06:00
2021-08-11 18:49:59 -06:00
2025-10-17 16:26:21 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2022-11-05 15:40:05 -06:00
2026-10-30 12:49:31 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2022-01-22 11:53:18 -07:00
2025-10-17 16:26:21 -06:00
2026-11-01 11:52:56 -07:00
2026-10-04 14:03:22 -06:00
2021-08-11 18:49:59 -06:00
2025-11-04 13:49:52 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2021-08-11 18:49:59 -06:00
2026-07-25 13:35:28 +03:00
2022-06-03 12:12:13 +01:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2022-06-27 20:18:17 -06:00
2024-07-25 14:50:01 -06:00
2025-01-03 05:19:13 -07:00
2021-08-11 18:49:59 -06:00
2026-07-25 13:35:41 +03:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2022-06-25 11:02:39 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2025-10-17 16:26:21 -06:00
2021-08-11 18:49:59 -06:00
2022-03-21 15:42:08 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-09-03 08:58:35 -06:00
2026-11-02 10:52:07 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-24 02:12:34 +02:00
2026-09-04 19:55:47 -06:00
2021-08-11 18:49:59 -06:00
2026-11-02 10:52:07 -06:00
2026-11-01 13:35:37 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 11:52:56 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2022-04-19 16:33:57 +02:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2022-03-13 14:45:27 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-24 02:12:34 +02:00
2026-11-01 09:28:05 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-07-30 23:27:22 +03:00
2026-10-01 16:11:36 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2025-10-14 20:06:26 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-07-30 23:27:22 +03:00
2022-03-28 17:39:54 -06:00
2023-08-08 13:33:11 -06:00
2026-06-16 13:55:17 +02:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2025-10-17 16:26:21 -06:00
2026-11-02 10:51:40 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 09:28:05 -07:00
2026-10-19 21:59:14 -06:00
2026-11-01 11:52:56 -07:00
2021-08-11 18:49:59 -06:00
2022-04-28 14:40:33 -06:00
2021-08-11 18:49:59 -06:00
2022-11-05 15:40:05 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2022-09-06 11:33:12 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-10-29 19:31:29 -06:00
2026-11-01 13:35:37 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2022-06-03 12:12:13 +01:00
2026-11-01 13:35:37 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 19:26:02 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2024-09-21 12:21:56 -06:00
2022-07-20 11:14:22 -06:00
2026-11-01 13:35:37 -07:00
2023-08-01 20:02:21 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2025-11-04 13:49:52 -07:00
2021-08-11 18:49:59 -06:00
2026-09-05 14:44:39 -06:00
2025-08-08 15:14:16 -06:00
2026-10-30 14:48:18 -06:00
2026-11-01 11:52:56 -07:00
2021-08-11 18:49:59 -06:00
2024-09-23 08:00:06 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2026-07-30 23:27:22 +03:00
2023-06-22 20:56:08 -04:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-10-05 16:04:10 +02:00
2026-11-01 11:52:56 -07:00
2026-10-27 14:44:18 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2022-06-28 16:02:51 -06:00
2021-10-05 16:04:10 +02:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2022-06-03 12:12:13 +01:00
2026-10-04 14:03:22 -06:00
2026-11-01 13:35:37 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2024-12-15 12:32:08 -07:00
2021-08-11 18:49:59 -06:00
2026-11-01 13:35:37 -07:00
2022-06-03 12:12:13 +01:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2022-01-19 16:05:09 +02:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2025-11-10 02:55:44 -07:00
2021-08-11 18:49:59 -06:00
2021-08-11 18:49:59 -06:00
2022-01-19 16:04:58 +02:00
2025-03-28 16:31:46 -06:00
2025-03-28 19:19:57 -06:00
2025-03-28 19:19:57 -06:00
2025-03-28 16:31:46 -06:00
2022-06-19 10:42:05 -06:00
2022-06-19 10:42:05 -06:00
2025-02-06 19:56:33 +00:00
2021-08-11 18:49:59 -06:00