From 24325c4b18872032fe7fc81626f3934ab97a177c Mon Sep 17 00:00:00 2001 From: Cristy Date: Sun, 16 Sep 2018 07:38:28 -0400 Subject: [PATCH] https://github.com/ImageMagick/ImageMagick/pull/1316 --- MagickCore/string.c | 2 ++ 1 file changed, 2 insertions(+) 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') -- 2.40.0