From: Cristy Date: Wed, 7 Mar 2018 01:41:17 +0000 (-0500) Subject: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6457 X-Git-Tag: 7.0.7-26~73 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4cd61940efb573150303c73c2be4079133da042f;p=imagemagick https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=6457 --- diff --git a/coders/pcd.c b/coders/pcd.c index 5707d3e44..7cebfc4d7 100644 --- a/coders/pcd.c +++ b/coders/pcd.c @@ -1120,6 +1120,8 @@ static MagickBooleanType WritePCDImage(const ImageInfo *image_info,Image *image, if (rotate_image == (Image *) NULL) return(MagickFalse); pcd_image=rotate_image; + DestroyBlob(rotate_image); + pcd_image->blob=ReferenceBlob(image->blob); } /* Open output image file.