mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-12-01 10:34:23 +01:00
Allow zero length ranges in sanitization (#1617)
Fixes fvar table sanitization where there are no named instance by allowing zero length ranges starting from Null() address. Fixes #1607
This commit is contained in:
1 parent
ee8719eaaf
commit
5bbe78a0f3
3 files changed
+25
-14
No files matched your search
Binary file not shown.
@@ -110,12 +110,21 @@ test_ot_face_empty (void)
|
||||
test_face (hb_face_get_empty (), 0);
|
||||
}
|
||||
|
||||
static void
|
||||
test_ot_var_axis_on_zero_named_instance ()
|
||||
{
|
||||
hb_face_t *face = hb_test_open_font_file ("fonts/Zycon.ttf");
|
||||
g_assert (hb_ot_var_get_axis_count (face));
|
||||
hb_face_destroy (face);
|
||||
}
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
hb_test_init (&argc, &argv);
|
||||
|
||||
hb_test_add (test_ot_face_empty);
|
||||
hb_test_add (test_ot_var_axis_on_zero_named_instance);
|
||||
|
||||
return hb_test_run();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user