Subject: telnetd dumping core based on incoming terminal type
To: None <netbsd-bugs@NetBSD.ORG>
From: Paul J. Lavoie <paull@ilx.com>
List: netbsd-bugs
Date: 10/06/1995 12:49:01
Description:
	telnetd in current will dump core when answering a call from 
	a system whose terminal type has a termcap entry larger than
	the 1024 bytes allocated in its buffer.

Repeat-By:
	set TERM to ansi
	telnet into system
	look at /telnetd.core w/ stack blown to bits

Fix:
	I modified src/libexec/telnetd/telnetd.c:719 to double the
	storage	allocation of buf[], used by tgetent().  I imagine
	there is a cleaner way of handling this situation. 



-------------------------------------------------------------------------------
Paul J. Lavoie		paull@ilx.com		(212) 720-3029
ILX Systems, Inc.	111 Fulton St		New York, NY  10038