NetBSD Problem Report #9712
Received: (qmail 12546 invoked from network); 30 Mar 2000 16:48:04 -0000
Message-Id: <200003301648.IAA25667@nooksack.ldc.cs.wwu.edu>
Date: Thu, 30 Mar 2000 08:48:09 -0800 (PST)
From: phil@cs.wwu.edu
Reply-To: phil@cs.wwu.edu
To: gnats-bugs@gnats.netbsd.org
Subject: libedit has fixed size input buffer
X-Send-Pr-Version: 3.95
>Number: 9712
>Category: lib
>Synopsis: libedit has fixed size input buffer
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: jdolecek
>State: closed
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Thu Mar 30 08:51:00 +0000 2000
>Closed-Date: Thu Jan 11 10:35:42 +0000 2001
>Last-Modified: Thu Jan 11 10:35:42 +0000 2001
>Originator: Phil Nelson
>Release: 1.4.1
>Organization:
Western Washington University
>Environment:
System: NetBSD nooksack 1.4.1 NetBSD 1.4.1 (NOOKSACK) #0: Thu Aug 26 11:00:53 PDT 1999 phil@middlefork:/puffin/NetBSD-1.4.1/usr/src/sys/arch/i386/compile/NOOKSACK i386
>Description:
libedit has a fixed size (1024 character) input buffer. It will
not read any more than about 1020 characters. It should be dynamic.
If not that, it should at least be a setable size by el_set.
Also in NetBSD-current March 22, 2000
>How-To-Repeat:
run bc and try to enter a 1500 digit number on one line.
>Fix:
Change storage from static to dynamic and when out of space,
double the current space (or at least add some increment).
It does cause changes throught the library.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: lib-bug-people->jdolecek
Responsible-Changed-By: jdolecek
Responsible-Changed-When: Mon Apr 3 01:57:50 PDT 2000
Responsible-Changed-Why:
I'll take care of this one.
State-Changed-From-To: open->analyzed
State-Changed-By: jdolecek
State-Changed-When: Mon Jul 31 15:51:02 PDT 2000
State-Changed-Why:
I've implemented quite simplistic solution to this, hopefully
not too wrong. Will send you patch in separate e-mail.
State-Changed-From-To: analyzed->feedback
State-Changed-By: jdolecek
State-Changed-When: Tue Jan 9 23:46:39 PST 2001
State-Changed-Why:
I've committed solution for this to -current editline. It seems to work
ok for me, would you have a chance to look and tell me if it's ok for
you as well ? Alternatively, I can send you a patch.
State-Changed-From-To: feedback->closed
State-Changed-By: jdolecek
State-Changed-When: Thu Jan 11 02:34:51 PST 2001
State-Changed-Why:
Phil reported the committed fix indeed works for him too.
Thanks for report!
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.