From: Cristy Date: Tue, 27 Feb 2018 12:50:08 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6582 X-Git-Tag: 7.0.7-25~39 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e39f7ace21226021b095db562d6d46ef3c749784;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6582 --- diff --git a/coders/mpc.c b/coders/mpc.c index ca181940c..f497af9e9 100644 --- a/coders/mpc.c +++ b/coders/mpc.c @@ -279,7 +279,7 @@ static Image *ReadMPCImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Get the keyword. */ - length=MagickPathExtent; + length=MagickPathExtent-1; p=keyword; do {