diff options
author | Cristy <mikayla-grace@urban-warrior.org> | 2021-01-03 08:44:01 -0500 |
---|---|---|
committer | Cristy <mikayla-grace@urban-warrior.org> | 2021-01-03 08:44:01 -0500 |
commit | c2c76ab316ab7a4dea1235998bbbd39dde4bdf65 (patch) | |
tree | 2f884a88c9d3b6bd3c691c459aee8bf07d0cad7d | |
parent | 5839b3fdf70f516311d4f7f9e58559360788487d (diff) | |
download | ImageMagick-c2c76ab316ab7a4dea1235998bbbd39dde4bdf65.tar.gz |
check for integer overflow
-rw-r--r-- | MagickCore/draw.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/MagickCore/draw.c b/MagickCore/draw.c index 7682d415e..c2163be76 100644 --- a/MagickCore/draw.c +++ b/MagickCore/draw.c @@ -2314,12 +2314,6 @@ static inline double GetDrawValue(const char *magick_restrict string, q=sentinal; value=InterpretLocaleValue(string,q); - if (IsNaN(value) != 0) - return(0.0); - if (value > (double) LONG_MAX) - return((double) LONG_MAX); - if (value < (double) LONG_MIN) - return((double) LONG_MIN); sentinal=q; return(value); } |