mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
[AAT] Size Lookup null object storage correctly
The AAT Lookup null object intentionally starts with format 0xFFFF so lookup dispatch treats it as unsupported. However, its specialized null storage was declared as only two bytes, while Null(Lookup<T>) is returned as a Lookup<T> reference. Declare enough storage for the current Lookup<T> object size so binding the null reference is well-defined, while preserving the invalid format bytes. Testing: meson test -C build Assisted-by: OpenAI Codex
This commit is contained in:
1 parent
fa417b9a77
commit
8565202817
1 file changed
+1
-1
@@ -797,7 +797,7 @@ struct Lookup
|
||||
public:
|
||||
DEFINE_SIZE_UNION (2, format.v);
|
||||
};
|
||||
DECLARE_NULL_NAMESPACE_BYTES_TEMPLATE1 (AAT, Lookup, 2);
|
||||
DECLARE_NULL_NAMESPACE_BYTES_TEMPLATE1 (AAT, Lookup, 13);
|
||||
|
||||
/*
|
||||
* (Extended) State Table
|
||||
|
||||
Reference in new issue
Block a user