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/libnma-1.8.30/src/nma-ui-utils.h
Examining data/libnma-1.8.30/src/nma-mobile-wizard.h
Examining data/libnma-1.8.30/src/nma-version.h
Examining data/libnma-1.8.30/src/qrcodegen.c
Examining data/libnma-1.8.30/src/nma-bar-code-widget.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-dynamic-wep.c
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-ttls.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-wpa-psk.c
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-leap.h
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-peap.c
Examining data/libnma-1.8.30/src/nma-ws/nma-eap.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.h
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-tls.c
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-helpers.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-private.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-wpa-psk.h
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-peap.h
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-fast.c
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-sae.c
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-wpa-eap.c
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-wpa-eap.h
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-leap.c
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-sae.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-802-1x.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-802-1x-private.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-802-1x.c
Examining data/libnma-1.8.30/src/nma-ws/nma-ws.c
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-fast.h
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-leap.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-leap.c
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-helpers.c
Examining data/libnma-1.8.30/src/nma-ws/nma-eap.c
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-tls.h
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-simple.c
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-simple.h
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c
Examining data/libnma-1.8.30/src/nma-ws/nma-eap-ttls.c
Examining data/libnma-1.8.30/src/nma-ws/nma-ws-dynamic-wep.h
Examining data/libnma-1.8.30/src/nma-bar-code-widget.c
Examining data/libnma-1.8.30/src/nma-cert-chooser-private.h
Examining data/libnma-1.8.30/src/nma-pkcs11-cert-chooser.c
Examining data/libnma-1.8.30/src/nma-cert-chooser-button.h
Examining data/libnma-1.8.30/src/utils/utils.h
Examining data/libnma-1.8.30/src/utils/utils.c
Examining data/libnma-1.8.30/src/utils/tests/test-utils.c
Examining data/libnma-1.8.30/src/nma-mobile-providers.c
Examining data/libnma-1.8.30/src/nma-pkcs11-cert-chooser-dialog.c
Examining data/libnma-1.8.30/src/qrcodegen.h
Examining data/libnma-1.8.30/src/nma-mobile-wizard.c
Examining data/libnma-1.8.30/src/nma-file-cert-chooser.c
Examining data/libnma-1.8.30/src/nma-pkcs11-cert-chooser-dialog.h
Examining data/libnma-1.8.30/src/nma-ui-utils.c
Examining data/libnma-1.8.30/src/nma-mobile-providers.h
Examining data/libnma-1.8.30/src/nma-wifi-dialog.h
Examining data/libnma-1.8.30/src/init.c
Examining data/libnma-1.8.30/src/nma-cert-chooser.h
Examining data/libnma-1.8.30/src/nma-cert-chooser.c
Examining data/libnma-1.8.30/src/tests/wifi-dialog.c
Examining data/libnma-1.8.30/src/tests/bar-code.c
Examining data/libnma-1.8.30/src/tests/ws.c
Examining data/libnma-1.8.30/src/tests/vpn-password-dialog.c
Examining data/libnma-1.8.30/src/tests/wifi-dialog-secrets.c
Examining data/libnma-1.8.30/src/tests/run-vpn.c
Examining data/libnma-1.8.30/src/tests/mobile-wizard.c
Examining data/libnma-1.8.30/src/tests/cert-chooser.c
Examining data/libnma-1.8.30/src/nma-vpn-password-dialog.h
Examining data/libnma-1.8.30/src/nma-vpn-password-dialog.c
Examining data/libnma-1.8.30/src/nma-pkcs11-token-login-dialog.h
Examining data/libnma-1.8.30/src/nma-private.h
Examining data/libnma-1.8.30/src/nma-wifi-dialog.c
Examining data/libnma-1.8.30/src/nma-cert-chooser-button.c
Examining data/libnma-1.8.30/src/nma-bar-code.c
Examining data/libnma-1.8.30/src/nma-bar-code.h
Examining data/libnma-1.8.30/src/nma-pkcs11-token-login-dialog.c
Examining data/libnma-1.8.30/shared/nm-libnm-compat.h
Examining data/libnma-1.8.30/shared/nm-default.h
Examining data/libnma-1.8.30/shared/nm-utils/nm-glib.h
Examining data/libnma-1.8.30/shared/nm-utils/gsystem-local-alloc.h
Examining data/libnma-1.8.30/shared/nm-utils/nm-compat.c
Examining data/libnma-1.8.30/shared/nm-utils/nm-compat.h
Examining data/libnma-1.8.30/shared/nm-utils/nm-macros-internal.h
Examining data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h
Examining data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c
Examining data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.h
Examining data/libnma-1.8.30/shared/nm-utils/nm-vpn-editor-plugin-call.h

FINAL RESULTS:

data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:214:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf (_NM_UTILS_MACRO_FIRST (__VA_ARGS__) "\n" _NM_UTILS_MACRO_REST (__VA_ARGS__)); \
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:984:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp (__nmtst_internal.sudo_cmd, argv);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:794:11:  [3] (random) g_rand_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			seed = g_rand_int (__nmtst_internal.rand);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:807:9:  [3] (random) g_rand_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	return g_rand_int (nmtst_get_rand ());
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:825:7:  [3] (random) g_rand_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		v = g_rand_int (rand);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:829:7:  [3] (random) g_rand_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		v = g_rand_int (rand);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:862:7:  [3] (random) g_rand_int_range:
  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.
		j = g_rand_int_range (rand, 0, i);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:894:28:  [3] (random) g_rand_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		tmp = g_slist_nth (list, g_rand_int (rand) % l);
data/libnma-1.8.30/src/nma-mobile-wizard.c:1358:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	lang = getenv ("LC_ALL");
data/libnma-1.8.30/src/nma-mobile-wizard.c:1360:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		lang = getenv ("LANG");
data/libnma-1.8.30/shared/nm-utils/nm-macros-internal.h:1002:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (s, str, l);
data/libnma-1.8.30/shared/nm-utils/nm-macros-internal.h:1146:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy (&_buf[1], _str, _strlen_trunc); \
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c:373:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addrstr_buf[MAX (INET_ADDRSTRLEN, INET6_ADDRSTRLEN)];
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c:427:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (out_addr, &addrbin, addr_len);
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c:439:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addrstr_buf[MAX (INET_ADDRSTRLEN, INET6_ADDRSTRLEN)];
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c:559:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (s0, str, str_len);
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c:573:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (ptr, ptr_old, sizeof (const char *) * plen);
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c:604:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (s, s0, str_len);
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.h:239: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 _nm_utils_to_string_buffer[2096];
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:826:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (b, &v, sizeof (guint32));
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:853:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (dst, src, elmt_size * n_elmt);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:868:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (bu, p_, elmt_size);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:869:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (p_, pj, elmt_size);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:870:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (pj, bu, elmt_size);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1038:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[SIZE]; \
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1058:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char u[37];
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1069:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char __nmtst_swap_temp[sizeof(x) == sizeof(y) ? (signed) sizeof(x) : -1]; \
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1070:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(__nmtst_swap_temp, &y, sizeof(x)); \
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1071:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&y,                &x, sizeof(x)); \
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1122:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[100];
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1140:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[100];
data/libnma-1.8.30/src/nma-mobile-providers.c:896:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[4096];
data/libnma-1.8.30/src/nma-pkcs11-cert-chooser-dialog.c:166:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (label, attr->value, attr->length);
data/libnma-1.8.30/src/nma-ui-utils.c:29:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *icon_name_table[ITEM_STORAGE_MAX + 1] = {
data/libnma-1.8.30/src/nma-ui-utils.c:35:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *icon_desc_table[ITEM_STORAGE_MAX + 1] = {
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:35:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char keys[4][65];
data/libnma-1.8.30/src/qrcodegen.c:75:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void addRunToHistory(unsigned char run, unsigned char history[7]);
data/libnma-1.8.30/src/qrcodegen.c:75:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void addRunToHistory(unsigned char run, unsigned char history[7]);
data/libnma-1.8.30/src/qrcodegen.c:76:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static bool hasFinderLikePattern(unsigned char runHistory[7]);
data/libnma-1.8.30/src/qrcodegen.c:637:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char runHistory[7] = {0};
data/libnma-1.8.30/src/qrcodegen.c:663:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char runHistory[7] = {0};
data/libnma-1.8.30/src/qrcodegen.c:717:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void addRunToHistory(unsigned char run, unsigned char history[7]) {
data/libnma-1.8.30/src/qrcodegen.c:717:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void addRunToHistory(unsigned char run, unsigned char history[7]) {
data/libnma-1.8.30/src/qrcodegen.c:726:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static bool hasFinderLikePattern(unsigned char runHistory[7]) {
data/libnma-1.8.30/src/qrcodegen.c:871:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, data, len * sizeof(buf[0]));
data/libnma-1.8.30/src/utils/tests/test-utils.c:77:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                  char **open,
data/libnma-1.8.30/src/utils/utils.c:63:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char input[66];
data/libnma-1.8.30/src/utils/utils.c:68:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy (input, g_bytes_get_data (ssid, NULL), g_bytes_get_size (ssid));
data/libnma-1.8.30/src/utils/utils.c:95:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy (&input[33], &input[0], 32);
data/libnma-1.8.30/shared/nm-utils/nm-glib.h:441: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).
	bytes = g_bytes_new_take (string, strlen (string) + 1);
data/libnma-1.8.30/shared/nm-utils/nm-macros-internal.h:81:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memset (secret, 0, strlen (secret));
data/libnma-1.8.30/shared/nm-utils/nm-macros-internal.h:993: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).
	l = strlen (str);
data/libnma-1.8.30/shared/nm-utils/nm-macros-internal.h:1141: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).
				const gsize _strlen_trunc = NM_MIN (strlen (_str), _trunc_at); \
data/libnma-1.8.30/shared/nm-utils/nm-macros-internal.h:1190: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).
		const gsize _name_len = strlen (_name); \
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c:552: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).
	str_len = strlen (str) + 1;
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c:706:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (str);
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c:942: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).
	s = g_string_sized_new ((p - str) + strlen (p) + 5);
data/libnma-1.8.30/shared/nm-utils/nm-shared-utils.c:1072:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		k = read (fd, p, nbytes);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:354: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).
			} else if (!g_ascii_strncasecmp (debug, "log-level=", strlen ("log-level="))) {
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:356:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				log_level = c_log_level = g_strdup (&debug[strlen ("log-level=")]);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:365:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (!g_ascii_strncasecmp (debug, "log-domains=", strlen ("log-domains="))) {
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:367:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				log_domains = c_log_domains = g_strdup (&debug[strlen ("log-domains=")]);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:368:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			} else if (!g_ascii_strncasecmp (debug, "sudo-cmd=", strlen ("sudo-cmd="))) {
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:370: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).
				sudo_cmd = g_strdup (&debug[strlen ("sudo-cmd=")]);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:373: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).
			} else if (!g_ascii_strncasecmp (debug, "p=", strlen ("p="))) {
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:376:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				g_ptr_array_add (p_tests, g_strdup (&debug[strlen ("p=")]));
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:377: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).
			} else if (!g_ascii_strncasecmp (debug, "s=", strlen ("s="))) {
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:380:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				g_ptr_array_add (s_tests, g_strdup (&debug[strlen ("s=")]));
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1062: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).
	g_assert (m && strlen (m) == sizeof (u) - 1);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1226:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	g_assert_cmpint (strlen (contents), ==, len);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1830:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	success = g_key_file_load_from_data (keyfile, keyfile_str, strlen (keyfile_str), G_KEY_FILE_NONE, &error);
data/libnma-1.8.30/shared/nm-utils/nm-test-utils.h:1895:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		g_assert_cmpint (_l, ==, strlen (_str)); \
data/libnma-1.8.30/src/nma-mobile-providers.c:614: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).
			if (mcc && strlen (mcc) && mnc && strlen (mnc)) {
data/libnma-1.8.30/src/nma-mobile-providers.c:614:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (mcc && strlen (mcc) && mnc && strlen (mnc)) {
data/libnma-1.8.30/src/nma-mobile-providers.c:1235: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).
	mccmnc_len = strlen (mccmnc);
data/libnma-1.8.30/src/nma-mobile-providers.c:1262: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).
				mccmnc_iter_len = strlen (mccmnc_iter);
data/libnma-1.8.30/src/nma-mobile-providers.c:1587:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen (mccmnc);
data/libnma-1.8.30/src/nma-mobile-wizard.c:353:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		                                 (manual_apn && strlen (manual_apn)));
data/libnma-1.8.30/src/nma-mobile-wizard.c:522:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unmatched = !!g_ascii_strncasecmp (provider, key, strlen (key));
data/libnma-1.8.30/src/nma-mobile-wizard.c:783:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	unmatched = !!g_ascii_strncasecmp (country, key, strlen (key));
data/libnma-1.8.30/src/nma-mobile-wizard.c:1365:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!p || !strlen (p)) {
data/libnma-1.8.30/src/nma-ui-utils.c:48: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).
		memset (p, 0, strlen (p));
data/libnma-1.8.30/src/nma-wifi-dialog.c:152: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).
	if (!ssid || strlen (ssid) == 0 || strlen (ssid) > 32)
data/libnma-1.8.30/src/nma-wifi-dialog.c:152:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!ssid || strlen (ssid) == 0 || strlen (ssid) > 32)
data/libnma-1.8.30/src/nma-wifi-dialog.c:155: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).
	ssid_bytes = g_bytes_new (ssid, strlen (ssid));
