]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6980
authorCristy <urban-warrior@imagemagick.org>
Sat, 17 Mar 2018 11:47:55 +0000 (07:47 -0400)
committerCristy <urban-warrior@imagemagick.org>
Sat, 17 Mar 2018 11:47:55 +0000 (07:47 -0400)
MagickCore/fx.c

index 0ac170667f447af038b285fb0add2ed07a2be97f..f18fabd40e7d0b8124819ffd8ed05eba43b4437d 100644 (file)
@@ -1329,7 +1329,8 @@ static double FxGetSymbol(FxInfo *fx_info,const PixelChannel channel,
               alpha=FxEvaluateSubexpression(fx_info,channel,x,y,subexpression,
                 &depth,&beta,exception);
               i=(ssize_t) alpha;
-              p++;
+              if (*p != '\0')
+                p++;
             }
           if (*p == '.')
             p++;