Date: Mon, 15 Jan 1996 21:22:08 +0100 (MET) From: Åge Røbekk <aagero@aage.aage.priv.no> To: freebsd-bugs@freebsd.org Subject: host segfaults on empty host statement Message-ID: <199601152022.VAA06249@birk04.studby.uio.no>
next in thread | raw e-mail | index | archive | help
$ /usr/bin/host -t hinfo Segmentation fault (core dumped) The problem is that the argument after hinfo is not checked for a NULL pointer. In line 220 of host.c, strcmp(v[1], ".") fails due to dereferencing the NULL pointer v[1]. v[1] is the argument that follows the type query. I also checked host.c in 4.9.3-REL and the problem is still present there. -aage
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199601152022.VAA06249>