From 18c29f7fde60893cad32fc64c880c43346524876 Mon Sep 17 00:00:00 2001 From: Cristy Date: Mon, 4 Jun 2018 20:47:04 -0400 Subject: [PATCH] https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8740 --- MagickCore/blob.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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]; -- 2.40.0