A compiler might insert padding bytes to a structure to ensure that structure members appear in the correct location. Initializing the members of the structure does not always initialize the padding bytes.
According to ISO/IEC 9899:1999 (C99), in 6.2.6.1, paragraph 6,
...
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
|---|---|---|---|---|---|
DCL39-C | low | unlikely | medium | P2 | L3 |
Related Guidelines
ISO/IEC 9899:1999 Section 6.2.6.1 p6
Bibliography
...
DCL20-C. Always specify void even if a function accepts no arguments 02. Declarations and Initialization (DCL)