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/librm-2.1.2/plugins/areacodes_global/areacodes_global.c
Examining data/librm-2.1.2/plugins/areacodes_global/csv.c
Examining data/librm-2.1.2/plugins/areacodes_global/csv.h
Examining data/librm-2.1.2/plugins/capi/capi.c
Examining data/librm-2.1.2/plugins/capi/capi.h
Examining data/librm-2.1.2/plugins/capi/fax.c
Examining data/librm-2.1.2/plugins/capi/fax.h
Examining data/librm-2.1.2/plugins/capi/isdn-convert.c
Examining data/librm-2.1.2/plugins/capi/isdn-convert.h
Examining data/librm-2.1.2/plugins/capi/phone.c
Examining data/librm-2.1.2/plugins/capi/phone.h
Examining data/librm-2.1.2/plugins/fritzbox/callmonitor.c
Examining data/librm-2.1.2/plugins/fritzbox/callmonitor.h
Examining data/librm-2.1.2/plugins/fritzbox/csv.c
Examining data/librm-2.1.2/plugins/fritzbox/csv.h
Examining data/librm-2.1.2/plugins/fritzbox/firmware-04-00.c
Examining data/librm-2.1.2/plugins/fritzbox/firmware-04-00.h
Examining data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c
Examining data/librm-2.1.2/plugins/fritzbox/firmware-04-74.h
Examining data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c
Examining data/librm-2.1.2/plugins/fritzbox/firmware-05-50.h
Examining data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c
Examining data/librm-2.1.2/plugins/fritzbox/firmware-06-35.h
Examining data/librm-2.1.2/plugins/fritzbox/firmware-common.c
Examining data/librm-2.1.2/plugins/fritzbox/firmware-common.h
Examining data/librm-2.1.2/plugins/fritzbox/firmware-query.c
Examining data/librm-2.1.2/plugins/fritzbox/firmware-query.h
Examining data/librm-2.1.2/plugins/fritzbox/firmware-tr64.c
Examining data/librm-2.1.2/plugins/fritzbox/firmware-tr64.h
Examining data/librm-2.1.2/plugins/fritzbox/fritzbox.c
Examining data/librm-2.1.2/plugins/fritzbox/fritzbox.h
Examining data/librm-2.1.2/plugins/fritzfon/fritzfon.c
Examining data/librm-2.1.2/plugins/gnotification/gnotification.c
Examining data/librm-2.1.2/plugins/gstreamer/gstreamer.c
Examining data/librm-2.1.2/plugins/reverselookup/reverselookup.c
Examining data/librm-2.1.2/plugins/secret/secret.c
Examining data/librm-2.1.2/plugins/simple_pwd/simple_pwd.c
Examining data/librm-2.1.2/plugins/wincred/wincred.c
Examining data/librm-2.1.2/rm/rm.h
Examining data/librm-2.1.2/rm/rmaction.c
Examining data/librm-2.1.2/rm/rmaction.h
Examining data/librm-2.1.2/rm/rmaddressbook.c
Examining data/librm-2.1.2/rm/rmaddressbook.h
Examining data/librm-2.1.2/rm/rmaudio.c
Examining data/librm-2.1.2/rm/rmaudio.h
Examining data/librm-2.1.2/rm/rmcallentry.c
Examining data/librm-2.1.2/rm/rmcallentry.h
Examining data/librm-2.1.2/rm/rmconnection.c
Examining data/librm-2.1.2/rm/rmconnection.h
Examining data/librm-2.1.2/rm/rmcontact.c
Examining data/librm-2.1.2/rm/rmcontact.h
Examining data/librm-2.1.2/rm/rmcsv.c
Examining data/librm-2.1.2/rm/rmcsv.h
Examining data/librm-2.1.2/rm/rmdevice.c
Examining data/librm-2.1.2/rm/rmdevice.h
Examining data/librm-2.1.2/rm/rmfax.c
Examining data/librm-2.1.2/rm/rmfax.h
Examining data/librm-2.1.2/rm/rmfaxserver.c
Examining data/librm-2.1.2/rm/rmfaxserver.h
Examining data/librm-2.1.2/rm/rmfile.c
Examining data/librm-2.1.2/rm/rmfile.h
Examining data/librm-2.1.2/rm/rmfilter.c
Examining data/librm-2.1.2/rm/rmfilter.h
Examining data/librm-2.1.2/rm/rmftp.c
Examining data/librm-2.1.2/rm/rmftp.h
Examining data/librm-2.1.2/rm/rmimage.c
Examining data/librm-2.1.2/rm/rmimage.h
Examining data/librm-2.1.2/rm/rmjournal.c
Examining data/librm-2.1.2/rm/rmjournal.h
Examining data/librm-2.1.2/rm/rmlog.c
Examining data/librm-2.1.2/rm/rmlog.h
Examining data/librm-2.1.2/rm/rmlookup.c
Examining data/librm-2.1.2/rm/rmlookup.h
Examining data/librm-2.1.2/rm/rmmain.c
Examining data/librm-2.1.2/rm/rmmain.h
Examining data/librm-2.1.2/rm/rmnetmonitor.c
Examining data/librm-2.1.2/rm/rmnetmonitor.h
Examining data/librm-2.1.2/rm/rmnetwork.c
Examining data/librm-2.1.2/rm/rmnetwork.h
Examining data/librm-2.1.2/rm/rmnotification.c
Examining data/librm-2.1.2/rm/rmnotification.h
Examining data/librm-2.1.2/rm/rmnumber.c
Examining data/librm-2.1.2/rm/rmnumber.h
Examining data/librm-2.1.2/rm/rmobject.c
Examining data/librm-2.1.2/rm/rmobject.h
Examining data/librm-2.1.2/rm/rmobjectemit.c
Examining data/librm-2.1.2/rm/rmobjectemit.h
Examining data/librm-2.1.2/rm/rmpassword.c
Examining data/librm-2.1.2/rm/rmpassword.h
Examining data/librm-2.1.2/rm/rmphone.c
Examining data/librm-2.1.2/rm/rmphone.h
Examining data/librm-2.1.2/rm/rmplugins.c
Examining data/librm-2.1.2/rm/rmplugins.h
Examining data/librm-2.1.2/rm/rmprofile.c
Examining data/librm-2.1.2/rm/rmprofile.h
Examining data/librm-2.1.2/rm/rmrouter.c
Examining data/librm-2.1.2/rm/rmrouter.h
Examining data/librm-2.1.2/rm/rmrouterinfo.h
Examining data/librm-2.1.2/rm/rmsettings.c
Examining data/librm-2.1.2/rm/rmsettings.h
Examining data/librm-2.1.2/rm/rmssdp.c
Examining data/librm-2.1.2/rm/rmssdp.h
Examining data/librm-2.1.2/rm/rmstring.c
Examining data/librm-2.1.2/rm/rmstring.h
Examining data/librm-2.1.2/rm/rmutils.c
Examining data/librm-2.1.2/rm/rmutils.h
Examining data/librm-2.1.2/rm/rmvox.c
Examining data/librm-2.1.2/rm/rmvox.h
Examining data/librm-2.1.2/rm/rmxml.c
Examining data/librm-2.1.2/rm/rmxml.h
Examining data/librm-2.1.2/tests/action.c
Examining data/librm-2.1.2/tests/call.c

