summaryrefslogtreecommitdiff
path: root/devel/m4/files/patch-ac
diff options
context:
space:
mode:
authorPeter Pentchev <roam@FreeBSD.org>2001-10-22 02:03:10 +0000
committerPeter Pentchev <roam@FreeBSD.org>2001-10-22 02:03:10 +0000
commit6dafd0c815ce61bacd264d1d61732e6cf81740d2 (patch)
treeaa17a463ec4b14a91e7b477420afd2468ee2d366 /devel/m4/files/patch-ac
parentchange master site (diff)
Fix a format string vulnerability.
Note that others might still be lurking inside the m4 code, this is just a quick fix for the one reported on BugTraq. (What do I think I am doing, anyway, reading BugTraq at 4:30am on a bleak Monday morning..) Reported by: <dotslash@snosoft.com> via BugTraq
Diffstat (limited to '')
-rw-r--r--devel/m4/files/patch-ac20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/m4/files/patch-ac b/devel/m4/files/patch-ac
new file mode 100644
index 000000000000..678532eaf19a
--- /dev/null
+++ b/devel/m4/files/patch-ac
@@ -0,0 +1,20 @@
+--- src/m4.c Mon Oct 22 04:25:47 2001
++++ src/m4.c Mon Oct 22 04:26:03 2001
+@@ -369,7 +369,7 @@
+
+ case 'o':
+ if (!debug_set_output (optarg))
+- error (0, errno, optarg);
++ error (0, errno, "%s", optarg);
+ break;
+
+ case 's':
+@@ -466,7 +466,7 @@
+ fp = path_search (argv[optind]);
+ if (fp == NULL)
+ {
+- error (0, errno, argv[optind]);
++ error (0, errno, "%s", argv[optind]);
+ continue;
+ }
+ else