CWE-484Omitted Break Statement in Switch

PUBLISHEDweakness recordMedium
released 2006-07-19 · last modified 2025-12-11

Metadata

CWE ID:
CWE-484
摘要:
Base
结构:
Simple
状态:
Draft
发布日期:
2006-07-19
更新日期:
2025-12-11

名称

Omitted Break Statement in Switch

描述

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.

常见后果

范围:
Other
影响:
Alter Execution Logic
注释:
This weakness can cause unintended logic to be executed and other unexpected application behavior.

相关 CWE