summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-12-13 20:26:58 +0000
committerMike Frysinger <vapier@gentoo.org>2004-12-13 20:26:58 +0000
commit48fdd91eb7457ede8253c2b09938ca100823a6fa (patch)
tree37811cbd243dca448c1322a08e9436856ec86bc9 /sys-apps/man/files/man-1.5m-security.patch
parentBump. (diff)
downloadhistorical-48fdd91eb7457ede8253c2b09938ca100823a6fa.tar.gz
historical-48fdd91eb7457ede8253c2b09938ca100823a6fa.tar.bz2
historical-48fdd91eb7457ede8253c2b09938ca100823a6fa.zip
Version bump.
Diffstat (limited to 'sys-apps/man/files/man-1.5m-security.patch')
-rw-r--r--sys-apps/man/files/man-1.5m-security.patch9
1 files changed, 6 insertions, 3 deletions
diff --git a/sys-apps/man/files/man-1.5m-security.patch b/sys-apps/man/files/man-1.5m-security.patch
index 2f7e9e3db64b..f9918ed11c4b 100644
--- a/sys-apps/man/files/man-1.5m-security.patch
+++ b/sys-apps/man/files/man-1.5m-security.patch
@@ -1,12 +1,14 @@
diff -urP man-1.5l/src/gripes.c man-1.5l/src/gripes.c
--- man-1.5l/src/gripes.c Wed Jul 17 20:17:23 2002
+++ man-1.5l/src/gripes.c Fri Jun 6 14:51:21 2003
-@@ -28,0 +28,1 @@
+@@ -28,1 +28,2 @@
+#include <string.h>
-@@ -68,0 +68,2 @@
+ #include <nl_types.h>
+@@ -68,1 +68,3 @@
+ char *s;
+ unsigned int i = 0;
+ unsigned short fmt_n = 0;
-@@ -78,0 +78,13 @@
+@@ -78,1 +78,14 @@
+ /* routine to filter format string abuse. will */
+ /* only allow %d, %s, and %o through. no more */
+ /* than two formats needed for any response. */
@@ -20,3 +22,4 @@ diff -urP man-1.5l/src/gripes.c man-1.5l/src/gripes.c
+ if (fmt_n > 2) /* failed, default reply. */
+ s = msg[n];
+ }
+ return s;