Common Weakness Enumeration

CWE-740

Grouping Prohibited

CERT C Secure Coding Standard (2008) Chapter 7 - Arrays (ARR)

Status: Obsolete

Weaknesses in this category are related to the rules and recommendations in the Arrays (ARR) chapter of the CERT C Secure Coding Standard (2008).

Grouping entries organize the catalogue and should not be used to map the root cause of a vulnerability.

Mapping guidance

This entry is a Grouping. Using groupings for mapping has been discouraged since 2019. They are informal organizational groupings of weaknesses that can help CWE users with data aggregation, navigation, and browsing. However, they are not weaknesses in themselves.

See member weaknesses of this category.

Relationships and members
Has Member: CWE-119 · View CWE-734
Has Member: CWE-129 · View CWE-734
Has Member: CWE-467 · View CWE-734
Has Member: CWE-469 · View CWE-734
Has Member: CWE-665 · View CWE-734
Has Member: CWE-805 · View CWE-734
Notes

Relationship

In the 2008 version of the CERT C Secure Coding standard, the following rules were mapped to the following CWE IDs:

CWE-119 ARR00-C Understand how arrays work

CWE-119 ARR33-C Guarantee that copies are made into storage of sufficient size

CWE-119 ARR34-C Ensure that array types in expressions are compatible

CWE-119 ARR35-C Do not allow loops to iterate beyond the end of an array

CWE-129 ARR00-C Understand how arrays work

CWE-129 ARR30-C Guarantee that array indices are within the valid range

CWE-129 ARR38-C Do not add or subtract an integer to a pointer if the resulting value does not refer to a valid array element

CWE-467 ARR01-C Do not apply the sizeof operator to a pointer when taking the size of an array

CWE-469 ARR36-C Do not subtract or compare two pointers that do not refer to the same array

CWE-469 ARR37-C Do not add or subtract an integer to a pointer to a non-array object

CWE-665 ARR02-C Explicitly specify array bounds, even if implicitly defined by an initializer

CWE-805 ARR33-C Guarantee that copies are made into storage of sufficient size

Content history
Submission: CWE Content Team · MITRE · 2008-11-24 · CWE 1.1
Modification: CWE Content Team · MITRE · 2011-09-13 · CWE 2.1

updated Relationships

Modification: CWE Content Team · MITRE · 2017-11-08 · CWE 3.0

updated Description, Name, Relationship_Notes

Modification: CWE Content Team · MITRE · 2019-01-03 · CWE 3.2

updated Description, Name, References

Modification: CWE Content Team · MITRE · 2023-04-27 · CWE 4.11

updated Mapping_Notes

Modification: CWE Content Team · MITRE · 2023-06-29 · CWE 4.12

updated Mapping_Notes

Modification: CWE Content Team · MITRE · 2026-10-28 · CWE 5.0

updated Mapping_Notes, Type

0 vulnerabilities reference this CWE, most recent first.

No vulnerabilities reference this CWE.

No mitigation information available for this CWE.

No CAPEC attack patterns related to this CWE.