aboutsummaryrefslogtreecommitdiffstats
path: root/misc/fep
diff options
context:
space:
mode:
authornork <nork@FreeBSD.org>2003-03-06 23:54:35 +0800
committernork <nork@FreeBSD.org>2003-03-06 23:54:35 +0800
commitd3adfd4c53e867045180dc152e4c8eed9914cf25 (patch)
tree2796bcd7589131e732191b3a017fa53697f22dee /misc/fep
parent9220ea86ed11dcd9c53bf0118ec46b78703aebea (diff)
downloadfreebsd-ports-gnome-d3adfd4c53e867045180dc152e4c8eed9914cf25.tar.gz
freebsd-ports-gnome-d3adfd4c53e867045180dc152e4c8eed9914cf25.tar.zst
freebsd-ports-gnome-d3adfd4c53e867045180dc152e4c8eed9914cf25.zip
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 000000000000..f07dcd08402e
--- /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);
+ }