Skip to content

Commit

Permalink
https://github.com/ImageMagick/ImageMagick/issues/4865
Browse files Browse the repository at this point in the history
  • Loading branch information
Cristy committed Feb 21, 2022
1 parent b855d8e commit e6d7f78
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion coders/fits.c
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,8 @@ static Image *ReadFITSImage(const ImageInfo *image_info,
image->filename);
number_pixels=(MagickSizeType) fits_info.columns*fits_info.rows;
if ((fits_info.simple == MagickFalse) || (fits_info.number_axes < 1) ||
(fits_info.number_axes > 4) || (number_pixels == 0))
(fits_info.number_axes > 4) || (number_pixels == 0) ||
(fits_info.number_planes <= 0))
ThrowReaderException(CorruptImageError,"ImageTypeNotSupported");
for (scene=0; scene < (ssize_t) fits_info.number_planes; scene++)
{
Expand Down

0 comments on commit e6d7f78

Please sign in to comment.