lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gs -dNOSAFER / windows


From: Knut Petersen
Subject: Re: gs -dNOSAFER / windows
Date: Mon, 4 Jun 2018 12:02:17 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

Am 01.06.2018 um 17:43 schrieb David Kastrup:

Comments? Objections?
Yes to not putting stuff like the file reading permissions on the
command line.

As ghostscript has problems with -dEPSCrop and .locksafe in eps files
and ps files that include those eps files, I filed a bugreport. 
<https://bugs.ghostscript.com/show_bug.cgi?id=699397>


I don't like using .locksafe as opposed to -DSAFER and -DDELAYSAFER (?)
command line options because Ghostscript has a history of fscking around
with any commands not in the PostScript standard.  For example, the
current Ghostscript man page states:

        When  running with  -dNOSAFER it  is possible  to perform  a
        "save" followed  by ".setsafe", execute a  file or procedure
        in SAFER mode,  and then use "restore" to  return to NOSAFER
        mode.   In  order to  prevent  the  save object  from  being
        restored by the foreign file or procedure, the ".runandhide"
        operator should  be used  to hide the  save object  from the
        restricted procedure.
I read this part of the documentation as "If you don't use 'save' prior
to .setsafe / .locksafe everything is fine" ....

and in spite of this documentation, Ghostscript has just removed the
.runandhide operator without notice, keeping this documentation.
Well, in gs master this part of the documentation has been updated.

Knut


reply via email to

[Prev in Thread] Current Thread [Next in Thread]