Behdad Esfahbod and Claude Opus 4.8
0aa7da1772
[GPOS] Charge out-of-order MarkBasePos/MarkLigPos base rescans to max_ops
...
MarkBasePosFormat1 and MarkLigPosFormat1 find a mark's base with a
cache (c->last_base / last_base_until) that is only amortized while
buffer->idx moves forward. A (Chain)Context lookup that recurses into
the mark lookup at input positions out of order resets the cache, so
each application rescans the glyphs from last_base_until to idx from
scratch; on a long run of marks with no base this is quadratic and was
uncharged.
Charge the rescanned span (idx - j) to buffer->max_ops after the
backward search in both lookups, failing the shape when the budget runs
out. A real mark-heavy font pays a negligible amount. Adds a
regression test shaping a Context lookup that recurses to MarkBasePos
at positions 1,0,1,0,...
Discovered by Anthropic's OSS Scanner, as vulnerability ANT-2026-FJEXEDJ4.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com >
2026-11-11 12:43:10 -06:00
..
2025-02-26 14:41:04 -07:00
2026-11-09 13:18:05 -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-11-01 14:14:09 -07:00
2026-10-30 16:10:52 -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
2026-11-02 10:52:07 -06:00
2026-10-30 16:35:27 -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-11-10 16:21:48 -06:00
2025-04-06 18:08:50 -06:00
2026-11-04 12:05:35 -06:00
2025-04-06 03:49:15 -06:00
2026-11-09 13:00:15 -06:00
2026-11-08 14:36:19 -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-11-01 14:22:23 -07:00
2026-10-18 19:54:45 -06:00
2026-07-30 19:02:25 -06:00
2026-11-04 12:02:49 -06:00
2021-11-01 17:59:48 -07:00
2026-11-09 11:47:15 -06:00
2026-11-09 18:28:24 -06:00
2026-10-30 15:30:37 -06:00
2026-04-18 19:54:54 -06:00
2026-10-30 16:55:57 -06:00
2026-10-30 17:00:07 -06:00
2026-10-27 15:42:35 -06:00
2026-10-30 16:35:27 -06:00
2025-04-06 03:49:15 -06:00
2025-04-06 19:16:43 -06:00
2026-10-30 15:04:54 -06:00
2026-11-10 19:15:42 -06:00
2026-11-09 17:54:20 -06:00
2026-11-10 22:44:19 -06:00
2026-10-21 19:58:41 -06:00
2026-11-01 19:26:02 -07:00
2026-07-31 04:31:26 +03:00
2025-04-06 03:49:15 -06:00
2026-11-11 12:43:10 -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-31 22:00:12 -06:00
2026-10-30 16:35:27 -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-31 22:45:12 -06:00
2026-11-09 20:29:35 -06:00
2026-10-07 12:19:48 -06:00
2026-10-20 11:25:59 -06:00
2026-10-30 16:49:35 -06:00
2026-11-11 12:43:10 -06:00
2024-02-10 07:08:18 -07:00
2026-08-15 11:43:02 -06:00
2026-10-30 15:10:33 -06:00
2026-11-09 13:18:05 -06:00
2026-11-09 13:18:05 -06:00
2026-11-08 14:36:19 -06:00
2026-11-09 12:52:43 -06:00
2025-04-06 03:49:15 -06:00
2026-10-31 22:00:12 -06:00
2026-11-04 17:05:57 -06:00
2026-11-04 12:04:23 -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
2026-10-30 15:26:52 -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-11-09 13:17:50 -06:00
2018-10-21 11:27:05 +03:30
2021-07-29 18:30:27 -07:00
2026-11-10 16:50:50 -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