TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
ASML C Coding Standard
Search

Rule:  5.1.2.b

Synopsis:Local variables shall not cause stack overflow.
Language:C
Severity Level:3
Category:Conceptual Models


Description:

Justification

Stack overflow can result in a critical system failure, like board reboot. Stack overflow will happen when the total size of function arguments and local variables exceeds the available stack size.

This rule is only relevant for boards with limited stack size. This rule will fire when the configured size (in the static code checker) is exceeded. In exceptional cases exceeding this limit is acceptable and suppression of the rule by the developer is allowed. This is only allowed if the developer is 100% sure that no runtime problem will happen.