FINAL RESULTS:

data/librm-2.1.2/plugins/capi/phone.c:260:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(file, F_OK)) {
data/librm-2.1.2/plugins/wincred/wincred.c:52:2:  [4] (format) swprintf:
  Potential format string problem (CWE-134). Make format string constant.
	swprintf(wide_password, length, L"%S", password);
data/librm-2.1.2/rm/rmjournal.c:70:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(file, RM_JOURNAL_HEADER);
data/librm-2.1.2/rm/rmxml.c:646:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(err_msg, sizeof(err_msg), msg, args);
data/librm-2.1.2/plugins/reverselookup/reverselookup.c:599:26:  [3] (buffer) g_get_home_dir:
  This function is synonymous with 'getenv("HOME")';it returns untrustable
  input if the environment can beset by an attacker. It can have any content
  and length, and the same variable can be set more than once (CWE-807,
  CWE-20). Check environment variables carefully before using them.
	file = g_build_filename(g_get_home_dir(), "lookup.xml", NULL);
data/librm-2.1.2/rm/rmaction.c:395:14:  [3] (random) g_random_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int key = g_random_int() % (gint)(sizeof(charset) - 1);
data/librm-2.1.2/plugins/capi/capi.c:321: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 called_party_number[70];
data/librm-2.1.2/plugins/capi/capi.c:322: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 calling_party_number[70];
data/librm-2.1.2/plugins/capi/capi.c:323: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 bc[4];
data/librm-2.1.2/plugins/capi/capi.c:324: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 llc[3];
data/librm-2.1.2/plugins/capi/capi.c:325: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 hlc[3];
data/librm-2.1.2/plugins/capi/capi.c:459: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 local_num[4];
data/librm-2.1.2/plugins/capi/capi.c:490:45:  [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 capi_get_source_no(_cmsg *cmsg, char number[256])
data/librm-2.1.2/plugins/capi/capi.c:508:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(number, "unknown");
data/librm-2.1.2/plugins/capi/capi.c:515: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(number + strlen(number), pnX + 3, (size_t)(pnX[0] - 2));
data/librm-2.1.2/plugins/capi/capi.c:519: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(number + strlen(number), pnX + 2, (size_t)(pnX[0] - 1));
data/librm-2.1.2/plugins/capi/capi.c:524:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(number, "anonymous");
data/librm-2.1.2/plugins/capi/capi.c:533:45:  [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 capi_get_target_no(_cmsg *cmsg, char number[256])
data/librm-2.1.2/plugins/capi/capi.c:554:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(number, "unknown");
data/librm-2.1.2/plugins/capi/capi.c:558: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(number + strlen(number), x + 2, (size_t)(x[0] - 1));
data/librm-2.1.2/plugins/capi/capi.c:562:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(number, "anonymous");
data/librm-2.1.2/plugins/capi/capi.c:807: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 source_phone_number[256];
data/librm-2.1.2/plugins/capi/capi.c:808: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 target_phone_number[256];
data/librm-2.1.2/plugins/capi/capi.c:813: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 info_element[128];
data/librm-2.1.2/plugins/capi/capi.c:966: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(connection->ncpi, ncpi, len);
data/librm-2.1.2/plugins/capi/capi.c:1594: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 buffer[64];
data/librm-2.1.2/plugins/capi/isdn-convert.c:32: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.
signed char linear16_2_law[65536];
data/librm-2.1.2/plugins/capi/isdn-convert.h:34:15:  [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 signed char linear16_2_law[65536];
data/librm-2.1.2/plugins/capi/phone.c:359: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(buffer->buffer + buf_pos, buf, size * sizeof(short));
data/librm-2.1.2/plugins/capi/phone.c:362: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(buffer->buffer + buf_pos, buf, split * sizeof(short));
data/librm-2.1.2/plugins/capi/phone.c:365: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(buffer->buffer, buf, size * sizeof(short));
data/librm-2.1.2/plugins/fritzbox/callmonitor.c:70:50:  [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).
			connection = rm_connection_add(&dialer_phone, atoi(fields[2]), RM_CONNECTION_TYPE_OUTGOING, fields[4], fields[5]);
data/librm-2.1.2/plugins/fritzbox/callmonitor.c:72:21:  [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).
			connection->id = atoi(fields[2]);
data/librm-2.1.2/plugins/fritzbox/callmonitor.c:78:49:  [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).
		connection = rm_connection_add(&dialer_phone, atoi(fields[2]), RM_CONNECTION_TYPE_INCOMING, fields[4], fields[3]);
data/librm-2.1.2/plugins/fritzbox/callmonitor.c:83:41:  [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).
		connection = rm_connection_find_by_id(atoi(fields[2]));
data/librm-2.1.2/plugins/fritzbox/callmonitor.c:90:41:  [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).
		connection = rm_connection_find_by_id(atoi(fields[2]));
data/librm-2.1.2/plugins/fritzbox/csv.c:47:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		switch (atoi(split[0])) {
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:112:6:  [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).
	if (atoi(writeaccess) == 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:156:8:  [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).
		if ((atoi(writeaccess) == 0) || strcmp(profile->router_info->session_id, "0000000000000000")) {
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:157:85:  [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).
			g_debug("Login failure (%d should be non 0, %s should not be 0000000000000000)", atoi(writeaccess), profile->router_info->session_id);
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:561:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (active && ((atoi(&active[0]) == 2) || (atoi(&active[0]) == 3))) {
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:561:45:  [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).
	if (active && ((atoi(&active[0]) == 2) || (atoi(&active[0]) == 3))) {
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:603:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		gint port = atoi(dialport);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:46:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			g_usleep(atoi(blocktime) * G_USEC_PER_SEC);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:48:8:  [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).
			if (atoi(blocktime)) {
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:390:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		gint fax_mail_active = atoi(&active[0]);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:472:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		gint fax_mail_active = atoi(&mail_active[0]);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:612:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (stick && atoi(&stick[0])) {
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:613:54:  [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).
		g_settings_set_int(profile->settings, "tam-stick", atoi(stick));
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:700:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		gint port = atoi(dialport);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:62: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(ret, value, len);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:311:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			gint val = atoi(port);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:414:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		gint port = atoi(dialport);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:521:9:  [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).
	port = atoi(port_str);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:117: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(value, val_start, val_size);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:153: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(value, val_start, val_size);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:191: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(value, val_start, val_size);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:243: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(value, val_start, val_size);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:350:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		router_info->box_id = atoi(split[0]);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:351:29:  [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).
		router_info->maj_ver_id = atoi(split[1]);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:352:29:  [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).
		router_info->min_ver_id = atoi(split[2]);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:706: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(voice_boxes[index].data, file_data, file_size);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:759: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(ret, msg->response_body->data, msg->response_body->length);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:993: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(modified_data + offset, voice_boxes[nr].data + index * sizeof(struct voice_data), sizeof(struct voice_data));
data/librm-2.1.2/plugins/fritzbox/firmware-query.c:144:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	gint port = atoi(port_str);
data/librm-2.1.2/plugins/fritzbox/firmware-query.c:282:9:  [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).
	port = atoi(dialport);
data/librm-2.1.2/plugins/fritzbox/firmware-query.c:291:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	if (tam_stick && atoi(&tam_stick[0])) {
data/librm-2.1.2/plugins/fritzbox/firmware-query.c:292:55:  [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).
		g_settings_set_uint(fritzbox_settings, "tam-stick", atoi(tam_stick));
data/librm-2.1.2/plugins/fritzbox/firmware-tr64.c:82:6:  [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).
	if (atoi(type) == 3) {
data/librm-2.1.2/plugins/fritzbox/firmware-tr64.c:100:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	call_type = atoi(type);
data/librm-2.1.2/plugins/fritzbox/firmware-tr64.c:107:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		gint port_nr = atoi(port);
data/librm-2.1.2/plugins/gstreamer/gstreamer.c:375: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((char*)tmp, (char*)data, size);
data/librm-2.1.2/plugins/reverselookup/reverselookup.c:285:53:  [2] (integer) atol:
  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).
	list = g_hash_table_lookup(lookup_table, (gpointer)atol(country_code));
data/librm-2.1.2/plugins/reverselookup/reverselookup.c:312:51:  [2] (integer) atol:
  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).
		if (g_hash_table_lookup(lookup_table, (gpointer)atol(sub_string))) {
data/librm-2.1.2/plugins/reverselookup/reverselookup.c:475:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		zip_len = atoi(tmp);
data/librm-2.1.2/plugins/reverselookup/reverselookup.c:520:46:  [2] (integer) atol:
  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).
	g_hash_table_insert(lookup_table, (gpointer)atol(code), lookup_list);
data/librm-2.1.2/rm/rmaudio.c:91:16:  [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).
	return audio->open(device_name);
data/librm-2.1.2/rm/rmaudio.h:53:13:  [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).
	gpointer (*open)(gchar *device_name);
data/librm-2.1.2/rm/rmfaxserver.c:61:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buffer[BUFFER_LENGTH];
data/librm-2.1.2/rm/rmftp.c:221: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(data + data_offset, buffer, read);
data/librm-2.1.2/rm/rmjournal.c:62:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	file = fopen(file_name, "wb+");
data/librm-2.1.2/rm/rmjournal.c:140:41:  [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).
		RmCallEntry *call = rm_call_entry_new(atoi(split[0]), split[1], split[2], split[3], split[4], split[5], split[6], NULL);
data/librm-2.1.2/rm/rmnetwork.c:281:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	tr64_security_port = port ? atoi(port) : 0;
data/librm-2.1.2/rm/rmpassword.c:136:33:  [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 crypt_cfb_buf(const char key[8], unsigned char *buf, unsigned len, unsigned chunksize, int decrypt)
data/librm-2.1.2/rm/rmpassword.c:138: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 temp[64];
data/librm-2.1.2/rm/rmpassword.c:140: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(temp, key, 8);
data/librm-2.1.2/rm/rmxml.c:572: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(attrib, attributes[i + 3], attrib_len);
data/librm-2.1.2/plugins/areacodes_global/areacodes_global.c:50: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).
	gint len = strlen(full_number);
data/librm-2.1.2/plugins/areacodes_global/areacodes_global.c:56:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(sub_string, full_number + 2, index);
data/librm-2.1.2/plugins/areacodes_global/areacodes_global.c:102: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(local_number);
data/librm-2.1.2/plugins/areacodes_global/areacodes_global.c:107:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(sub_string, local_number, 3);
data/librm-2.1.2/plugins/areacodes_global/areacodes_global.c:115:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(sub_string, local_number, 4);
data/librm-2.1.2/plugins/areacodes_global/areacodes_global.c:123:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(sub_string, local_number, 5);
data/librm-2.1.2/plugins/areacodes_global/areacodes_global.c:173:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/areacodes_global/areacodes_global.c:180:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	data = rm_file_load(areacodes, &read);
data/librm-2.1.2/plugins/areacodes_global/areacodes_global.c:181:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (!data || read < 1) {
data/librm-2.1.2/plugins/areacodes_global/csv.c:41: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).
	gint len = strlen(str_in) - 1;
data/librm-2.1.2/plugins/areacodes_global/csv.c:48:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(str_out, str_in + 1, len - 1);
data/librm-2.1.2/plugins/areacodes_global/csv.c:74:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			areacode->skip = strlen(split[1]);
data/librm-2.1.2/plugins/areacodes_global/csv.c:80: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(split[2]) && strlen(split[3])) {
data/librm-2.1.2/plugins/areacodes_global/csv.c:80: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 (strlen(split[2]) && strlen(split[3])) {
data/librm-2.1.2/plugins/capi/capi.c:334: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 (src_no == NULL || strlen(src_no) < 1 || trg_no == NULL || strlen(trg_no) < 1) {
data/librm-2.1.2/plugins/capi/capi.c:334:64:  [1] (buffer) strlen:
  Does not handle 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 (src_no == NULL || strlen(src_no) < 1 || trg_no == NULL || strlen(trg_no) < 1) {
data/librm-2.1.2/plugins/capi/capi.c:352: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).
	called_party_number[0] = 1 + strlen(trg_no);
data/librm-2.1.2/plugins/capi/capi.c:354:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char*)&called_party_number[2], trg_no, sizeof(called_party_number) - 3);
data/librm-2.1.2/plugins/capi/capi.c:366:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy((char*)&calling_party_number[3], "**981", sizeof(calling_party_number) - 4);
data/librm-2.1.2/plugins/capi/capi.c:368:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy((char*)bc, "\x03\xE0\x90\xA3", sizeof(bc));
data/librm-2.1.2/plugins/capi/capi.c: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).
		calling_party_number[0] = 2 + strlen(src_no);
data/librm-2.1.2/plugins/capi/capi.c:371:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy((char*)&calling_party_number[3], src_no, sizeof(calling_party_number) - 4);
data/librm-2.1.2/plugins/capi/capi.c:375:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy((char*)llc, "\x02\x80\x90", sizeof(llc));
data/librm-2.1.2/plugins/capi/capi.c:378:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy((char*)hlc, "\x02\x91\x81", sizeof(hlc));
data/librm-2.1.2/plugins/capi/capi.c:512: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).
			number[strlen(number) + pnX[0] - 1] = 0;
data/librm-2.1.2/plugins/capi/capi.c:513: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).
			number[strlen(number) + pnX[0] - 2] = 0;
data/librm-2.1.2/plugins/capi/capi.c:515: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).
			memcpy(number + strlen(number), pnX + 3, (size_t)(pnX[0] - 2));
data/librm-2.1.2/plugins/capi/capi.c:517: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).
			number[strlen(number) + pnX[0]] = 0;
data/librm-2.1.2/plugins/capi/capi.c:518: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).
			number[strlen(number) + pnX[0] - 1] = 0;
data/librm-2.1.2/plugins/capi/capi.c:519: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).
			memcpy(number + strlen(number), pnX + 2, (size_t)(pnX[0] - 1));
data/librm-2.1.2/plugins/capi/capi.c:523: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(number)) {
data/librm-2.1.2/plugins/capi/capi.c:556: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).
		number[strlen(number) + (size_t)x[0]] = 0;
data/librm-2.1.2/plugins/capi/capi.c:557: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).
		number[strlen(number) + (size_t)x[0] - 1] = 0;
data/librm-2.1.2/plugins/capi/capi.c:558: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).
		memcpy(number + strlen(number), x + 2, (size_t)(x[0] - 1));
data/librm-2.1.2/plugins/capi/capi.c:561: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(number)) {
data/librm-2.1.2/plugins/capi/capi.c:779: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(text) < 31) {
data/librm-2.1.2/plugins/capi/capi.c:780:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(text);
data/librm-2.1.2/plugins/capi/capi.c:790:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy((char*)facility + 3, text, len);
data/librm-2.1.2/plugins/fritzbox/callmonitor.c:140: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(lines[count]) > 0) {
data/librm-2.1.2/plugins/fritzbox/callmonitor.c:190:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!hostname || strlen(hostname) <= 0) {
data/librm-2.1.2/plugins/fritzbox/csv.c:106: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).
		rm_log_save_data("fritzbox-journal.csv", data, strlen(data));
data/librm-2.1.2/plugins/fritzbox/firmware-04-00.c:45:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-04-00.c:62:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-04_00-present.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-04-00.c:94:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-04-00.c:117:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-04_00-login1.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:43:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:82:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-04_74-login1.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:146:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rm_log_save_data("fritzbox-04_74-login2.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:414:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:446:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-04_74-get-settings-1.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:455: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:482:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-04_74-get-settings-2.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:488: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:495: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:502: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:509: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:537:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-04_74-get-settings-fax.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-04-74.c:598:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-04_74-get-settings-4.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:67:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:103:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-05_50-login_1.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:151:57:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rm_log_save_data("fritzbox-05_50-login_2.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:190: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(fon) > 2) {
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:329:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:352:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-05_50-get-settings-fax.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:415:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:434:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-06_00-get-settings-fax.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:494:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rm_log_save_data("fritzbox-06_00-show-usb-devices.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:524:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:550:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-05_50-get-settings-0.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:587:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-05_50-get-settings-1.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:637:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-05_50-get-settings-2.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:643: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:650: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:657: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:664: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-05-50.c:695:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-05_50-get-settings-3.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:102:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:120:72:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-06_35-get-settings-fax-option.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:201:70:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rm_log_save_data("fritzbox-06_35-get-settings-fax-usb.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:248:70:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-06_35-get-settings-fax-send.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:294:86:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
void fritzbox_extract_phone_names_06_35(RmProfile *profile, const gchar *data, gsize read)
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:340:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:367:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-06_35-get-settings-0.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:404:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-06_35-get-settings-1.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:407:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	fritzbox_extract_phone_names_06_35(profile, data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:439:63:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-06_35-get-settings-2.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:445: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:452: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:459: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:466: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 (value != NULL && strlen(value) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:492:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:511:62:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-06_35-get-dial-port.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-06-35.c:514:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	json_parser_load_from_data(parser, data, read, NULL);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:70:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(entries[index], tag_start_pos + 1, entry_size);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:178: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).
	start += strlen(tag) + 2;
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:217: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).
	start += strlen(tag);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:283:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:325:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-present.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:458:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(pots, pots_start, pots_len);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:459: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(pots) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:477:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(msns, msns_start, msns_len);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:479: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(msns) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:500:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(sips, sips_start, sips_len);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:502: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(sips) > 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:587:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(date, split[index], 8);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:590:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(time, split[index] + 9, 5);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:595:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(remote_number, start + 8, pos - start - 8);
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:870:92:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	soup_message_set_request(msg, "text/xml; charset=\"utf-8\"", SOUP_MEMORY_STATIC, request, strlen(request));
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:924:92:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	soup_message_set_request(msg, "text/xml; charset=\"utf-8\"", SOUP_MEMORY_STATIC, request, strlen(request));
data/librm-2.1.2/plugins/fritzbox/firmware-common.c:992: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).
		if (strncmp(voice_data->file, filename, strlen(filename)) != 0) {
data/librm-2.1.2/plugins/fritzbox/firmware-query.c:48:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/plugins/fritzbox/firmware-query.c:110:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rm_log_save_data("fritzbox-06_35-query.html", data, read);
data/librm-2.1.2/plugins/fritzbox/firmware-query.c:114:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	json_parser_load_from_data(parser, data, read, NULL);
data/librm-2.1.2/plugins/fritzfon/fritzfon.c:52: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).
	if (!strncmp(image_ptr, "file://", 7) && strlen(image_ptr) > 28) {
data/librm-2.1.2/plugins/fritzfon/fritzfon.c:281:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read > 0) {
data/librm-2.1.2/plugins/fritzfon/fritzfon.c:282:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rm_log_save_data("test-in.xml", data, read);
data/librm-2.1.2/plugins/fritzfon/fritzfon.c:286:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	node = rm_xmlnode_from_str(data, read);
data/librm-2.1.2/plugins/fritzfon/fritzfon.c:416:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(num, pos + 21, len);
data/librm-2.1.2/plugins/fritzfon/fritzfon.c:424:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(name, pos + 2, len - 1);
data/librm-2.1.2/plugins/fritzfon/fritzfon.c:670: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(g_settings_get_string(fritzfon_settings, "book-owner")) > 2) {
data/librm-2.1.2/plugins/gstreamer/gstreamer.c:401:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return read;
data/librm-2.1.2/plugins/gstreamer/gstreamer.c:406:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return read;
data/librm-2.1.2/plugins/gstreamer/gstreamer.c:411:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read != 0) {
data/librm-2.1.2/plugins/gstreamer/gstreamer.c:412:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		gst_adapter_copy(pipes->adapter, data, 0, read);
data/librm-2.1.2/plugins/gstreamer/gstreamer.c:413:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		gst_adapter_flush(pipes->adapter, read);
data/librm-2.1.2/plugins/gstreamer/gstreamer.c:418:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read;
data/librm-2.1.2/plugins/reverselookup/reverselookup.c:224:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		memmove(contact->city, contact->city + lookup->zip_len + 1, strlen(contact->city) - lookup->zip_len + 1);
data/librm-2.1.2/plugins/reverselookup/reverselookup.c:243: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).
	rm_file_save(file, rl_tmp, strlen(rl_tmp));
data/librm-2.1.2/plugins/reverselookup/reverselookup.c:302: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).
	int len = strlen(full_number);
