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/foxtrotgps-1.2.2+bzr324/src/callbacks.c
Examining data/foxtrotgps-1.2.2+bzr324/src/callbacks.h
Examining data/foxtrotgps-1.2.2+bzr324/src/converter.c
Examining data/foxtrotgps-1.2.2+bzr324/src/converter.h
Examining data/foxtrotgps-1.2.2+bzr324/src/exif.c
Examining data/foxtrotgps-1.2.2+bzr324/src/exif.h
Examining data/foxtrotgps-1.2.2+bzr324/src/friends.c
Examining data/foxtrotgps-1.2.2+bzr324/src/friends.h
Examining data/foxtrotgps-1.2.2+bzr324/src/geo_photos.c
Examining data/foxtrotgps-1.2.2+bzr324/src/geo_photos.h
Examining data/foxtrotgps-1.2.2+bzr324/src/globals.c
Examining data/foxtrotgps-1.2.2+bzr324/src/globals.h
Examining data/foxtrotgps-1.2.2+bzr324/src/gps_functions.c
Examining data/foxtrotgps-1.2.2+bzr324/src/gps_functions.h
Examining data/foxtrotgps-1.2.2+bzr324/src/hrm_functions.c
Examining data/foxtrotgps-1.2.2+bzr324/src/hrm_functions.h
Examining data/foxtrotgps-1.2.2+bzr324/src/init.c
Examining data/foxtrotgps-1.2.2+bzr324/src/init.h
Examining data/foxtrotgps-1.2.2+bzr324/src/interface.c
Examining data/foxtrotgps-1.2.2+bzr324/src/interface.h
Examining data/foxtrotgps-1.2.2+bzr324/src/main.c
Examining data/foxtrotgps-1.2.2+bzr324/src/map_management.c
Examining data/foxtrotgps-1.2.2+bzr324/src/map_management.h
Examining data/foxtrotgps-1.2.2+bzr324/src/poi.c
Examining data/foxtrotgps-1.2.2+bzr324/src/poi.h
Examining data/foxtrotgps-1.2.2+bzr324/src/route.c
Examining data/foxtrotgps-1.2.2+bzr324/src/route.h
Examining data/foxtrotgps-1.2.2+bzr324/src/support.c
Examining data/foxtrotgps-1.2.2+bzr324/src/support.h
Examining data/foxtrotgps-1.2.2+bzr324/src/tile_management.c
Examining data/foxtrotgps-1.2.2+bzr324/src/tile_management.h
Examining data/foxtrotgps-1.2.2+bzr324/src/tracks.c
Examining data/foxtrotgps-1.2.2+bzr324/src/tracks.h
Examining data/foxtrotgps-1.2.2+bzr324/src/util.c
Examining data/foxtrotgps-1.2.2+bzr324/src/util.h
Examining data/foxtrotgps-1.2.2+bzr324/src/wp.c
Examining data/foxtrotgps-1.2.2+bzr324/src/wp.h

FINAL RESULTS:

