netpbm/netpbm-CAN-2005-2471.patch

19 lines
791 B
Diff
Raw Normal View History

diff --git a/converter/other/pstopnm.c b/converter/other/pstopnm.c
index b253442..dca141f 100644
--- a/converter/other/pstopnm.c
+++ b/converter/other/pstopnm.c
@@ -811,11 +811,11 @@ execGhostscript(int const inputPipeFd,
ghostscriptProg, arg0,
2011-11-11 11:36:37 +00:00
deviceopt, outfileopt, gopt, ropt, textalphabitsopt,
"-q", "-dNOPAUSE",
- "-dSAFER", "-");
+ "-dPARANOIDSAFER", "-");
}
execl(ghostscriptProg, arg0, deviceopt, outfileopt, gopt, ropt, "-q",
- "-dNOPAUSE", "-dSAFER", "-", NULL);
+ "-dNOPAUSE", "-dPARANOIDSAFER", "-", NULL);
pm_error("execl() of Ghostscript ('%s') failed, errno=%d (%s)",
ghostscriptProg, errno, strerror(errno));