]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 22 Mar 2015 14:05:05 +0000 (14:05 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 22 Mar 2015 14:05:05 +0000 (14:05 +0000)
MagickCore/blob.c

index 5f27903acb81728a47623edc4ed6e70e9da74430..91e291007157bdb984bdb456ef379ab14777d546 100644 (file)
@@ -3848,6 +3848,8 @@ MagickPrivate MagickBooleanType SetBlobExtent(Image *image,
       if ((MagickSizeType) offset >= extent)
         break;
       offset=SeekBlob(image,(MagickOffsetType) extent-1,SEEK_SET);
+      if (offset < 0)
+        break;
       count=(ssize_t) fwrite((const unsigned char *) "",1,1,
         image->blob->file_info.file);
 #if defined(MAGICKCORE_HAVE_POSIX_FALLOCATE)