提交 0744149c 编写于 作者: B Behdad Esfahbod

[set] Protect against bad input in hb_set_add_range()

上级 d5e29303
......@@ -217,7 +217,7 @@ struct hb_set_t
}
inline void add_range (hb_codepoint_t a, hb_codepoint_t b)
{
if (unlikely (in_error)) return;
if (unlikely (in_error || a > b)) return;
unsigned int ma = get_major (a);
unsigned int mb = get_major (b);
if (ma == mb)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册