[LLVMbugs] [Bug 18905] New: No -Wformat warning on unterminated format string
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Feb 20 00:46:30 PST 2014
http://llvm.org/bugs/show_bug.cgi?id=18905
Bug ID: 18905
Summary: No -Wformat warning on unterminated format string
Product: clang
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: chengniansun at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
$: cat s2.c
#include <stdio.h>
int main() {
const char s[1] = "s";
printf(s);
return 0;
}
$: clang-trunk -Weverything s2.c
$: gcc-trunk -Wformat s2.c
s2.c: In function ‘main’:
s2.c:4:3: warning: unterminated format string [-Wformat=]
printf(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/3cb52350/attachment.html>
More information about the llvm-bugs
mailing list