During Static Source Code Analysis, rule violations and potential runtime errors (RTE) are identified in the source code. Static Source Code Analysis mainly searches for violations of the MISRA-C:2012 rules and typical runtime errors such as NULL pointer dereferences, division by zero, and out-of-bounds accesses. This helps prevent undefined or unspecified behavior, improves code readability, and avoids misunderstandings about the effects of certain C constructs. Overall, the MISRA rules aim to protect the programmer from the dangers of the C programming language.
It is crucial to avoid runtime errors as they typically lead to firmware crashes, contradicting the goal of 24/7 availability. By avoiding runtime errors in the code, the risk of firmware crashes can be minimized.