[SingleSubst] Fix degenerate-lookup test

Part of https://github.com/harfbuzz/harfbuzz/issues/3853
This commit is contained in:
Behdad Esfahbod 2022-10-26 13:04:02 -06:00
parent 83769b9cb1
commit 9aad3dba8f
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ struct SingleSubstFormat1_3
hb_codepoint_t max_before = intersection.get_max ();
hb_codepoint_t min_after = (min_before + d) & mask;
hb_codepoint_t max_after = (max_before + d) & mask;
if (pop >= max_before - min_before &&
if (intersection.get_population () == max_before - min_before + 1 &&
((min_before <= min_after && min_after <= max_before) ||
(min_before <= max_after && max_after <= max_before)))
return;