mirror of
https://github.com/harfbuzz/harfbuzz.git
synced 2025-04-10 15:23:35 +00:00
[shape] Allow null buffer
Ouch!
This commit is contained in:
parent
33145a4b75
commit
d72d37008d
1 changed files with 3 additions and 0 deletions
|
@ -126,6 +126,9 @@ hb_shape_full (hb_font_t *font,
|
|||
unsigned int num_features,
|
||||
const char * const *shaper_list)
|
||||
{
|
||||
if (unlikely (!buffer->len))
|
||||
return true;
|
||||
|
||||
hb_buffer_t *text_buffer = nullptr;
|
||||
if (buffer->flags & HB_BUFFER_FLAG_VERIFY)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue