Skip to content

Commit

Permalink
validate stroke width
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Sep 3, 2022
1 parent 032425e commit 3072a10
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion magick/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -3782,7 +3782,8 @@ static MagickBooleanType RenderMVGContent(Image *image,
if (graphic_context[n]->clip_path != MagickFalse)
break;
graphic_context[n]->stroke_width=GetDrawValue(token,&next_token);
if (token == next_token)
if ((token == next_token) ||
(graphic_context[n]->stroke_width < 0.0))
ThrowPointExpectedException(image,token);
break;
}
Expand Down

0 comments on commit 3072a10

Please sign in to comment.