[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
This commit is contained in:
Behdad Esfahbod committed 2026-06-05 12:34:52 +02:00
1 parent a86c5a2847
commit cdc1ca9edf
1 file changed
+1 -1
+1 -1
View File
@@ -1449,7 +1449,7 @@ struct LookupOffsetList : List16OfOffsetTo<TLookup, OffsetType>
bool sanitize (hb_sanitize_context_t *c) const
{
TRACE_SANITIZE (this);
return_trace (List16OfOffset16To<TLookup>::sanitize (c, this));
return_trace ((List16OfOffsetTo<TLookup, OffsetType>::sanitize (c, this)));
}
};