From: Cristy Date: Sat, 28 Apr 2018 21:34:11 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1112 X-Git-Tag: 7.0.7-29~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7a4f99cd90d4520e9932e9de75439fc27ce64f36;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1112 --- diff --git a/coders/json.c b/coders/json.c index d68aeaac5..c7047ff9e 100644 --- a/coders/json.c +++ b/coders/json.c @@ -723,6 +723,7 @@ static ssize_t PrintChannelStatistics(FILE *file,const PixelChannel channel, GetMagickPrecision(),(double) ClampToQuantum(scale* channel_statistics[channel].maxima),GetMagickPrecision(),scale* channel_statistics[channel].mean,GetMagickPrecision(),scale* + IsNaN(channel_statistics[channel].standard_deviation) != 0 ? MagickEpsilon : channel_statistics[channel].standard_deviation,GetMagickPrecision(), channel_statistics[channel].kurtosis,GetMagickPrecision(), channel_statistics[channel].skewness,GetMagickPrecision(),