This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch for format checking security warnings
- To: "Joseph S. Myers" <jsm28 at cam dot ac dot uk>
- Subject: Re: Patch for format checking security warnings
- From: Jeffrey A Law <law at redhat dot com>
- Date: Wed, 06 Dec 2000 18:39:35 -0700
- cc: gcc-patches at gcc dot gnu dot org
- Reply-To: law at redhat dot com
In message <Pine.LNX.4.30.0012070032130.23840-100000@kern.srcf.societies.cam.
ac.uk>you write:
> gcc/ChangeLog:
> 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
>
> * c-common.c (warn_format_security): New variable.
> (check_format_info): Warn about non-literal formats with no format
> arguments if either -Wformat-nonliteral or -Wformat-security is
> specified.
> (set_Wformat): Set warn_format_security for settings other than 1.
> * c-common.h (warn_format_security): Declare.
> * c-decl.c (c_decode_option): Decode -Wformat-security and
> -Wno-format-security.
> * invoke.texi: Document -Wformat-security.
> * toplev.c (documented_lang_options): Include -Wformat-security
> and -Wno-format-security.
>
> gcc/cp/ChangeLog:
> 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
>
> * decl2.c (lang_decode_option): Handle -Wformat-security.
>
> gcc/testsuite/ChangeLog:
> 2000-12-07 Joseph S. Myers <jsm28@cam.ac.uk>
>
> * format-sec-1.c: New test.
Approved. Please install.
Thanks,
jeff
>