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/uget-2.2.3/ui-gtk/UgtkApp-main.c
Examining data/uget-2.2.3/ui-gtk/UgtkNodeTree.c
Examining data/uget-2.2.3/ui-gtk/UgtkConfig.h
Examining data/uget-2.2.3/ui-gtk/UgtkSummary.c
Examining data/uget-2.2.3/ui-gtk/UgtkCategoryForm.c
Examining data/uget-2.2.3/ui-gtk/UgtkCategoryForm.h
Examining data/uget-2.2.3/ui-gtk/UgtkMenubar.h
Examining data/uget-2.2.3/ui-gtk/UgtkTraveler.c
Examining data/uget-2.2.3/ui-gtk/UgtkSequence.c
Examining data/uget-2.2.3/ui-gtk/UgtkProxyForm.h
Examining data/uget-2.2.3/ui-gtk/UgtkSummary.h
Examining data/uget-2.2.3/ui-gtk/UgtkSettingForm.h
Examining data/uget-2.2.3/ui-gtk/UgtkNodeDialog.h
Examining data/uget-2.2.3/ui-gtk/UgtkSetting.h
Examining data/uget-2.2.3/ui-gtk/UgtkSettingDialog.c
Examining data/uget-2.2.3/ui-gtk/UgtkSequence.h
Examining data/uget-2.2.3/ui-gtk/UgtkMenubar-ui.c
Examining data/uget-2.2.3/ui-gtk/UgtkUtil.c
Examining data/uget-2.2.3/ui-gtk/UgtkSelector.c
Examining data/uget-2.2.3/ui-gtk/UgtkTrayIcon.h
Examining data/uget-2.2.3/ui-gtk/UgtkApp-callback.c
Examining data/uget-2.2.3/ui-gtk/UgtkNodeView.c
Examining data/uget-2.2.3/ui-gtk/UgtkSettingForm.c
Examining data/uget-2.2.3/ui-gtk/UgtkAboutDialog.h
Examining data/uget-2.2.3/ui-gtk/UgtkScheduleForm.c
Examining data/uget-2.2.3/ui-gtk/UgtkScheduleForm.h
Examining data/uget-2.2.3/ui-gtk/UgtkProxyForm.c
Examining data/uget-2.2.3/ui-gtk/UgtkUtil.h
Examining data/uget-2.2.3/ui-gtk/UgtkTraveler.h
Examining data/uget-2.2.3/ui-gtk/UgtkBatchDialog.c
Examining data/uget-2.2.3/ui-gtk/UgtkAboutDialog.c
Examining data/uget-2.2.3/ui-gtk/UgtkConfirmDialog.h
Examining data/uget-2.2.3/ui-gtk/UgtkApp-timeout.c
Examining data/uget-2.2.3/ui-gtk/UgtkConfirmDialog.c
Examining data/uget-2.2.3/ui-gtk/UgtkApp.c
Examining data/uget-2.2.3/ui-gtk/UgtkNodeDialog.c
Examining data/uget-2.2.3/ui-gtk/UgtkSettingDialog.h
Examining data/uget-2.2.3/ui-gtk/UgtkNodeList.h
Examining data/uget-2.2.3/ui-gtk/UgtkMenubar.c
Examining data/uget-2.2.3/ui-gtk/UgtkNodeTree.h
Examining data/uget-2.2.3/ui-gtk/UgtkApp.h
Examining data/uget-2.2.3/ui-gtk/UgtkDownloadForm.c
Examining data/uget-2.2.3/ui-gtk/UgtkBatchDialog.h
Examining data/uget-2.2.3/ui-gtk/UgtkSelector.h
Examining data/uget-2.2.3/ui-gtk/UgtkSetting.c
Examining data/uget-2.2.3/ui-gtk/UgtkConfig.c
Examining data/uget-2.2.3/ui-gtk/UgtkDownloadForm.h
Examining data/uget-2.2.3/ui-gtk/UgtkTrayIcon.c
Examining data/uget-2.2.3/ui-gtk/UgtkNodeList.c
Examining data/uget-2.2.3/ui-gtk/UgtkBanner.c
Examining data/uget-2.2.3/ui-gtk/UgtkNodeView.h
Examining data/uget-2.2.3/ui-gtk/UgtkApp-ui.c
Examining data/uget-2.2.3/ui-gtk/UgtkBanner.h
Examining data/uget-2.2.3/uget/UgetTask.c
Examining data/uget-2.2.3/uget/UgetMedia.c
Examining data/uget-2.2.3/uget/UgetPluginAria2.h
Examining data/uget-2.2.3/uget/UgetPluginMega.h
Examining data/uget-2.2.3/uget/UgetAria2.h
Examining data/uget-2.2.3/uget/UgetPluginAria2.c
Examining data/uget-2.2.3/uget/UgetHash.c
Examining data/uget-2.2.3/uget/UgetData.h
Examining data/uget-2.2.3/uget/UgetNode.h
Examining data/uget-2.2.3/uget/UgetHash.h
Examining data/uget-2.2.3/uget/UgetEvent.h
Examining data/uget-2.2.3/uget/UgetPluginAgent.h
Examining data/uget-2.2.3/uget/UgetPlugin.c
Examining data/uget-2.2.3/uget/UgetTask.h
Examining data/uget-2.2.3/uget/UgetPluginEmpty.h
Examining data/uget-2.2.3/uget/UgetAria2.c
Examining data/uget-2.2.3/uget/UgetApp.c
Examining data/uget-2.2.3/uget/UgetPluginCurl.h
Examining data/uget-2.2.3/uget/UgetSite.c
Examining data/uget-2.2.3/uget/UgetCurl.c
Examining data/uget-2.2.3/uget/UgetApp.h
Examining data/uget-2.2.3/uget/pwmd.c
Examining data/uget-2.2.3/uget/UgetSequence.h
Examining data/uget-2.2.3/uget/UgetMedia.h
Examining data/uget-2.2.3/uget/UgetA2cf.c
Examining data/uget-2.2.3/uget/UgetFiles.h
Examining data/uget-2.2.3/uget/UgetMedia-youtube.c
Examining data/uget-2.2.3/uget/UgetSite.h
Examining data/uget-2.2.3/uget/UgetNode-compare.c
Examining data/uget-2.2.3/uget/UgetRpc.h
Examining data/uget-2.2.3/uget/UgetRss.h
Examining data/uget-2.2.3/uget/UgetRss.c
Examining data/uget-2.2.3/uget/UgetPluginMedia.c
Examining data/uget-2.2.3/uget/UgetRpc.c
Examining data/uget-2.2.3/uget/UgetSequence.c
Examining data/uget-2.2.3/uget/UgetNode.c
Examining data/uget-2.2.3/uget/UgetPlugin.h
Examining data/uget-2.2.3/uget/UgetPluginMega.c
Examining data/uget-2.2.3/uget/UgetA2cf.h
Examining data/uget-2.2.3/uget/UgetNode-filter.c
Examining data/uget-2.2.3/uget/UgetPluginAgent.c
Examining data/uget-2.2.3/uget/UgetFiles.c
Examining data/uget-2.2.3/uget/UgetPluginCurl.c
Examining data/uget-2.2.3/uget/UgetPluginMedia.h
Examining data/uget-2.2.3/uget/UgetOption.c
Examining data/uget-2.2.3/uget/UgetOption.h
Examining data/uget-2.2.3/uget/UgetEvent.c
Examining data/uget-2.2.3/uget/UgetData.c
Examining data/uget-2.2.3/uget/pwmd.h
Examining data/uget-2.2.3/uget/UgetPluginEmpty.c
Examining data/uget-2.2.3/uget/UgetCurl.h
Examining data/uget-2.2.3/Windows/msvc/stdint.h
Examining data/uget-2.2.3/ui-gtk-1to2/UgData-download.h
Examining data/uget-2.2.3/ui-gtk-1to2/UgDataset.c
Examining data/uget-2.2.3/ui-gtk-1to2/UgRegistry1.c
Examining data/uget-2.2.3/ui-gtk-1to2/UgSetting.c
Examining data/uget-2.2.3/ui-gtk-1to2/Ugtk1to2.c
Examining data/uget-2.2.3/ui-gtk-1to2/UgMarkup.h
Examining data/uget-2.2.3/ui-gtk-1to2/UgData1.c
Examining data/uget-2.2.3/ui-gtk-1to2/UgMarkup.c
Examining data/uget-2.2.3/ui-gtk-1to2/Ugtk1to2.h
Examining data/uget-2.2.3/ui-gtk-1to2/UgCategory.h
Examining data/uget-2.2.3/ui-gtk-1to2/UgDataset.h
Examining data/uget-2.2.3/ui-gtk-1to2/UgCategory.c
Examining data/uget-2.2.3/ui-gtk-1to2/UgRegistry1.h
Examining data/uget-2.2.3/ui-gtk-1to2/UgData-download.c
Examining data/uget-2.2.3/ui-gtk-1to2/UgData1.h
Examining data/uget-2.2.3/ui-gtk-1to2/UgSetting.h
Examining data/uget-2.2.3/ui-gtk-1to2/main.c
Examining data/uget-2.2.3/tests/test-uglib.c
Examining data/uget-2.2.3/tests/test-uget.c
Examining data/uget-2.2.3/tests/test-json.c
Examining data/uget-2.2.3/tests/test-jsonrpc.c
Examining data/uget-2.2.3/tests/test-plugin+app.c
Examining data/uget-2.2.3/tests/test-info.c
Examining data/uget-2.2.3/uglib/UgUtil.h
Examining data/uget-2.2.3/uglib/UgList.h
Examining data/uget-2.2.3/uglib/UgData.h
Examining data/uget-2.2.3/uglib/UgUtil.c
Examining data/uget-2.2.3/uglib/UgSocket.c
Examining data/uget-2.2.3/uglib/UgString.c
Examining data/uget-2.2.3/uglib/UgSLink.h
Examining data/uget-2.2.3/uglib/UgHtmlFilter.c
Examining data/uget-2.2.3/uglib/UgThread.c
Examining data/uget-2.2.3/uglib/UgHtmlFilter.h
Examining data/uget-2.2.3/uglib/UgOption.c
Examining data/uget-2.2.3/uglib/UgSLink.c
Examining data/uget-2.2.3/uglib/UgSocket.h
Examining data/uget-2.2.3/uglib/UgNode.c
Examining data/uget-2.2.3/uglib/UgNode.h
Examining data/uget-2.2.3/uglib/UgData.c
Examining data/uget-2.2.3/uglib/UgJsonrpcCurl.c
Examining data/uget-2.2.3/uglib/UgUri.c
Examining data/uget-2.2.3/uglib/UgHtml.h
Examining data/uget-2.2.3/uglib/UgJsonrpcCurl.h
Examining data/uget-2.2.3/uglib/UgJsonrpc.c
Examining data/uget-2.2.3/uglib/UgUri.h
Examining data/uget-2.2.3/uglib/UgRegistry.c
Examining data/uget-2.2.3/uglib/UgHtmlEntry.c
Examining data/uget-2.2.3/uglib/UgHtml.c
Examining data/uget-2.2.3/uglib/UgJson.c
Examining data/uget-2.2.3/uglib/UgJson-custom.h
Examining data/uget-2.2.3/uglib/UgRegistry.h
Examining data/uget-2.2.3/uglib/UgBuffer.h
Examining data/uget-2.2.3/uglib/UgOption.h
Examining data/uget-2.2.3/uglib/UgEntry.h
Examining data/uget-2.2.3/uglib/UgString.h
Examining data/uget-2.2.3/uglib/UgDefine.h
Examining data/uget-2.2.3/uglib/UgStdio.h
Examining data/uget-2.2.3/uglib/UgInfo.c
Examining data/uget-2.2.3/uglib/UgJsonFile.h
Examining data/uget-2.2.3/uglib/UgFileUtil.c
Examining data/uget-2.2.3/uglib/UgJsonrpcSocket.h
Examining data/uget-2.2.3/uglib/UgHtmlEntry.h
Examining data/uget-2.2.3/uglib/UgBuffer.c
Examining data/uget-2.2.3/uglib/UgThread.h
Examining data/uget-2.2.3/uglib/UgFileUtil.h
Examining data/uget-2.2.3/uglib/UgJson-custom.c
Examining data/uget-2.2.3/uglib/UgArray.c
Examining data/uget-2.2.3/uglib/UgJsonrpcSocket.c
Examining data/uget-2.2.3/uglib/UgJsonrpc.h
Examining data/uget-2.2.3/uglib/UgEntry.c
Examining data/uget-2.2.3/uglib/UgJsonFile.c
Examining data/uget-2.2.3/uglib/UgValue.h
Examining data/uget-2.2.3/uglib/UgInfo.h
Examining data/uget-2.2.3/uglib/UgArray.h
Examining data/uget-2.2.3/uglib/UgValue.c
Examining data/uget-2.2.3/uglib/UgStdio.c
Examining data/uget-2.2.3/uglib/UgJson.h
Examining data/uget-2.2.3/uglib/UgList.c

FINAL RESULTS:

data/uget-2.2.3/uget/UgetAria2.c:553:11:  [4] (shell) system:
  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.
	result = system (uald->cmd);
data/uget-2.2.3/uget/UgetAria2.c:571:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat (uald->cmd, uaria2->path);
data/uget-2.2.3/uget/UgetAria2.c:573:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat (uald->cmd, uaria2->args);
data/uget-2.2.3/uget/UgetAria2.c:642:3:  [4] (shell) execvp:
  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.
		execvp (uaria2->path, argv);
data/uget-2.2.3/uget/UgetAria2.c:702:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat (rpc_token->c.string, uaria2->token);
data/uget-2.2.3/uget/UgetMedia-youtube.c:916:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(string, uyoutube->js);
data/uget-2.2.3/uget/UgetPluginAria2.c:66:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef  printf
data/uget-2.2.3/uget/UgetPluginAria2.c:1168:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(str, user);
data/uget-2.2.3/uget/UgetPluginAria2.c:1170:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(str, password);
data/uget-2.2.3/uget/UgetPluginAria2.c:1172:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(str, uri + plugin->uri_part.host);
data/uget-2.2.3/uget/UgetPluginCurl.c:582: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(plugin->folder.path, common->folder);
data/uget-2.2.3/uget/UgetPluginCurl.c:1040: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(plugin->file.path, plugin->folder.path);
data/uget-2.2.3/uget/UgetPluginCurl.c:1041:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(plugin->file.path, common->file);
data/uget-2.2.3/uget/UgetPluginCurl.c:1131:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(plugin->file.path + plugin->folder.length,
data/uget-2.2.3/uget/UgetPluginCurl.c:1277:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
				strcat(result, dot[index-1]);
data/uget-2.2.3/uget/UgetPluginCurl.c:1288:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(result, dot[index]);
data/uget-2.2.3/uget/UgetPluginCurl.c:1293: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(result, filename);
data/uget-2.2.3/uget/UgetPluginCurl.c:1316: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(path, plugin->folder.path);
data/uget-2.2.3/uget/UgetPluginCurl.c:1317:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(path, common->file);
data/uget-2.2.3/uget/UgetPluginMedia.c:61:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef  printf
data/uget-2.2.3/uget/UgetPluginMega.c:82:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef  printf
data/uget-2.2.3/uget/UgetSequence.c:65: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 (link->string, string);
data/uget-2.2.3/uglib/UgFileUtil.c:300:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access (filename, F_OK) == -1)
data/uget-2.2.3/uglib/UgJson-custom.c:40:9:  [4] (format) snprintf:
  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.
#define snprintf	_snprintf
data/uget-2.2.3/uglib/UgJson-custom.c:40:18:  [4] (format) _snprintf:
  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.
#define snprintf	_snprintf
data/uget-2.2.3/uglib/UgJson.c:857:11:  [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.
	length = vsnprintf (NULL, 0, format, arg_list) + 1;
data/uget-2.2.3/uglib/UgJson.c:863:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		vsprintf ((char*) buffer->cur, format, arg_list);
data/uget-2.2.3/uglib/UgJson.c:873:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		vsprintf (json->buf.at, format, arg_list);
data/uget-2.2.3/uglib/UgStdio.h:53:9:  [4] (format) snprintf:
  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.
#ifndef snprintf
data/uget-2.2.3/uglib/UgStdio.h:54:9:  [4] (format) snprintf:
  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.
#define snprintf	_snprintf
data/uget-2.2.3/uglib/UgStdio.h:54:18:  [4] (format) _snprintf:
  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.
#define snprintf	_snprintf
data/uget-2.2.3/uglib/UgStdio.h:257:37:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define ug_fprintf                  fprintf
data/uget-2.2.3/uglib/UgString.c:62:15:  [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.
	string_len = vsnprintf (NULL, 0, format, arg_list);
data/uget-2.2.3/uglib/UgString.c:69:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf (string, format, arg_list);
data/uget-2.2.3/uglib/UgUtil.c:500:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat (result, temp);
data/uget-2.2.3/uglib/UgUtil.c:543:2:  [4] (shell) system:
  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.
	system ("powercfg -hibernate off");
data/uget-2.2.3/uglib/UgUtil.c:545:2:  [4] (shell) system:
  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.
	system ("rundll32 powrprof.dll,SetSuspendState 0,1,0");
data/uget-2.2.3/uglib/UgUtil.c:546:2:  [4] (shell) system:
  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.
	system ("powercfg -hibernate on");
data/uget-2.2.3/uglib/UgUtil.c:552:2:  [4] (shell) system:
  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.
	system ("rundll32 powrprof.dll,SetSuspendState 1,0,0");
data/uget-2.2.3/uglib/UgUtil.c:559:2:  [4] (shell) system:
  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.
	system ("reboot");
data/uget-2.2.3/uglib/UgUtil.c:563:2:  [4] (shell) system:
  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.
	system ("dbus-send --system --print-reply "
data/uget-2.2.3/uglib/UgUtil.c:568:2:  [4] (shell) system:
  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.
	system ("dbus-send --system --print-reply "
data/uget-2.2.3/uglib/UgUtil.c:577:2:  [4] (shell) system:
  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.
	system ("poweroff");
data/uget-2.2.3/uglib/UgUtil.c:581:2:  [4] (shell) system:
  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.
	system ("dbus-send --system --print-reply "
data/uget-2.2.3/uglib/UgUtil.c:586:2:  [4] (shell) system:
  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.
	system ("dbus-send --system --print-reply "
data/uget-2.2.3/uglib/UgUtil.c:595:2:  [4] (shell) system:
  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.
	system ("pm-suspend");
data/uget-2.2.3/uglib/UgUtil.c:598:2:  [4] (shell) system:
  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.
	system ("dbus-send --system --print-reply "
data/uget-2.2.3/uglib/UgUtil.c:603:2:  [4] (shell) system:
  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.
	system ("dbus-send --system --print-reply "
data/uget-2.2.3/uglib/UgUtil.c:612:2:  [4] (shell) system:
  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.
	system ("pm-hibernate");
data/uget-2.2.3/uglib/UgUtil.c:615:2:  [4] (shell) system:
  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.
	system ("dbus-send --system --print-reply "
data/uget-2.2.3/uglib/UgUtil.c:620:2:  [4] (shell) system:
  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.
	system ("dbus-send --system --print-reply "
data/uget-2.2.3/uglib/UgUtil.c:662:9:  [4] (shell) popen:
  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.
	file = popen ("lsb_release -a", "r");
data/uget-2.2.3/ui-gtk/UgtkApp-timeout.c:244:8:  [4] (shell) system:
  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.
							system (app->setting.completion.on_error);
data/uget-2.2.3/ui-gtk/UgtkApp-timeout.c:248:8:  [4] (shell) system:
  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.
							system (app->setting.completion.command);
data/uget-2.2.3/ui-gtk/UgtkCategoryForm.c:256:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat (buffer, uarray->at[index]);
data/uget-2.2.3/uget/UgetRpc.c:468:2:  [3] (random) srand:
  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.
	srand ((unsigned int) time(NULL));
data/uget-2.2.3/uglib/UgThread.c:79:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection (*mutex);
data/uget-2.2.3/uglib/UgThread.c:90:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection (*mutex);
data/uget-2.2.3/ui-gtk/UgtkApp.c:1778:30:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
	common->folder = ug_strdup (g_get_home_dir ());
data/uget-2.2.3/ui-gtk/UgtkNodeList.c:137:17:  [3] (random) g_random_int:
  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.
	ulist->stamp = g_random_int();  /* Random int to check whether an iter belongs to our model */
data/uget-2.2.3/ui-gtk/UgtkNodeTree.c:137:17:  [3] (random) g_random_int:
  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.
	utree->stamp = g_random_int();  /* Random int to check whether an iter belongs to our model */
data/uget-2.2.3/tests/test-info.c:251:9:  [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 = fopen(filename, "w");
data/uget-2.2.3/tests/test-json.c:492:9:  [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 = fopen (filename, "w");
data/uget-2.2.3/tests/test-jsonrpc.c: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  buf[5];
data/uget-2.2.3/tests/test-jsonrpc.c:80: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[5];
data/uget-2.2.3/tests/test-uget.c:216:9:  [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 = fopen (filename, "w");
data/uget-2.2.3/uget/UgetAria2.c:546: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       cmd[1];
data/uget-2.2.3/uget/UgetAria2.c:701:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat (rpc_token->c.string, "token:");
data/uget-2.2.3/uget/UgetCurl.h:164: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        error_string[CURL_ERROR_SIZE];
data/uget-2.2.3/uget/UgetHash.c:406:5:  [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 (hash_table->values, hash_table->keys, sizeof (void*) * hash_table->size);
data/uget-2.2.3/uget/UgetMedia-youtube.c:915:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(string, "https:");
data/uget-2.2.3/uget/UgetPluginAria2.c:1349: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[11];
data/uget-2.2.3/uget/UgetPluginCurl.c:89: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     uri[1];
data/uget-2.2.3/uget/UgetPluginCurl.c:1063:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(plugin->file.path + length, ".aria2");
data/uget-2.2.3/uget/UgetPluginCurl.c:1275:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(result, ".%d");
data/uget-2.2.3/uget/UgetPluginCurl.c:1287:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat(result, ".%d");
data/uget-2.2.3/uget/UgetPluginCurl.c:1294:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(result, ".%d");
data/uget-2.2.3/uget/UgetPluginCurl.c:1322:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(path, ".aria2");
data/uget-2.2.3/uget/UgetPluginMega.c:441: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(plugin->key, binary_key, 16);
data/uget-2.2.3/uget/UgetPluginMega.c:451:2:  [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(plugin->iv, binary_key+16, 8);
data/uget-2.2.3/uget/UgetRpc.c:104: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 (urpc->socket_path, path, path_len);
data/uget-2.2.3/uget/UgetSequence.c: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        string[1];
data/uget-2.2.3/uget/UgetSequence.c:181: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 (ug_buffer_alloc (&useq->buf, length + 1),
data/uget-2.2.3/uget/pwmd.c:40:9:  [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(b, s, len);
data/uget-2.2.3/uget/pwmd.c:210:30:  [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).
                pwmd->port = atoi(p);
data/uget-2.2.3/uglib/UgArray.h:87: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(ug_array_alloc((array), len), values, ((UgArrayChar*)(array))->element_size * len)
data/uget-2.2.3/uglib/UgJsonFile.h:58: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      bytes[1];
data/uget-2.2.3/uglib/UgSocket.c:115: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 (saddr.sun_path, path, path_len);
data/uget-2.2.3/uglib/UgSocket.c:225: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 (saddr.sun_path, path, path_len);
data/uget-2.2.3/uglib/UgStdio.h:169:25:  [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).
#  define ug_open       open
data/uget-2.2.3/uglib/UgStdio.h:218:25:  [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).
#  define ug_fopen      fopen
data/uget-2.2.3/uglib/UgUri.c:444: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[3];
data/uget-2.2.3/ui-gtk-1to2/UgCategory.c:133: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).
		value = atoi (attr_values[index]);
data/uget-2.2.3/ui-gtk-1to2/UgSetting.c:336:35:  [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).
			(*state)[weekdays][dayhours] = atoi (text);
data/uget-2.2.3/ui-gtk-1to2/Ugtk1to2.c:163:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
		strcat (setting->aria2.uri, "jsonrpc");
data/uget-2.2.3/ui-gtk/UgtkApp.c:760:51:  [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).
		gtk_widget_set_sensitive (app->menubar.download.open, sensitive);
data/uget-2.2.3/ui-gtk/UgtkMenubar.c:836:38:  [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).
	g_signal_connect (menubar->download.open, "activate",
data/uget-2.2.3/ui-gtk/UgtkMenubar.h:160:15:  [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).
		GtkWidget*  open;
data/uget-2.2.3/ui-gtk/UgtkScheduleForm.c:209:2:  [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 (setting->scheduler.state.at, sform->state, sizeof (sform->state));
data/uget-2.2.3/tests/test-json.c:840:32:  [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).
	ug_array_append (&array, str, strlen (str));
data/uget-2.2.3/tests/test-jsonrpc.c:55:35:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define  ug_sleep(millisecond)    usleep (millisecond * 1000)
data/uget-2.2.3/tests/test-plugin+app.c:51:35:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define  ug_sleep(millisecond)    usleep (millisecond * 1000)
data/uget-2.2.3/tests/test-uglib.c:304:52:  [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).
	base64 = ug_base64_encode ((uint8_t*)test_string, strlen (test_string), &len);
data/uget-2.2.3/uget/UgetApp.c:55:35:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define  ug_sleep(millisecond)    usleep (millisecond * 1000)
data/uget-2.2.3/uget/UgetApp.c:657:20:  [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).
	for (end = file + strlen (file) - 1;  end >= file;  end--) {
data/uget-2.2.3/uget/UgetAria2.c:62:35:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define  ug_sleep(millisecond)    usleep (millisecond * 1000)
data/uget-2.2.3/uget/UgetAria2.c:568:4:  [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).
			strlen (uaria2->path) + strlen (uaria2->args) + 1);
data/uget-2.2.3/uget/UgetAria2.c:568: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).
			strlen (uaria2->path) + strlen (uaria2->args) + 1);
data/uget-2.2.3/uget/UgetAria2.c:572:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat (uald->cmd, " ");
data/uget-2.2.3/uget/UgetAria2.c:652:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read (execpipe[0], &temp, sizeof(temp)) == sizeof(temp))
data/uget-2.2.3/uget/UgetAria2.c:699:37:  [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).
			rpc_token->c.string = ug_malloc (strlen (uaria2->token) + 7); // "token:"
data/uget-2.2.3/uget/UgetCurl.c:478:51:  [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).
			curl_easy_setopt (curl, CURLOPT_POSTFIELDSIZE, strlen (http->post_data));
data/uget-2.2.3/uget/UgetCurl.c:703:11:  [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).
	length = strlen (buffer);
data/uget-2.2.3/uget/UgetMedia-youtube.c:913:23:  [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).
			string = ug_malloc(strlen(uyoutube->js) + 6 + 1); // "https:" + '\0'
data/uget-2.2.3/uget/UgetPluginAria2.c:61:35:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define  ug_sleep(millisecond)    usleep (millisecond * 1000)
data/uget-2.2.3/uget/UgetPluginAria2.c:1164:20:  [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).
			str = ug_malloc(strlen(user) + strlen(password) +
data/uget-2.2.3/uget/UgetPluginAria2.c:1164:35:  [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).
			str = ug_malloc(strlen(user) + strlen(password) +
data/uget-2.2.3/uget/UgetPluginAria2.c:1165:6:  [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).
					strlen(uri) + 2 + 1);  // + ':' + '@' + '\0'
data/uget-2.2.3/uget/UgetPluginAria2.c:1167:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(str, uri, plugin->uri_part.host);
data/uget-2.2.3/uget/UgetPluginAria2.c:1169:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(str, ":");
data/uget-2.2.3/uget/UgetPluginAria2.c:1171:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(str, "@");
data/uget-2.2.3/uget/UgetPluginAria2.c:1406:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(value->c.string, prev, curr - prev);
data/uget-2.2.3/uget/UgetPluginCurl.c:65:35:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define  ug_sleep(millisecond)    usleep(millisecond * 1000)
data/uget-2.2.3/uget/UgetPluginCurl.c:514: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).
		uri_len = strlen(uri);
data/uget-2.2.3/uget/UgetPluginCurl.c:516:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(uri_link->uri, uri, uri_len);
data/uget-2.2.3/uget/UgetPluginCurl.c:578:12:  [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).
		length = strlen(common->folder);
data/uget-2.2.3/uget/UgetPluginCurl.c:585:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(plugin->folder.path, "\\");
data/uget-2.2.3/uget/UgetPluginCurl.c:587:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(plugin->folder.path, "/");
data/uget-2.2.3/uget/UgetPluginCurl.c:1033:12:  [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).
	length += strlen(common->file);
data/uget-2.2.3/uget/UgetPluginCurl.c:1256:11:  [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).
	length = strlen(filename);
data/uget-2.2.3/uget/UgetPluginCurl.c:1273:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(result, filename, dot[index] - filename);
data/uget-2.2.3/uget/UgetPluginCurl.c:1285:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(result, filename, dot[index] - filename);
data/uget-2.2.3/uget/UgetPluginCurl.c:1311:12:  [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).
	length += strlen(common->file);
data/uget-2.2.3/uget/UgetPluginMedia.c:56:35:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define  ug_sleep(millisecond)    usleep(millisecond * 1000)
data/uget-2.2.3/uget/UgetPluginMega.c:77:35:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define  ug_sleep(millisecond)    usleep(millisecond * 1000)
data/uget-2.2.3/uget/UgetPluginMega.c:438:45:  [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).
	binary_key = ug_base64_decode(plugin->key, strlen(plugin->key), &length);
data/uget-2.2.3/uget/UgetPluginMega.c:478:47:  [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).
	buffer = (char*)ug_base64_decode(attributes, strlen(attributes), &length);
data/uget-2.2.3/uget/UgetPluginMega.c:594:48:  [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).
	curl_easy_setopt(curl, CURLOPT_POSTFIELDSIZE, strlen(string));
data/uget-2.2.3/uget/UgetRpc.c:109: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).
			path_len = strlen (path);
data/uget-2.2.3/uget/pwmd.c:135:34:  [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).
                                 strlen (str), &offset);
data/uget-2.2.3/uget/pwmd.c:144:34:  [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).
                                 strlen (str), &offset);
data/uget-2.2.3/uget/pwmd.c:154:34:  [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).
                                 strlen (str), &offset);
data/uget-2.2.3/uget/pwmd.c:165:34:  [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).
                                 strlen (str), &offset);
data/uget-2.2.3/uget/pwmd.c:176:34:  [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).
                                 strlen (str), &offset);
data/uget-2.2.3/uget/pwmd.c:183: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).
                rc = pwmd_bulk(pwm, &result, &len, NULL, NULL, bulk, strlen (bulk));
data/uget-2.2.3/uglib/UgBuffer.c:128:12:  [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).
		length = strlen(string);
data/uget-2.2.3/uglib/UgFileUtil.c:324:9:  [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 (dir);
data/uget-2.2.3/uglib/UgFileUtil.c:353:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (element_os, dir, element_end - dir);
data/uget-2.2.3/uglib/UgFileUtil.c:451:9:  [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 (buf);
data/uget-2.2.3/uglib/UgHtml.c:265:16:  [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).
		buffer_len = strlen (buffer);
data/uget-2.2.3/uglib/UgJson.c:214:9:  [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 (string);
data/uget-2.2.3/uglib/UgOption.c:170:12:  [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).
		length = strlen (string);
data/uget-2.2.3/uglib/UgOption.c:301: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).
		arg_len = strlen (arg);
data/uget-2.2.3/uglib/UgOption.c:331: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).
		arg_len = strlen (arg);
data/uget-2.2.3/uglib/UgSocket.c:52:35:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
#define  ug_sleep(millisecond)    usleep (millisecond * 1000)
data/uget-2.2.3/uglib/UgSocket.c:108:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (saddr.sun_path, path, sizeof (saddr.sun_path) -1);
data/uget-2.2.3/uglib/UgSocket.c:216:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (saddr.sun_path, path, sizeof (saddr.sun_path) -1);
data/uget-2.2.3/uglib/UgStdio.h:187:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#  define  ug_read      read
data/uget-2.2.3/uglib/UgStdio.h:261:37:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define	ug_fgetc(file)              fgetc (file)
data/uget-2.2.3/uglib/UgString.c:81:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy (result, string, length);
data/uget-2.2.3/uglib/UgString.c:223:17:  [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).
	end = string + strlen (string);
data/uget-2.2.3/uglib/UgString.c:285:17:  [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).
	end = string + strlen (string);
data/uget-2.2.3/uglib/UgUri.c:162:10:  [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).
		return strlen (uuri->uri + uuri->file);
data/uget-2.2.3/uglib/UgUri.c:195:10:  [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).
		return strlen (uuri->uri + uuri->query);
data/uget-2.2.3/uglib/UgUri.c:205:10:  [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).
		return strlen (uuri->uri + uuri->fragment);
data/uget-2.2.3/uglib/UgUri.c:327:14:  [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).
			lenHost = strlen (*hosts);
data/uget-2.2.3/uglib/UgUri.c:447:12:  [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).
		length = strlen (uri);
data/uget-2.2.3/uglib/UgUtil.c:128:12:  [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).
		count  = strlen (string);
data/uget-2.2.3/uglib/UgUtil.c:189:12:  [1] (buffer) wcslen:
  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).
		count  = wcslen ((wchar_t*) string);
data/uget-2.2.3/uglib/UgUtil.c:224:12:  [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).
		count  = strlen (string);
data/uget-2.2.3/uglib/UgUtil.c:480:16:  [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).
		total_len += strlen (temp) + 1;  // + '/'
data/uget-2.2.3/uglib/UgUtil.c:494:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat (result, "\\");
data/uget-2.2.3/uglib/UgUtil.c:497:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
				strcat (result, "/");
data/uget-2.2.3/ui-gtk-1to2/UgMarkup.c:114:10:  [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 (text);
data/uget-2.2.3/ui-gtk-1to2/Ugtk1to2.c:155:11:  [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).
	length = strlen (setting1->plugin.aria2.uri);
data/uget-2.2.3/ui-gtk-1to2/Ugtk1to2.c:162:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy (setting->aria2.uri, setting1->plugin.aria2.uri, length-3);
data/uget-2.2.3/ui-gtk/UgtkApp-timeout.c:763:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy (pNotifyData->szInfoTitle, string_wcs, 64 -1);	// null-terminated
data/uget-2.2.3/ui-gtk/UgtkApp-timeout.c:768:2:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	wcsncpy (pNotifyData->szInfo, string_wcs, 256 -1);	// null-terminated
data/uget-2.2.3/ui-gtk/UgtkCategoryForm.c:250: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).
		length += strlen(uarray->at[index]) + 1;  // + ';'
data/uget-2.2.3/ui-gtk/UgtkCategoryForm.c:257:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat (buffer, ";");
data/uget-2.2.3/ui-gtk/UgtkDownloadForm.c:522:7:  [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).
						strlen (uuri.uri + uuri.host) + 1);
data/uget-2.2.3/ui-gtk/UgtkUtil.c:185: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).
	text_len = strlen (text);

ANALYSIS SUMMARY:

Hits = 182
Lines analyzed = 62483 in approximately 1.44 seconds (43416 lines/second)
Physical Source Lines of Code (SLOC) = 41325
Hits@level = [0] 182 [1]  83 [2]  38 [3]   6 [4]  55 [5]   0
Hits@level+ = [0+] 364 [1+] 182 [2+]  99 [3+]  61 [4+]  55 [5+]   0
Hits/KSLOC@level+ = [0+] 8.80823 [1+] 4.40411 [2+] 2.39564 [3+] 1.4761 [4+] 1.33091 [5+]   0
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.