[LLVMbugs] [Bug 20432] call using struct
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Jul 24 14:34:24 PDT 2014
http://llvm.org/bugs/show_bug.cgi?id=20432
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |richard-llvm at metafoo.co.uk
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
(In reply to comment #0)
> typedef struct{
> char x[0];
> } X;
>
> int main() {
> X xxx;
> xxx.x[0] = '0'; // '0' == 0x30
This line has undefined behavior due to buffer overflow.
--
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/20140724/a3ad744f/attachment.html>
More information about the llvm-bugs
mailing list