Skip to content

Commit

Permalink
erecursion detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 6, 2023
1 parent 9b2c57f commit c5b23cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion MagickCore/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -5585,7 +5585,8 @@ MagickExport MagickBooleanType DrawPrimitive(Image *image,

if (primitive_info->text == (char *) NULL)
break;
clone_info=CloneImageInfo(draw_info->image_info);
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 c5b23cb

Please sign in to comment.