Discussion:
[AUCTeX] Preview of math / new ghostscript
AW
2017-10-22 13:11:24 UTC
Permalink
Hi,

here https://tex.stackexchange.com/questions/397147/can-not-generate-preview-by-auctex and here https://bugs.ghostscript.com/show_bug.cgi?id=698680 is a
report about lost functionality in ghostscript which reportedly prevents
AucTeX from previewing math.

Regards,

Alexander
Mosè Giordano
2017-10-22 17:28:45 UTC
Permalink
Hi Alexander,

the issue has been already reported here:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28811. However, I don't
know if someone besides David has a clue about how preview internally
works...

Bye,
Mosè
Post by AW
Hi,
here https://tex.stackexchange.com/questions/397147/can-not-generate-preview-by-auctex and here https://bugs.ghostscript.com/show_bug.cgi?id=698680 is a
report about lost functionality in ghostscript which reportedly prevents
AucTeX from previewing math.
Regards,
Alexander
_______________________________________________
auctex mailing list
https://lists.gnu.org/mailman/listinfo/auctex
David Kastrup
2017-10-22 17:55:45 UTC
Permalink
Post by Mosè Giordano
Hi Alexander,
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=28811. However, I don't
know if someone besides David has a clue about how preview internally
works...
More of a problem of how Ghostscript works. It has a safer mode, and
for interactive mode, it must be possible to enter and exit it in some
manner. Ghostscript changes the details every few releases. I think
that the last few changes had been tracked and fixed by Ralf.
--
David Kastrup
Ralf Angeli
2017-10-22 19:04:53 UTC
Permalink
Post by David Kastrup
More of a problem of how Ghostscript works. It has a safer mode, and
for interactive mode, it must be possible to enter and exit it in some
manner. Ghostscript changes the details every few releases. I think
that the last few changes had been tracked and fixed by Ralf.
That might be, but I doubt my fixes had much to do with the internals of
Ghostscript. So I'm sorry to say that I won't be of much help here.
--
Ralf
David Kastrup
2017-11-08 10:43:03 UTC
Permalink
Post by Ralf Angeli
Post by David Kastrup
More of a problem of how Ghostscript works. It has a safer mode, and
for interactive mode, it must be possible to enter and exit it in
some manner. Ghostscript changes the details every few releases. I
think that the last few changes had been tracked and fixed by Ralf.
That might be, but I doubt my fixes had much to do with the internals
of Ghostscript. So I'm sorry to say that I won't be of much help
here.
I committed a fix to master. It turned out after quite a bit of back
and forth that the details I remembered were stale: preview-latex had
already previously been engineered to not requiring coming back from
SAFER mode once entered.

So .runandhide was no longer used in a security-relevant manner and
could be replaced by code that did the hiding "in plain sight", namely a
variable. That's ugly but not an exploit as it would have been in the
case I remembered: as opposed to how it was in olden times, the hidden
expression cannot be used for jail breaking.

So it turns out I engaged my less than convincing shark teethed charm
more than called for (for the purposes of AUCTeX at least) this time.
--
David Kastrup
Loading...