* src/pshinter/pshrec.c (ps_mask_table_merge_all): Tweak loops.

Fixes fallout from 731d0b6856 reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=38685
This commit is contained in:
Alexei Podtelezhnikov 2021-09-14 10:26:37 -04:00
parent 731d0b6856
commit 0a8ee851e0
1 changed files with 2 additions and 3 deletions

View File

@ -503,9 +503,8 @@
FT_Error error = FT_Err_Ok;
/* the inner loop stops when the unsigned index wraps around */
/* after reaching 0. */
for ( index1 = table->num_masks - 1; index1 > 0; index1-- )
/* the loops stop when unsigned indices wrap around after 0 */
for ( index1 = table->num_masks - 1; index1 < table->num_masks; index1-- )
{
for ( index2 = index1 - 1; index2 < index1; index2-- )
{