提交 8170801d 编写于 作者: B Behdad Esfahbod

[set] Fix crash

Ouch!  That's what happens when one plays with increment/decrement operators!

Fixes https://github.com/behdad/harfbuzz/issues/578
上级 61d1c60a
......@@ -331,10 +331,12 @@ struct hb_set_t
b--;
}
}
while (a >= 0)
page_at (--count).v = page_at (--a).v;
while (b >= 0)
page_at (--count).v = other->page_at (--b).v;
if (Op::passthru_left)
while (a >= 0)
page_at (--count).v = page_at (a--).v;
if (Op::passthru_right)
while (b >= 0)
page_at (--count).v = other->page_at (b--).v;
assert (!count);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册