data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2922:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system ("command -v gpscorrelate > /dev/null") != 0) {
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:3039:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system ("command -v jhead > /dev/null") != 0) {
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:3869:2:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	system ("xdg-open " PACKAGE_HTML_DIR "/" PACKAGE ".html");
data/foxtrotgps-1.2.2+bzr324/src/init.c:409:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		unused = system("gsettings reset " SCHEMA " repo_name");
data/foxtrotgps-1.2.2+bzr324/src/poi.c:170:5:  [4] (shell) execlp:
  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.
				execlp ("mkvisualid", "mkvisualid",
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:1411:14:  [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.
		home_dir = getenv("HOME");
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2702:52:  [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.
		gtk_entry_set_text(GTK_ENTRY(editable), g_strdup(getenv("HOME")));
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2796:52:  [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.
		gtk_entry_set_text(GTK_ENTRY(editable), g_strdup(getenv("HOME")));
data/foxtrotgps-1.2.2+bzr324/src/init.c:43:20:  [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.
	global_home_dir = getenv("HOME");
data/foxtrotgps-1.2.2+bzr324/src/poi.c:516:10:  [3] (random) g_random_double_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.
	rand1 = g_random_double_range (100000000,1000000000);
data/foxtrotgps-1.2.2+bzr324/src/poi.c:517:10:  [3] (random) g_random_double_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.
	rand2 = g_random_double_range (100000000,1000000000);
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2174:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2277:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/foxtrotgps-1.2.2+bzr324/src/converter.c:84: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 latmin[20];
data/foxtrotgps-1.2.2+bzr324/src/converter.c:103: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 lonmin[20];
data/foxtrotgps-1.2.2+bzr324/src/converter.c:122: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 latsec[20];
data/foxtrotgps-1.2.2+bzr324/src/converter.c:144: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 lonmin[20];
data/foxtrotgps-1.2.2+bzr324/src/exif.c:39: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.
        char buf[1024];
data/foxtrotgps-1.2.2+bzr324/src/exif.c:67:13:  [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[1024];
data/foxtrotgps-1.2.2+bzr324/src/exif.c:114: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.
        char buf[64];
data/foxtrotgps-1.2.2+bzr324/src/friends.c:71: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(&(mem->memory[mem->size]), ptr, realsize);
data/foxtrotgps-1.2.2+bzr324/src/friends.c:321:20:  [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).
				friend->type = atoi(g_strdup(array[0]));
data/foxtrotgps-1.2.2+bzr324/src/friends.c:325:20:  [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).
				friend->head = atoi(g_strdup(array[4]));
data/foxtrotgps-1.2.2+bzr324/src/friends.c:842:7:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			if(atoi(arr[6]) > 0)
data/foxtrotgps-1.2.2+bzr324/src/friends.c:878: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).
			msg->id 	= atoi(arr[1]);
data/foxtrotgps-1.2.2+bzr324/src/geo_photos.c:630:23:  [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).
	geocode_correction = atoi(txt);
data/foxtrotgps-1.2.2+bzr324/src/geo_photos.c:713:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/foxtrotgps-1.2.2+bzr324/src/geo_photos.c:720: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).
	correction = atoi(gtk_entry_get_text(GTK_ENTRY(entry)));
data/foxtrotgps-1.2.2+bzr324/src/gps_functions.c:994: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 unit[5];
data/foxtrotgps-1.2.2+bzr324/src/hrm_functions.c:251: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 buf[501];
data/foxtrotgps-1.2.2+bzr324/src/init.c:330: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).
		repo->inverted_zoom = (atoi(g_strdup(array[3])) == 1) ? TRUE : FALSE;
data/foxtrotgps-1.2.2+bzr324/src/poi.c:91: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).
	poi->visibility		= atoi(colv[3]);
data/foxtrotgps-1.2.2+bzr324/src/poi.c:92: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).
	poi->category		= atoi(colv[4]);
data/foxtrotgps-1.2.2+bzr324/src/poi.c:93: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).
	poi->subcategory	= atoi(colv[5]);
data/foxtrotgps-1.2.2+bzr324/src/poi.c:96: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).
	poi->price_range	= atoi(colv[8]);
data/foxtrotgps-1.2.2+bzr324/src/poi.c:97:23:  [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).
	poi->extended_open	= atoi(colv[9]);
data/foxtrotgps-1.2.2+bzr324/src/poi.c:365: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 *subcat_lists[16];
data/foxtrotgps-1.2.2+bzr324/src/poi.c:438:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[64];
data/foxtrotgps-1.2.2+bzr324/src/poi.c:661: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 sql[256];
data/foxtrotgps-1.2.2+bzr324/src/route.c:329: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 now_as_string[200];
data/foxtrotgps-1.2.2+bzr324/src/route.c:428:11:  [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).
	tomtom = fopen (uri, "w");
data/foxtrotgps-1.2.2+bzr324/src/tile_management.c:249: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 err_buffer[CURL_ERROR_SIZE];
data/foxtrotgps-1.2.2+bzr324/src/tile_management.c:280:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	outfile = fopen(arr1[1], "w");
data/foxtrotgps-1.2.2+bzr324/src/tracks.c:288:8:  [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).
		fp = fopen(filename,"w");
data/foxtrotgps-1.2.2+bzr324/src/tracks.c:550: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 line[121];
data/foxtrotgps-1.2.2+bzr324/src/tracks.c:553:7:  [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).
	fd = fopen(file, "r");
data/foxtrotgps-1.2.2+bzr324/src/tracks.c:963: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).
			fp = fopen(filename,"w");
