diff options
-rw-r--r-- | libass/ass_rasterizer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libass/ass_rasterizer.c b/libass/ass_rasterizer.c index 8cdbfd0..1146994 100644 --- a/libass/ass_rasterizer.c +++ b/libass/ass_rasterizer.c @@ -244,6 +244,9 @@ int rasterizer_set_outline(ASS_Rasterizer *rst, const FT_Outline *path) enum Status st; int last = path->contours[i]; + if (j > last) + return 0; + switch (FT_CURVE_TAG(path->tags[j])) { case FT_CURVE_TAG_ON: p[0].x = path->points[j].x; |