This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: A new check ?


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~

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]