]> granicus.if.org Git - imagemagick/commitdiff
...
authorCristy <urban-warrior@imagemagick.org>
Sun, 4 Feb 2018 01:56:41 +0000 (20:56 -0500)
committerCristy <urban-warrior@imagemagick.org>
Sun, 4 Feb 2018 01:56:41 +0000 (20:56 -0500)
MagickCore/blob.c

index 21fd72aed8bf553af391884783f805c9a38b254a..a05065c02bf96dd3a81ee5d119414d09fa65e06b 100644 (file)
@@ -4703,12 +4703,12 @@ MagickExport MagickOffsetType SeekBlob(Image *image,
           break;
         }
       }
-      if (blob_info->offset <= (MagickOffsetType) ((off_t) blob_info->length))
+      if (blob_info->offset < (MagickOffsetType) ((off_t) blob_info->length))
         {
           blob_info->eof=MagickFalse;
           break;
         }
-      if (blob_info->offset > (MagickOffsetType) ((off_t) blob_info->extent))
+      if (blob_info->offset >= (MagickOffsetType) ((off_t) blob_info->extent))
         return(-1);
       break;
     }