Subject: lib/9712: libedit has fixed size input buffer
To: None <gnats-bugs@gnats.netbsd.org>
From: None <phil@cs.wwu.edu>
List: netbsd-bugs
Date: 03/30/2000 08:55:39
>Number:         9712
>Category:       lib
>Synopsis:       libedit has fixed size input buffer
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    lib-bug-people (Library Bug People)
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 30 08:51:00 2000
>Last-Modified:
>Originator:     Phil Nelson
>Organization:
	Western Washington University
>Release:        NetBSD-1.4.1 and NetBSD-current March 22, 2000
>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.
>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.

>Audit-Trail:
>Unformatted: