]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Wed, 23 Oct 2019 17:23:37 +0000 (13:23 -0400)
committerCristy <urban-warrior@imagemagick.org>
Wed, 23 Oct 2019 17:23:37 +0000 (13:23 -0400)
MagickCore/color.c

index 8f415968f7d907fa3a91a64446e5b54325c80c0a..8367a3b974c2fe7f7cba62a6d0cb29d8fa4f61be 100644 (file)
@@ -2269,7 +2269,8 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name,
       (void) memset(&pixel,0,sizeof(pixel));
       name++;
       for (n=0; isxdigit((int) ((unsigned char) name[n])) != 0; n++) ;
-      if ((n == 3) || (n == 6) || (n == 9) || (n == 12) || (n == 24))
+      if ((n == 3) || (n == 6) || (n == 9) || (n == 12) || (n == 24) ||
+          (n == 48))
         {
           do
           {
@@ -2296,7 +2297,7 @@ MagickExport MagickBooleanType QueryColorCompliance(const char *name,
         }
       else
         {
-          if ((n != 4) && (n != 8) && (n != 16) && (n != 32) && (n != 48))
+          if ((n != 4) && (n != 8) && (n != 16) && (n != 32) && (n != 64))
             {
               (void) ThrowMagickException(exception,GetMagickModule(),
                 OptionWarning,"UnrecognizedColor","`%s'",name);