Format checking patch: warning for writing through null pointer

Jeffrey A Law law@cygnus.com
Wed Oct 18 09:03:00 GMT 2000


  In message <Pine.LNX.4.21.0010181623200.24966-100000@kern.srcf.societies.cam.
ac.uk>you write:
  > This patch adds a warning for formats that would try to dereference
  > and write through a null pointer.
  > 
  > Bootstrapped with no regressions on i686-pc-linux-gnu.  OK to commit?
  > 
  > gcc/ChangeLog:
  > 2000-10-18  Joseph S. Myers  <jsm28@cam.ac.uk>
  > 
  > 	* c-common.c (check_format_types): Check for writing through a
  > 	NULL pointer argument.
  > 
  > gcc/testsuite/ChangeLog:
  > 2000-10-18  Joseph S. Myers  <jsm28@cam.ac.uk>
  > 
  > 	* gcc.dg/c90-printf-1.c, gcc.dg/c90-scanf-1.c: Add tests for
  > 	writing through null pointers; remove comment about testing
  > 	unterminated strings.
Approved.  Please install.

Thanks,
jeff



More information about the Gcc-patches mailing list