fix for 687135, pdf file processing error
Alex Cherepanov <[email protected]>
| Newsgroups | gmane.comp.printing.ghostscript.patches |
|---|---|
| Organization | Coscript Software |
| Message-ID | <[email protected]> |
Default to empty string when there's no /ID in the trailer. _______________________________________________ gs-code-review mailing list [email protected] http://www.ghostscript.com/mailman/listinfo/gs-code-review
pdf_sec.ps.diff
(text/plain, 654 B)
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.