data/foxtrotgps-1.2.2+bzr324/src/util.c:54: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(&(mem->memory[mem->size]), ptr, size);
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:647:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(reponame) == strlen(global_curr_reponame)
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:647: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).
			strlen(reponame) == strlen(global_curr_reponame)
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2655:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2655:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2655: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(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2681:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2681:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2681: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(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2715:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2715:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2715: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(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2749:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2749:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2749: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(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2775:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2775:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2775: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(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2809:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2809:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/callbacks.c:2809: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(strlen(txt1) && strlen(txt2) && strlen(txt3))
data/foxtrotgps-1.2.2+bzr324/src/exif.c:24:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for ( i = strlen(buf) - 1; i > 0; i-- ) {
data/foxtrotgps-1.2.2+bzr324/src/friends.c:832: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 (arr0[0] && strlen(arr0[0]))
data/foxtrotgps-1.2.2+bzr324/src/friends.c:866: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).
		while (arr0[i] && strlen(arr0[i]) )
data/foxtrotgps-1.2.2+bzr324/src/gps_functions.c:431:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pango_layout_set_text (layout, buffer, strlen(buffer));
data/foxtrotgps-1.2.2+bzr324/src/gps_functions.c:956: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).
	pango_layout_set_text (layout, buffer, strlen(buffer));
data/foxtrotgps-1.2.2+bzr324/src/gps_functions.c:1000:4:  [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(unit, "km", 3);
data/foxtrotgps-1.2.2+bzr324/src/gps_functions.c:1004:4:  [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 character.
			strncpy(unit, "m", 2);
data/foxtrotgps-1.2.2+bzr324/src/gps_functions.c:1008:4:  [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(unit, "NM", 3);
data/foxtrotgps-1.2.2+bzr324/src/hrm_functions.c:86:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pango_layout_set_text (layout, buffer, strlen(buffer));
data/foxtrotgps-1.2.2+bzr324/src/hrm_functions.c:294:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(hrm_sock, buf, 500);
data/foxtrotgps-1.2.2+bzr324/src/init.c:398:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(reponame) == strlen(global_curr_reponame)
data/foxtrotgps-1.2.2+bzr324/src/init.c:398: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).
			strlen(reponame) == strlen(global_curr_reponame)
data/foxtrotgps-1.2.2+bzr324/src/init.c:435:4:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strlen(reponame) == strlen(global_curr_reponame)
data/foxtrotgps-1.2.2+bzr324/src/init.c:435: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).
			strlen(reponame) == strlen(global_curr_reponame)
data/foxtrotgps-1.2.2+bzr324/src/poi.c:842: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).
	q = dest = g_malloc (strlen (source) * 4 + 1);
data/foxtrotgps-1.2.2+bzr324/src/tracks.c:620: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).
	doc = xmlReadMemory(gpx_string, strlen(gpx_string), "noname.xml", NULL, 0);
data/foxtrotgps-1.2.2+bzr324/src/tracks.c:645: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).
	doc = xmlReadMemory(ols_string, strlen(ols_string), "noname.xml", NULL, 0);
data/foxtrotgps-1.2.2+bzr324/src/tracks.c:669: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).
	doc = xmlReadMemory(kml_string, strlen(kml_string), "noname.xml", NULL, 0);
data/foxtrotgps-1.2.2+bzr324/src/util.c:96: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).
		postreply->size = strlen(chunk.memory);
data/foxtrotgps-1.2.2+bzr324/src/util.c:168: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).
		postreply->size = strlen(chunk.memory);
data/foxtrotgps-1.2.2+bzr324/src/util.c:230: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).
		postreply->size = strlen(chunk.memory);
data/foxtrotgps-1.2.2+bzr324/src/wp.c:180:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		pango_layout_set_text (layout, buffer, strlen(buffer));

ANALYSIS SUMMARY:

Hits = 90
Lines analyzed = 14075 in approximately 0.30 seconds (47242 lines/second)
Physical Source Lines of Code (SLOC) = 10297
Hits@level = [0]  66 [1]  42 [2]  37 [3]   6 [4]   5 [5]   0
Hits@level+ = [0+] 156 [1+]  90 [2+]  48 [3+]  11 [4+]   5 [5+]   0
Hits/KSLOC@level+ = [0+] 15.15 [1+] 8.74041 [2+] 4.66155 [3+] 1.06827 [4+] 0.485578 [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.