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/guifications-2.16/src/gf_gtk_utils.c
Examining data/guifications-2.16/src/gf_file.c
Examining data/guifications-2.16/src/gf_stock.c
Examining data/guifications-2.16/src/gf_theme.h
Examining data/guifications-2.16/src/gf_event_info.c
Examining data/guifications-2.16/src/gf_blist.h
Examining data/guifications-2.16/src/gf_notification.c
Examining data/guifications-2.16/src/gf_theme_ops.h
Examining data/guifications-2.16/src/gf_item_offset.c
Examining data/guifications-2.16/src/gf_item_text.c
Examining data/guifications-2.16/src/gf_theme_info.c
Examining data/guifications-2.16/src/gf_event.h
Examining data/guifications-2.16/src/gf_utils.c
Examining data/guifications-2.16/src/gf_theme.c
Examining data/guifications-2.16/src/gf_item.c
Examining data/guifications-2.16/src/gf_file.h
Examining data/guifications-2.16/src/gf_display.c
Examining data/guifications-2.16/src/gf_internal.h
Examining data/guifications-2.16/src/gf_item_image.c
Examining data/guifications-2.16/src/gf_gtk_utils.h
Examining data/guifications-2.16/src/gf_theme_ops.c
Examining data/guifications-2.16/src/gf_event_info.h
Examining data/guifications-2.16/src/guifications.c
Examining data/guifications-2.16/src/gf_item_offset.h
Examining data/guifications-2.16/src/gf_menu.h
Examining data/guifications-2.16/src/gf_display.h
Examining data/guifications-2.16/src/gf_theme_editor.h
Examining data/guifications-2.16/src/gf_item_icon.h
Examining data/guifications-2.16/src/gf_theme_editor.c
Examining data/guifications-2.16/src/gf_notification.h
Examining data/guifications-2.16/src/gf_utils.h
Examining data/guifications-2.16/src/gf_item_icon.c
Examining data/guifications-2.16/src/gf_action.h
Examining data/guifications-2.16/src/gf_theme_info.h
Examining data/guifications-2.16/src/gf_item_image.h
Examining data/guifications-2.16/src/gf_stock.h
Examining data/guifications-2.16/src/gf_item_text.h
Examining data/guifications-2.16/src/gf_item.h
Examining data/guifications-2.16/src/gf_event.c
Examining data/guifications-2.16/src/gf_preferences.h
Examining data/guifications-2.16/src/gf_action.c
Examining data/guifications-2.16/src/gf_menu.c
Examining data/guifications-2.16/src/gf_blist.c
Examining data/guifications-2.16/src/gf_preferences.c

FINAL RESULTS:

data/guifications-2.16/src/gf_file.c:104:9:  [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.
	return access(filename, mode);
data/guifications-2.16/src/gf_preferences.c:606: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(command);
data/guifications-2.16/src/gf_notification.c:467:3:  [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(t);
data/guifications-2.16/src/gf_theme_editor.c:457:31:  [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.
	dir = g_strdup_printf(".%x", g_random_int());
data/guifications-2.16/src/guifications.c:72: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(t);
data/guifications-2.16/src/gf_internal.h:58:18:  [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 g_fopen fopen
data/guifications-2.16/src/gf_internal.h:66:17:  [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 g_open open
data/guifications-2.16/src/gf_item_offset.c:83: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).
	offset->value = atoi(data);
data/guifications-2.16/src/gf_item_text.c:245:22:  [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).
		item_text->width = atoi(data);
data/guifications-2.16/src/gf_item_text.c:419:9:  [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 char buff[80];
data/guifications-2.16/src/gf_notification.c:96:27:  [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).
		notification->use_gtk = atoi(data);
data/guifications-2.16/src/gf_notification.c:104:25:  [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).
		notification->width = atoi(data);
data/guifications-2.16/src/gf_notification.c:108:26:  [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).
		notification->height = atoi(data);
data/guifications-2.16/src/gf_theme.c:101: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).
	api_version = atoi(xmlnode_get_attrib(parent, "api"));
data/guifications-2.16/src/gf_event.c:502: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).
	if(!g_strstr_len(message, strlen(message), nick))
data/guifications-2.16/src/gf_file.c:41:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((chr = fgetc(src)) != EOF) {
data/guifications-2.16/src/gf_item_offset.c:80: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).
	if(data[strlen(data) - 1] == '%')
data/guifications-2.16/src/gf_item_text.c:669: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(str);
data/guifications-2.16/src/gf_preferences.c:131: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).
	escaped = g_markup_escape_text(text, strlen(text));
data/guifications-2.16/src/gf_theme.c:470: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(str->str) != 0)
data/guifications-2.16/src/gf_theme_info.c:106:19:  [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(info->name && strlen(info->name)) {
data/guifications-2.16/src/gf_theme_info.c:108:42:  [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).
		xmlnode_insert_data(child, info->name, strlen(info->name));
data/guifications-2.16/src/gf_theme_info.c:111:22:  [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(info->version && strlen(info->version)) {
data/guifications-2.16/src/gf_theme_info.c:113: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).
		xmlnode_insert_data(child, info->version, strlen(info->version));
data/guifications-2.16/src/gf_theme_info.c:116:22:  [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(info->summary && strlen(info->summary)) {
data/guifications-2.16/src/gf_theme_info.c:118: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).
		xmlnode_insert_data(child, info->summary, strlen(info->summary));
data/guifications-2.16/src/gf_theme_info.c:121: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).
	if(info->description && strlen(info->description)) {
data/guifications-2.16/src/gf_theme_info.c:123:49:  [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).
		xmlnode_insert_data(child, info->description, strlen(info->description));
data/guifications-2.16/src/gf_theme_info.c:126:21:  [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(info->author && strlen(info->author)) {
data/guifications-2.16/src/gf_theme_info.c:128:44:  [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).
		xmlnode_insert_data(child, info->author, strlen(info->author));
data/guifications-2.16/src/gf_theme_info.c:131:22:  [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(info->website && strlen(info->website)) {
data/guifications-2.16/src/gf_theme_info.c:133: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).
		xmlnode_insert_data(child, info->website, strlen(info->website));
data/guifications-2.16/src/gf_theme_info.c:180: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).
	if(iter[0] == '.' && strlen(iter) > 1)
data/guifications-2.16/src/gf_theme_ops.c:96:25:  [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(ops->date_format && strlen(ops->date_format)) {
data/guifications-2.16/src/gf_theme_ops.c:98: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).
		xmlnode_insert_data(child, ops->date_format, strlen(ops->date_format));
data/guifications-2.16/src/gf_theme_ops.c:101:25:  [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(ops->time_format && strlen(ops->time_format)) {
data/guifications-2.16/src/gf_theme_ops.c:103: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).
		xmlnode_insert_data(child, ops->time_format, strlen(ops->time_format));
data/guifications-2.16/src/gf_theme_ops.c:106:21:  [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(ops->warning && strlen(ops->warning)) {
data/guifications-2.16/src/gf_theme_ops.c:108:44:  [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).
		xmlnode_insert_data(child, ops->warning, strlen(ops->warning));
data/guifications-2.16/src/gf_theme_ops.c:111:22:  [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(ops->ellipsis && strlen(ops->ellipsis)) {
data/guifications-2.16/src/gf_theme_ops.c:113: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).
		xmlnode_insert_data(child, ops->ellipsis, strlen(ops->ellipsis));

ANALYSIS SUMMARY:

Hits = 41
Lines analyzed = 14302 in approximately 1.16 seconds (12343 lines/second)
Physical Source Lines of Code (SLOC) = 9991
Hits@level = [0]   1 [1]  27 [2]   9 [3]   3 [4]   2 [5]   0
Hits@level+ = [0+]  42 [1+]  41 [2+]  14 [3+]   5 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 4.20378 [1+] 4.10369 [2+] 1.40126 [3+] 0.50045 [4+] 0.20018 [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.