Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 May 2001 20:09:23 -0600
From:      Warner Losh <imp@harmony.village.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        Eric Melville <eric@FreeBSD.org>, Dima Dorfman <dima@unixfreak.org>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/lib/libc/gen setproctitle.3 syslog.3 src/lib/libc/stdio printf.3 
Message-ID:  <200105310209.f4V29NE88354@harmony.village.org>
In-Reply-To: Your message of "Wed, 30 May 2001 18:28:22 PDT." <20010530182822.A79068@xor.obsecurity.org> 
References:  <20010530182822.A79068@xor.obsecurity.org>  <200105252042.f4PKgfu84635@freefall.freebsd.org> <20010526004601.2109A3E2F@bazooka.unixfreak.org> <20010530172131.A60056@FreeBSD.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20010530182822.A79068@xor.obsecurity.org> Kris Kennaway writes:
: I'd also welcome this.  I also want better manpage documentation about
: things like how to use strncpy() properly, whether to use
: array[FOO_MAX] or array[FOO_MAX+1] for proper bounding of buffers
: passed to library (e.g. POSIX) functions, etc.  These should include
: code snippets so people can easily get the right idea instead of
: having to infer from verbal descriptions.  Some of this stuff best
: goes in the individual function manpages, but the second class
: includes examples of a general implementation used by a number of
: functions.

If someone gets the bones of a string.7 (or safe-sex.7 or
safe-programming.7 or sprog.7 or whatever you want to call it) into
the tree, I'll add what I know about the POSIXly correct thing to do,
as well as known unsafe interfaces/practices.

Warner

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




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