mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-19 22:11:04 +01:00
[subset] bail if collection region indices is in error.
This commit is contained in:
1 parent
f9d8e4a976
commit
b63ac57174
1 file changed
+4
@@ -2792,6 +2792,10 @@ struct VariationStore
|
||||
hb_set_t region_indices;
|
||||
for (unsigned int i = 0; i < inner_maps.length; i++)
|
||||
(src+src->dataSets[i]).collect_region_refs (region_indices, inner_maps[i]);
|
||||
|
||||
if (region_indices.in_error ())
|
||||
return_trace (false);
|
||||
|
||||
region_indices.del_range ((src_regions).regionCount, hb_set_t::INVALID);
|
||||
|
||||
/* TODO use constructor when our data-structures support that. */
|
||||
|
||||
Reference in new issue
Block a user