diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index ed6ec03b9..aa5857275 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -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)); }