[LLVMbugs] [Bug 9098] diagnose obvious array out of bounds access
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 16 16:09:41 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9098
Ted Kremenek <kremenek at apple.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
--- Comment #2 from Ted Kremenek <kremenek at apple.com> 2011-02-16 18:09:40 CST ---
We now implement this warning:
t.c:3:3: warning: array index of '100' indexes past the end of an array (that
contains 100 elements) [-Warray-bounds]
foo[100] = '\0';
^ ~~~
t.c:2:2: note: array 'foo' declared here
char foo[100];
^
Went in here:
r125640
r125649
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list