Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Jan 2002 15:19:55 -0800
From:      Alfred Perlstein <bright@mu.org>
To:        Buliwyf McGraw <buliwyf@libertad.univalle.edu.co>
Cc:        freebsd-security@FreeBSD.ORG
Subject:   Re: gets() is unsafe
Message-ID:  <20020114151955.I26067@elvis.mu.org>
In-Reply-To: <Pine.BSF.4.43.0201141750380.93171-100000@libertad.univalle.edu.co>; from buliwyf@libertad.univalle.edu.co on Mon, Jan 14, 2002 at 05:56:51PM -0500
References:  <Pine.BSF.4.43.0201141750380.93171-100000@libertad.univalle.edu.co>

next in thread | previous in thread | raw e-mail | index | archive | help
* Buliwyf McGraw <buliwyf@libertad.univalle.edu.co> [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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020114151955.I26067>