This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: A new check ?
- To: Marc Espie <Marc dot Espie at liafa dot jussieu dot fr>
- Subject: Re: A new check ?
- From: Richard Henderson <rth at cygnus dot com>
- Date: Tue, 28 Sep 1999 11:53:05 -0700
- Cc: egcs at egcs dot cygnus dot com
- References: <19990928172601.A15295@liafa1.liafa.jussieu.fr>
On Tue, Sep 28, 1999 at 05:26:01PM +0200, Marc Espie wrote:
> I was thinking along the lines of an attribute say
> snprintf() __attribute__((buffer(1, 2))
> read() __attribute__((buffer(2, 3))
>
> Does this look like a good idea ?
Yes.
> Does this look implementable ?
Yes. See check_format_info and associated functions in c-common.c.
r~