summaryrefslogtreecommitdiffstats
path: root/misc/fep
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2003-03-06 15:54:35 +0000
committernork <nork@FreeBSD.org>2003-03-06 15:54:35 +0000
commitd3adfd4c53e867045180dc152e4c8eed9914cf25 (patch)
tree2796bcd7589131e732191b3a017fa53697f22dee /misc/fep
parent9220ea86ed11dcd9c53bf0118ec46b78703aebea (diff)
downloadFreeBSD-ports-d3adfd4c53e867045180dc152e4c8eed9914cf25.zip
FreeBSD-ports-d3adfd4c53e867045180dc152e4c8eed9914cf25.tar.gz
Fix buffer overrun.
PR: ports/48979 Submitted by: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp> (maintainer) Reported by: Phil Shafer <phil@juniper.net>
Diffstat (limited to 'misc/fep')
-rw-r--r--misc/fep/files/patch-fep_edit.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/misc/fep/files/patch-fep_edit.c b/misc/fep/files/patch-fep_edit.c
new file mode 100644
index 0000000..f07dcd0
--- /dev/null
+++ b/misc/fep/files/patch-fep_edit.c
@@ -0,0 +1,11 @@
+--- fep_edit.c.orig Fri Jan 20 17:16:37 1995
++++ fep_edit.c Thu Mar 6 09:42:13 2003
+@@ -426,7 +426,7 @@
+
+ currentNull = strlen (CommandLine);
+
+- if (currentNull >= maxline) {
++ if (currentNull + 1 >= maxline) {
+ errorBell();
+ return (0);
+ }
OpenPOWER on IntegriCloud