Fix Infinite Recursion in DUChain
For typedefs using forward-declared types like typedef struct Foo Foo;
, getting the size information of the Foo
alias will refer to itself.
The recursive call of declarationSizeInformation() may then lead to an infinite number of function calls and consequently to a stack overflow.
The fix ends the recursion if the type is recurring.
Edited by Christoph Roick