Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The rename() function has the following prototype:

Code Block
int rename(char const char *old, char const char *new);

If the file pointed to by new exists prior to a call to rename(), the behavior is implementation-defined. Therefore, care must be taken when using rename().

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

FIO10-A

2 (medium)

3 (likely)

2 (medium)

P12

L2 L1

...

Related Vulnerabilities

Wiki Markup
Search for vulnerabilities resulting from the violation of this rule on the [CERT website|https://www.kb.cert.org/vulnotes/bymetric?searchview&query=FIELD+contains+FIO10-A].h2. References
\[[ISO/IEC 9899-1999:TC2|AA. C References#ISO/IEC 9899-1999TC2]\] Section 7.9.4.2, "The {{rename}} function"