freebsd-ports/print/enscript-letter/files/patch-src_gsint.h
Christian Weisgerber 44a125dbb2 Security fixes:
Erik Sjolund discovered several issues in enscript: it suffers from
several buffer overflows (CAN-2004-1186), quotes and shell escape
characters are insufficiently sanitized in filenames (CAN-2004-1185),
and it supported taking input from an arbitrary command pipe, with
unwanted side effects (CAN-2004-1184).

Obtained from:	Gentoo
2005-02-11 21:35:40 +00:00

15 lines
239 B
C

$FreeBSD$
--- src/gsint.h.orig
+++ src/gsint.h
@@ -701,4 +701,9 @@
*/
void printer_close ___P ((void *context));
+/*
+ * Escape filenames for shell usage
+ */
+char *shell_escape ___P ((const char *fn));
+
#endif /* not GSINT_H */