aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarret Rieger <grieger@google.com>2020-07-31 14:40:49 -0700
committerEbrahim Byagowi <ebrahim@gnu.org>2020-08-02 00:30:17 +0430
commit18ab8029d5aab6ac20c240515ad1795bd31dca1e (patch)
tree1e00a30aa37f62dca0859ae5a0fa290da977fa8a /src
parent06dbb6acbbd322b3123820c73ed4371560efc558 (diff)
downloadharfbuzz_ng-18ab8029d5aab6ac20c240515ad1795bd31dca1e.tar.gz
[ENOMEM] check vector status in cmap subsetting.
Diffstat (limited to 'src')
-rw-r--r--src/hb-ot-cmap-table.hh3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/hb-ot-cmap-table.hh b/src/hb-ot-cmap-table.hh
index 418af0b53..cc48379bb 100644
--- a/src/hb-ot-cmap-table.hh
+++ b/src/hb-ot-cmap-table.hh
@@ -1108,6 +1108,9 @@ struct CmapSubtableFormat14
return;
}
+ if (unlikely (!c->check_success (!obj_indices.in_error ())))
+ return;
+
int tail_len = init_tail - c->tail;
c->check_assign (this->length, c->length () - table_initpos + tail_len);
c->check_assign (this->record.len,