From 716ddbbe03377681a304661bdf0e7e3271ccfc92 Mon Sep 17 00:00:00 2001 From: Cristy Date: Sat, 3 Feb 2018 16:07:28 -0500 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=5356 --- MagickCore/option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MagickCore/option.c b/MagickCore/option.c index d0a780cee..6b6cd36ce 100644 --- a/MagickCore/option.c +++ b/MagickCore/option.c @@ -3009,7 +3009,7 @@ MagickExport ssize_t ParseCommandOption(const CommandOption option, if (LocaleCompare(token,option_info[i].mnemonic) == 0) break; command_info=option_info+i; - if ((command_info->mnemonic == (const char *) NULL) && + if ((command_info->mnemonic == (const char *) NULL) && (*token != '\0') && ((strchr(token+1,'-') != (char *) NULL) || (strchr(token+1,'_') != (char *) NULL))) { -- 2.40.0