1
0
mirror of https://github.com/freetype/freetype.git synced 2025-04-18 11:24:00 +03:00

[autofit] Avoid crash.

Reported as

  https://issues.oss-fuzz.com/issues/410811029

* src/autofit/aflatin.c (af_remove_segments_containing_point): Check
  `edge->last`.
This commit is contained in:
Werner Lemberg 2025-04-16 19:39:02 +02:00
parent ccabe7ac02
commit cc849c32cf

View File

@ -2882,7 +2882,7 @@
{
edge->last = edge->first;
while ( edge->last->edge_next != seg )
while ( edge->last && edge->last->edge_next != seg )
edge->last = edge->last->edge_next;
}
}