mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[face] Avoid infinite-loop in building a face blob
This commit is contained in:
parent
6a7b4dcae6
commit
6fbd6bb34e
1 changed files with 5 additions and 3 deletions
|
@ -524,9 +524,11 @@ hb_face_reference_blob (hb_face_t *face)
|
|||
hb_face_get_table_tags (face, offset, &count, tags);
|
||||
for (unsigned i = 0; i < count; i++)
|
||||
{
|
||||
hb_blob_t *table = hb_face_reference_table (face, tags[i]);
|
||||
hb_face_builder_add_table (builder, tags[i], table);
|
||||
hb_blob_destroy (table);
|
||||
if (unlikely (!tags[i]))
|
||||
continue;
|
||||
hb_blob_t *table = hb_face_reference_table (face, tags[i]);
|
||||
hb_face_builder_add_table (builder, tags[i], table);
|
||||
hb_blob_destroy (table);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue