|
|
|
|
CWE-704: Incorrect Type Conversion or Cast
| | Incorrect Type Conversion or Cast |
|
| Weakness ID: 704 (Weakness Class) | | Status: Incomplete |
Description
Description Summary The software does not correctly convert an object, resource or structure from one type to a different type.
Time of Introduction
- Architecture and Design
- Implementation
Common Consequences | Scope | Effect |
Other | Technical Impact: Other |
Relationships Taxonomy Mappings | 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 |
| CERT C++ Secure Coding | STR34-CPP | | Cast characters to unsigned types before converting to larger
integer sizes |
| CERT C++ Secure Coding | STR37-CPP | | Arguments to character handling functions must be
representable as an unsigned char |
| CERT C++ Secure Coding | MSC31-CPP | | Ensure that return values are compared against the proper
type |
Content History | 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 | | 2011-06-01 | CWE Content Team | MITRE | Internal | | updated Common_Consequences,
Relationships | | 2011-09-13 | CWE Content Team | MITRE | Internal | | updated Relationships,
Taxonomy_Mappings | | 2012-05-11 | CWE Content Team | MITRE | Internal | | updated Relationships |
|