[LLVMbugs] [Bug 281] llvm-gcc segfaults on code with large structure and initializer
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Mar 10 11:46:21 PST 2004
http://llvm.cs.uiuc.edu/bugs/show_bug.cgi?id=281
criswell at uiuc.edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
------- Additional Comments From criswell at uiuc.edu 2004-03-10 13:46 -------
Fixed:
http://mail.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20040308/012946.html
The code to create structure types did two things wrong:
1) It did not do bounds checking on the arrays used to hold the types of
structure members.
2) The static arrays for structure member types was 200. LLVM can handle
structures with 256 (0-255) members.
I changed the size of the arrays and put in an assertion that should prevent
llvm-gcc from creating structures that the LLVM assembler can't handle.
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
More information about the llvm-bugs
mailing list