From: cristy Date: Tue, 11 Oct 2011 00:04:41 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~6839 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=77e3fcc5964bb24d44e3a362a82a80bca4f9d43b;p=imagemagick --- 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)