From 77e3fcc5964bb24d44e3a362a82a80bca4f9d43b Mon Sep 17 00:00:00 2001 From: cristy Date: Tue, 11 Oct 2011 00:04:41 +0000 Subject: [PATCH] --- MagickCore/string.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MagickCore/string.c b/MagickCore/string.c index fa6eeebba..621eb2bcd 100644 --- a/MagickCore/string.c +++ b/MagickCore/string.c @@ -734,6 +734,8 @@ MagickExport size_t CopyMagickString(char *destination,const char *source, register size_t n; + if (source == (const char *) NULL) + return(0); p=source; q=destination; for (n=length; n > 4; n-=4) -- 2.40.0