...
Code Block | ||
---|---|---|
| ||
#define MAX_ARRAY 1024
void func(size_t s) {
int vla[s];
/* ... */
}
/* ... */
if (s < MAX_ARRAY && s != 0) {
func(s);
}
else {
/* Handle Error */
}
/* ... */
|
...
Rule | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
ARR32-C | 3 (high) | 1 2 (unlikelyprobable) | 1 (high) | P3 P6 | L3 |
Related Vulnerabilities
Search for vulnerabilities resulting from the violation of this rule on the CERT website.
...