From owner-freebsd-bugs Fri Apr 10 04:03:37 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id EAA16841 for freebsd-bugs-outgoing; Fri, 10 Apr 1998 04:03:37 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from santra.hut.fi (santra.hut.fi [130.233.224.1]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id EAA16818 for ; Fri, 10 Apr 1998 04:03:33 -0700 (PDT) (envelope-from tri@pooh.tky.hut.fi) Received: from pooh.tky.hut.fi (pooh.tky.hut.fi [130.233.23.135]) by santra.hut.fi (8.8.8/8.8.7) with ESMTP id OAA11635; Fri, 10 Apr 1998 14:03:26 +0300 (EET DST) Received: (from tri@localhost) by pooh.tky.hut.fi (8.8.8/8.8.8) id OAA13469; Fri, 10 Apr 1998 14:03:22 +0300 (EEST) (envelope-from tri) Date: Fri, 10 Apr 1998 14:03:22 +0300 (EEST) Message-Id: <199804101103.OAA13469@pooh.tky.hut.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Timo J Rinne To: Max Euston , freebsd-bugs@FreeBSD.ORG Subject: RE: bin/6254: ftp client follows NULL pointer In-Reply-To: <27090186@toto.iv> References: <01BD63C9.148B6D20.meuston@jmrodgers.com> Reply-to: tri@iki.fi Organization: Helsinki University of Technology, Espoo, Finland X-Face: 7N&%4=;/9+e`m7vVp3kmZ^FZ~;TBHua/@dBeFi*{xAoyz+8feePXCUmOK[GaY*0[QU`{lo *D3.D?xc>nBKUHDdXo)*OiG-MGf-a2dCZ5{yYMZV9:+H1h:%g$']XOPwUx{<5fH@l?+U8B Cr!lG(V:g=`_gdg86&u$/ez/jG_H3uU8!TB&ZuEz-BKqfBL3HGS@oA#,GsugP3o3.ckI- Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Timo J Rinne writes: > Ok. I do it. Return value of fgets in line 260 of util.c in ftp > client source is not checked. > > Now it should be straightforward! The simplest way to fix this seems to be adding line tmp[0] = '\0'; just before ftets on line 260. Regards, //Rinne To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message