[1056] in Kerberos-V5-bugs
Bug in telnet under Solaris 2.4
daemon@ATHENA.MIT.EDU (Robert Zeh)
Fri Jan 27 16:09:08 1995
Date: Fri, 27 Jan 1995 15:08:22 -0600
From: Robert Zeh <razeh@symcom.math.uiuc.edu>
To: krb5-bugs@MIT.EDU
You can get ktelent to core dump under Solaris 2.4 by doing the
following:
alcor.math.uiuc.edu$ ktelnet
telnet> encrypt
Segmentation Fault (core dumped)
Using gdb, it becomes apparent that someone is trying to print the
null pointer, a no-no under Solaris. If you follow things through,
the offending code is in src/appl/telnet/telnet/commands.c.
The function encrypt_cmd() will always try to use argv[1] as an
argument to fprintf! Before argv[1] is sent to fprintf, it needs to
be tested for equality with the null pointer.
Robert Zeh