Re: fix for 687135, pdf file processing error

"Igor V. Melichev" <[email protected]>
Newsgroups gmane.comp.printing.ghostscript.patches
Message-ID <[email protected]>
Please explain why the empty string is an acceptable default.

Igor.

----- Original Message ----- 
From: "Alex Cherepanov" <[email protected]>
To: <[email protected]>
Sent: Tuesday, November 11, 2003 9:57 PM
Subject: [gs-code-review] fix for 687135, pdf file processing error


> Default to empty string when there's no /ID in the trailer.
>
>


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


> Index: gs/lib/pdf_sec.ps
> ===================================================================
> RCS file: /cvs/ghostscript/gs/lib/pdf_sec.ps,v
> retrieving revision 1.11
> diff -b -u -r1.11 pdf_sec.ps
> --- gs/lib/pdf_sec.ps 12 Apr 2003 18:08:18 -0000 1.11
> +++ gs/lib/pdf_sec.ps 11 Nov 2003 14:10:07 -0000
> @@ -100,7 +100,7 @@
>    % <padded-key> <O> <P>
>
>    % Step 5.
> -  Trailer /ID oget 0 oget
> +  Trailer /ID knownoget { 0 oget } { () } ifelse
>    3 { concatstrings } repeat md5
>
>    % Step 6.
> @@ -126,7 +126,7 @@
>    pdf_padding_string
>
>    % Step 3.
> -  Trailer /ID oget 0 oget
> +  Trailer /ID knownoget { 0 oget } { () } ifelse
>    concatstrings md5
>
>    % Step 4.
>


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


> _______________________________________________
> 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.