CWE-462Duplicate Key in Associative List (Alist)

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

Metadata

CWE ID:
CWE-462
摘要:
Variant
结构:
Simple
状态:
Incomplete
发布日期:
2006-07-19
更新日期:
2025-12-11

名称

Duplicate Key in Associative List (Alist)

描述

Duplicate keys in associative lists can lead to non-unique keys being mistaken for an error.

A duplicate key entry -- if the alist is designed properly -- could be used as a constant time replace function. However, duplicate key entries could be inserted by mistake. Because of this ambiguity, duplicate key entries in an association list are not recommended and should not be allowed.

常见后果

范围:
Other
影响:
Quality Degradation, Varies by Context

相关 CWE