]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6582
authorCristy <urban-warrior@imagemagick.org>
Tue, 27 Feb 2018 12:50:08 +0000 (07:50 -0500)
committerCristy <urban-warrior@imagemagick.org>
Tue, 27 Feb 2018 12:50:08 +0000 (07:50 -0500)
coders/mpc.c

index ca181940c203e155989396a5fd3bb44a8d799997..f497af9e9ba141d43fc7dd6390b698f2fac243d9 100644 (file)
@@ -279,7 +279,7 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception)
             /*
               Get the keyword.
             */
-            length=MagickPathExtent;
+            length=MagickPathExtent-1;
             p=keyword;
             do
             {