Subject: pkg/20599: misc/fep fix a bug
To: None <gnats-bugs@gnats.netbsd.org>
From: None <nobu@psrc.isac.co.jp>
List: netbsd-bugs
Date: 03/06/2003 07:12:34
>Number:         20599
>Category:       pkg
>Synopsis:       misc/fep fix a bug
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 06 07:13:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Nobuhiro Yasutomi
>Release:        
>Organization:
>Environment:
>Description:
Phil Shafer <phil@juniper.net> pointed buffer overrun case[*] and fix it.
  [*] Use ^U when fulled line buffer.
Please add following patch.


>How-To-Repeat:

>Fix:
--- 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);
     }

>Release-Note:
>Audit-Trail:
>Unformatted: