commit | e5bfd49ae5bc711a40e3fac9e3b8230f251e5d67 | [log] [tgz] |
---|---|---|
author | Garret Rieger <[email protected]> | Thu Aug 05 14:03:25 2021 -0700 |
committer | Behdad Esfahbod <[email protected]> | Thu Aug 05 17:49:37 2021 -0600 |
tree | 84a7a8316eb37fc7e415c6db3614327041e098a1 | |
parent | 222b74f08f8cc4a5e1b7c1582b28db5588ea11da [diff] |
[subset] don't allow table adds for tag == -1.
diff --git a/src/hb-face.cc b/src/hb-face.cc index beccf41..2386e87 100644 --- a/src/hb-face.cc +++ b/src/hb-face.cc
@@ -752,6 +752,9 @@ hb_bool_t hb_face_builder_add_table (hb_face_t *face, hb_tag_t tag, hb_blob_t *blob) { + if (tag == HB_MAP_VALUE_INVALID) + return false; + if (unlikely (face->destroy != (hb_destroy_func_t) _hb_face_builder_data_destroy)) return false;