From owner-freebsd-bugs Tue Oct 31 17:11:12 2000 Delivered-To: freebsd-bugs@freebsd.org Received: from gw.nectar.com (gw.nectar.com [208.42.49.153]) by hub.freebsd.org (Postfix) with ESMTP id 4CF2837B4C5; Tue, 31 Oct 2000 17:11:10 -0800 (PST) Received: by gw.nectar.com (Postfix, from userid 1001) id AD67F192A7; Tue, 31 Oct 2000 19:11:08 -0600 (CST) Date: Tue, 31 Oct 2000 19:11:08 -0600 From: "Jacques A. Vidrine" To: brian@FreeBSD.org Cc: freebsd-bugs@FreeBSD.org, kris@FreeBSD.org Subject: Re: bin/22307: ssh dumps core if fields in password entry are empty Message-ID: <20001031191108.C5333@spawn.nectar.com> Mail-Followup-To: "Jacques A. Vidrine" , brian@FreeBSD.org, freebsd-bugs@FreeBSD.org, kris@FreeBSD.org References: <200011010012.QAA65253@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <200011010012.QAA65253@freefall.freebsd.org>; from brian@FreeBSD.org on Tue, Oct 31, 2000 at 04:12:06PM -0800 X-Url: http://www.nectar.com/ Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Tue, Oct 31, 2000 at 04:12:06PM -0800, brian@FreeBSD.org wrote: > Synopsis: ssh dumps core if fields in password entry are empty > > Responsible-Changed-From-To: freebsd-bugs->kris > Responsible-Changed-By: brian > Responsible-Changed-When: Tue Oct 31 16:08:25 PST 2000 > Responsible-Changed-Why: > I submitted a patch to kris a while ago for this.... > > http://www.freebsd.org/cgi/query-pr.cgi?pr=22307 I think I fixed this with rev. 1.56 of src/lib/libc/gen/getpwent.c. Though applications should check if pointers are NULL before dereferencing, it appears that many do not when it comes to getpw* results. -- Jacques Vidrine / n@nectar.com / jvidrine@verio.net / nectar@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message