Subject: lib/32065: crash in libcurses
To: None <lib-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <Christoph_Egger@gmx.de>
List: netbsd-bugs
Date: 11/13/2005 17:28:00
>Number:         32065
>Category:       lib
>Synopsis:       crash in libcurses
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    lib-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 13 17:28:00 +0000 2005
>Originator:     Christoph Egger
>Release:        NetBSD 3.99.11/i386 and /sparc64
>Organization:
>Environment:
NetBSD GENERIC kernel on i386 and sparc64
>Description:

libcurses crashs when TERM is unknown
>How-To-Repeat:

1. Install editors/nano from pkgsrc.

2. Change the TERM env. variable to an unknown value:

TERM=abc

(/bin/sh claims about an unknown terminal type but sets the value anyway)

3. Open an ASCII file with nano

You see this:

[1]   Segmentation fault (core dumped) nano <filename>


>Fix: