[aat] More protection against buffer fail
This commit is contained in:
parent
e1add2a275
commit
7efa38257b
|
@ -507,8 +507,9 @@ struct StateTableDriver
|
||||||
|
|
||||||
if (!c->in_place)
|
if (!c->in_place)
|
||||||
{
|
{
|
||||||
for (; buffer->idx < buffer->len;)
|
for (; buffer->successful && buffer->idx < buffer->len;)
|
||||||
buffer->next_glyph ();
|
buffer->next_glyph ();
|
||||||
|
if (likely (buffer->successful))
|
||||||
buffer->swap_buffers ();
|
buffer->swap_buffers ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue