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/gadmin-openvpn-server-0.1.5/src/widgets.c
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_buttons.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_log_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_conf_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_server_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c
Examining data/gadmin-openvpn-server-0.1.5/src/functions.h
Examining data/gadmin-openvpn-server-0.1.5/src/widgets.h
Examining data/gadmin-openvpn-server-0.1.5/src/file_chooser.c
Examining data/gadmin-openvpn-server-0.1.5/src/commands.c
Examining data/gadmin-openvpn-server-0.1.5/src/system_defines.h
Examining data/gadmin-openvpn-server-0.1.5/src/status_update.h
Examining data/gadmin-openvpn-server-0.1.5/src/delete_user.c
Examining data/gadmin-openvpn-server-0.1.5/src/chars_are_digits.c
Examining data/gadmin-openvpn-server-0.1.5/src/status_update.c
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_spinbuttons.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_server_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_entries.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_combos.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_user_settings.h
Examining data/gadmin-openvpn-server-0.1.5/src/create_disc_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_hseparators.h
Examining data/gadmin-openvpn-server-0.1.5/src/credits_window.h
Examining data/gadmin-openvpn-server-0.1.5/src/functions.c
Examining data/gadmin-openvpn-server-0.1.5/src/select_first_user.h
Examining data/gadmin-openvpn-server-0.1.5/src/show_info.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_conf_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_main_window.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_combos.h
Examining data/gadmin-openvpn-server-0.1.5/src/create_conf_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/create_log_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.c
Examining data/gadmin-openvpn-server-0.1.5/src/select_first_user.c
Examining data/gadmin-openvpn-server-0.1.5/src/clear_log_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_textviews.c
Examining data/gadmin-openvpn-server-0.1.5/src/chars_are_digits.h
Examining data/gadmin-openvpn-server-0.1.5/src/create_user_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/standard_conf.c
Examining data/gadmin-openvpn-server-0.1.5/src/deactivate_button_clicked.h
Examining data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_user_settings.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.h
Examining data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.h
Examining data/gadmin-openvpn-server-0.1.5/src/populate_users.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_users.h
Examining data/gadmin-openvpn-server-0.1.5/src/export_window.h
Examining data/gadmin-openvpn-server-0.1.5/src/save_conf_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/save_conf_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/allocate.h
Examining data/gadmin-openvpn-server-0.1.5/src/support.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_progressbars.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_log_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_checkbuttons.c
Examining data/gadmin-openvpn-server-0.1.5/src/generate_cert.h
Examining data/gadmin-openvpn-server-0.1.5/src/gettext.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_entries.c
Examining data/gadmin-openvpn-server-0.1.5/src/clear_log_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.h
Examining data/gadmin-openvpn-server-0.1.5/src/populate_log_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/apply_button_clicked.h
Examining data/gadmin-openvpn-server-0.1.5/src/show_info.h
Examining data/gadmin-openvpn-server-0.1.5/src/export_button_clicked.h
Examining data/gadmin-openvpn-server-0.1.5/src/standard_conf.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_labels.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_checkbuttons.h
Examining data/gadmin-openvpn-server-0.1.5/src/apply_user.c
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_buttons.h
Examining data/gadmin-openvpn-server-0.1.5/src/support.c
Examining data/gadmin-openvpn-server-0.1.5/src/add_user.c
Examining data/gadmin-openvpn-server-0.1.5/src/delete_user.h
Examining data/gadmin-openvpn-server-0.1.5/src/show_help.c
Examining data/gadmin-openvpn-server-0.1.5/src/allocate.c
Examining data/gadmin-openvpn-server-0.1.5/src/generate_cert.c
Examining data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_conf_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.h
Examining data/gadmin-openvpn-server-0.1.5/src/create_main_window.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_del_system_user_question.h
Examining data/gadmin-openvpn-server-0.1.5/src/activate_button_clicked.c
Examining data/gadmin-openvpn-server-0.1.5/src/set_version.h
Examining data/gadmin-openvpn-server-0.1.5/src/export_window.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_server_settings.h
Examining data/gadmin-openvpn-server-0.1.5/src/user_treeview_row_clicked.h
Examining data/gadmin-openvpn-server-0.1.5/src/create_disc_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_del_system_user_question.c
Examining data/gadmin-openvpn-server-0.1.5/src/deactivate_button_clicked.c
Examining data/gadmin-openvpn-server-0.1.5/src/create_conn_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_hseparators.c
Examining data/gadmin-openvpn-server-0.1.5/src/apply_user.h
Examining data/gadmin-openvpn-server-0.1.5/src/export_button_clicked.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_conn_tab.h
Examining data/gadmin-openvpn-server-0.1.5/src/reread_conf.h
Examining data/gadmin-openvpn-server-0.1.5/src/commands.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_spinbuttons.h
Examining data/gadmin-openvpn-server-0.1.5/src/apply_button_clicked.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_gadmin_openvpn.c
Examining data/gadmin-openvpn-server-0.1.5/src/add_user.h
Examining data/gadmin-openvpn-server-0.1.5/src/set_version.c
Examining data/gadmin-openvpn-server-0.1.5/src/file_chooser.h
Examining data/gadmin-openvpn-server-0.1.5/src/populate_conn_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c
Examining data/gadmin-openvpn-server-0.1.5/src/commented.h
Examining data/gadmin-openvpn-server-0.1.5/src/create_conn_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/activate_button_clicked.h
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_labels.c
Examining data/gadmin-openvpn-server-0.1.5/src/credits_window.c
Examining data/gadmin-openvpn-server-0.1.5/src/user_treeview_row_clicked.c
Examining data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_textviews.h
Examining data/gadmin-openvpn-server-0.1.5/src/commented.c
Examining data/gadmin-openvpn-server-0.1.5/src/make_settings_progressbars.h
Examining data/gadmin-openvpn-server-0.1.5/src/create_user_tab.c
Examining data/gadmin-openvpn-server-0.1.5/src/reread_conf.c
Examining data/gadmin-openvpn-server-0.1.5/src/system_defines.c
Examining data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.h
Examining data/gadmin-openvpn-server-0.1.5/src/populate_gadmin_openvpn.h
Examining data/gadmin-openvpn-server-0.1.5/src/show_help.h

FINAL RESULTS:

data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:384: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(tmp2, tmp1);
data/gadmin-openvpn-server-0.1.5/src/commands.c:44:12:  [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.
    if((fp=popen(command, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/commands.c:54:7:  [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(info, line);
data/gadmin-openvpn-server-0.1.5/src/commands.c:69:12:  [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.
    if((fp=popen(command, "w"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/export_window.c:97: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(new_conf, line);
data/gadmin-openvpn-server-0.1.5/src/functions.c:67:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(newbuf, "%s", buf);
data/gadmin-openvpn-server-0.1.5/src/functions.c:111:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tempname, "%s", check_buffer);
data/gadmin-openvpn-server-0.1.5/src/functions.c:149:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tempname, "%s", check_buffer);
data/gadmin-openvpn-server-0.1.5/src/functions.c:199:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tempname, "%s", check_buffer);
data/gadmin-openvpn-server-0.1.5/src/functions.c:234:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(tempname, "%s", check_buffer);
data/gadmin-openvpn-server-0.1.5/src/functions.c:484:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(user_pass, "echo %s:%s | chpasswd", username, password);
data/gadmin-openvpn-server-0.1.5/src/functions.c:489:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(user_pass, "echo %s:%s | chpass", username, password);
data/gadmin-openvpn-server-0.1.5/src/functions.c:496:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(user_pass, "echo passwd/username %s:%s", username, password);
data/gadmin-openvpn-server-0.1.5/src/functions.c:505:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(user_pass, "usermod -p '%s' %s", encrypted_pass, username);
data/gadmin-openvpn-server-0.1.5/src/functions.c:509:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(user_pass, "pw usermod -p '%s' %s", encrypted_pass, username);
data/gadmin-openvpn-server-0.1.5/src/functions.c:513:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(user_pass, "echo manually change the password: passwd/username '%s' %s", encrypted_pass, username);
data/gadmin-openvpn-server-0.1.5/src/functions.c:520:12:  [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.
    if((fp=popen(user_pass,"w"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:561: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(rnd_string, arr[where]);
data/gadmin-openvpn-server-0.1.5/src/functions.c:567:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(salt, "$1$%s$", rnd_string);
data/gadmin-openvpn-server-0.1.5/src/functions.c:570:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(salt, "%s", &rnd_string[6]);
data/gadmin-openvpn-server-0.1.5/src/functions.c:575:12:  [4] (crypto) crypt:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
    return crypt(password, salt);
data/gadmin-openvpn-server-0.1.5/src/functions.c:643: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(new_buffer, old_buffer);	  	  
data/gadmin-openvpn-server-0.1.5/src/functions.c:700:6:  [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(new_buffer, old_buffer);
data/gadmin-openvpn-server-0.1.5/src/functions.c:703: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(new_buffer, old_buffer);
data/gadmin-openvpn-server-0.1.5/src/functions.c:844: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(rnd_string, u_arr[where]);
data/gadmin-openvpn-server-0.1.5/src/functions.c:855: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(rnd_string, l_arr[where]);
data/gadmin-openvpn-server-0.1.5/src/functions.c:872:13:  [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(rnd_string, u_arr[where]);
data/gadmin-openvpn-server-0.1.5/src/functions.c:877:13:  [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(rnd_string, l_arr[where]);
data/gadmin-openvpn-server-0.1.5/src/functions.c:974: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(ccd_contents, line);
data/gadmin-openvpn-server-0.1.5/src/populate_conf_tab.c:60:7:  [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(new_buffy, old_buffy);
data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c:58:12:  [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.
    if((fp=popen(DISC_USAGE, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c:67:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
        sscanf(buf, "%s %s %s %s %s %s", device, total, used, free, percent, mount);
data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.c:86:6:  [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(new_buffy, old_buffy);
data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.c:96:6:  [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(new_buffy, old_buffy);
data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.c:124:6:  [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(new_buffy, old_buffy);
data/gadmin-openvpn-server-0.1.5/src/select_first_user.c:54:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(global_user_name, "%s", (gchar *)user?user:"None");
data/gadmin-openvpn-server-0.1.5/src/set_version.c:59:12:  [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.
    if((fp=popen(cmd, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/status_update.c:90: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(line, buf);
data/gadmin-openvpn-server-0.1.5/src/user_treeview_row_clicked.c:62:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	    sprintf(global_user_name, "%s", (gchar *)user);
data/gadmin-openvpn-server-0.1.5/src/functions.c:554:5:  [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)time(NULL));
data/gadmin-openvpn-server-0.1.5/src/functions.c:835:5:  [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)time(NULL));
data/gadmin-openvpn-server-0.1.5/src/functions.c:865:5:  [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)time(NULL));
data/gadmin-openvpn-server-0.1.5/src/add_user.c:46:8:  [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.
extern char global_server_address[1024];
data/gadmin-openvpn-server-0.1.5/src/add_user.c:47:8:  [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.
extern char global_server_port[1024];
data/gadmin-openvpn-server-0.1.5/src/add_user.c:48:8:  [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.
extern char global_server_type[1024];
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:64: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).
    if((fp=fopen(FIRESTARTER_USER_PRE, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:99: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).
    if((fp=fopen(FIRESTARTER_USER_PRE, "a"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:383: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(tmp2, "push \"dhcp-option DNS ");
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:385: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(tmp2, "\"\n");
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:403: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).
    if((fp=fopen(openvpn_server_conf, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:469: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).
    if((fp=fopen(openvpn_client_conf, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:632: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).
    if((fp=fopen(sysinit_script_path, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/apply_user.c:38:8:  [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.
extern char global_server_address[1024];
data/gadmin-openvpn-server-0.1.5/src/apply_user.c:39:8:  [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.
extern char global_server_port[1024];
data/gadmin-openvpn-server-0.1.5/src/apply_user.c:40:8:  [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.
extern char global_server_type[1024];
data/gadmin-openvpn-server-0.1.5/src/clear_log_tab.c:41: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).
    if((fp=fopen(log_path, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/commands.c:147: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).
    if((fp=fopen(infile, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/delete_user.c:50:8:  [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.
extern char global_server_address[1024];
data/gadmin-openvpn-server-0.1.5/src/delete_user.c:51:8:  [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.
extern char global_server_port[1024];
data/gadmin-openvpn-server-0.1.5/src/delete_user.c:52:8:  [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.
extern char global_server_type[1024];
data/gadmin-openvpn-server-0.1.5/src/delete_user.c:53:8:  [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.
extern char global_user_name[1024];
data/gadmin-openvpn-server-0.1.5/src/export_window.c:58: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).
    if((fp=fopen(linux_conf_path, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/export_window.c:83: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(new_conf, "dev tap\n");
data/gadmin-openvpn-server-0.1.5/src/export_window.c:86: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(new_conf, "auth-user-pass passfile\n");
data/gadmin-openvpn-server-0.1.5/src/export_window.c:103: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).
    if((fp=fopen(openvpngui_conf_path, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/export_window.c:120: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).
    if((fp=fopen(openvpngui_passfile, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:88: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 tempname[4096]="";
data/gadmin-openvpn-server-0.1.5/src/functions.c:92: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).
    if((fp=fopen(GS_PASSWD,"r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:130: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).
    if((fp=fopen(GS_SHADOW,"r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:177: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 tempname[4096]="";
data/gadmin-openvpn-server-0.1.5/src/functions.c:181: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).
    if((fp=fopen(GS_GROUP,"r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:216:14:  [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).
    if((fp = fopen(GS_GSHADOW,"r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:279: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).
    if((fp=fopen(GS_PASSWD,"r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:375: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).
    if((fp=fopen(GS_GROUP,"r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:544: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 salt[13]=""; /* The total salt length is 12 */
data/gadmin-openvpn-server-0.1.5/src/functions.c:579:39:  [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.
void make_dir_chmod(gchar *directory, char perm[128])
data/gadmin-openvpn-server-0.1.5/src/functions.c:606: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).
    if((fp=fopen(openvpn_server_conf, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:653: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).
    if((fp=fopen(openvpn_server_conf, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:665: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).
    if((fp=fopen(openvpn_server_conf, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:709: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).
    if((fp=fopen(openvpn_server_conf, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:908: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).
    if((fp=fopen(path, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.c:959: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).
    if((fp=fopen(path, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/functions.h:54:39:  [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.
void make_dir_chmod(gchar *directory, char perm[128]);
data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.c:54:1:  [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 global_user_name[1024]="";
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:125: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).
    if((fp=fopen(openssl_config_path, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:151: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).
    if((fp=fopen(openssl_config_path, "w"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:232: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).
    if((fp=fopen(passfile, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:259: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).
    if((fp=fopen(passfile, "w"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:290: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).
    if((fp=fopen(script_path, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:338: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).
    if((fp=fopen(script_path, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:379: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).
    if((fp=fopen(script_path, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/make_settings_buttons.c:32:7:  [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 icon_name[100],
data/gadmin-openvpn-server-0.1.5/src/make_settings_buttons.h:29:7:  [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 icon_name[100],
data/gadmin-openvpn-server-0.1.5/src/populate_conf_tab.c: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).
    if((fp=fopen(openvpn_server_conf, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/populate_conn_tab.c:51: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).
    if((fp=fopen(log_path, "r"))==NULL) 
data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c:52: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[MAX_READ_POPEN]="";
data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c:53: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 mount[8192]="", free[1024]="", used[1024]="", total[1024]="", percent[1024]="", device[8192]="";
data/gadmin-openvpn-server-0.1.5/src/populate_log_tab.c:51: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).
    if((fp=fopen(log_path, "r"))==NULL) 
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:68: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).
    if((fp=fopen(openvpn_server_conf, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:129:7:  [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).
		i = atoi(tmp);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:353:7:  [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).
		i = atoi(tmp);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:375:7:  [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).
		i = atoi(tmp);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:402:7:  [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).
		i = atoi(tmp);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:432:7:  [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).
		i = atoi(tmp);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:522: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).
    if((fp=fopen(openvpn_sysinit_script, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:672: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).
    if((fp=fopen(openvpn_openssl_conf, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:792: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).
        		val = atoi(tmp);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:810:10:  [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).
			val = atoi(tmp);
data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.c:60: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).
    if((fp=fopen(GH_SHELLS, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:35:8:  [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.
extern char global_server_address[1024];
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:36:8:  [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.
extern char global_server_port[1024];
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:37:8:  [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.
extern char global_server_name[1024];
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:38:8:  [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.
extern char global_server_type[1024];
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:39:8:  [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.
extern char global_user_name[1024];
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:37:8:  [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.
extern char global_server_address[1024];
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:38:8:  [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.
extern char global_server_port[1024];
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:39:8:  [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.
extern char global_server_name[1024];
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:40:8:  [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.
extern char global_server_type[1024];
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:41:8:  [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.
extern char global_user_name[1024];
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:60: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).
    if((fp=fopen(GS_PASSWD,"r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/save_conf_tab.c:52: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).
    if((fp=fopen(openvpn_server_conf, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/select_first_user.c:30:8:  [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.
extern char global_user_name[1024];
data/gadmin-openvpn-server-0.1.5/src/standard_conf.c:48: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).
    if((fp=fopen(file_path, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/standard_conf.c:91: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).
    if((fp=fopen(openvpn_server_conf, "w+"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/status_update.c:48: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[2];
data/gadmin-openvpn-server-0.1.5/src/status_update.c:71:13:  [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).
	    if((fp=fopen(sub_proc_path, "r"))==NULL)
data/gadmin-openvpn-server-0.1.5/src/user_treeview_row_clicked.c:30:8:  [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.
extern char global_user_name[1024];
data/gadmin-openvpn-server-0.1.5/src/add_user.c:78: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).
    length = strlen(username);
data/gadmin-openvpn-server-0.1.5/src/add_user.c:96:89:  [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( username[0]=='r' && username[1]=='o' && username[2]=='o' && username[3]=='t' && strlen(username) == 4 ) 
data/gadmin-openvpn-server-0.1.5/src/add_user.c:113: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).
    length = strlen(password);
data/gadmin-openvpn-server-0.1.5/src/add_user.c:123: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).
    length = strlen(group);
data/gadmin-openvpn-server-0.1.5/src/add_user.c:133: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).
    length = strlen(shell);
data/gadmin-openvpn-server-0.1.5/src/add_user.c:143: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).
    length = strlen(comment);
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:48:24:  [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( input!=NULL && strlen(input) > 2 )
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:78:27:  [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( line==NULL || strlen(line) < 10 || commented(line) )
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:276: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).
	for(i=strlen(lan_net_addr)-1; lan_net_addr[i]!='\0'; i--)
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:362:31:  [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( client_dns == NULL || strlen(client_dns) < 20 )
data/gadmin-openvpn-server-0.1.5/src/apply_server_settings.c:378: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).
	    for(z=0; strlen(tmp1); z++)
data/gadmin-openvpn-server-0.1.5/src/apply_user.c:63: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).
    if( strlen(password) > 0 && strlen(password) < 6 )
data/gadmin-openvpn-server-0.1.5/src/apply_user.c:63:33:  [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(password) > 0 && strlen(password) < 6 )
data/gadmin-openvpn-server-0.1.5/src/commands.c:92: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).
    if( strlen(cmd) > 4 )
data/gadmin-openvpn-server-0.1.5/src/commands.c:104: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).
    if( strlen(cmd) > 4 )
data/gadmin-openvpn-server-0.1.5/src/commands.c:121: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).
    if( strlen(cmd) > 4 )
data/gadmin-openvpn-server-0.1.5/src/commands.c:133: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).
    if( strlen(cmd) > 4 )
data/gadmin-openvpn-server-0.1.5/src/commented.c:31: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( line!=NULL && strlen(line) > 0 )
data/gadmin-openvpn-server-0.1.5/src/commented.c:34: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).
	if( strlen(line) > 2 )
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:71:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:114:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:118:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:126:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:130:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:134:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:138:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:146:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:150:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:158:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:162:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:166:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:170:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:178:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:182:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:190:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:194:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:202:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:206:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:214:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:218:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:226:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/create_server_settings.c:230:41:  [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).
    utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/delete_user.c:69: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).
    length = strlen(username);
data/gadmin-openvpn-server-0.1.5/src/delete_user.c:79:89:  [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( username[0]=='r' && username[1]=='o' && username[2]=='o' && username[3]=='t' && strlen(username)==4 ) 
data/gadmin-openvpn-server-0.1.5/src/delete_user.c:159: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).
    length = strlen(username);
data/gadmin-openvpn-server-0.1.5/src/delete_user.c:169:89:  [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( username[0]=='r' && username[1]=='o' && username[2]=='o' && username[3]=='t' && strlen(username) == 4 ) 
data/gadmin-openvpn-server-0.1.5/src/export_window.c:78: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).
	if( strlen(line) < 4 || commented(line) )
data/gadmin-openvpn-server-0.1.5/src/export_window.c:145:29:  [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( export_dir==NULL || strlen(export_dir) < 4 )
data/gadmin-openvpn-server-0.1.5/src/export_window.c:156:27:  [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( export_user!=NULL && strlen(export_user) > 1 )
data/gadmin-openvpn-server-0.1.5/src/export_window.c:215:30:  [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( export_user!=NULL && strlen(export_user) > 1 )
data/gadmin-openvpn-server-0.1.5/src/export_window.c:308: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).
    utf8 = g_locale_to_utf8(text, strlen(text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/functions.c:62: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).
    if( strlen(buf) < 2 )
data/gadmin-openvpn-server-0.1.5/src/functions.c:65: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).
    newbuf = allocate(strlen(buf)+1);
data/gadmin-openvpn-server-0.1.5/src/functions.c:152: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(username) == strlen(tempname) )
data/gadmin-openvpn-server-0.1.5/src/functions.c:152:27:  [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(username) == strlen(tempname) )
data/gadmin-openvpn-server-0.1.5/src/functions.c:236: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).
			if( strstr(groupname, tempname) && strlen(groupname)==strlen(tempname) )
data/gadmin-openvpn-server-0.1.5/src/functions.c:236: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).
			if( strstr(groupname, tempname) && strlen(groupname)==strlen(tempname) )
data/gadmin-openvpn-server-0.1.5/src/functions.c:341: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).
            if( strlen(tempname) < 351 && ! strstr(tempname, ":") )
data/gadmin-openvpn-server-0.1.5/src/functions.c:404: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).
	for(y=strlen(temp)-1; temp[y]; y--)
data/gadmin-openvpn-server-0.1.5/src/functions.c:427: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).
    for(y=strlen(line)-1; line[y]!='\0'; y--)
data/gadmin-openvpn-server-0.1.5/src/functions.c:650: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(new_buffer, "\n");
data/gadmin-openvpn-server-0.1.5/src/functions.c:699:6:  [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(new_buffer, "\n");
data/gadmin-openvpn-server-0.1.5/src/functions.c:733: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).
    if( path[strlen(path)-1]=='*' )
data/gadmin-openvpn-server-0.1.5/src/functions.c:734: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).
	path[strlen(path)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/functions.c:736: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).
    if( path[strlen(path)-1]=='/' )
data/gadmin-openvpn-server-0.1.5/src/functions.c:737: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).
	path[strlen(path)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/functions.c:759:41:  [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).
    utf8 = g_locale_to_utf8(rnd_string, strlen(rnd_string), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/functions.c:777:41:  [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).
    utf8 = g_locale_to_utf8(rnd_string, strlen(rnd_string), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/functions.c:832:5:  [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.
    usleep(300000);
data/gadmin-openvpn-server-0.1.5/src/functions.c:864:5:  [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.
    usleep(300000);
data/gadmin-openvpn-server-0.1.5/src/functions.c:920:27:  [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( ccd_text!=NULL && strlen(ccd_text) > 0 )
data/gadmin-openvpn-server-0.1.5/src/functions.c:928: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).
		if( strlen(ccd_list[z]) < 1 && ccd_list[z+1] == NULL )
data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.c:95:10:  [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.
    	    usleep(100000*10);
data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.c:170: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).
        utf8 = g_locale_to_utf8(info, strlen(info), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.c:177: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).
        utf8 = g_locale_to_utf8(info, strlen(info), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.c:184: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).
        utf8 = g_locale_to_utf8(info, strlen(info), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.c:191: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).
        utf8 = g_locale_to_utf8(info, strlen(info), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.c:198: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).
        utf8 = g_locale_to_utf8(info, strlen(info), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.c:205: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).
        utf8 = g_locale_to_utf8(info, strlen(info), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/gadmin-openvpn.c:214: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).
        utf8 = g_locale_to_utf8(info, strlen(info), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:79: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).
    if( strlen(hostname) == 0 || strlen(email)   == 0 || strlen(bits)     == 0 || strlen(password) == 0
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:79: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).
    if( strlen(hostname) == 0 || strlen(email)   == 0 || strlen(bits)     == 0 || strlen(password) == 0
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:79: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).
    if( strlen(hostname) == 0 || strlen(email)   == 0 || strlen(bits)     == 0 || strlen(password) == 0
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:79:83:  [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(hostname) == 0 || strlen(email)   == 0 || strlen(bits)     == 0 || strlen(password) == 0
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:80: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).
    ||  strlen(days)     == 0 || strlen(country) == 0 || strlen(country)   > 2 || strlen(state)    == 0
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:80: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(days)     == 0 || strlen(country) == 0 || strlen(country)   > 2 || strlen(state)    == 0
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:80: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).
    ||  strlen(days)     == 0 || strlen(country) == 0 || strlen(country)   > 2 || strlen(state)    == 0
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:80:83:  [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(days)     == 0 || strlen(country) == 0 || strlen(country)   > 2 || strlen(state)    == 0
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:81: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).
    ||  strlen(city)     == 0 || strlen(org)     == 0 || strlen(org_unit) == 0 || strlen(cert_dir)  < 7 )
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:81: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(city)     == 0 || strlen(org)     == 0 || strlen(org_unit) == 0 || strlen(cert_dir)  < 7 )
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:81: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).
    ||  strlen(city)     == 0 || strlen(org)     == 0 || strlen(org_unit) == 0 || strlen(cert_dir)  < 7 )
data/gadmin-openvpn-server-0.1.5/src/generate_cert.c:81:83:  [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(city)     == 0 || strlen(org)     == 0 || strlen(org_unit) == 0 || strlen(cert_dir)  < 7 )
data/gadmin-openvpn-server-0.1.5/src/populate_conf_tab.c:65:40:  [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).
    utf8 = g_locale_to_utf8(new_buffy, strlen(new_buffy), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_conf_tab.c:69:50:  [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).
	gtk_text_buffer_set_text(conf_textbuffer, utf8, strlen(utf8));
data/gadmin-openvpn-server-0.1.5/src/populate_conn_tab.c:69:36:  [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).
    	utf8 = g_locale_to_utf8(line, strlen(line)-1, NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c:71:40:  [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).
        utf8 = g_locale_to_utf8(mount, strlen(mount), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c:74: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).
        utf8 = g_locale_to_utf8(free, strlen(free), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c:77: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).
        utf8 = g_locale_to_utf8(used, strlen(used), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c:80:40:  [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).
        utf8 = g_locale_to_utf8(total, strlen(total), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c:83: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).
        utf8 = g_locale_to_utf8(percent, strlen(percent), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_disc_tab.c:86:41:  [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).
        utf8 = g_locale_to_utf8(device, strlen(device), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_log_tab.c:69:36:  [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).
    	utf8 = g_locale_to_utf8(line, strlen(line)-1, NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:86:27:  [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( line==NULL || strlen(line) < 4 || commented(line) )
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:103: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:104: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:106: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).
	    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:124: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:125: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:146: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:147: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:154: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).
	    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:180: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:181: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:188: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).
	    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:224: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:225: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:227: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).
	    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:348: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:349: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:370: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:371: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:392: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:393: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:395: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).
	    for(i=strlen(tmp)-1; tmp[i]!='\0'; i--)
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:427: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:428: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:449: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:450: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:452: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).
	    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:470: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:471: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:473: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).
	    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:496: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).
	    if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:497: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:499: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).
	    if( tmp[strlen(tmp)-1]=='"')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:500: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).
	      tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:504: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).
	    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:540:24:  [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( line==NULL || strlen(line) < 4 || commented(line) )
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:551: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).
		if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:552: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).
	          tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:559: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).
		utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:575: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).
		if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:576: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).
	          tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:583: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).
		utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:601: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).
		if( tmp[strlen(tmp)-1]=='\n')
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:602: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).
	          tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:609: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).
		utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:649:31:  [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).
	utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:655:31:  [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).
	utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:661:31:  [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).
	utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:688:27:  [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( line==NULL || strlen(line) < 4 || commented(line) )
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:699: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).
		    tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:700:36:  [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).
		    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:714: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).
		    tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:715:36:  [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).
		    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:729: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).
		    tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:730:36:  [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).
		    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:744: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).
		    tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:745:36:  [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).
		    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:759: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).
		    tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:760:36:  [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).
		    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:774: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).
		    tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:775:36:  [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).
		    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:789: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).
		    tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:807: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).
		    tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:828: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).
		    tmp[strlen(tmp)-1]='\0';
data/gadmin-openvpn-server-0.1.5/src/populate_server_settings.c:829:36:  [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).
		    utf8 = g_locale_to_utf8(tmp, strlen(tmp), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.c:51: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).
	utf8 = g_locale_to_utf8(combo_text, strlen(combo_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.c:87:41:  [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).
	    utf8 = g_locale_to_utf8(new_buffy, strlen(new_buffy)-1, NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.c:97:41:  [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).
	    utf8 = g_locale_to_utf8(new_buffy, strlen(new_buffy)-1, NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.c:122: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).
	&&  ! strstr(old_buffy, "#") && strlen(old_buffy) > 7 )
data/gadmin-openvpn-server-0.1.5/src/populate_shell_combo.c:125:41:  [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).
	    utf8 = g_locale_to_utf8(new_buffy, strlen(new_buffy)-1, NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:58:29:  [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( username == NULL || strlen(username) < 1 )
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:81: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).
    utf8 = g_locale_to_utf8(username, strlen(username), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:89:40:  [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).
    utf8 = g_locale_to_utf8(groupname, strlen(groupname), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:98:40:  [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).
    utf8 = g_locale_to_utf8(user_item, strlen(user_item), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:132:36:  [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).
	utf8 = g_locale_to_utf8(ccd_text, strlen(ccd_text), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_user_settings.c:134: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).
	gtk_text_buffer_set_text(textbuffer, utf8, strlen(utf8));
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:83:41:  [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).
    		utf8 = g_locale_to_utf8(username, strlen(username), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:93:43:  [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).
    		utf8 = g_locale_to_utf8(group_name, strlen(group_name), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:104: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).
    		utf8 = g_locale_to_utf8(user_item, strlen(user_item), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:113: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).
    		utf8 = g_locale_to_utf8(user_item, strlen(user_item), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/populate_users.c:132: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(global_user_name, "");
data/gadmin-openvpn-server-0.1.5/src/select_first_user.c:48:2:  [1] (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 character.
	strcpy(global_user_name, "");
data/gadmin-openvpn-server-0.1.5/src/set_version.c:73: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).
       if( cmplowercase(line, "openvpn") && strlen(line) < 100 )
data/gadmin-openvpn-server-0.1.5/src/set_version.c:86:33:  [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).
	  utf8 = g_locale_to_utf8(ver, strlen(ver)-1, NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/set_version.c:97:31:  [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).
	utf8 = g_locale_to_utf8(ver, strlen(ver), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/show_info.c:52: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).
    if( strlen(content) < 5 )
data/gadmin-openvpn-server-0.1.5/src/show_info.c:112: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).
    utf8 = g_locale_to_utf8(content, strlen(content), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/show_info.c:115:53:  [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).
        gtk_text_buffer_set_text(text_buffer, utf8, strlen(utf8));
data/gadmin-openvpn-server-0.1.5/src/status_update.c:52:5:  [1] (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 character.
    strcpy(pid, "0");
data/gadmin-openvpn-server-0.1.5/src/status_update.c:126: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).
	utf8 = g_locale_to_utf8(info, strlen(info), NULL, NULL, NULL);
data/gadmin-openvpn-server-0.1.5/src/status_update.c:141: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).
    	  utf8 = g_locale_to_utf8(info, strlen(info), NULL, NULL, NULL);

ANALYSIS SUMMARY:

Hits = 320
Lines analyzed = 11442 in approximately 0.37 seconds (31189 lines/second)
Physical Source Lines of Code (SLOC) = 6763
Hits@level = [0]  65 [1] 193 [2]  85 [3]   3 [4]  39 [5]   0
Hits@level+ = [0+] 385 [1+] 320 [2+] 127 [3+]  42 [4+]  39 [5+]   0
Hits/KSLOC@level+ = [0+] 56.9274 [1+] 47.3163 [2+] 18.7786 [3+] 6.21026 [4+] 5.76667 [5+]   0
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.