From 3d4659beaad042fe0b3f0a750ced96e8ca361cb9 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 31 Dec 2022 12:38:58 -0700 Subject: [PATCH] [cff2] Use exact-size vector allocation for blends --- src/hb-cff2-interp-cs.hh | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hb-cff2-interp-cs.hh b/src/hb-cff2-interp-cs.hh index 00c25800e..1f07d999c 100644 --- a/src/hb-cff2-interp-cs.hh +++ b/src/hb-cff2-interp-cs.hh @@ -45,6 +45,7 @@ struct blend_arg_t : number_t numValues = numValues_; valueIndex = valueIndex_; unsigned numBlends = blends_.length; + deltas.alloc (numBlends, true); /* Exact-size allocation. */ if (unlikely (!deltas.resize (numBlends))) return; for (unsigned int i = 0; i < numBlends; i++)