Opened 16 years ago
Closed 16 years ago
#176 closed defect (fixed)
longName() method in PointerType class may cause stack overflow
| Reported by: | ywei | Owned by: | Stephen Siegel |
|---|---|---|---|
| Priority: | major | Milestone: | Release 1.0 |
| Component: | model | Version: | 1.0 |
| Keywords: | Cc: |
Description
In edu.udel.cis.vsl.tass.model.impl.type.PointerType.java, in method longName() (starting from line 61). If the base type of a pointer type is a struct type, this method will try to call the long name method in the struct type. So it may cause an infinite recursion if a struct contains a pointer to itself such as the following example:
struct Foo {
int a;
struct Foo *next;
}
If we change the method to only print out the name of the struct instead of the inner structure of the method, the infinite recursion can be avoided.
Change History (2)
comment:1 by , 16 years ago
comment:2 by , 16 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.

I think this bug has been fixed. So we can close it.