mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-09 23:09:21 +00:00
[ENOMEM][fuzzer/subset] early return if the result is null
I don't see _or_fail APIs idiomatic for the project but since it is there, let's have this
This commit is contained in:
parent
7c433ffde2
commit
fa0436ddd1
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ trySubset (hb_face_t *face,
|
|||
bool retain_gids)
|
||||
{
|
||||
hb_subset_input_t *input = hb_subset_input_create_or_fail ();
|
||||
if (!input) return;
|
||||
hb_subset_input_set_drop_hints (input, drop_hints);
|
||||
hb_subset_input_set_retain_gids (input, retain_gids);
|
||||
hb_set_t *codepoints = hb_subset_input_unicode_set (input);
|
||||
|
|
Loading…
Add table
Reference in a new issue