diff --git a/src/hb-ot-cff1-table.hh b/src/hb-ot-cff1-table.hh index 8896a6687..2baaf4b95 100644 --- a/src/hb-ot-cff1-table.hh +++ b/src/hb-ot-cff1-table.hh @@ -652,6 +652,7 @@ struct CFF1StringIndex : CFF1Index if (unlikely (sidmap.in_error ())) return_trace (false); + // Save this in a vector since serialize() iterates it twice. hb_vector_t bytesArray; if (!bytesArray.resize (sidmap.length, false)) return_trace (false);