...
Noncompliant Code Example (Variadic Functions)
The POSIX function {{ Wiki Markup open()
}} \[ [Open Group 2004|AA. Bibliography#Open Group 04]\] is a variadic function with the following prototype:
Code Block |
---|
int open(const char *path, int oflag, ... ); |
...
Tool | Version | Checker | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
|
| ||||||||||||
|
|
|
| ||||||||||||
|
|
|
|
...
MITRE CWE: CWE-628, "Function Call with Incorrectly Specified Arguments"
Bibliography
...
\[[CVE|AA. Bibliography#CVE]\] [CVE-2006-1174 | http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-1174]
\[[Spinellis 2006|AA. Bibliography#Spinellis 06]\] Section
[Spinellis 2006] Section 2.6.1, "Incorrect Routine or Arguments"
...
EXP36-C. Do not convert pointers into more strictly aligned pointer types 03. Expressions (EXP) EXP38-C. Do not call offsetof() on bit-field members or invalid types