Skip to content

Commit

Permalink
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6805
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 11, 2018
1 parent 3b8a1a8 commit bdeab07
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion magick/distort.c
Expand Up @@ -2840,7 +2840,7 @@ MagickExport Image *RotateImage(const Image *image,const double degrees,
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
assert(exception != (ExceptionInfo *) NULL);
assert(exception->signature == MagickCoreSignature);
angle=degrees-(360.0*floor(degrees/360.0));
angle=fmod(degrees,360.0);
while (angle < -45.0)
angle+=360.0;
for (rotations=0; angle > 45.0; rotations++)
Expand Down
2 changes: 1 addition & 1 deletion magick/shear.c
Expand Up @@ -1743,7 +1743,7 @@ MagickExport Image *ShearRotateImage(const Image *image,const double degrees,
(void) LogMagickEvent(TraceEvent,GetMagickModule(),"%s",image->filename);
assert(exception != (ExceptionInfo *) NULL);
assert(exception->signature == MagickCoreSignature);
angle=degrees-(360.0*floor(degrees/360.0));
angle=fmod(degrees,360.0);
if (angle < -45.0)
angle+=360.0;
for (rotations=0; angle > 45.0; rotations++)
Expand Down

0 comments on commit bdeab07

Please sign in to comment.