30 lines
980 B
Plaintext
30 lines
980 B
Plaintext
== Why is this an issue?
|
|
|
|
This problem is completely avoided by the use of function prototypes. See MISRA C:2004 Rule 8.1. This rule is retained since compilers may not flag this constraint error.
|
|
|
|
|
|
== Resources
|
|
|
|
* MISRA C:2004, 16.6 - The number of arguments passed to a function shall match the number of parameters.
|
|
* CWE - https://cwe.mitre.org/data/definitions/628[CWE-628 - Function Call with Incorrectly Specified Arguments]
|
|
* https://wiki.sei.cmu.edu/confluence/x/7NYxBQ[CERT, DCL07-C.] - Include the appropriate type information in function declarators
|
|
* https://wiki.sei.cmu.edu/confluence/x/49UxBQ[CERT, EXP37-C.] - Call functions with the correct number and type of arguments
|
|
|
|
ifdef::env-github,rspecator-view[]
|
|
|
|
'''
|
|
== Implementation Specification
|
|
(visible only on this page)
|
|
|
|
include::../message.adoc[]
|
|
|
|
include::../highlighting.adoc[]
|
|
|
|
'''
|
|
== Comments And Links
|
|
(visible only on this page)
|
|
|
|
include::../comments-and-links.adoc[]
|
|
|
|
endif::env-github,rspecator-view[]
|