Behdad Esfahbod
68ee3a923e
[graphite2] Stop shaping when output buffer growth fails ( #6489 )
...
Check ensure(glyph_count) before writing Graphite output. Release the
feature values and segment and return failure when buffer growth fails.
Add a small synthetic font and a bounded regression that refuses buffer
growth via max_len. The normal path produces 164 glyphs; the failure path
retains the original input length and reports allocation failure. Include
the font generator, whose output matches the checked-in fixture.
The new regression fails before the fix under ASan and passes afterward.
All 276 tests pass with Graphite2 enabled; the regression also passes under
ASan and UBSan.
Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-HEQW39B7.
Assisted-by: OpenAI Codex
2026-10-30 14:53:51 -06:00
..
2025-02-26 14:41:04 -07:00
2026-10-30 14:53:51 -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-30 14:53:51 -06:00
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-30 14:49:21 -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
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-10-30 14:52:35 -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
2026-10-29 20:56:03 -06:00
2020-01-15 13:36:01 -08:00
2026-10-11 00:38:36 -06:00
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