Skip to content

Commit

Permalink
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=30896
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 13, 2021
1 parent d886aa5 commit b322ab0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion magick/draw.c
Original file line number Diff line number Diff line change
Expand Up @@ -2245,8 +2245,8 @@ static MagickBooleanType CheckPrimitiveExtent(MVGInfo *mvg_info,
/*
Check if there is enough storage for drawing pimitives.
*/
extent=(double) mvg_info->offset+pad+PrimitiveExtentPad+1.0;
quantum=sizeof(**mvg_info->primitive_info);
extent=(double) mvg_info->offset+pad+PrimitiveExtentPad*quantum+1.0;
if (extent <= (double) *mvg_info->extent)
return(MagickTrue);
if (extent == (double) CastDoubleToLong(extent))
Expand Down

0 comments on commit b322ab0

Please sign in to comment.