...
Code Block | ||
---|---|---|
| ||
/* ... */ FILE *fptr; errno_t res = fopen_s(&fptr, file_name, "r"); if (res != 0) { /* file does not exist */ res = fopen_s(&fptr, file_name, "w"); /* ... */ fclose(fptr); } else { fclose(fptr); } /* ... */ |
...
Recommendation | Severity | Likelihood | Remediation Cost | Priority | Level |
---|---|---|---|---|---|
FIO03-A | 2 ( medium ) 2 ( | probable ) | 1 ( high ) | P4 | L3 |
Related Vulnerabilities
...