mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 22:41:10 +01:00
Immutable buffer fix
This commit is contained in:
1 parent
150f391438
commit
f56eb402f0
1 file changed
+7
@@ -776,6 +776,13 @@ hb_buffer_deserialize_unicode (hb_buffer_t *buffer,
|
||||
assert ((!buffer->len && (buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID)) ||
|
||||
(buffer->content_type == HB_BUFFER_CONTENT_TYPE_UNICODE));
|
||||
|
||||
|
||||
if (unlikely (hb_object_is_immutable (buffer)))
|
||||
{
|
||||
*end_ptr = buf;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (buf_len == -1)
|
||||
buf_len = strlen (buf);
|
||||
|
||||
|
||||
Reference in new issue
Block a user