[buffer] Fix immutable case with end_ptr==nullptr
This commit is contained in:
parent
7c0bc0bb92
commit
3b64122a7f
|
@ -748,6 +748,7 @@ hb_buffer_deserialize_glyphs (hb_buffer_t *buffer,
|
||||||
|
|
||||||
if (unlikely (hb_object_is_immutable (buffer)))
|
if (unlikely (hb_object_is_immutable (buffer)))
|
||||||
{
|
{
|
||||||
|
if (end_ptr)
|
||||||
*end_ptr = buf;
|
*end_ptr = buf;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
@ -818,6 +819,7 @@ hb_buffer_deserialize_unicode (hb_buffer_t *buffer,
|
||||||
|
|
||||||
if (unlikely (hb_object_is_immutable (buffer)))
|
if (unlikely (hb_object_is_immutable (buffer)))
|
||||||
{
|
{
|
||||||
|
if (end_ptr)
|
||||||
*end_ptr = buf;
|
*end_ptr = buf;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue