From: Cristy Date: Sun, 16 Sep 2018 11:38:28 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/pull/1316 X-Git-Tag: 7.0.8-12~37 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=24325c4b18872032fe7fc81626f3934ab97a177c;p=imagemagick https://github.com/ImageMagick/ImageMagick/pull/1316 --- diff --git a/MagickCore/string.c b/MagickCore/string.c index 245986ef9..318411882 100644 --- a/MagickCore/string.c +++ b/MagickCore/string.c @@ -2235,6 +2235,8 @@ MagickExport double *StringToArrayOfDoubles(const char *string,ssize_t *count, assert(exception != (ExceptionInfo *) NULL); assert(exception->signature == MagickCoreSignature); *count=0; + if (string == (char *) NULL) + return((double *) NULL); /* no value found */ i=0; p=string; while (*p != '\0')