data/libnma-1.8.30/src/nma-ws/nma-eap-fast.c:136: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 (text && strlen (text))
data/libnma-1.8.30/src/nma-ws/nma-eap-leap.c:53: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).
	if (!text || !strlen (text)) {
data/libnma-1.8.30/src/nma-ws/nma-eap-leap.c:61: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).
	if (!text || !strlen (text)) {
data/libnma-1.8.30/src/nma-ws/nma-eap-peap.c:145: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 (text && strlen (text))
data/libnma-1.8.30/src/nma-ws/nma-eap-peap.c:151: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 (text && strlen (text))
data/libnma-1.8.30/src/nma-ws/nma-eap-simple.c:77: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 (!text || !strlen (text)) {
data/libnma-1.8.30/src/nma-ws/nma-eap-simple.c:91:18:  [1] (buffer) strlen:
  Does not handle 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 (!text || !strlen (text)) {
data/libnma-1.8.30/src/nma-ws/nma-eap-simple.c:105: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 (!text || !strlen (text)) {
data/libnma-1.8.30/src/nma-ws/nma-eap-tls.c:45:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!identity || !strlen (identity)) {
data/libnma-1.8.30/src/nma-ws/nma-eap-ttls.c:141: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 (text && strlen (text))
data/libnma-1.8.30/src/nma-ws/nma-eap-ttls.c:147: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 (text && strlen (text))
data/libnma-1.8.30/src/nma-ws/nma-ws-802-1x.c:57: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).
		memset (self->password, 0, strlen (self->password));
data/libnma-1.8.30/src/nma-ws/nma-ws-leap.c:69: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).
	if (!text || !strlen (text)) {
data/libnma-1.8.30/src/nma-ws/nma-ws-leap.c:82:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    || (text && strlen (text))) {
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:113: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).
		if ((strlen (key) == 10) || (strlen (key) == 26)) {
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:113: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).
		if ((strlen (key) == 10) || (strlen (key) == 26)) {
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:114:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for (i = 0; i < strlen (key); i++) {
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:117:133:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					g_set_error (error, NMA_ERROR, NMA_ERROR_GENERIC, _("invalid wep-key: key with a length of %zu must contain only hex-digits"), strlen (key));
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:121: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).
		} else if ((strlen (key) == 5) || (strlen (key) == 13)) {
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:121: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).
		} else if ((strlen (key) == 5) || (strlen (key) == 13)) {
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:122:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			for (i = 0; i < strlen (key); i++) {
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:125:139:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					g_set_error (error, NMA_ERROR, NMA_ERROR_GENERIC, _("invalid wep-key: key with a length of %zu must contain only ascii characters"), strlen (key));
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:131:158:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			g_set_error (error, NMA_ERROR, NMA_ERROR_GENERIC, _("invalid wep-key: wrong key length %zu. A key must be either of length 5/13 (ascii) or 10/26 (hex)"), strlen (key));
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:135: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 (!*key || (strlen (key) > 64)) {
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:185: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 (self->keys[i]))
data/libnma-1.8.30/src/nma-ws/nma-ws-wep-key.c:234: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 (self->keys[self->cur_index])) {
data/libnma-1.8.30/src/nma-ws/nma-ws-wpa-psk.c:73: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).
	len = key ? strlen (key) : 0;
data/libnma-1.8.30/src/qrcodegen.c:131:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t textLen = strlen(text);
data/libnma-1.8.30/src/qrcodegen.c:881: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).
	size_t len = strlen(digits);
data/libnma-1.8.30/src/qrcodegen.c:915: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).
	size_t len = strlen(text);
data/libnma-1.8.30/src/utils/tests/test-utils.c:46: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).
	return g_bytes_new (str, strlen (str));
data/libnma-1.8.30/src/utils/utils.c:130: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).
	escaped = g_string_sized_new (strlen (src) + 5);
data/libnma-1.8.30/src/utils/utils.c:136: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).
			if (strncasecmp (p, t->tag, strlen (t->tag)) == 0) {
data/libnma-1.8.30/src/utils/utils.c:137:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				p += strlen (t->tag);
data/libnma-1.8.30/src/utils/utils.c:386: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).
	if (!item || !strlen (item)) {
data/libnma-1.8.30/src/utils/utils.c:426: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).
	if (!item || !strlen (item)) {
data/libnma-1.8.30/src/utils/utils.c:465: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).
	if (!item || !strlen (item)) {

ANALYSIS SUMMARY:

Hits = 122
Lines analyzed = 25650 in approximately 1.03 seconds (24846 lines/second)
Physical Source Lines of Code (SLOC) = 18200
Hits@level = [0]   0 [1]  73 [2]  39 [3]   8 [4]   2 [5]   0
Hits@level+ = [0+] 122 [1+] 122 [2+]  49 [3+]  10 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 6.7033 [1+] 6.7033 [2+] 2.69231 [3+] 0.549451 [4+] 0.10989 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.