Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

remove() may lead to race conditions

Options
Corina
Corina Posts: 1
edited August 2020 in C/C++test

Hello,
I'd use the function remove() in order to delete a file in my project.
I tried also with unlink() but I have the same violation:
Usage of functions prone to race is not allowed (SECURITY-19-2)
This file removal is in the main thread, so I can suppress that rule, but it will be nicer if I will found an alternative.
Does anyone knows if there exist a function for deleting a file that will not lead to race conditions?
Thanks