CWE-484: Omitted Break Statement in Switch

ID CWE-484
Abstraction Base
Structure Simple
Status Draft
The product 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.

This can lead to critical code executing in situations where it should not.

Modes of Introduction

Phase Note
Implementation

Applicable Platforms

Type Class Name Prevalence
Language C
Language C++
Language Java
Language C#
Language PHP

Relationships

View Weakness
# ID View Status # ID Name Abstraction Structure Status
CWE-1000 Research Concepts Draft CWE-710 Improper Adherence to Coding Standards Pillar Simple Incomplete
CWE-1000 Research Concepts Draft CWE-670 Always-Incorrect Control Flow Implementation Class Simple Draft
Loading...
Loading...