From: Cristy Date: Tue, 5 Jun 2018 00:47:04 +0000 (-0400) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8740 X-Git-Tag: 7.0.7-39~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=18c29f7fde60893cad32fc64c880c43346524876;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8740 --- diff --git a/MagickCore/blob.c b/MagickCore/blob.c index e4bb76c8a..bce361eac 100644 --- a/MagickCore/blob.c +++ b/MagickCore/blob.c @@ -53,6 +53,7 @@ #include "MagickCore/delegate.h" #include "MagickCore/exception.h" #include "MagickCore/exception-private.h" +#include "MagickCore/geometry.h" #include "MagickCore/image-private.h" #include "MagickCore/list.h" #include "MagickCore/locale_.h" @@ -3142,7 +3143,8 @@ MagickExport MagickBooleanType OpenBlob(const ImageInfo *image_info, blob_info->exempt=MagickTrue; return(SetStreamBuffering(image_info,image)); } - if (LocaleNCompare(filename,"fd:",3) == 0) + if ((LocaleNCompare(filename,"fd:",3) == 0) && + (IsGeometry(filename+3) != MagickFalse)) { char fileMode[MagickPathExtent];