Incorrect Type Conversion or Cast |
Weakness ID: 704 (Weakness Class) | Status: Incomplete |
Description Summary
The software does not correctly convert an object, resource or structure from one type to a different type.
Nature | Type | ID | Name | View(s) this relationship pertains to |
---|---|---|---|---|
ChildOf | Weakness Class | 664 | Improper Control of a Resource Through its Lifetime | Research Concepts (primary)1000 |
ChildOf | Category | 737 | CERT C Secure Coding Section 03 - Expressions (EXP) | Weaknesses Addressed by the CERT C Secure Coding Standard (primary)734 |
ChildOf | Category | 741 | CERT C Secure Coding Section 07 - Characters and Strings (STR) | Weaknesses Addressed by the CERT C Secure Coding Standard734 |
ChildOf | Category | 747 | CERT C Secure Coding Section 49 - Miscellaneous (MSC) | Weaknesses Addressed by the CERT C Secure Coding Standard734 |
ParentOf | Weakness Variant | 588 | Attempt to Access Child of a Non-structure Pointer | Research Concepts (primary)1000 |
ParentOf | Weakness Base | 681 | Incorrect Conversion between Numeric Types | Research Concepts (primary)1000 |
Mapped Taxonomy Name | Node ID | Fit | Mapped Node Name |
---|---|---|---|
CERT C Secure Coding | EXP05-C | Do not cast away a const qualification | |
CERT C Secure Coding | MSC31-C | Ensure that return values are compared against the proper type | |
CERT C Secure Coding | STR34-C | Cast characters to unsigned types before converting to larger integer sizes | |
CERT C Secure Coding | STR37-C | Arguments to character handling functions must be representable as an unsigned char |
Submissions | ||||
---|---|---|---|---|
Submission Date | Submitter | Organization | Source | |
2008-09-09 | MITRE | Internal CWE Team | ||
Modifications | ||||
Modification Date | Modifier | Organization | Source | |
2008-07-01 | Eric Dalci | Cigital | External | |
updated Time of Introduction | ||||
2008-11-24 | CWE Content Team | MITRE | Internal | |
updated Relationships, Taxonomy Mappings | ||||
2009-05-27 | CWE Content Team | MITRE | Internal | |
updated Description |