Re: Fix for 687081, PDF file produces incomplete tiff, fails to run in display device

"Igor V. Melichev" <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Please commit.

Igor.

----- Original Message ----- 
From: "Alex Cherepanov" <[email protected]>
To: <[email protected]>; <[email protected]>
Sent: Thursday, October 16, 2003 1:19 AM
Subject: [gs-code-review] Fix for 687081, PDF file produces incomplete tiff,
fails to run in display device


> Fix error recovery code for PDF image; pop the operand of image operator
> restored by the standard PS error recovery.
>
> The image object "34 0 obj" is incorrect.
> It contains:
> << /BitsPerComponent 1  /Mask [ 130 130 ] ... >>
> but the mask components must be < 2**BitsPerComponent
> We can try to do something better than discarding the whole image.
>
>


----------------------------------------------------------------------------
----


> Index: gs/lib/pdf_draw.ps
> ===================================================================
> RCS file: /cvs/ghostscript/gs/lib/pdf_draw.ps,v
> retrieving revision 1.77
> diff -b -u -r1.77 pdf_draw.ps
> --- gs/lib/pdf_draw.ps 8 Oct 2003 11:43:02 -0000 1.77
> +++ gs/lib/pdf_draw.ps 15 Oct 2003 20:48:34 -0000
> @@ -939,6 +939,7 @@
>     { ColorSpace setgcolorspace currentdict end setfillblend /image }
>    ifelse
>    .systemvar stopped {
> +    pop
>      $error /errorname get dup /ioerror eq {
>        pop (\n   **** Warning: File has insufficient data for an image.\n)
>        pdfformaterror
>


----------------------------------------------------------------------------
----


> _______________________________________________
> gs-code-review mailing list
> [email protected]
> http://www.ghostscript.com/mailman/listinfo/gs-code-review
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.