* src/truetype/ttgload.c (TT_Load_Simple_Glyph): Use for-loop.

Even though we never call `TT_Load_Simple_Glyph` with zero contours,
out of abundance of precaution, let's handle this case properly.
gsoc-anurag-2023-docs-final
Alexei Podtelezhnikov 2 years ago
parent ef63669652
commit 8fc6df1028
  1. 4
      src/truetype/ttgload.c

@ -388,7 +388,7 @@
cont_limit = cont + n_contours;
last = -1;
do
for ( ; cont < cont_limit; cont++ )
{
*cont = FT_NEXT_SHORT( p );
@ -396,7 +396,7 @@
goto Invalid_Outline;
last = *cont;
} while ( ++cont < cont_limit );
}
n_points = last + 1;

Loading…
Cancel
Save