Skip to content

Commit

Permalink
Restored debug message.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Dec 13, 2021
1 parent 3be80bc commit 2ab41fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coders/bmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -626,6 +626,9 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception)
(void) ReadBlobLSBLong(image);
bmp_info.offset_bits=ReadBlobLSBLong(image);
bmp_info.size=ReadBlobLSBLong(image);
if (image->debug != MagickFalse)
(void) LogMagickEvent(CoderEvent,GetMagickModule(),
" BMP header size: %u",bmp_info.size);
if (bmp_info.size > 124)
ThrowReaderException(CorruptImageError,"ImproperImageHeader");
profile_data=0;
Expand Down

0 comments on commit 2ab41fb

Please sign in to comment.