Re: man pages for format string functions

From: Mike Bristow (mike@urgle.com)
Date: 03/29/01


Date: Thu, 29 Mar 2001 17:09:04 +0100
From: Mike Bristow <mike@urgle.com>
To: Kris Kennaway <kris@obsecurity.org>



[ doc@ added; hackers@ dropped (xpost limit:(). I'm not on either doc@ or
  security@, so please cc me on any replies ]

On Tue, Mar 27, 2001 at 11:17:09AM -0800, Kris Kennaway wrote:
> On Tue, Mar 27, 2001 at 02:13:03PM -0500, Andrew R. Reiter wrote:
[ on adding warnings to man pages about potential format-string type
  bugs ]
> > I am fairly poor with wording man pages, as you can see, but I think it
> > might be worth while just to point this out.
>
> I've wanted to do this, but so far haven't had time. Do you think you
> could submit a patch? Don't worry about wording, that can easily be
> tweaked.

Here's a first-draft of such a patch that covers printf(3), stdarg(3),
err(3), setproctitle(3), and syslog(3), together with their
on-the-same-manpage friends.

I haven't touched NgSendAsciiMsg(3), and libstand(3) [ for
panic(const char *msg, ...) ], but possibly I should.

Any comments? Anything obvious I've missed?

I'll look at these again with fresh eyes tomorrow, deal with any comments,
and then file a PR, I guess.

-- 
Mike Bristow, seebitwopie  

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




Relevant Pages

  • [PATCH 1/2] new valid_signal function (fwd)
    ... A while back I attempted to fix a little, not at all critical, gcc -W ... Below is the first patch that adds the new function. ... pointless and generates warnings when building with gcc -W. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • Re: [resend][PATCH] avoid signed vs unsigned comparison in efi_range_is_wc()
    ... >> I send in the patch below a while back but never recieved any response. ... > There are surely many warnings in the tree, ... with gcc -W of the same config gives me 100177 warnings. ... To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ ...
    (Linux-Kernel)
  • Re: [RFC] spinlock_t & rwlock_t break_lock member initialization (patch seeking comments include
    ... with the patch below applied for a few days and I see no ill effects. ... > down on the number of warnings I have to sift through. ... > initialization code neglects to initialize this extra member in that case. ... send the line "unsubscribe linux-kernel" in ...
    (Linux-Kernel)
  • [PATCH] profile: further Codying Style fixes
    ... Checkpatch before the patch: ... 3 errors, 13 warnings, 602 lines checked ... int count, int *eof, void *data) ...
    (Linux-Kernel)
  • Re: ARM: Section mismatch warnings
    ... Sorry for posting the wrong patch in the first place. ... Subject: arm: fix two warnings in mach-sa1100/neponset.c ... Install handler for Neponset IRQ. ...
    (Linux-Kernel)