From 1541e955d940bc316c1739292b740e9e4a949d68 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 19 May 2018 14:31:32 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8383 --- MagickCore/draw.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 51d4b2670..132ad5c3a 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -3852,10 +3852,11 @@ MagickExport MagickBooleanType DrawImage(Image *image,const DrawInfo *draw_info, t++; continue; } - if (strspn(t,"AaCcQqSsTt") != 0) - coordinates+=(6*BezierQuantum)+360; coordinates++; } + for (s=token; *s != '\0'; s++) + if (strspn(s,"AaCcQqSsTt") != 0) + coordinates+=(20*BezierQuantum)+360; break; } case CirclePrimitive: -- 2.40.0