From: Cristy Date: Mon, 1 Jul 2019 14:10:58 +0000 (-0400) Subject: https://github.com/ImageMagick/ImageMagick/issues/1621 X-Git-Tag: 7.0.8-52~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=daac28a4a49c01be3a09982d9cc10d967660230a;p=imagemagick https://github.com/ImageMagick/ImageMagick/issues/1621 --- diff --git a/MagickCore/log.c b/MagickCore/log.c index afa862122..a02c07b19 100644 --- a/MagickCore/log.c +++ b/MagickCore/log.c @@ -1064,6 +1064,8 @@ static char *TranslateEvent(const char *module,const char *function, continue; } p++; + if (*p == '\0') + break; switch (*p) { case 'c': @@ -1222,6 +1224,8 @@ static char *TranslateFilename(const LogInfo *log_info) continue; } p++; + if (*p == '\0') + break; switch (*p) { case '\0':