From 6a7b4dcae61530790276856e3005bd12e9ea352b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 26 Feb 2025 13:25:50 -0700 Subject: [PATCH] [VARC] Reduce stack usage on 32bit systems --- src/OT/Var/VARC/VARC.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OT/Var/VARC/VARC.cc b/src/OT/Var/VARC/VARC.cc index 1099130a0..3b9eec4fb 100644 --- a/src/OT/Var/VARC/VARC.cc +++ b/src/OT/Var/VARC/VARC.cc @@ -381,7 +381,7 @@ VARC::get_path_at (hb_font_t *font, hb_ubytes_t record = (this+glyphRecords)[idx]; - float static_cache[128]; + float static_cache[sizeof (void *) * 16]; VarRegionList::cache_t *cache = (this+varStore).create_cache (hb_array (static_cache)); transform.scale (font->x_multf, font->y_multf);