[ENOMEM] check vector status in cmap subsetting.

This commit is contained in:
Garret Rieger 2020-07-31 14:40:49 -07:00 committed by Ebrahim Byagowi
parent 06dbb6acbb
commit 18ab8029d5
2 changed files with 3 additions and 0 deletions

View File

@ -1108,6 +1108,9 @@ struct CmapSubtableFormat14
return; return;
} }
if (unlikely (!c->check_success (!obj_indices.in_error ())))
return;
int tail_len = init_tail - c->tail; int tail_len = init_tail - c->tail;
c->check_assign (this->length, c->length () - table_initpos + tail_len); c->check_assign (this->length, c->length () - table_initpos + tail_len);
c->check_assign (this->record.len, c->check_assign (this->record.len,