File ImageMagick-CVE-2018-18024.patch of Package ImageMagick.11105
diff --git a/coders/bmp.c b/coders/bmp.c index 1adac2cde..729a9608d 100644 --- a/coders/bmp.c +++ b/coders/bmp.c @@ -599,8 +599,7 @@ static Image *ReadBMPImage(const ImageInfo *image_info,ExceptionInfo *exception) /* Verify BMP identifier. */ - if (bmp_info.ba_offset == 0) - start_position=TellBlob(image)-2; + start_position=TellBlob(image)-2; bmp_info.ba_offset=0; while (LocaleNCompare((char *) magick,"BA",2) == 0) {