Skip to content
Permalink
Browse files

https://github.com//issues/312

  • Loading branch information
Cristy
Cristy committed Dec 1, 2016
1 parent b0ff95c commit 4e8c2ed53fcb54a34b3a6185b2584f26cf6874a3
Showing with 7 additions and 3 deletions.
  1. +2 −0 ChangeLog
  2. +2 −1 MagickCore/constitute.c
  3. +3 −2 MagickCore/stream.c
@@ -1,6 +1,8 @@
2016-11-26 7.0.3-9 Cristy <quetzlzacatenango@image...>
* Support the compare -read-mask option.
* Support read-masks for the -modulate option.
* Prevent buffer overflow when streaming an image (reference
https://github.com/ImageMagick/ImageMagick/issues/312).

2016-11-15 7.0.3-8 Cristy <quetzlzacatenango@image...>
* Release ImageMagick version 7.0.3-8, GIT revision 19067:5aceded:20161125.
@@ -308,7 +308,8 @@ MagickExport Image *PingImages(ImageInfo *image_info,const char *filename,
read_info=DestroyImageInfo(read_info);
return(PingImage(image_info,exception));
}
(void) CopyMagickString(ping_filename,read_info->filename,MagickPathExtent);
(void) CopyMagickString(ping_filename,read_info->filename,
MagickPathExtent);
images=NewImageList();
extent=(ssize_t) (read_info->scene+read_info->number_scenes);
for (scene=(ssize_t) read_info->scene; scene < (ssize_t) extent; scene++)
@@ -811,7 +811,8 @@ MagickExport MagickBooleanType OpenStream(const ImageInfo *image_info,
MagickBooleanType
status;

(void) CopyMagickString(stream_info->stream->filename,filename,MagickPathExtent);
(void) CopyMagickString(stream_info->stream->filename,filename,
MagickPathExtent);
status=OpenBlob(image_info,stream_info->stream,WriteBinaryBlobMode,exception);
return(status);
}
@@ -1011,7 +1012,7 @@ MagickExport Image *ReadStream(const ImageInfo *image_info,StreamHandler stream,
read_info->stream=stream;
image=ReadImage(read_info,exception);
if (image != (Image *) NULL)
InitializePixelChannelMap(image);
(void) SyncImagePixelCache(image,exception);
read_info=DestroyImageInfo(read_info);
return(image);
}

0 comments on commit 4e8c2ed

Please sign in to comment.
You can’t perform that action at this time.