From cdc1ca9edf4ee69211cd76391c97efcc706c7698 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 4 Jun 2026 01:17:04 +0200 Subject: [PATCH] [layout] Sanitize lookup lists with their offset width LookupOffsetList is parameterized by offset width, but its sanitizer called the 16-bit offset-list base explicitly. Dispatch through the actual List16OfOffsetTo base so 32-bit lookup-list views use the right offset element type. Tested with: meson test -C build Assisted-by: OpenAI Codex --- src/hb-ot-layout-common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 1e6016e94..2a3231294 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -1449,7 +1449,7 @@ struct LookupOffsetList : List16OfOffsetTo bool sanitize (hb_sanitize_context_t *c) const { TRACE_SANITIZE (this); - return_trace (List16OfOffset16To::sanitize (c, this)); + return_trace ((List16OfOffsetTo::sanitize (c, this))); } };