...
| Code Block | ||||
|---|---|---|---|---|
| ||||
enum { IN_STR_LEN=18, OUT_STR_LEN=20 };
|
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
enum { IN_STR_LEN=18, OUT_STR_LEN=IN_STR_LEN+2 };
|
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
enum { ADULT_AGE=18 };
/* misleading, relationship established when none exists */
enum { ALCOHOL_AGE=ADULT_AGE+3 };
|
...
| Code Block | ||||
|---|---|---|---|---|
| ||||
enum { ADULT_AGE=18 };
enum { ALCOHOL_AGE=21 };
|
...
Tool | Version | Checker | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Section | |
| 387 S section | Partially Implementedimplemented |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...
CERT C++ Secure Coding Standard: DCL08-CPP. Properly encode relationships in constant definitions
ISO/IEC 9899:19992011 Section 6.10, "Preprocessing directives," and Section 5.1.1, "Translation environment"
...