Skip to content

Commit

Permalink
Fix coverity scan issue 79015
Browse files Browse the repository at this point in the history
Time of check time of use -- An attacker could change the filename's
file association or other attributes between the check and use.
In Async::Config::open: A check occurs on a file's attributes before the
file is used in a privileged operation, but things may have changed
(CWE-367)
  • Loading branch information
sm0svx committed Jan 21, 2015
1 parent d1e3983 commit 9770559
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/async/core/AsyncConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -130,12 +130,6 @@ Config::~Config(void)

bool Config::open(const string& name)
{
if (access(name.c_str(), R_OK) != 0)
{
//perror("Config::open");
return false;
}

file = fopen(name.c_str(), "r");
if (file == NULL)
{
Expand Down

0 comments on commit 9770559

Please sign in to comment.