Weakness (CWE)
CWE-234: Failure to Handle Missing Parameter
Variant Incomplete Mapping discouraged
If too few arguments are sent to a function, the function will still pop the expected number of arguments from the stack. Potentially, a variable number of arguments could be exhausted in a function as well.
How to prevent it (2 mitigations)
-
Build and Compilation
This issue can be simply combated with the use of proper build process.
-
Implementation
Forward declare all functions. This is the recommended solution. Properly forward declaration of all used functions will result in a compiler error if too few arguments are sent to a function.
Source: MITRE CWE-234
0 results · Clear filters · Feed
Nothing found.