public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: James Antill <james@and.org>
To: Erik Mouw <J.A.K.Mouw@its.tudelft.nl>
Cc: Linux kernel mailing list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] add function attributes to sprintf() and snprintf()
Date: 09 Nov 2001 00:24:34 -0500	[thread overview]
Message-ID: <nnadxwectp.fsf@code.and.org> (raw)
In-Reply-To: <20011107172401.I14594@arthur.ubicom.tudelft.nl>
In-Reply-To: <20011107172401.I14594@arthur.ubicom.tudelft.nl>

Erik Mouw <J.A.K.Mouw@its.tudelft.nl> writes:

> Hi,
> 
> This patch adds function attributes to sprintf() and snprintf() so the
> compiler can catch formatting errors at compile time. Patch is against
> 2.4.13-ac8, but it should apply cleanly against 2.4.14 as well.

 This is done inside gcc as sprintf/snprintf/vsnprintf etc. are all
standard symbols so gcc automatically adds the attributes for them.

 In gcc 3.x it's all done in gcc/builtin-attrs.def

-- 
# James Antill -- james@and.org
:0:
* ^From: .*james@and\.org
/dev/null

      reply	other threads:[~2001-11-09  5:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-07 16:24 [PATCH] add function attributes to sprintf() and snprintf() Erik Mouw
2001-11-09  5:24 ` James Antill [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=nnadxwectp.fsf@code.and.org \
    --to=james@and.org \
    --cc=J.A.K.Mouw@its.tudelft.nl \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox