mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 15:01:01 +01:00
[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:
1 parent
a86c5a2847
commit
cdc1ca9edf
1 file changed
+1
-1
@@ -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)));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user