Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/evqueue-core-2.1/src/base64.cpp
Examining data/evqueue-core-2.1/src/Task.cpp
Examining data/evqueue-core-2.1/src/Sockets.cpp
Examining data/evqueue-core-2.1/src/WorkflowInstances.cpp
Examining data/evqueue-core-2.1/src/WorkflowSchedule.cpp
Examining data/evqueue-core-2.1/src/ActiveConnections.cpp
Examining data/evqueue-core-2.1/src/AuthHandler.cpp
Examining data/evqueue-core-2.1/src/ExceptionWorkflowContext.cpp
Examining data/evqueue-core-2.1/src/DOMNamedNodeMap.cpp
Examining data/evqueue-core-2.1/src/ConfigurationReader.cpp
Examining data/evqueue-core-2.1/src/WorkflowSchedules.cpp
Examining data/evqueue-core-2.1/src/DOMXPathResult.cpp
Examining data/evqueue-core-2.1/src/debug.cpp
Examining data/evqueue-core-2.1/src/tools_env.cpp
Examining data/evqueue-core-2.1/src/RetrySchedule.cpp
Examining data/evqueue-core-2.1/src/SocketQuerySAX2Handler.cpp
Examining data/evqueue-core-2.1/src/evqueue_monitor.cpp
Examining data/evqueue-core-2.1/src/WorkflowParameters.cpp
Examining data/evqueue-core-2.1/src/QueuePool.cpp
Examining data/evqueue-core-2.1/src/WorkflowInstanceAPI.cpp
Examining data/evqueue-core-2.1/src/Scheduler.cpp
Examining data/evqueue-core-2.1/src/FileManager.cpp
Examining data/evqueue-core-2.1/src/DOMElement.cpp
Examining data/evqueue-core-2.1/src/DOMNode.cpp
Examining data/evqueue-core-2.1/src/LibGit2.cpp
Examining data/evqueue-core-2.1/src/SequenceGenerator.cpp
Examining data/evqueue-core-2.1/src/Queue.cpp
Examining data/evqueue-core-2.1/src/XMLFormatter.cpp
Examining data/evqueue-core-2.1/src/XMLUtils.cpp
Examining data/evqueue-core-2.1/src/tools.cpp
Examining data/evqueue-core-2.1/src/Filesystem.cpp
Examining data/evqueue-core-2.1/src/GarbageCollector.cpp
Examining data/evqueue-core-2.1/src/pbkdf2.cpp
Examining data/evqueue-core-2.1/src/Statistics.cpp
Examining data/evqueue-core-2.1/src/Workflow.cpp
Examining data/evqueue-core-2.1/src/SocketResponseSAX2Handler.cpp
Examining data/evqueue-core-2.1/src/ClientBase.cpp
Examining data/evqueue-core-2.1/src/Logs.cpp
Examining data/evqueue-core-2.1/src/include/ClientBase.h
Examining data/evqueue-core-2.1/src/include/XPathFunctions.h
Examining data/evqueue-core-2.1/src/include/DB.h
Examining data/evqueue-core-2.1/src/include/XMLString.h
Examining data/evqueue-core-2.1/src/include/Schedule.h
Examining data/evqueue-core-2.1/src/include/UniqueAction.h
Examining data/evqueue-core-2.1/src/include/NotificationType.h
Examining data/evqueue-core-2.1/src/include/GarbageCollector.h
Examining data/evqueue-core-2.1/src/include/WorkflowSchedules.h
Examining data/evqueue-core-2.1/src/include/NotificationTypes.h
Examining data/evqueue-core-2.1/src/include/QueryHandlers.h
Examining data/evqueue-core-2.1/src/include/RetrySchedules.h
Examining data/evqueue-core-2.1/src/include/Tasks.h
Examining data/evqueue-core-2.1/src/include/APIObjectList.h
Examining data/evqueue-core-2.1/src/include/RetrySchedule.h
Examining data/evqueue-core-2.1/src/include/XMLFormatter.h
Examining data/evqueue-core-2.1/src/include/DOMElement.h
Examining data/evqueue-core-2.1/src/include/WorkflowInstances.h
Examining data/evqueue-core-2.1/src/include/Configuration.h
Examining data/evqueue-core-2.1/src/include/DOMNamedNodeMap.h
Examining data/evqueue-core-2.1/src/include/WorkflowXPathFunctions.h
Examining data/evqueue-core-2.1/src/include/User.h
Examining data/evqueue-core-2.1/src/include/Workflows.h
Examining data/evqueue-core-2.1/src/include/WorkflowSchedule.h
Examining data/evqueue-core-2.1/src/include/XPathOperators.h
Examining data/evqueue-core-2.1/src/include/Task.h
Examining data/evqueue-core-2.1/src/include/Users.h
Examining data/evqueue-core-2.1/src/include/XPathEval.h
Examining data/evqueue-core-2.1/src/include/Scheduler.h
Examining data/evqueue-core-2.1/src/include/LibGit2.h
Examining data/evqueue-core-2.1/src/include/QueryResponse.h
Examining data/evqueue-core-2.1/src/include/tables.h
Examining data/evqueue-core-2.1/src/include/tools_env.h
Examining data/evqueue-core-2.1/src/include/Datastore.h
Examining data/evqueue-core-2.1/src/include/SequenceGenerator.h
Examining data/evqueue-core-2.1/src/include/Random.h
Examining data/evqueue-core-2.1/src/include/SocketQuerySAX2Handler.h
Examining data/evqueue-core-2.1/src/include/base64.h
Examining data/evqueue-core-2.1/src/include/WorkflowScheduler.h
Examining data/evqueue-core-2.1/src/include/tools.h
Examining data/evqueue-core-2.1/src/include/ActiveConnections.h
Examining data/evqueue-core-2.1/src/include/QueuePool.h
Examining data/evqueue-core-2.1/src/include/XPathParser.h
Examining data/evqueue-core-2.1/src/include/evqueue_agent.h
Examining data/evqueue-core-2.1/src/include/Exception.h
Examining data/evqueue-core-2.1/src/include/hmac.h
Examining data/evqueue-core-2.1/src/include/ExceptionWorkflowContext.h
Examining data/evqueue-core-2.1/src/include/SocketResponseSAX2Handler.h
Examining data/evqueue-core-2.1/src/include/pbkdf2.h
Examining data/evqueue-core-2.1/src/include/Statistics.h
Examining data/evqueue-core-2.1/src/include/AuthHandler.h
Examining data/evqueue-core-2.1/src/include/Sha1String.h
Examining data/evqueue-core-2.1/src/include/Filesystem.h
Examining data/evqueue-core-2.1/src/include/DOMXPathResult.h
Examining data/evqueue-core-2.1/src/include/DOMXPath.h
Examining data/evqueue-core-2.1/src/include/Notification.h
Examining data/evqueue-core-2.1/src/include/ping.h
Examining data/evqueue-core-2.1/src/include/FileManager.h
Examining data/evqueue-core-2.1/src/include/XPathTokens.h
Examining data/evqueue-core-2.1/src/include/global.h
Examining data/evqueue-core-2.1/src/include/DOMNode.h
Examining data/evqueue-core-2.1/src/include/sha1.h
Examining data/evqueue-core-2.1/src/include/DOMDocument.h
Examining data/evqueue-core-2.1/src/include/WorkflowInstance.h
Examining data/evqueue-core-2.1/src/include/tools_db.h
Examining data/evqueue-core-2.1/src/include/Git.h
Examining data/evqueue-core-2.1/src/include/Cluster.h
Examining data/evqueue-core-2.1/src/include/ProcessManager.h
Examining data/evqueue-core-2.1/src/include/DOMText.h
Examining data/evqueue-core-2.1/src/include/tools_ipc.h
Examining data/evqueue-core-2.1/src/include/ExceptionManager.h
Examining data/evqueue-core-2.1/src/include/Logs.h
Examining data/evqueue-core-2.1/src/include/Logger.h
Examining data/evqueue-core-2.1/src/include/Workflow.h
Examining data/evqueue-core-2.1/src/include/Notifications.h
Examining data/evqueue-core-2.1/src/include/XMLUtils.h
Examining data/evqueue-core-2.1/src/include/ConfigurationReader.h
Examining data/evqueue-core-2.1/src/include/SocketSAX2Handler.h
Examining data/evqueue-core-2.1/src/include/NetworkInputSource.h
Examining data/evqueue-core-2.1/src/include/BinNetworkInputStream.h
Examining data/evqueue-core-2.1/src/include/Sockets.h
Examining data/evqueue-core-2.1/src/include/WorkflowParameters.h
Examining data/evqueue-core-2.1/src/include/Retrier.h
Examining data/evqueue-core-2.1/src/include/Client.h
Examining data/evqueue-core-2.1/src/include/handle_connection.h
Examining data/evqueue-core-2.1/src/include/Queue.h
Examining data/evqueue-core-2.1/src/include/WorkflowInstanceAPI.h
Examining data/evqueue-core-2.1/src/evqueue_agent.cpp
Examining data/evqueue-core-2.1/src/DOMXPath.cpp
Examining data/evqueue-core-2.1/src/Git.cpp
Examining data/evqueue-core-2.1/src/Datastore.cpp
Examining data/evqueue-core-2.1/src/WorkflowXPathFunctions.cpp
Examining data/evqueue-core-2.1/src/Logger.cpp
Examining data/evqueue-core-2.1/src/QueryResponse.cpp
Examining data/evqueue-core-2.1/src/ProcessManager.cpp
Examining data/evqueue-core-2.1/src/NotificationTypes.cpp
Examining data/evqueue-core-2.1/src/evqueue.cpp
Examining data/evqueue-core-2.1/src/WorkflowInstance.cpp
Examining data/evqueue-core-2.1/src/Sha1String.cpp
Examining data/evqueue-core-2.1/src/XPathFunctions.cpp
Examining data/evqueue-core-2.1/src/handle_connection.cpp
Examining data/evqueue-core-2.1/src/Notifications.cpp
Examining data/evqueue-core-2.1/src/DOMDocument.cpp
Examining data/evqueue-core-2.1/src/Schedule.cpp
Examining data/evqueue-core-2.1/src/Configuration.cpp
Examining data/evqueue-core-2.1/src/UniqueAction.cpp
Examining data/evqueue-core-2.1/src/ping.cpp
Examining data/evqueue-core-2.1/src/XPathParser.cpp
Examining data/evqueue-core-2.1/src/Retrier.cpp
Examining data/evqueue-core-2.1/src/evqueue_notification_monitor.cpp
Examining data/evqueue-core-2.1/src/SocketSAX2Handler.cpp
Examining data/evqueue-core-2.1/src/XPathOperators.cpp
Examining data/evqueue-core-2.1/src/NotificationType.cpp
Examining data/evqueue-core-2.1/src/BinNetworkInputStream.cpp
Examining data/evqueue-core-2.1/src/Users.cpp
Examining data/evqueue-core-2.1/src/DOMText.cpp
Examining data/evqueue-core-2.1/src/tables.cpp
Examining data/evqueue-core-2.1/src/XPathEval.cpp
Examining data/evqueue-core-2.1/src/tools_db.cpp
Examining data/evqueue-core-2.1/src/DB.cpp
Examining data/evqueue-core-2.1/src/NetworkInputSource.cpp
Examining data/evqueue-core-2.1/src/Notification.cpp
Examining data/evqueue-core-2.1/src/sha1.c
Examining data/evqueue-core-2.1/src/Workflows.cpp
Examining data/evqueue-core-2.1/src/tools_ipc.cpp
Examining data/evqueue-core-2.1/src/WorkflowScheduler.cpp
Examining data/evqueue-core-2.1/src/Exception.cpp
Examining data/evqueue-core-2.1/src/XPathTokens.cpp
Examining data/evqueue-core-2.1/src/XMLString.cpp
Examining data/evqueue-core-2.1/src/ExceptionManager.cpp
Examining data/evqueue-core-2.1/src/User.cpp
Examining data/evqueue-core-2.1/src/Client.cpp
Examining data/evqueue-core-2.1/src/hmac.cpp
Examining data/evqueue-core-2.1/src/QueryHandlers.cpp
Examining data/evqueue-core-2.1/src/workflow.xsd.cpp
Examining data/evqueue-core-2.1/src/Cluster.cpp
Examining data/evqueue-core-2.1/src/Tasks.cpp
Examining data/evqueue-core-2.1/src/retry_schedule.xsd.cpp
Examining data/evqueue-core-2.1/src/evqueue_wfmanager.cpp
Examining data/evqueue-core-2.1/src/Random.cpp
Examining data/evqueue-core-2.1/src/RetrySchedules.cpp
Examining data/evqueue-core-2.1/src/evqueue_api.cpp

FINAL RESULTS:

data/evqueue-core-2.1/src/evqueue.cpp:320:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
				if(chown(pid_directory,uid,-1)!=0)
data/evqueue-core-2.1/src/evqueue.cpp:326:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
				if(chown(pid_directory,-1,gid)!=0)
data/evqueue-core-2.1/src/evqueue.cpp:562:4:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			chmod(config->Get("network.bind.path").c_str(),0777);
data/evqueue-core-2.1/src/ClientBase.cpp:195:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(serv_addr.sun_path,host.c_str());
data/evqueue-core-2.1/src/LibGit2.cpp:101:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(filename_c, filename.c_str());
data/evqueue-core-2.1/src/Logger.cpp:59:6:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	n = vsnprintf(buf,1024,msg,ap);
data/evqueue-core-2.1/src/Notification.cpp:106:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl(notification_monitor_path.c_str(),notification_monitor_path.c_str(),notification_binary.c_str(),str_timeout,str_instance_id,str_errors,unix_socket_path.c_str(),(char *)0);
data/evqueue-core-2.1/src/ProcessManager.cpp:408:4:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execv(monitor_path.c_str(),(char * const *)args);
data/evqueue-core-2.1/src/ProcessManager.cpp:416:4:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execl(monitor_path.c_str(),monitor_path.c_str(),task_filename.c_str(),tid_str,(char *)0);
data/evqueue-core-2.1/src/ProcessManager.cpp:503:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(log_filename,"%s/%d.stdout",logs_directory.c_str(),tid);
data/evqueue-core-2.1/src/ProcessManager.cpp:505:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(log_filename,"%s/%d.stderr",logs_directory.c_str(),tid);
data/evqueue-core-2.1/src/ProcessManager.cpp:507:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(log_filename,"%s/%d.log",logs_directory.c_str(),tid);
data/evqueue-core-2.1/src/evqueue.cpp:555:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(local_addr_unix.sun_path,config->Get("network.bind.path").c_str());
data/evqueue-core-2.1/src/evqueue_agent.cpp:72:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(child_argv[0],child_argv);
data/evqueue-core-2.1/src/evqueue_monitor.cpp:147:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(task_argv[0],ssh_path);
data/evqueue-core-2.1/src/evqueue_monitor.cpp:158:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(task_argv[current_arg],ssh_key);
data/evqueue-core-2.1/src/evqueue_monitor.cpp:168:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(task_argv[current_arg],"%s@%s",ssh_user,ssh_host);
data/evqueue-core-2.1/src/evqueue_monitor.cpp:173:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(task_argv[current_arg],ssh_host);
data/evqueue-core-2.1/src/evqueue_monitor.cpp:182:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(task_argv[current_arg],"cd %s;",working_directory);
data/evqueue-core-2.1/src/evqueue_monitor.cpp:240:12:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		status = execv(task_argv[0],task_argv);
data/evqueue-core-2.1/src/evqueue_notification_monitor.cpp:103:12:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		status = execl(cmd_filename,cmd_filename,wfi_id,wfi_errors,unix_socket_path,(char *)0);
data/evqueue-core-2.1/src/Configuration.cpp:175:24:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			const char *value = getenv(var_name.c_str());
data/evqueue-core-2.1/src/ProcessManager.cpp:361:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("EVQUEUE_SSH_HOST"))
data/evqueue-core-2.1/src/evqueue.cpp:651:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				delete random;
data/evqueue-core-2.1/src/evqueue_monitor.cpp:66:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	int msgqid = ipc_openq(getenv("EVQUEUE_IPC_QID"));
data/evqueue-core-2.1/src/evqueue_monitor.cpp:76:5:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if(getenv("EVQUEUE_SSH_AGENT"))
data/evqueue-core-2.1/src/evqueue_monitor.cpp:97:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *working_directory = getenv("EVQUEUE_WORKING_DIRECTORY");
data/evqueue-core-2.1/src/evqueue_monitor.cpp:101:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("EVQUEUE_SSH_HOST"))
data/evqueue-core-2.1/src/evqueue_monitor.cpp:103:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("EVQUEUE_SSH_KEY"))
data/evqueue-core-2.1/src/evqueue_monitor.cpp:106:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("EVQUEUE_SSH_AGENT"))
data/evqueue-core-2.1/src/evqueue_monitor.cpp:145:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			const char *ssh_path = getenv("EVQUEUE_SSH_PATH");
data/evqueue-core-2.1/src/evqueue_monitor.cpp:150:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			const char *ssh_key = getenv("EVQUEUE_SSH_KEY");
data/evqueue-core-2.1/src/evqueue_monitor.cpp:163:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			const char *ssh_host = getenv("EVQUEUE_SSH_HOST");
data/evqueue-core-2.1/src/evqueue_monitor.cpp:164:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			const char *ssh_user = getenv("EVQUEUE_SSH_USER");
data/evqueue-core-2.1/src/evqueue_monitor.cpp:187:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			if(getenv("EVQUEUE_SSH_AGENT"))
data/evqueue-core-2.1/src/evqueue_monitor.cpp:188:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
				task_argv[current_arg++] = getenv("EVQUEUE_SSH_AGENT");
data/evqueue-core-2.1/src/evqueue_monitor.cpp:259:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if(getenv("EVQUEUE_SSH_AGENT"))
data/evqueue-core-2.1/src/evqueue_notification_monitor.cpp:72:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	int msgqid = ipc_openq(getenv("EVQUEUE_IPC_QID"));
data/evqueue-core-2.1/src/evqueue_notification_monitor.cpp:92:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		const char *working_directory = getenv("EVQUEUE_WORKING_DIRECTORY");
data/evqueue-core-2.1/src/ClientBase.cpp:185:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&serv_addr.sin_addr, he->h_addr_list[0], he->h_length);
data/evqueue-core-2.1/src/Cluster.cpp:60:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c_hash[20];
data/evqueue-core-2.1/src/Configuration.cpp:187:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/evqueue-core-2.1/src/ConfigurationReader.cpp:36:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[CONFIGURATION_LINE_MAXLEN];
data/evqueue-core-2.1/src/ConfigurationReader.cpp:46:5:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		f=fopen(filename,"r");
data/evqueue-core-2.1/src/DB.cpp:176:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(escaped_query+j,"NULL");
data/evqueue-core-2.1/src/DB.cpp:185:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						j += sprintf(escaped_query+j,"%d",*arg_int);
data/evqueue-core-2.1/src/DB.cpp:188:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(escaped_query+j,"NULL");
data/evqueue-core-2.1/src/DB.cpp:287:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(escaped_query+j,"NULL");
data/evqueue-core-2.1/src/DB.cpp:296:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						j += sprintf(escaped_query+j,"%d",*arg_int);
data/evqueue-core-2.1/src/DB.cpp:299:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(escaped_query+j,"NULL");
data/evqueue-core-2.1/src/DB.cpp:394:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(escaped_query+j,"NULL");
data/evqueue-core-2.1/src/DB.cpp:403:12:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
						j += sprintf(escaped_query+j,"%d",*arg_int);
data/evqueue-core-2.1/src/DB.cpp:406:7:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
						strcpy(escaped_query+j,"NULL");
data/evqueue-core-2.1/src/Datastore.cpp:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char output_chunk[16384];
data/evqueue-core-2.1/src/FileManager.cpp:62:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(path.c_str(),O_CREAT|O_RDWR|O_TRUNC,S_IRUSR|S_IWUSR|S_IRGRP|S_IROTH);
data/evqueue-core-2.1/src/FileManager.cpp:64:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(path.c_str(),O_CREAT|O_EXCL|O_RDWR,S_IRWXU|S_IRGRP|S_IXGRP|S_IROTH|S_IXOTH);
data/evqueue-core-2.1/src/FileManager.cpp:100:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(path.c_str(),O_RDONLY);
data/evqueue-core-2.1/src/FileManager.cpp:119:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(path.c_str(),O_RDONLY);
data/evqueue-core-2.1/src/FileManager.cpp:128:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c_hash[20];
data/evqueue-core-2.1/src/GarbageCollector.cpp:154:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[32];
data/evqueue-core-2.1/src/Git.cpp:404:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(full_filename.c_str(), "w");
data/evqueue-core-2.1/src/LibGit2.cpp:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char oid_c[GIT_OID_HEXSZ+1];
data/evqueue-core-2.1/src/LibGit2.cpp:286:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(ref_str,"refs/heads/master");
data/evqueue-core-2.1/src/Logger.cpp:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/evqueue-core-2.1/src/Notification.cpp:101:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char str_timeout[16],str_instance_id[16],str_errors[16];
data/evqueue-core-2.1/src/Notification.cpp:102:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str_timeout,"%d",Configuration::GetInstance()->GetInt("notifications.tasks.timeout"));
data/evqueue-core-2.1/src/Notification.cpp:103:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str_instance_id,"%d",workflow_instance->GetInstanceID());
data/evqueue-core-2.1/src/Notification.cpp:104:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(str_errors,"%d",workflow_instance->GetErrors());
data/evqueue-core-2.1/src/NotificationTypes.cpp:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char db_hash[20];
data/evqueue-core-2.1/src/ProcessManager.cpp:283:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32],tid_str[16];
data/evqueue-core-2.1/src/ProcessManager.cpp:327:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(tid_str,"%d",tid);
data/evqueue-core-2.1/src/ProcessManager.cpp:397:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			const char *args[parameters_count+4];
data/evqueue-core-2.1/src/ProcessManager.cpp:432:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[32];
data/evqueue-core-2.1/src/ProcessManager.cpp:433:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(buf,"%03ld",parameters_name.size());
data/evqueue-core-2.1/src/ProcessManager.cpp:439:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
				sprintf(buf,"%09ld%09ld",parameters_name[parameters_index].length(),parameters_value[parameters_index].length());
data/evqueue-core-2.1/src/ProcessManager.cpp:510:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fno=open(log_filename,O_WRONLY|O_CREAT|O_TRUNC,S_IRUSR|S_IWUSR);
data/evqueue-core-2.1/src/ProcessManager.cpp:539:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f  = fopen(log_filename.c_str(),"r+");
data/evqueue-core-2.1/src/ProcessManager.cpp:594:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f  = fopen(log_filename.c_str(),"r+");
data/evqueue-core-2.1/src/ProcessManager.cpp:602:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char output[size+1];
data/evqueue-core-2.1/src/QueuePool.cpp:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[10];
data/evqueue-core-2.1/src/QueuePool.cpp:55:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/proc/sys/kernel/pid_max","r");
data/evqueue-core-2.1/src/QueuePool.cpp:64:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	maxpid = atoi(buf);
data/evqueue-core-2.1/src/Random.cpp:44:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char random_buf[1024];
data/evqueue-core-2.1/src/Random.cpp:45:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen("/dev/urandom","r");
data/evqueue-core-2.1/src/Sha1String.cpp:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c_hash[20];
data/evqueue-core-2.1/src/Sha1String.cpp:61:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char c_hash[20];
data/evqueue-core-2.1/src/SocketResponseSAX2Handler.cpp:108:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(chars_nt,chars,length*sizeof(XMLCh));
data/evqueue-core-2.1/src/Tasks.cpp:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char db_hash[20];
data/evqueue-core-2.1/src/Workflow.cpp:110:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char e[256];
data/evqueue-core-2.1/src/Workflow.cpp:111:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(e, "Invalid number of parameters. Workflow expects %d, but %d are given.",workflow_template_parameters,passed_parameters);
data/evqueue-core-2.1/src/WorkflowInstance.cpp:159:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char e[256];
data/evqueue-core-2.1/src/WorkflowInstance.cpp:160:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
			sprintf(e, "Invalid number of parameters passed to workflow (passed %d, expected %d)",passed_parameters,workflow_template_parameters);
