Actually attaching the patch. Sorry for the noise.
diff --git a/coders/pdf.c b/coders/pdf.c index 8509940..24a6acc 100644 --- a/coders/pdf.c +++ b/coders/pdf.c @@ -595,8 +595,9 @@ static Image *ReadPDFImage(const ImageInfo *image_info,ExceptionInfo *exception) delta.x)+0.5); page.height=(size_t) floor((double) (page.height*image->resolution.y/ delta.y)+0.5); - (void) FormatLocaleString(options,MaxTextExtent,"-g%.20gx%.20g ",(double) - page.width,(double) page.height); + if (page.width && page.height) + (void) FormatLocaleString(options,MaxTextExtent,"-g%.20gx%.20g ", + (double) page.width,(double) page.height); } if (cmyk != MagickFalse) (void) ConcatenateMagickString(options,"-dUseCIEColor ",MaxTextExtent); diff --git a/coders/ps.c b/coders/ps.c index 988bc1a..e7160e2 100644 --- a/coders/ps.c +++ b/coders/ps.c @@ -752,8 +752,9 @@ static Image *ReadPSImage(const ImageInfo *image_info,ExceptionInfo *exception) 0.5); page.height=(size_t) floor((double) (page.height*image->resolution.y/delta.y)+ 0.5); - (void) FormatLocaleString(options,MaxTextExtent,"-g%.20gx%.20g ",(double) - page.width,(double) page.height); + if (page.width && page.height) + (void) FormatLocaleString(options,MaxTextExtent,"-g%.20gx%.20g ",(double) + page.width,(double) page.height); read_info=CloneImageInfo(image_info); *read_info->magick='\0'; if (read_info->number_scenes != 0)
signature.asc
Description: This is a digitally signed message part.