From: Cristy Date: Sun, 12 Aug 2018 01:15:33 +0000 (-0400) Subject: ... X-Git-Tag: 7.0.8-10~9 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1288013c304d5ef5ad635d8cbcce1d13bfe44024;p=imagemagick ... --- diff --git a/MagickCore/image.c b/MagickCore/image.c index 9fdb83292..a74ba1118 100644 --- a/MagickCore/image.c +++ b/MagickCore/image.c @@ -2936,7 +2936,7 @@ MagickExport MagickBooleanType SetImageInfo(ImageInfo *image_info, } if (image_info->affirm != MagickFalse) return(MagickTrue); - if ((frames == 0) && (*image_info->filename != '\0')) + if (frames == 0) { unsigned char *magick; diff --git a/MagickCore/utility.c b/MagickCore/utility.c index a4634dae9..3cda873e2 100644 --- a/MagickCore/utility.c +++ b/MagickCore/utility.c @@ -1273,7 +1273,8 @@ MagickExport void GetPathComponent(const char *path,PathType type, if (*p != '\0') p=component+strlen(component)-1; if ((*p == ']') && (strchr(component,'[') != (char *) NULL) && - (IsPathAccessible(path) == MagickFalse)) + (IsPathAccessible(path) == MagickFalse) && + (strstr(component,"][") == (char *) NULL)) { /* Look for scene specification (e.g. img0001.pcd[4]).