This is the mail archive of the gcc-patches@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: Patch for format checking security warnings




  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
  > 


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