From e07877c66441fb9c88ed912b25277a8dd9f42dce Mon Sep 17 00:00:00 2001 From: Arusekk Date: Fri, 23 Jan 2026 20:05:45 +0100 Subject: [PATCH] tiny: fix crash on SVGs with empty path segments Minimal reproducer: Fixes https://github.com/oasislinux/netsurf/issues/2 --- frontends/tiny/render.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontends/tiny/render.c b/frontends/tiny/render.c index a7cf202ad..74b7be70e 100644 --- a/frontends/tiny/render.c +++ b/frontends/tiny/render.c @@ -1060,7 +1060,8 @@ plot_path(const struct redraw_context *ctx, const plot_style_t *style, const flo } } #undef NE - FT_Stroker_EndSubPath(stroker); + if (moved) + FT_Stroker_EndSubPath(stroker); err = fterror(FT_Stroker_GetCounts(stroker, &npoints, &ncontours)); if (err != NSERROR_OK) goto err;