``` 178void 179loadConfigFile(const std::string &fileName, std::stringstream &doc, std::unordered_set<std::string> &include_once) 180{ 181 const char *sep = " \t"; 182 char *tok, *last; 183 struct stat buf; 184 std::string line; 185 CID 1508887 (#1 of 1): Time of check time of use (TOCTOU) 1. fs_check_call: Calling function stat to perform check on fileName->c_str(). 2. Condition stat(fileName->c_str(), &buf) == -1, taking false branch. 186 if (stat(fileName.c_str(), &buf) == -1) { 187 std::string err_msg = strerror(errno); 188 throw std::invalid_argument("Unable to stat '" + fileName + "': " + err_msg); 189 } ```
Activity
parent_select plugin: refactor to use std::filesystem and std::string…
parent_select plugin: refactor to use std::filesystem and std::string…
parent_select plugin: refactor to use std::filesystem and std::string…
CID 1508887 fix parent_select plugin stat Time of check. (#10260)
CID 1508887 fix parent_select plugin stat Time of check. (apache#10260)