From owner-freebsd-security Mon Jan 14 15:19:59 2002 Delivered-To: freebsd-security@freebsd.org Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by hub.freebsd.org (Postfix) with ESMTP id 282F537B417 for ; Mon, 14 Jan 2002 15:19:56 -0800 (PST) Received: by elvis.mu.org (Postfix, from userid 1192) id 0335810DE01; Mon, 14 Jan 2002 15:19:55 -0800 (PST) Date: Mon, 14 Jan 2002 15:19:55 -0800 From: Alfred Perlstein To: Buliwyf McGraw Cc: freebsd-security@FreeBSD.ORG Subject: Re: gets() is unsafe Message-ID: <20020114151955.I26067@elvis.mu.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from buliwyf@libertad.univalle.edu.co on Mon, Jan 14, 2002 at 05:56:51PM -0500 Sender: owner-freebsd-security@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org * Buliwyf McGraw [020114 14:49] wrote: > > Hi... i was installing several applications (php,xmms,etc) on my > FreeBSD 4.4 server and i got the next message a lot of times when > i was compiling: > > /usr/lib/compat/libc.so.3: warning: mktemp() possibly used unsafely; > consider using mkstemp() > /usr/lib/compat/libc.so.3: warning: tmpnam() possibly used unsafely; > consider using mkstemp() > /usr/lib/compat/libc.so.3: warning: this program uses gets(), which is > unsafe. > /usr/lib/compat/libc.so.3: WARNING! setkey(3) not present in the system! > /usr/lib/compat/libc.so.3: WARNING! des_setkey(3) not present in the > system! > /usr/lib/compat/libc.so.3: WARNING! encrypt(3) not present in the system! > /usr/lib/compat/libc.so.3: WARNING! des_cipher(3) not present in the > system! > /usr/lib/compat/libc.so.3: warning: this program uses f_prealloc(), which > is not recommended. > > I want to fix this... what i can do? > Thanks for any help. Read the manpages, use the "Safer" version of the functions. -- -Alfred Perlstein [alfred@freebsd.org] 'Instead of asking why a piece of software is using "1970s technology," start asking why software is ignoring 30 years of accumulated wisdom.' Tax deductable donations for FreeBSD: http://www.freebsdfoundation.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message