Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Edited by sciSpider (sch jbop) (X_X)@==(Q_Q)@

...

Code Block
bgColor#FFCCCC
/* ... */
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

...