Immutable buffer fix
This commit is contained in:
parent
150f391438
commit
f56eb402f0
|
@ -776,6 +776,13 @@ hb_buffer_deserialize_unicode (hb_buffer_t *buffer,
|
||||||
assert ((!buffer->len && (buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID)) ||
|
assert ((!buffer->len && (buffer->content_type == HB_BUFFER_CONTENT_TYPE_INVALID)) ||
|
||||||
(buffer->content_type == HB_BUFFER_CONTENT_TYPE_UNICODE));
|
(buffer->content_type == HB_BUFFER_CONTENT_TYPE_UNICODE));
|
||||||
|
|
||||||
|
|
||||||
|
if (unlikely (hb_object_is_immutable (buffer)))
|
||||||
|
{
|
||||||
|
*end_ptr = buf;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
if (buf_len == -1)
|
if (buf_len == -1)
|
||||||
buf_len = strlen (buf);
|
buf_len = strlen (buf);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue