From: Cristy Date: Sun, 16 Dec 2018 22:24:07 +0000 (-0500) Subject: https://imagemagick.org/discourse-server/viewtopic.php?f=1&t=35192 X-Git-Tag: 7.0.8-17~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2556d716979472d590f25e79258bfbde47637c5b;p=imagemagick https://imagemagick.org/discourse-server/viewtopic.php?f=1&t=35192 --- diff --git a/coders/miff.c b/coders/miff.c index f3d390bc3..f3815f683 100644 --- a/coders/miff.c +++ b/coders/miff.c @@ -2598,7 +2598,7 @@ static MagickBooleanType WriteMIFFImage(const ImageInfo *image_info, bzip_info.avail_out=(unsigned int) BZipMaxExtent(packet_size* image->columns); code=BZ2_bzCompress(&bzip_info,BZ_FLUSH); - if (code != BZ_OK) + if (code < 0) status=MagickFalse; length=(size_t) (bzip_info.next_out-(char *) compress_pixels); if (length != 0)