mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-13 08:42:59 +00:00
[blob] Allow null parent in create_sub_blob()
Like font and unicode.
This commit is contained in:
parent
fb0f30f55a
commit
da408fce98
1 changed files with 1 additions and 1 deletions
|
@ -149,7 +149,7 @@ hb_blob_create_sub_blob (hb_blob_t *parent,
|
|||
{
|
||||
hb_blob_t *blob;
|
||||
|
||||
if (!length || offset >= parent->length)
|
||||
if (!length || !parent || offset >= parent->length)
|
||||
return hb_blob_get_empty ();
|
||||
|
||||
hb_blob_make_immutable (parent);
|
||||
|
|
Loading…
Add table
Reference in a new issue