mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 08:21:32 +01:00
[blob] Allow null parent in create_sub_blob()
Like font and unicode.
This commit is contained in:
1 parent
fb0f30f55a
commit
da408fce98
1 file changed
+1
-1
+1
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user