[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


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 -------

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