Versions Compared

Key

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

...

The return value of remove() is deliberately not checked because it is expected to fail if the file does not exist. If the file exists but cannot be removed, the rename() call will also fail, and the error will be detected at that point. This is a valid exception (EXP12-C-EX1) to EXP12-C. Do not ignore values returned by functions.

...

Tool

Version

Checker

Description

CodeSonar
Include Page
CodeSonar_V
CodeSonar_V
(customization)Users can add a custom check for all uses of rename().
LDRA tool suite
Include Page
LDRA_V
LDRA_V
592 SFully Implemented
PRQA QA-C
Include Page
PRQA QA-C_v
PRQA QA-C_v
warncall -wc rename5015Partially implemented

Related Vulnerabilities

...

Bibliography

[IEEE Std 1003.1:2013]XSH, System Interfaces, access
[MSDN]rename()

 

...

Image Modified Image Modified Image Modified