[subset] Fix crash when serializer runs out of room during gpos subsetting.

This commit is contained in:
Garret Rieger 2020-03-13 12:21:10 -07:00 committed by Ebrahim Byagowi
parent 430bf69653
commit 2f556c38c0

View File

@ -485,6 +485,7 @@ struct AnchorMatrix
for (const unsigned i : index_iter)
{
auto *offset = c->embed (offset_matrix->matrixZ[i]);
if (!offset) return_trace (false);
offset->serialize_copy (c, offset_matrix->matrixZ[i], offset_matrix, c->to_bias (this));
}