Re: NULL Pointer Dereference in unsetcmd() at inetutils/telnet/commands.c:1227

Simon Josefsson via Bug reports for the GNU Internet utilities <[email protected]>
Newsgroups gmane.comp.gnu.inetutils.bugs
Message-ID <[email protected]>
Erik Auerswald <[email protected]> writes:

> It seems to me as if this Netkit project no longer exists.  Since I do
> not know the upstream project, I have not report any bugs, and have not
> send any patches.

Yeah, the NetKit telnet project is in a sad state.

> I do not have a BSD system to test, but anyone who does can easily try
> out the above.

I think we should reach out to some BSD contacts...

NetBSD 9.2 (GENERIC) #0: Wed May 12 13:15:55 UTC 2021

gcc300$ telnet
telnet> set ' ' crash
[1]   Segmentation fault (core dumped) telnet
gcc300$ telnet
telnet>  unset ' '
[1]   Segmentation fault (core dumped) telnet
gcc300$ telnet
telnet> help z ! ? z ! ? z ! ? z ! ? z ! ? z ! ? z !
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
print help information
telnet> help help
[1]   Segmentation fault (core dumped) telnet
gcc300$ 

OpenBSD 7.1 (GENERIC.MP) #3: Sun May 15 10:27:01 MDT 2022

gcc220$ telnet
telnet> set ' ' crash
Segmentation fault (core dumped) 
gcc220$ telnet
telnet> unset ' '
Segmentation fault (core dumped) 
gcc220$ telnet
telnet> help z ! ? z ! ? z ! ? z ! ? z ! ? z ! ? z !
too many arguments
telnet> gcc220$ telnet
telnet> help help
(null)
telnet> 

FreeBSD 13.0-RELEASE-p3 (GENERIC) #0: Tue Jun 29 19:46:20 UTC 2021

$ telnet
telnet> set ' ' crash
Segmentation fault (core dumped)
$ telnet
telnet> unset ' '
Segmentation fault (core dumped)
$ telnet
telnet> help z ! ? z ! ? z ! ? z ! ? z ! ? z ! ? z !
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
print help information
suspend telnet
invoke a subshell
telnet> $ telnet
telnet> help help
Segmentation fault (core dumped)
$ 

/Simon
signature.asc (application/pgp-signature, 255 B)
-----BEGIN PGP SIGNATURE-----

iIoEARYIADIWIQSjzJyHC50xCrrUzy9RcisI/kdFogUCYsh/bRQcc2ltb25Aam9z
ZWZzc29uLm9yZwAKCRBRcisI/kdFohs8AQCKNz+oMvfX8nZiGbuhiwP700EPuBcp
rm4/D+aLiJEZmwEAkrhWHJpqw8xSQNxCvZFkm/dR5htOlK3d4y0K6aI15wA=
=xHS6
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.