[subset-cff] Another exact allocation

This commit is contained in:
Behdad Esfahbod 2022-12-31 13:55:41 -07:00
parent 54dd01b865
commit edb812345a
1 changed files with 1 additions and 1 deletions

View File

@ -974,7 +974,7 @@ struct subr_subsetter_t
if (opstr.op == OpCode_callsubr || opstr.op == OpCode_callgsubr)
size += 3;
}
if (!buff.alloc (buff.length + size))
if (!buff.alloc (buff.length + size, true))
return false;
for (auto &opstr : str.values)