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:
parent
ccabe7ac02
commit
cc849c32cf
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user