VariantDraft

CWE-683Function Call With Incorrect Order of Arguments

Category: other

Description

The product calls a function, procedure, or routine, but the caller specifies the arguments in an incorrect order, leading to resultant weaknesses. While this weakness might be caught by the compiler in some languages, it can occur more frequently in cases in which the called function accepts variable numbers or types of arguments, such as format strings in C. It also can occur in languages or environments that do not enforce strong typing.

Common consequences· 1

  • Other — Quality Degradation

Potential mitigations· 1

  • [Implementation]Use the function, procedure, or routine as specified.

References

  1. https://cwe.mitre.org/data/definitions/683.html

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CWE
Function Call With Incorrect Argument Type
CWE
Function Call With Incorrect Number of Arguments
CWE
Function Call with Incorrectly Specified Arguments
CWE
Function Call With Incorrect Variable or Reference as Argument
CWE
Function Call With Incorrectly Specified Argument Value
CWE
Invokable Control Element with Signature Containing an Excessive Number of Parameters
Sourced from MITRE CWE 4.20. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.