data/librm-2.1.2/plugins/reverselookup/reverselookup.c:309:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(sub_string, full_number, index);
data/librm-2.1.2/plugins/reverselookup/reverselookup.c:379: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).
	international_access_code_len = strlen(rm_router_get_international_access_code(profile));
data/librm-2.1.2/plugins/wincred/wincred.c:49:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	length = strlen(password);
data/librm-2.1.2/rm/rmaudio.c:107:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return audio ? audio->read(audio_priv, data, size) : -1;
data/librm-2.1.2/rm/rmaudio.h:57:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize (*read)(gpointer priv, guchar *buffer, gsize max_len);
data/librm-2.1.2/rm/rmcsv.c:75: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).
	if (strncmp(lines[index], header, strlen(header))) {
data/librm-2.1.2/rm/rmfile.c:55:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(data);
data/librm-2.1.2/rm/rmfilter.c:74:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(compare, rule->entry, strlen(rule->entry))) {
data/librm-2.1.2/rm/rmftp.c:207:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	gsize read;
data/librm-2.1.2/rm/rmftp.c:216:73:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		io_status = g_io_channel_read_chars(channel, buffer, sizeof(buffer), &read, &error);
data/librm-2.1.2/rm/rmftp.c:219:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			data_size += read;
data/librm-2.1.2/rm/rmftp.c:221:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			memcpy(data + data_offset, buffer, read);
data/librm-2.1.2/rm/rmftp.c:222:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			data_offset += read;
data/librm-2.1.2/rm/rmftp.c:256:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	io_status = g_io_channel_write_chars(client->control, ftp_command, strlen(ftp_command), &written, &error);
data/librm-2.1.2/rm/rmnumber.c:66: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(number);
data/librm-2.1.2/rm/rmnumber.c:102: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).
	for (entry = rm_call_by_call_table; strlen(entry->country_code); entry++) {
data/librm-2.1.2/rm/rmnumber.c:103:88:  [1] (buffer) strlen:
  Does not handle 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 (!strcmp(my_country_code, entry->country_code) && !strncmp(number, entry->prefix, strlen(entry->prefix))) {
data/librm-2.1.2/rm/rmnumber.c:126: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).
	new_number = g_string_sized_new(strlen(number));
data/librm-2.1.2/rm/rmnumber.c:179:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strncmp(tmp, international_access_code, strlen(international_access_code))) {
data/librm-2.1.2/rm/rmnumber.c:181: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).
		tmp += strlen(international_access_code);
