Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick6/security/code-scanning/5?…
Browse files Browse the repository at this point in the history
…query=ref%3Arefs%2Fheads%2Fmain
  • Loading branch information
Cristy committed Apr 10, 2021
1 parent b37dd2c commit 822e476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions magick/shear.c
Original file line number Diff line number Diff line change
Expand Up @@ -1020,10 +1020,10 @@ MagickExport Image *IntegralRotateImage(const Image *image,size_t rotations,
width;

width=tile_width;
if ((tile_x+(ssize_t) tile_width) > (ssize_t) image->columns)
if ((tile_x+tile_width) > image->columns)
width=(size_t) (tile_width-(tile_x+tile_width-image->columns));
height=tile_height;
if ((tile_y+(ssize_t) tile_height) > (ssize_t) image->rows)
if ((tile_y+tile_height) > image->rows)
height=(size_t) (tile_height-(tile_y+tile_height-image->rows));
p=GetCacheViewVirtualPixels(image_view,tile_x,tile_y,width,height,
exception);
Expand Down

0 comments on commit 822e476

Please sign in to comment.