CWE Rule 484
Description
Rule Description
The program omits a break statement within a switch or similar construct, causing code associated with multiple conditions to execute. This can cause problems when the programmer only intended to execute code associated with one condition.
Polyspace Implementation
The rule checker checks for Missing break of switch case.
Examples
Check Information
Category: Behavioral Problems |
Version History
Introduced in R2023a