diff options
author | Fazlul Shahriar <fshahriar@gmail.com> | 2019-12-08 20:20:22 -0500 |
---|---|---|
committer | Dan Cross <crossd@gmail.com> | 2019-12-08 20:20:22 -0500 |
commit | 01a29ffe9dec8f11afa6db22a6ed0218bdbe5c5c (patch) | |
tree | a255b187e5fafc8d05fc8f74f93efc41ee783c80 /src/cmd/page | |
parent | 3d08a066b167b60691949fe89a7a67ef29df39cb (diff) | |
download | plan9port-01a29ffe9dec8f11afa6db22a6ed0218bdbe5c5c.tar.gz plan9port-01a29ffe9dec8f11afa6db22a6ed0218bdbe5c5c.tar.bz2 plan9port-01a29ffe9dec8f11afa6db22a6ed0218bdbe5c5c.zip |
page: fix pdf prolog for ghostscript >= 9.27 (#296)
Ghostscript 9.27 removed GS_PDF_ProcSet and pdfdict due to a security
issue (see https://security-tracker.debian.org/tracker/CVE-2019-3839).
This fix was contributed by @onyxperidot (see #279).
Fixes #279
Diffstat (limited to 'src/cmd/page')
-rw-r--r-- | src/cmd/page/pdfprolog.c | 3 | ||||
-rw-r--r-- | src/cmd/page/pdfprolog.ps | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/cmd/page/pdfprolog.c b/src/cmd/page/pdfprolog.c index de51c062..3b6cbcd7 100644 --- a/src/cmd/page/pdfprolog.c +++ b/src/cmd/page/pdfprolog.c @@ -16,5 +16,4 @@ " } if\n" "} bind def\n" "\n" -"GS_PDF_ProcSet begin\n" -"pdfdict begin\n" +"runpdfbegin\n" diff --git a/src/cmd/page/pdfprolog.ps b/src/cmd/page/pdfprolog.ps index 681e0587..a57e20b1 100644 --- a/src/cmd/page/pdfprolog.ps +++ b/src/cmd/page/pdfprolog.ps @@ -16,5 +16,4 @@ } if } bind def -GS_PDF_ProcSet begin -pdfdict begin +runpdfbegin |