CWE
Home > CWE List > CWE-686 Individual Dictionary Definition (Draft 9)   View the CWE List

CWE-686 Individual Dictionary Definition (Draft 9)

Function Call With Incorrect Argument Type
Weakness ID
Status: Draft

686 (Weakness Variant)

Description

Summary

The software calls a function, procedure, or routine, but the caller specifies an argument that is the wrong data type, leading to resultant weaknesses.

Extended Description

This weakness is most likely to occur in loosely typed languages, or in strongly typed languages in which the types of variable arguments cannot be enforced at compilation time, or where there is implicit casting.

Weakness Ordinality

Primary (Weakness exists independent of other weaknesses)

Context Notes

This issue is most likely to occur in rarely-tested code.

Relationships
NatureTypeIDName
ChildOfWeakness BaseWeakness BaseWeakness Base628Function Call with Incorrectly Specified Arguments
Time of Introduction

Implementation

Page Last Updated: April 22, 2008