Behdad Esfahbod
6156c7b4a7
[subset] Validate custom glyph mappings before assigning output ids ( #6479 )
...
Glyph zero is always reserved for .notdef. Reject mappings that assign
another retained glyph to it, so the output list has one entry per id.
Also bound the resulting glyph count by the widest supported count
field, MAXP's HBUINT24. Account for the unmapped glyphs and the initial
slot before assigning ids, avoiding wraparound and oversized counts in
table subsetters. The limit applies to the count, not the highest id.
Document these constraints and test valid renumbering, gaps, ignored
remapping of .notdef, reserved-id collisions, and out-of-range counts.
The regression and stock hb-subset both reproduce the issue under ASan
before the fix. All 293 tests pass after it, including the subset suite;
the API subset tests and command-line checks also pass ASan and UBSan.
Discovered by Anthropic's OSS Scanner, as vulnerability
ANT-2026-6I1RIFMQ.
Assisted-by: OpenAI Codex
2026-10-29 21:01:05 -06:00
..
2025-02-26 14:41:04 -07:00
2026-10-29 16:35:22 -06:00
2026-07-12 22:20:21 +03:00
2026-10-21 18:13:19 -06:00
2026-10-15 11:16:49 -06:00
2026-10-22 13:04:52 -06:00
2026-10-21 19:58:41 -06:00
2026-10-27 15:42:35 -06:00
2026-10-29 16:25:35 -06:00
2026-10-28 00:03:22 +05:30
2026-10-14 10:51:09 -06:00
2026-10-10 04:04:32 -06:00
2025-04-06 03:49:15 -06:00
2025-07-02 20:14:51 +03:00
2026-10-20 11:25:59 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 03:49:15 -06:00
2026-10-29 19:28:41 -06:00
2026-10-02 11:22:24 -06:00
2026-10-22 19:31:32 +03:00
2026-10-01 16:51:20 -06:00
2025-04-06 18:08:50 -06:00
2026-10-10 16:58:18 -06:00
2025-04-06 03:49:15 -06:00
2026-08-26 18:34:02 -06:00
2026-06-24 03:00:52 -06:00
2026-06-02 02:33:52 -06:00
2025-04-25 19:04:37 -06:00
2026-01-10 07:42:07 -07:00
2025-03-23 15:40:41 +02:00
2026-10-02 18:01:26 -06:00
2026-10-18 19:54:45 -06:00
2026-07-30 19:02:25 -06:00
2025-04-06 03:49:15 -06:00
2021-11-01 17:59:48 -07:00
2026-10-16 12:18:00 -06:00
2026-10-01 13:33:09 -06:00
2026-09-10 14:54:07 -06:00
2026-04-18 19:54:54 -06:00
2026-08-26 18:34:31 -06:00
2026-08-22 12:48:13 -06:00
2026-10-27 15:42:35 -06:00
2026-05-06 17:27:10 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 19:16:43 -06:00
2020-06-18 22:56:07 +04:30
2025-04-06 03:49:15 -06:00
2026-10-29 15:42:53 -07:00
2026-10-27 13:44:40 -07:00
2026-10-21 19:58:41 -06:00
2026-09-04 14:14:49 -06:00
2026-07-31 04:31:26 +03:00
2025-04-06 03:49:15 -06:00
2026-10-01 20:40:06 -06:00
2025-04-05 22:37:10 -06:00
2025-04-06 03:49:15 -06:00
2019-08-13 21:02:47 -07:00
2026-10-14 10:51:09 -06:00
2026-10-29 18:52:24 -06:00
2025-04-05 22:37:10 -06:00
2026-07-08 00:53:56 -06:00
2026-07-21 18:47:36 -06:00
2026-08-26 17:11:21 -06:00
2026-10-29 19:07:51 -06:00
2026-10-07 12:19:48 -06:00
2026-10-20 11:25:59 -06:00
2026-10-16 11:01:47 -06:00
2026-08-12 17:17:00 -06:00
2024-02-10 07:08:18 -07:00
2026-08-15 11:43:02 -06:00
2020-01-31 16:37:30 -05:00
2026-10-29 20:57:13 -06:00
2026-10-22 17:06:10 +03:00
2026-10-02 21:33:22 -06:00
2026-10-18 15:26:44 -06:00
2025-04-06 03:49:15 -06:00
2026-10-22 12:55:36 -06:00
2026-10-05 18:04:26 -06:00
2026-10-01 14:47:15 -06:00
2025-04-06 03:49:15 -06:00
2026-06-05 13:35:05 +02:00
2021-07-29 18:30:27 -07:00
2026-10-11 00:41:07 -06:00
2025-04-06 02:34:48 -06:00
2018-10-21 11:27:05 +03:30
2018-10-21 11:27:05 +03:30
2026-10-29 20:56:03 -06:00
2020-01-15 13:36:01 -08:00
2026-10-11 00:38:36 -06:00
2018-10-21 11:27:05 +03:30
2021-07-29 18:30:27 -07:00
2026-10-29 21:01:05 -06:00
2026-09-17 00:37:58 +03:00
2025-06-08 13:43:27 +03:00
2025-04-06 03:49:15 -06:00