[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex
From: |
Clark Taylor |
Subject: |
Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex |
Date: |
Tue, 12 Oct 2010 18:48:45 -0700 |
Your patch solved the problem. It works with gs9.00 and your patch.
Clark
On Tue, Oct 12, 2010 at 12:09 PM, Ralf Angeli <address@hidden> wrote:
> * Clark Taylor (2010-10-11) writes:
>
>> I'm happy to be a guinea pig if you need.
>
> A way to check if we are really dealing with a problem concerned with
> the security features of Ghostscript would be to disable them and see if
> the problem goes away. The following patch does this. It would be
> interesting to see the results in your case.
>
> Be sure to use this only if you are sure that the code in the generated
> PostScript file is not malicious. And you should revert the changes in
> preview.el again after testing, so that you don't leave a security hole
> in your system.
>
>
> --- preview.el.~1.284.~ 2009-06-18 21:20:46.000000000 +0200
> +++ preview.el 2010-10-12 20:59:15.000000000 +0200
> @@ -355,7 +355,7 @@
> :group 'preview-gs
> :type 'string)
>
> -(defcustom preview-gs-options '("-q" "-dSAFER" "-dNOPAUSE"
> +(defcustom preview-gs-options '("-q" "-dNOSAFER" "-dNOPAUSE"
> "-DNOPLATFONTS" "-dPrinted"
> "-dTextAlphaBits=4"
> "-dGraphicsAlphaBits=4")
> @@ -724,7 +724,7 @@
> preview-gs-options
> (nthcdr 2 image-info))
> preview-gs-init-string
> - (format "{DELAYSAFER{.setsafe}if}stopped pop\
> + (format "\
> /.preview-BP currentpagedevice/BeginPage get dup \
> null eq{pop{pop}bind}if def\
> <</BeginPage{currentpagedevice/PageSize get dup 0 get 1 ne exch 1 get 1 ne
> or\
>
>
> --
> Ralf
>
- [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Clark Taylor, 2010/10/10
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Ralf Angeli, 2010/10/10
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Clark Taylor, 2010/10/11
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Ralf Angeli, 2010/10/11
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Clark Taylor, 2010/10/11
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Clark Taylor, 2010/10/11
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Ralf Angeli, 2010/10/11
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Clark Taylor, 2010/10/11
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Ralf Angeli, 2010/10/12
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Stefan Husmann, 2010/10/12
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex,
Clark Taylor <=
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Ralf Angeli, 2010/10/13
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Stefan Husmann, 2010/10/13
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Clark Taylor, 2010/10/13
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Ralf Angeli, 2010/10/14
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Clark Taylor, 2010/10/14
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Stefan Husmann, 2010/10/14
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Ralf Angeli, 2010/10/14
- Re: [Bug-AUCTeX] 11.86; pngs not being generated by preview-latex, Stefan Husmann, 2010/10/12