data/librm-2.1.2/rm/rmnumber.c:188:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(tmp, my_country_code, strlen(my_country_code))) {
data/librm-2.1.2/rm/rmnumber.c:190: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 = tmp + strlen(my_country_code);
data/librm-2.1.2/rm/rmnumber.c:200:75:  [1] (buffer) strlen:
  Does not handle 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 (!RM_EMPTY_STRING(national_prefix) && !strncmp(tmp, national_prefix, strlen(national_prefix))) {
data/librm-2.1.2/rm/rmnumber.c:201: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 = tmp + strlen(national_prefix);
data/librm-2.1.2/rm/rmnumber.c:219: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 ((number_format == RM_NUMBER_FORMAT_NATIONAL) && (!strncmp(tmp, my_area_code, strlen(my_area_code)))) {
data/librm-2.1.2/rm/rmnumber.c:221: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).
		tmp = tmp + strlen(my_area_code);
data/librm-2.1.2/rm/rmnumber.c:318: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 (!strncmp(number + 2, my_country_code, strlen(my_country_code))) {
data/librm-2.1.2/rm/rmpassword.c:204: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(tmp);
data/librm-2.1.2/rm/rmplugins.c:138: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).
	ext_len = strlen(ext);
data/librm-2.1.2/rm/rmplugins.c:139: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(file) - ext_len;
data/librm-2.1.2/rm/rmrouter.c:804: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).
		num[strlen(num) - 4] = '\0';
data/librm-2.1.2/rm/rmsettings.c:79: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).
		gint len = strlen(end + 1);
