]> granicus.if.org Git - imagemagick/commitdiff
https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=8740
authorCristy <urban-warrior@imagemagick.org>
Tue, 5 Jun 2018 00:47:04 +0000 (20:47 -0400)
committerCristy <urban-warrior@imagemagick.org>
Tue, 5 Jun 2018 00:47:04 +0000 (20:47 -0400)
MagickCore/blob.c

index e4bb76c8a6d0475698e76e86b85796c22ae1ccff..bce361eac51658be277ba63570b230232201ca1f 100644 (file)
@@ -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];