...
Code Block | ||
---|---|---|
| ||
int test (int x) { x--; if (x < 0 || x > 10) { return 0; } else { static int y = test(x); //<--undefined behavior occurs here return y; } } |
...
Code Block | ||
---|---|---|
| ||
int test (int x) { x--; if (x < 0 || x > 10) { return 0; } else { static int y; y = test(x); return y; } } |
...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
DCL38-CPP | med low | unlikely | low medium | P6 P2 | L3 |
Related Vulnerabilities
...