Polyspace 对 CWE 类别的支持
常见弱点枚举 (CWE™) 是一个包含常见软件弱点类型的词典,这些弱点可能出现在软件的架构、设计、代码或实现中。这些弱点可能导致安全漏洞。CWE 规则按相关问题的类别进行分类整理。虽然这些类别本身并非弱点,但您可以将结果按特定类型的弱点进行分类整理。例如,CWE 310 属于加密问题类别,它收集与加密相关的 CWE 规则。在运行 Polyspace® Bug Finder™ 分析后,请使用 CWE 类别对代码中的 CWE 违规项按问题类型进行分组和整理。
此表列出了可映射到 Polyspace 缺陷检查项和 Polyspace CWE 编码规则检查项的 CWE 类别。
| CWE ID | CWE ID 描述 | 缺陷或 CWE 编码规则检查项 |
|---|---|---|
| 189 | Numeric Errors | |
| 227 | Improper fulfillment of API contract | |
| 251 | Often misused: string management | |
| 310 | Cryptographic issues | |
| 320 | Key management errors | |
| 387 | Signal errors | |
| 398 | Indicator of poor code quality | |
| 465 | Pointer Issues | |
| 872 | CERT C++ Secure Coding Section 04 - Integers (INT) | |
| 873 | CERT C++ Secure Coding Section 05 - Floating point arithmetic (FLP) | |
| 896 | SFP Primary Cluster: Tainted Input |
|