From owner-freebsd-bugs Mon Jan 15 18:09:45 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA01457 for bugs-outgoing; Mon, 15 Jan 1996 18:09:45 -0800 (PST) Received: from time.cdrom.com (time.cdrom.com [192.216.222.226]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA01446 for ; Mon, 15 Jan 1996 18:09:42 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by time.cdrom.com (8.6.12/8.6.9) with SMTP id SAA05578; Mon, 15 Jan 1996 18:09:25 -0800 To: ge R bekk cc: freebsd-bugs@freebsd.org Subject: Re: host segfaults on empty host statement In-reply-to: Your message of "Mon, 15 Jan 1996 21:22:08 +0100." <199601152022.VAA06249@birk04.studby.uio.no> Date: Mon, 15 Jan 1996 18:09:25 -0800 Message-ID: <5576.821758165@time.cdrom.com> From: "Jordan K. Hubbard" Sender: owner-bugs@freebsd.org Precedence: bulk Thanks, fixed! Jordan > > $ /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