From owner-freebsd-doc Wed Jan 9 5:57:36 2002 Delivered-To: freebsd-doc@freebsd.org Received: from nothing-going-on.demon.co.uk (pc-62-31-42-140-hy.blueyonder.co.uk [62.31.42.140]) by hub.freebsd.org (Postfix) with ESMTP id D746B37B41B for ; Wed, 9 Jan 2002 05:57:31 -0800 (PST) Received: (from nik@localhost) by nothing-going-on.demon.co.uk (8.11.6/8.11.6) id g09Dawk53145; Wed, 9 Jan 2002 13:36:58 GMT (envelope-from nik) Date: Wed, 9 Jan 2002 13:36:57 +0000 From: Nik Clayton To: Dima Dorfman Cc: freebsd-doc@freebsd.org Subject: Re: docs/26286: format string warnings in man pages. Message-ID: <20020109133657.C24425@clan.nothing-going-on.org> References: <200104030140.f331e2556686@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-md5; protocol="application/pgp-signature"; boundary="32u276st3Jlj2kUU" Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200104030140.f331e2556686@freefall.freebsd.org>; from dima@unixfreak.org on Mon, Apr 02, 2001 at 06:40:02PM -0700 Organization: FreeBSD Project Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org --32u276st3Jlj2kUU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Apr 02, 2001 at 06:40:02PM -0700, Dima Dorfman wrote: > The idea behind this is great, but I don't really like how the above > text is duplicated everywhere. It seems unnatural. Ideally, the > above would be replaced with a "see something(3) for information on > what [a format string] implies". Unfortunately, I don't know what > this something(3) should be; printf(3) is the first thing that comes > to mind, but printf(3) documents a particular function; it just so > happens that most C programmers' first sight of a format string was in > the context of a call to printf(). There's a "Secure Programming" chapter in the Developer's Handbook. Mike, could you put together some suitable text that could form the basis of a "format string problems" section in there? N --=20 FreeBSD: The Power to Serve http://www.freebsd.org/ FreeBSD Documentation Project http://www.freebsd.org/docproj/ --- 15B8 3FFC DDB4 34B0 AA5F 94B7 93A8 0764 2C37 E375 --- --32u276st3Jlj2kUU Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (FreeBSD) Comment: For info see http://www.gnupg.org iEYEARECAAYFAjw8R3kACgkQk6gHZCw343XTdACfZeTji66Gr8qZBRkzT+JVsag1 qNoAnRR6iPeEPH8sRUU8bEYNblfqixBa =zXHc -----END PGP SIGNATURE----- --32u276st3Jlj2kUU-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-doc" in the body of the message