From 875e565c7d3bc060508177f54a3fdd44f2e0372a Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 20 Jul 2009 00:59:05 +0000 Subject: epstopdf 2.9.11gw git-svn-id: svn://tug.org/texlive/trunk@14335 c570f23f-e606-0410-a88d-b1316a301751 --- .../source/texk/texlive/linked_scripts/epstopdf/epstopdf.pl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'Build/source') diff --git a/Build/source/texk/texlive/linked_scripts/epstopdf/epstopdf.pl b/Build/source/texk/texlive/linked_scripts/epstopdf/epstopdf.pl index 9fa433f2317..862743c8118 100755 --- a/Build/source/texk/texlive/linked_scripts/epstopdf/epstopdf.pl +++ b/Build/source/texk/texlive/linked_scripts/epstopdf/epstopdf.pl @@ -87,11 +87,17 @@ use strict; # * Added BSD-style license # 2009/05/09 v2.9.10gw # * Changed cygwin name for ghostscript to gs +# 2009/07/17 v2.9.11gw +# * Added -dSAFER to default gs options +# TL2009 wants to use a restricted variant of -shell-escape, +# allowing epstopdf to run. However without -dSAFER Ghostscript +# allows writing to files (other than given in -sOutputFile) +# and running commands (through Ghostscript pipe's language feature). ### program identification my $program = "epstopdf"; -my $filedate="2008/08/26"; -my $fileversion="2.9.10gw"; +my $filedate="2009/07/19"; +my $fileversion="2.9.11gw"; my $copyright = "Copyright 1998-2001 by Sebastian Rahtz et al., 2002-2009 by Gerben Wierda et al. Free software under a BSD-style license."; my $title = "\U$program\E $fileversion, $filedate - $copyright\n"; @@ -191,7 +197,7 @@ else { } ### option compress & embed -my $GSOPTS = ""; +my $GSOPTS = "-dSAFER "; $GSOPTS .= " -dPDFSETTINGS=/prepress -dMaxSubsetPct=100 -dSubsetFonts=true -dEmbedAllFonts=true " if $::opt_embed; $GSOPTS .= "-dUseFlateCompression=false " unless $::opt_compress; $GSOPTS .= "-r$::opt_res " if $::opt_res; -- cgit v1.2.3