[LLVMbugs] [Bug 18905] No -Wformat warning on unterminated format string

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 20 09:12:55 PST 2014


http://llvm.org/bugs/show_bug.cgi?id=18905

Benjamin Kramer <benny.kra at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |benny.kra at gmail.com
         Resolution|---                         |FIXED

--- Comment #1 from Benjamin Kramer <benny.kra at gmail.com> ---
Fixed in r201795.

$ clang -Weverything s2.c
s2.c:4:10: warning: format string is not null-terminated [-Wformat]
  printf(s);
         ^
s2.c:3:21: note: format string is defined here
  const char s[1] = "s";
                    ^~~

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140220/f4cc546b/attachment.html>


More information about the llvm-bugs mailing list