]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sat, 20 Jun 2015 15:31:17 +0000 (15:31 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sat, 20 Jun 2015 15:31:17 +0000 (15:31 +0000)
MagickCore/blob.c

index dbc0b03678e8f1d7ff0336b245b10de3a223f864..cfdeec9bb26ae0e5c1a0228f8624260df391978c 100644 (file)
@@ -3717,6 +3717,8 @@ MagickExport MagickOffsetType SeekBlob(Image *image,
       return(-1);
     case FileStream:
     {
+      if ((offset < 0) && (whence == SEEK_SET))
+        return(-1);
       if (fseek(image->blob->file_info.file,offset,whence) < 0)
         return(-1);
       image->blob->offset=TellBlob(image);