From 85652028179ef4afc86010c28aacdf075dad2dcb Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 11 Jun 2026 10:27:07 +0200 Subject: [PATCH] [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) is returned as a Lookup reference. Declare enough storage for the current Lookup 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 --- src/hb-aat-layout-common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-aat-layout-common.hh b/src/hb-aat-layout-common.hh index 5f4bc2352..1a35363c7 100644 --- a/src/hb-aat-layout-common.hh +++ b/src/hb-aat-layout-common.hh @@ -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