[morx] Clear stack upon underflow when acting ligatures
This commit is contained in:
parent
1bfb96a9c8
commit
0e5bcdef7f
|
@ -402,7 +402,11 @@ struct LigatureSubtable
|
|||
do
|
||||
{
|
||||
if (unlikely (!cursor))
|
||||
{
|
||||
/* Stack underflow. Clear the stack. */
|
||||
match_length = 0;
|
||||
break;
|
||||
}
|
||||
|
||||
buffer->move_to (match_positions[--cursor]);
|
||||
|
||||
|
|
Loading…
Reference in New Issue