Subject: lib/10558: libcurses coredumps if TERM unknown
To: None <>
From: None <>
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
>Originator:     Patrick Welche
>Release:        3 July 2000
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".
Set TERM to something silly and run something linked with -lcurses eg lynx
?? maybe it should be __ttytype which is a char[128] ??