mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
[morx] Clear stack upon underflow when acting ligatures
This commit is contained in:
1 parent
1bfb96a9c8
commit
0e5bcdef7f
1 file changed
+4
@@ -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]);
|
||||
|
||||
|
||||
Reference in new issue
Block a user