Subject: lib/10558: libcurses coredumps if TERM unknown
To: None <gnats-bugs@gnats.netbsd.org>
From: None <prlw1@cam.ac.uk>
List: netbsd-bugs
Date: 07/10/2000 09:01:21
>Number:         10558
>Category:       lib
>Synopsis:       libcurses coredumps if TERM unknown
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Jul 10 09:02:01 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator:     Patrick Welche
>Release:        3 July 2000
>Organization:
	
>Environment:
NetBSD-1.5B/i386
>Description:
src/lib/libcurses/setterm.c v1.26:

102: char    *ttytype;

180:         if (unknown) {
181:                 strcpy(ttytype, "dumb");

So, no memory was allocated to take "dumb".
>How-To-Repeat:
Set TERM to something silly and run something linked with -lcurses eg lynx
>Fix:
?? maybe it should be __ttytype which is a char[128] ??
>Release-Note:
>Audit-Trail:
>Unformatted: