Changes: suppress coverity tool warnings

RevBy: TrustMe
pull/1/head
Alexey Shilov 15 years ago
parent 34bf373ac8
commit 5069b5988b

@ -495,6 +495,7 @@ static int wait_for_launched_process_to_exit(int socket_fd, bool wait_term)
// Wait for launched process to exit
if (wait_term)
{
// coverity[tainted_string_return_content]
g_invoked_pid = invoker_recv_pid(socket_fd);
debug("Booster's pid is %d \n ", g_invoked_pid);

@ -51,6 +51,7 @@ void SocketManager::initSocket(const string & socketId)
stat(socketId.c_str(), &sb);
if (S_ISSOCK(sb.st_mode))
{
// coverity[toctou]
if (unlink(socketId.c_str()) == -1)
{
std::string msg("SocketManager: Failed to unlink existing socket file '");

Loading…
Cancel
Save