Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/4830
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 11, 2022
1 parent 71e590e commit 409d422
Showing 1 changed file with 16 additions and 19 deletions.
35 changes: 16 additions & 19 deletions coders/tiff.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,10 +501,7 @@ static MagickBooleanType ReadProfile(Image *image,const char *name,
image->filename);
status=SetImageProfile(image,name,profile);
profile=DestroyStringInfo(profile);
if (status == MagickFalse)
ThrowBinaryImageException(ResourceLimitError,"MemoryAllocationFailed",
image->filename);
return(MagickTrue);
return(status);
}

#if defined(__cplusplus) || defined(c_plusplus)
Expand Down Expand Up @@ -1129,21 +1126,21 @@ static Image *ReadTIFFImage(const ImageInfo *image_info,
method;

uint16
compress_tag,
bits_per_sample,
endian,
extra_samples,
interlace,
max_sample_value,
min_sample_value,
orientation,
pages,
photometric,
*sample_info,
sample_format,
samples_per_pixel,
units,
value;
compress_tag = 0,
bits_per_sample = 0,
endian = 0,
extra_samples = 0,
interlace = 0,
max_sample_value = 0,
min_sample_value = 0,
orientation = 0,
pages = 0,
photometric = 0,
*sample_info = NULL,
sample_format = 0,
samples_per_pixel = 0,
units = 0,
value = 0;

uint32
height,
Expand Down

0 comments on commit 409d422

Please sign in to comment.