mirror of https://github.com/BOINC/boinc.git
ignore time of check to of use defect
This is intentional and only an issue if multiple work generators are creating input files that have the same name but different content. Ignores CID 27922, 27993 found by Coverity
This commit is contained in:
parent
7c8be3f478
commit
d160bb371b
|
@ -57,6 +57,7 @@ static bool got_md5_info(
|
|||
|
||||
// get mod time for md5 cache file
|
||||
//
|
||||
// coverity[toctou]
|
||||
if (stat(md5name, &md5stat)) {
|
||||
return false;
|
||||
}
|
||||
|
@ -107,6 +108,7 @@ static void write_md5_info(
|
|||
|
||||
// if file already exists with this name, don't touch it.
|
||||
//
|
||||
// coverity[toctou]
|
||||
sprintf(md5name, "%s.md5", path);
|
||||
if (!stat(md5name, &statbuf)) {
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue