Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/1040
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Mar 24, 2018
1 parent d6ba8da commit b1fda8b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion coders/bgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,10 @@ static Image *ReadBGRImage(const ImageInfo *image_info,
(void) SetImageVirtualPixelMethod(canvas_image,BlackVirtualPixelMethod);
quantum_info=AcquireQuantumInfo(image_info,canvas_image);
if (quantum_info == (QuantumInfo *) NULL)
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
{
canvas_image=DestroyImage(canvas_image);
ThrowReaderException(ResourceLimitError,"MemoryAllocationFailed");
}
quantum_type=BGRQuantum;
if (LocaleCompare(image_info->magick,"BGRA") == 0)
{
Expand Down

0 comments on commit b1fda8b

Please sign in to comment.