From 22b0390e2dcefcf737d70f8d965d99b902831a29 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 5 Dec 2022 09:43:36 -0700 Subject: [PATCH] Revert "[VarData] Don't clear memory we are going to fill in completely" This reverts commit e28e2dad03a453c5e5c4c5a9d6fd276182c5f80b. This made fuzzer unhappy. I'm not sure how. https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=54044 --- src/hb-ot-layout-common.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index f94c3a5d3..571c812e4 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -2549,7 +2549,7 @@ struct VarData regionIndices.len = new_ri_count; - if (unlikely (!c->extend_size (this, get_size (), false))) return_trace (false); + if (unlikely (!c->extend (this))) return_trace (false); for (r = 0; r < new_ri_count; r++) regionIndices[r] = region_map[src->regionIndices[ri_map[r]]];