diff options
author | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-03-06 15:54:35 +0000 |
---|---|---|
committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2003-03-06 15:54:35 +0000 |
commit | 03cd554259afac103afa26b1eb65cbeca1eb59d0 (patch) | |
tree | 83721a1e5ef8aae503fd2e932dc3c8e2395dd871 /misc/fep | |
parent | 408837251b335d78c4bbe6850cf60ea4559052cd (diff) | |
download | ports-03cd554259afac103afa26b1eb65cbeca1eb59d0.tar.gz ports-03cd554259afac103afa26b1eb65cbeca1eb59d0.zip |
Fix buffer overrun.
PR: ports/48979
Submitted by: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp> (maintainer)
Reported by: Phil Shafer <phil@juniper.net>
Notes
Notes:
svn path=/head/; revision=77034
Diffstat (limited to 'misc/fep')
-rw-r--r-- | misc/fep/files/patch-fep_edit.c | 11 |
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); + } |