Bug #6560
closed
Determine incomplete types in the module scope
Added by Ilja Zakharov almost 9 years ago.
Updated over 6 years ago.
Category:
Environment models
Description
EMG requires extraction of header file names for each signature type.
- Category set to Environment models
Please, clarify in the topic whether you just expect that SA will extract this information or EMG will use it when generating environment model.
SA for each signature extracted during source code analysis should set flag (for example) which identify that the type is incomplete in module scope. This should be taken into account by EMG to avoid memory allocation for them. Instead it should initialize them as undefined pointers.
- Subject changed from Extract signature type headers in SA to Determine incomplete types in the module scope
- Priority changed from Normal to High
We decided to temporarily avoid allocation of memory for incomplete types. Later we will need to discover why is this required and how to properly do this.
Current implementation of EMG does not provide size of a type correctly to avoid the problem but memory allocation function still should have such parameter to be used in EMG.
- Status changed from New to Open
- Priority changed from High to Normal
The problem also cause errors like 'dereferencing pointer to incomplete type'.
- Status changed from Open to Closed
There is no any problems with scope now, so the issue can be closed now as useless.
Also available in: Atom
PDF