data/evqueue-core-2.1/src/WorkflowInstance.cpp:680:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32],tid_str[16];
data/evqueue-core-2.1/src/WorkflowInstance.cpp:1264:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/evqueue-core-2.1/src/WorkflowInstance.cpp:1512:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[64];
data/evqueue-core-2.1/src/WorkflowInstance.cpp:1513:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(str,"%d-%02d-%02d %02d:%02d:%02d",1900+t_desc.tm_year,t_desc.tm_mon+1,t_desc.tm_mday,t_desc.tm_hour,t_desc.tm_min,t_desc.tm_sec);
data/evqueue-core-2.1/src/WorkflowScheduler.cpp:87:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[32];
data/evqueue-core-2.1/src/WorkflowScheduler.cpp:292:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/evqueue-core-2.1/src/base64.cpp:28:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char b64_table[64] = {
data/evqueue-core-2.1/src/base64.cpp:37:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char b64_rev_table[0x80];
data/evqueue-core-2.1/src/base64.cpp:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char block_str[3];
data/evqueue-core-2.1/src/base64.cpp:85:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char b64_rev_table[0x80];
data/evqueue-core-2.1/src/base64.cpp:91:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char block_str[3];
data/evqueue-core-2.1/src/base64.cpp:134:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char block_str[3];
data/evqueue-core-2.1/src/base64.cpp:167:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char block_str[3];
data/evqueue-core-2.1/src/evqueue.cpp:184:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			ipc_terminate_tid = atoi(argv[i+1]);
data/evqueue-core-2.1/src/evqueue.cpp:341:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *pidfile = fopen(config->Get("core.pidfile").c_str(),"w");
data/evqueue-core-2.1/src/evqueue_agent.cpp:109:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[4096];
data/evqueue-core-2.1/src/evqueue_api.cpp:98:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char c_hash[20];
data/evqueue-core-2.1/src/evqueue_monitor.cpp:70:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	pid_t tid = atoi(argv[2]);
data/evqueue-core-2.1/src/evqueue_monitor.cpp:154:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
				strcpy(task_argv[current_arg],"-i");
data/evqueue-core-2.1/src/evqueue_monitor.cpp:265:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char line_buf[4096];
data/evqueue-core-2.1/src/evqueue_monitor.cpp:272:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[4096];
data/evqueue-core-2.1/src/evqueue_monitor.cpp:287:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				data_fd = atoi(buf);
data/evqueue-core-2.1/src/evqueue_monitor.cpp:298:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				data_size = atoi(buf);
data/evqueue-core-2.1/src/evqueue_monitor.cpp:357:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[4096];
data/evqueue-core-2.1/src/evqueue_monitor.cpp:392:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int prct = atoi(buf+1);
data/evqueue-core-2.1/src/evqueue_notification_monitor.cpp:76:16:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int timeout = atoi(argv[2]);
data/evqueue-core-2.1/src/evqueue_wfmanager.cpp:163:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char c_hash[20];
data/evqueue-core-2.1/src/handle_connection.cpp:62:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char remote_addr_str[16] = "local";
data/evqueue-core-2.1/src/handle_connection.cpp:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/evqueue-core-2.1/src/sha1.c:51:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char fillbuf[64] = { 0x80, 0 /* , 0, 0, ...  */ };
data/evqueue-core-2.1/src/sha1.c:76:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (cp, &v, sizeof v);
data/evqueue-core-2.1/src/sha1.c:112:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (&((char *) ctx->buffer)[bytes], fillbuf, (size - 2) * 4 - bytes);
data/evqueue-core-2.1/src/sha1.c:222:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&((char *) ctx->buffer)[left_over], buffer, add);
data/evqueue-core-2.1/src/sha1.c:231:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ctx->buffer,
data/evqueue-core-2.1/src/sha1.c:249:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            sha1_process_block (memcpy (ctx->buffer, buffer, 64), 64, ctx);
data/evqueue-core-2.1/src/sha1.c:267:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&((char *) ctx->buffer)[left_over], buffer, len);
data/evqueue-core-2.1/src/sha1.c:273:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          memcpy (ctx->buffer, &ctx->buffer[16], left_over);
data/evqueue-core-2.1/src/tools_env.cpp:11:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/evqueue-core-2.1/src/tools_env.cpp:19:20:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	int nparameters = atoi(buf);
data/evqueue-core-2.1/src/tools_env.cpp:29:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int value_len = atoi(buf+9);
data/evqueue-core-2.1/src/tools_env.cpp:32:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int name_len = atoi(buf);
data/evqueue-core-2.1/src/tools_env.cpp:37:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[4097],value[4097];
data/evqueue-core-2.1/src/ConfigurationReader.cpp:54:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len=strlen(line);
data/evqueue-core-2.1/src/DB.cpp:118:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(query);
data/evqueue-core-2.1/src/DB.cpp:129:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						escaped_len += 2+2*strlen(arg_str); // 2 Quotes + Escaped string
data/evqueue-core-2.1/src/DB.cpp:171:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						j += mysql_real_escape_string(mysql, escaped_query+j, arg_str, strlen(arg_str));
data/evqueue-core-2.1/src/DB.cpp:438:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mysql_real_escape_string(mysql, escaped_string, string, strlen(string));
data/evqueue-core-2.1/src/Git.cpp:485:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen(result->d_name);
data/evqueue-core-2.1/src/User.cpp:77:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	else if(access_type=="read" && it->second.read)
data/evqueue-core-2.1/src/User.cpp:92:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(it->second.read)
data/evqueue-core-2.1/src/User.cpp:133:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		right_node.setAttribute("read",it->second.read?"yes":"no");
data/evqueue-core-2.1/src/User.cpp:233:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		node.setAttribute("read",it->second.read?"yes":"no");
data/evqueue-core-2.1/src/User.cpp:240:85:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void User::GrantRight(const string &name, unsigned int workflow_id, bool edit, bool read, bool exec, bool kill)
data/evqueue-core-2.1/src/User.cpp:249:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int iedit = edit, iread = read, iexec = exec, ikill = kill;
data/evqueue-core-2.1/src/User.cpp:398:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		GrantRight(name, workflow_id, edit, read, exec, kill);
data/evqueue-core-2.1/src/WorkflowInstance.cpp:1483:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(log)<log_dom_maxsize)
data/evqueue-core-2.1/src/evqueue_agent.cpp:117:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read_size = read(fd_pipe[i][0],buf,4096);
data/evqueue-core-2.1/src/evqueue_monitor.cpp:146:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			task_argv[0] = new char[strlen(ssh_path)+1];
data/evqueue-core-2.1/src/evqueue_monitor.cpp:157:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				task_argv[current_arg] = new char[strlen(ssh_key)+1];
data/evqueue-core-2.1/src/evqueue_monitor.cpp:167:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				task_argv[current_arg] = new char[strlen(ssh_host)+strlen(ssh_user)+2];
data/evqueue-core-2.1/src/evqueue_monitor.cpp:167:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				task_argv[current_arg] = new char[strlen(ssh_host)+strlen(ssh_user)+2];
data/evqueue-core-2.1/src/evqueue_monitor.cpp:172:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				task_argv[current_arg] = new char[strlen(ssh_host)+1];
data/evqueue-core-2.1/src/evqueue_monitor.cpp:181:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				task_argv[current_arg] = new char[strlen(working_directory)+32];
data/evqueue-core-2.1/src/evqueue_monitor.cpp:200:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				int len = strlen(argv[i+3]);
data/evqueue-core-2.1/src/evqueue_wfmanager.cpp:203:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if(strncmp(argv[i],"--",2)!=0 || strlen(argv[i])<=2)
data/evqueue-core-2.1/src/include/User.h:36:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bool read;
data/evqueue-core-2.1/src/include/User.h:76:93:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		static void GrantRight(const std::string &name, unsigned int workflow_id, bool edit, bool read, bool exec, bool kill);
data/evqueue-core-2.1/src/tools_env.cpp:14:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read_size = read(STDIN_FILENO,buf,3);
data/evqueue-core-2.1/src/tools_env.cpp:24:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_size = read(STDIN_FILENO,buf,18);
data/evqueue-core-2.1/src/tools_env.cpp:38:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_size = read(STDIN_FILENO,name,name_len);
data/evqueue-core-2.1/src/tools_env.cpp:44:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read_size = read(STDIN_FILENO,value,value_len);

ANALYSIS SUMMARY:

Hits = 163
Lines analyzed = 24854 in approximately 0.68 seconds (36819 lines/second)
Physical Source Lines of Code (SLOC) = 16262
Hits@level = [0] 104 [1]  29 [2]  95 [3]  18 [4]  18 [5]   3
Hits@level+ = [0+] 267 [1+] 163 [2+] 134 [3+]  39 [4+]  21 [5+]   3
Hits/KSLOC@level+ = [0+] 16.4186 [1+] 10.0234 [2+] 8.24007 [3+] 2.39823 [4+] 1.29135 [5+] 0.184479
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.