mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-21 06:51:01 +01:00
[set] Protect against bad input in hb_set_add_range()
This commit is contained in:
1 parent
d5e29303db
commit
0744149cda
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user