mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Fix buffer overrun.
PR: ports/48979 Submitted by: Nobuhiro Yasutomi <nobu@psrc.isac.co.jp> (maintainer) Reported by: Phil Shafer <phil@juniper.net>
This commit is contained in:
parent
408837251b
commit
03cd554259
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=77034
1 changed files with 11 additions and 0 deletions
11
misc/fep/files/patch-fep_edit.c
Normal file
11
misc/fep/files/patch-fep_edit.c
Normal file
|
@ -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);
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue