diff options
author | Garret Rieger <grieger@google.com> | 2020-07-31 14:40:49 -0700 |
---|---|---|
committer | Ebrahim Byagowi <ebrahim@gnu.org> | 2020-08-02 00:30:17 +0430 |
commit | 18ab8029d5aab6ac20c240515ad1795bd31dca1e (patch) | |
tree | 1e00a30aa37f62dca0859ae5a0fa290da977fa8a /src | |
parent | 06dbb6acbbd322b3123820c73ed4371560efc558 (diff) | |
download | harfbuzz_ng-18ab8029d5aab6ac20c240515ad1795bd31dca1e.tar.gz |
[ENOMEM] check vector status in cmap subsetting.
Diffstat (limited to 'src')
-rw-r--r-- | src/hb-ot-cmap-table.hh | 3 |
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, |