Skip to content

Commit

Permalink
correct pixel offset check
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Oct 22, 2023
1 parent 4d79bb5 commit 24403f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magick/cache-private.h
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ static inline MagickBooleanType IsValidPixelOffset(const ssize_t x,
{
if (a == 0)
return(MagickTrue);
if ((x >= (MAGICK_SSIZE_MAX/(ssize_t) a)) ||
(x <= (MAGICK_SSIZE_MIN/(ssize_t) a)))
if ((x >= (MAGICK_SSIZE_MAX/5/(ssize_t) a)) ||
(x <= (MAGICK_SSIZE_MIN/5/(ssize_t) a)))
return(MagickFalse);
return(MagickTrue);
}
Expand Down

0 comments on commit 24403f0

Please sign in to comment.