data/librm-2.1.2/rm/rmsettings.c:80:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(str, end + 1, len);
data/librm-2.1.2/rm/rmstring.c:52: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).
	n = strlen(needle);
data/librm-2.1.2/rm/rmstring.c:84:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(text);
data/librm-2.1.2/rm/rmstring.h:38: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).
#define RM_EMPTY_STRING(x) (!(x) || !strlen(x))
data/librm-2.1.2/rm/rmutils.c:41: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).
	glong tag_len = strlen(tag);
data/librm-2.1.2/rm/rmutils.c:56:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(entry, data + start + tag_len + 2, entry_size);
data/librm-2.1.2/rm/rmxml.c:434: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).
		real_size = strlen(data);
data/librm-2.1.2/rm/rmxml.c:737:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	real_size = size < 0 ? strlen(str) : size;
data/librm-2.1.2/rm/rmxml.c:917: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).
			c->data_size = strlen(c->data);

ANALYSIS SUMMARY:

Hits = 257
Lines analyzed = 26383 in approximately 0.72 seconds (36753 lines/second)
Physical Source Lines of Code (SLOC) = 14387
Hits@level = [0]  19 [1] 170 [2]  81 [3]   2 [4]   4 [5]   0
Hits@level+ = [0+] 276 [1+] 257 [2+]  87 [3+]   6 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 19.184 [1+] 17.8633 [2+] 6.04713 [3+] 0.417043 [4+] 0.278029 [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.