This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/32953] -Wformat warns incorrectly on an unterminated format string of length 1
- From: "dsh at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 13 Aug 2007 21:55:15 -0000
- Subject: [Bug c/32953] -Wformat warns incorrectly on an unterminated format string of length 1
- References: <bug-32953-14850@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from dsh at gcc dot gnu dot org 2007-08-13 21:55 -------
Subject: Bug 32953
Author: dsh
Date: Mon Aug 13 21:55:01 2007
New Revision: 127399
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=127399
Log:
gcc/
2007-08-3 1 Dan Hipschman <dsh@google.com>
PR 32953
* c-format.c (check_format_arg): Move check for zero-length
format strings below the check for unterminated strings.
testsuite/
2007-08-13 Dan Hipschman <dsh@google.com>
PR 32953
* gcc.dg/format/array-1.c: Add an additional test for
unterminated format strings of length 1.
Modified:
trunk/gcc/ChangeLog
trunk/gcc/c-format.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gcc.dg/format/array-1.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32953