mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +02:00
Guard against a potential endless loop.
This commit is contained in:
parent
7fd9e1e281
commit
7520c8821b
1 changed files with 2 additions and 1 deletions
|
@ -418,7 +418,8 @@ public class ASTTypeUtil {
|
|||
IType[] types = new IType[DEAULT_ITYPE_SIZE];
|
||||
|
||||
// push all of the types onto the stack
|
||||
while (type != null) {
|
||||
int i=0;
|
||||
while(type != null && ++i<100) {
|
||||
final boolean isTypedef= type instanceof ITypedef;
|
||||
if (!resolveTypedefs || !isTypedef) {
|
||||
types = (IType[]) ArrayUtil.append(IType.class, types, type);
|
||||
|
|
Loading…
Add table
Reference in a new issue