Incorrect Type Conversion or CastID: 704 | Date: (C)2012-05-14 (M)2022-10-10 |
Type: weakness | Status: INCOMPLETE |
Abstraction Type: Class |
Description
The software does not correctly convert an object, resource or
structure from one type to a different type.
Applicable PlatformsLanguage: OftenLanguage: CLanguage: OftenLanguage: C++Language Class: All
Time Of Introduction
- Architecture and Design
- Implementation
Common Consequences
Scope | Technical Impact | Notes |
---|
Other | Other | |
Detection MethodsNone
Potential MitigationsNone
Relationships
Related CWE | Type | View | Chain |
---|
CWE-704 ChildOf CWE-885 | Category | CWE-888 | |
Demonstrative ExamplesNone
White Box Definitions None
Black Box Definitions None
Taxynomy Mappings
Taxynomy | Id | Name | Fit |
---|
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 | |
References:None