[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex 837d590 27/42: Remove use of .runandhide operato
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex 837d590 27/42: Remove use of .runandhide operator |
Date: |
Thu, 23 Nov 2017 06:06:13 -0500 (EST) |
branch: externals/auctex
commit 837d590008c1dd4e92ffbce15008efb761d11f7c
Author: David Kastrup <address@hidden>
Commit: David Kastrup <address@hidden>
Remove use of .runandhide operator
Ghostscript bug 698680
<https://bugs.ghostscript.com/show_bug.cgi?id=698680> has been caused
by the removal of the .runandhide operator in Ghostscript 9.22
upstream. Since .runandhide has no longer been used in a
security-critical manner, its operation can be emulated by storing the
respective information in a .preview-ST variable. Potentially
malicious code would not be able to retrieve a non-safe "save" object
from here.
---
preview.el.in | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/preview.el.in b/preview.el.in
index d113721..6685341 100644
--- a/preview.el.in
+++ b/preview.el.in
@@ -738,10 +738,10 @@ SETUP may contain a parser setup function."
null eq{pop{pop}bind}if def\
<</BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1 ne or\
{.preview-BP %s}{pop}ifelse}bind/PageSize[1 1]>>setpagedevice\
-/preview-do{[count 3 roll save]3 1 roll dup length 0 eq\
-{pop}{setpagedevice}{ifelse .runandhide}\
+/preview-do{/.preview-ST[count 4 roll save]def dup length 0 eq\
+{pop}{setpagedevice}{ifelse exec}\
stopped{handleerror quit}if \
-aload pop restore}bind def "
+.preview-ST aload pop restore}bind def "
(preview-gs-color-string preview-colors)))
(preview-gs-queue-empty)
(preview-parse-messages (or setup #'preview-gs-dvips-process-setup))))
@@ -1090,7 +1090,7 @@ NONREL is not NIL."
.locksafe} stopped pop "
(mapconcat 'preview-ps-quote-filename all-files ""))
preview-gs-init-string
- (format "[%s(r)file]aload exch %s .runandhide aload pop "
+ (format " %s(r)file /.preview-ST 1 index def %s exec
.preview-ST "
(preview-ps-quote-filename file)
(preview-gs-dsc-cvx 0 preview-gs-dsc))))))
- [elpa] externals/auctex 6dcf0e1 18/42: Add a new option for evince compatible viewer., (continued)
- [elpa] externals/auctex 6dcf0e1 18/42: Add a new option for evince compatible viewer., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 7863f42 13/42: Prevent possible infinite loop, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex cfad977 17/42: Make correct extensions are returned, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 5a538cb 19/42: Prevent possible truncation of list value, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex a944077 12/42: Use `delete' correctly for list variable, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 20b6fd0 21/42: Add test abount truncation of list, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 474cc4f 23/42: ; * doc/tex-ref.tex (): Fix typo and copyright year., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex fe06211 24/42: Fix doc strings and comments, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 9e1aa85 22/42: Make preview-latex parsing robust to fix Bug#20773, Bug#27088, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 5d8ac95 25/42: Cosmetic Change, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 837d590 27/42: Remove use of .runandhide operator,
Tassilo Horn <=
- [elpa] externals/auctex f362325 28/42: ; * latex.el (LaTeX-document-style-hook): Fix a typo., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex ea7ff48 29/42: * tex.el (TeX-math-input-method-off-regexp): Turn defvar into defcustom., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex b2571b6 40/42: Don't set company-minimum-prefix-length in tex mode buffers, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 0d8e6c6 34/42: Document `TeX-math-input-method-off-regexp' properly., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex f0145f4 30/42: Add new function `LaTeX-env-longtable', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 213b705 33/42: Mention the necessity of GNU make, Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 842471c 37/42: Give proper argument to `TeX-command-expand', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex b69d894 39/42: * doc/changes.texi: Mention compatibility of preview with GS 9.22., Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 5d6839e 36/42: Add test for the recent change about `TeX-kpathsea-path-delimiter', Tassilo Horn, 2017/11/23
- [elpa] externals/auctex 5f007f1 42/42: Regenerate tex-site.el and docs, Tassilo Horn, 2017/11/23