Skip to content

Commit

Permalink
recursion detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 6, 2023
1 parent 060660b commit 706d381
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions magick/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -5511,6 +5511,7 @@ MagickExport MagickBooleanType DrawPrimitive(Image *image,
if (primitive_info->text == (char *) NULL)
break;
clone_info=AcquireImageInfo();
clone_info->recursion_depth=draw_info->image_info->recursion_depth;
composite_images=(Image *) NULL;
if (LocaleNCompare(primitive_info->text,"data:",5) == 0)
composite_images=ReadInlineImage(clone_info,primitive_info->text,
Expand Down

0 comments on commit 706d381

Please sign in to comment.