From: cristy Date: Sat, 26 Jan 2013 23:06:39 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~4336 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2e29473e285df676221a674c2425b87ccaf5c05b;p=imagemagick --- diff --git a/coders/pdf.c b/coders/pdf.c index b6eb83637..d339a176d 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -182,6 +182,8 @@ static MagickBooleanType InvokePDFDelegate(const MagickBooleanType verbose, } code=0; argv=StringToArgv(command,&argc); + if (argv == (char **) NULL) + return(MagickFalse); status=(ghost_info->init_with_args)(interpreter,argc-1,argv+1); if (status == 0) status=(ghost_info->run_string)(interpreter,"systemdict /start get exec\n", diff --git a/coders/ps.c b/coders/ps.c index 421854a5d..9cce6f61d 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -171,6 +171,8 @@ static MagickBooleanType InvokePostscriptDelegate( } code=0; argv=StringToArgv(command,&argc); + if (argv == (char **) NULL) + return(MagickFalse); status=(ghost_info->init_with_args)(interpreter,argc-1,argv+1); if (status == 0) status=(ghost_info->run_string)(interpreter,"systemdict /start get exec\n",