CWE-474 - Use of Function with Inconsistent Implementations
- Abstraction:Base
- Structure:Simple
- Status:Draft
- Release Date:2006-07-19
- Latest Modification Date:2023-06-29
Weakness Name
Use of Function with Inconsistent Implementations
Description
The code uses a function that has inconsistent implementations across operating systems and versions.
The use of inconsistent implementations can cause changes in behavior when the code is ported or built under a different environment than the programmer expects, which can lead to security problems in some cases. The implementation of many functions varies by platform, and at times, even by different versions of the same platform. Implementation differences can include:
Common Consequences
Scope: Other
Impact: Quality Degradation, Varies by Context
Related Weaknesses
CWE-758Reliance on Undefined, Unspecified, or Implementation-Defined Behavior