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/xarchiver-0.5.4.15/src/7zip.h
Examining data/xarchiver-0.5.4.15/src/add_dialog.c
Examining data/xarchiver-0.5.4.15/src/add_dialog.h
Examining data/xarchiver-0.5.4.15/src/ar.c
Examining data/xarchiver-0.5.4.15/src/ar.h
Examining data/xarchiver-0.5.4.15/src/archive.c
Examining data/xarchiver-0.5.4.15/src/archive.h
Examining data/xarchiver-0.5.4.15/src/arj.c
Examining data/xarchiver-0.5.4.15/src/arj.h
Examining data/xarchiver-0.5.4.15/src/cpio.c
Examining data/xarchiver-0.5.4.15/src/cpio.h
Examining data/xarchiver-0.5.4.15/src/date_utils.c
Examining data/xarchiver-0.5.4.15/src/date_utils.h
Examining data/xarchiver-0.5.4.15/src/exe.c
Examining data/xarchiver-0.5.4.15/src/exe.h
Examining data/xarchiver-0.5.4.15/src/extract_dialog.c
Examining data/xarchiver-0.5.4.15/src/extract_dialog.h
Examining data/xarchiver-0.5.4.15/src/gzip_et_al.c
Examining data/xarchiver-0.5.4.15/src/gzip_et_al.h
Examining data/xarchiver-0.5.4.15/src/interface.c
Examining data/xarchiver-0.5.4.15/src/interface.h
Examining data/xarchiver-0.5.4.15/src/lha.c
Examining data/xarchiver-0.5.4.15/src/lha.h
Examining data/xarchiver-0.5.4.15/src/main.c
Examining data/xarchiver-0.5.4.15/src/main.h
Examining data/xarchiver-0.5.4.15/src/mime.c
Examining data/xarchiver-0.5.4.15/src/mime.h
Examining data/xarchiver-0.5.4.15/src/new_dialog.c
Examining data/xarchiver-0.5.4.15/src/new_dialog.h
Examining data/xarchiver-0.5.4.15/src/open-with-dlg.c
Examining data/xarchiver-0.5.4.15/src/open-with-dlg.h
Examining data/xarchiver-0.5.4.15/src/parser.h
Examining data/xarchiver-0.5.4.15/src/pref_dialog.c
Examining data/xarchiver-0.5.4.15/src/pref_dialog.h
Examining data/xarchiver-0.5.4.15/src/rar.c
Examining data/xarchiver-0.5.4.15/src/rar.h
Examining data/xarchiver-0.5.4.15/src/rpm.c
Examining data/xarchiver-0.5.4.15/src/rpm.h
Examining data/xarchiver-0.5.4.15/src/sexy-icon-entry.c
Examining data/xarchiver-0.5.4.15/src/sexy-icon-entry.h
Examining data/xarchiver-0.5.4.15/src/socket.c
Examining data/xarchiver-0.5.4.15/src/socket.h
Examining data/xarchiver-0.5.4.15/src/string_utils.c
Examining data/xarchiver-0.5.4.15/src/string_utils.h
Examining data/xarchiver-0.5.4.15/src/support.h
Examining data/xarchiver-0.5.4.15/src/tar.c
Examining data/xarchiver-0.5.4.15/src/tar.h
Examining data/xarchiver-0.5.4.15/src/unar.c
Examining data/xarchiver-0.5.4.15/src/unar.h
Examining data/xarchiver-0.5.4.15/src/utf8-fnmatch.c
Examining data/xarchiver-0.5.4.15/src/utf8-fnmatch.h
Examining data/xarchiver-0.5.4.15/src/window.c
Examining data/xarchiver-0.5.4.15/src/window.h
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.h
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimealias.c
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimealias.h
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimecache.c
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimecache.h
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeglob.c
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeglob.h
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeicon.c
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeicon.h
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeint.c
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeint.h
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimemagic.c
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimemagic.h
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeparent.c
Examining data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeparent.h
Examining data/xarchiver-0.5.4.15/src/zip.c
Examining data/xarchiver-0.5.4.15/src/zip.h
Examining data/xarchiver-0.5.4.15/src/7zip.c

FINAL RESULTS:

data/xarchiver-0.5.4.15/src/7zip.c:64:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(fvname, "%s.%03u", fvname, i);
data/xarchiver-0.5.4.15/src/cpio.c:31:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(filename, filename + 1);
data/xarchiver-0.5.4.15/src/extract_dialog.c:535:60:  [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 (g_file_test (destination_path,G_FILE_TEST_IS_DIR)&& access (destination_path,R_OK | W_OK | X_OK ))
data/xarchiver-0.5.4.15/src/pref_dialog.c:387: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(filename, F_OK) == 0 && access(filename, W_OK) == -1)
data/xarchiver-0.5.4.15/src/pref_dialog.c:387:37:  [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(filename, F_OK) == 0 && access(filename, W_OK) == -1)
data/xarchiver-0.5.4.15/src/window.c:2222:7:  [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(extraction_dir, R_OK | W_OK | X_OK))
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:147:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:167:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (file_name, directory); strcat (file_name, "/mime/globs2");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:177:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (file_name, directory); strcat (file_name, "/mime/globs");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:190:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (file_name, directory); strcat (file_name, "/mime/magic");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:202:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (file_name, directory); strcat (file_name, "/mime/aliases");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:207:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (file_name, directory); strcat (file_name, "/mime/subclasses");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:212:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (file_name, directory); strcat (file_name, "/mime/icons");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:217:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (file_name, directory); strcat (file_name, "/mime/generic-icons");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:250:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	  strcpy (guessed_xdg_home, home);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:352:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:367:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (file_name, directory); strcat (file_name, "/mime/globs");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:378:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
  strcpy (file_name, directory); strcat (file_name, "/mime/magic");
data/xarchiver-0.5.4.15/src/interface.c:255:25:  [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.
	const char *home_dir = g_get_home_dir();
data/xarchiver-0.5.4.15/src/pref_dialog.c:504:28:  [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.
	config_dir = g_strconcat (g_get_home_dir(),"/.config",NULL);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:233:19:  [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.
  xdg_data_home = getenv ("XDG_DATA_HOME");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:243: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 = getenv ("HOME");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:260:19:  [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.
  xdg_data_dirs = getenv ("XDG_DATA_DIRS");
data/xarchiver-0.5.4.15/src/7zip.c:308: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.
	dir = (*(char *) item[4] == 'D');
data/xarchiver-0.5.4.15/src/archive.c:148:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *argv[4];
data/xarchiver-0.5.4.15/src/cpio.c:56: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.
	dev = (*(char *) item[4] == 'b' || *(char *) item[4] == 'c');
data/xarchiver-0.5.4.15/src/cpio.c:56:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	dev = (*(char *) item[4] == 'b' || *(char *) item[4] == 'c');
data/xarchiver-0.5.4.15/src/cpio.c:57: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.
	dir = (*(char *) item[4] == 'd');
data/xarchiver-0.5.4.15/src/cpio.c:58:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	link = (*(char *) item[4] == 'l');
data/xarchiver-0.5.4.15/src/cpio.c:83: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.
	if (((char *) item[2])[9] == ':')
data/xarchiver-0.5.4.15/src/cpio.c:85:19:  [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.
		strncpy(time, ((char *) item[2]) + 7, 5);
data/xarchiver-0.5.4.15/src/cpio.c:89: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(time, "-----");
data/xarchiver-0.5.4.15/src/date_utils.c:51:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(mm,"%02u", month(date));
data/xarchiver-0.5.4.15/src/date_utils.c:67:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(mm_dd, "%02u-%02u", current->tm_mon + 1, current->tm_mday);
data/xarchiver-0.5.4.15/src/date_utils.c:72:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(yyyy,"%04u", current->tm_year + 1900);
data/xarchiver-0.5.4.15/src/date_utils.c:124:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(mm,"%02u", month(date + 3));
data/xarchiver-0.5.4.15/src/exe.c:83: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 pe[4], buffer[9];
data/xarchiver-0.5.4.15/src/gzip_et_al.c:437:10:  [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(archive->path[0], "r");
data/xarchiver-0.5.4.15/src/gzip_et_al.c:485: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(workfile, "r");
data/xarchiver-0.5.4.15/src/interface.c:1511:50:  [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).
void xa_set_button_state (gboolean new, gboolean open, gboolean list, gboolean save, gboolean test, gboolean close, gboolean add, gboolean extract, gboolean sorted, gboolean sfx, gboolean comment, GSList *output, gboolean password)
data/xarchiver-0.5.4.15/src/interface.c:1515:34:  [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).
	gtk_widget_set_sensitive(open1, open);
data/xarchiver-0.5.4.15/src/interface.c:1516:40:  [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).
	gtk_widget_set_sensitive(Open_button, open);
data/xarchiver-0.5.4.15/src/lha.c:114: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.
	if (((char *) item[3])[9] == ':')
data/xarchiver-0.5.4.15/src/lha.c:116:19:  [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.
		strncpy(time, ((char *) item[3]) + 7, 5);
data/xarchiver-0.5.4.15/src/lha.c:120: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(time, "-----");
data/xarchiver-0.5.4.15/src/mime.c:41: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 icon_name[80];
data/xarchiver-0.5.4.15/src/rpm.c:48: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 bytes[HDRSIG_ENTRY_INFO_LEN];
data/xarchiver-0.5.4.15/src/rpm.c:57: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).
	stream = fopen(archive->path[0], "r");
data/xarchiver-0.5.4.15/src/rpm.c:207: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.
	if (((char *) item[2])[9] == ':')
data/xarchiver-0.5.4.15/src/rpm.c:209:19:  [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.
		strncpy(time, ((char *) item[2]) + 7, 5);
data/xarchiver-0.5.4.15/src/rpm.c:213: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(time, "-----");
data/xarchiver-0.5.4.15/src/tar.c:29: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 magic[8];
data/xarchiver-0.5.4.15/src/unar.c:120:18:  [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 *item3 = (char *) item[3];
data/xarchiver-0.5.4.15/src/window.c:157: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).
	stream = fopen (filename,"r");
data/xarchiver-0.5.4.15/src/window.c:633: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).
	stream = fopen (tmp,"w");
data/xarchiver-0.5.4.15/src/window.c:1214: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).
		stream = fopen (filename,"w");
data/xarchiver-0.5.4.15/src/window.c:1507:19:  [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).
				sfx_archive = fopen ( archive_name ,"w");
data/xarchiver-0.5.4.15/src/window.c:1516:23:  [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).
				archive_not_sfx = fopen(archive[idx]->path[0], "r");
data/xarchiver-0.5.4.15/src/window.c:1613:19:  [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).
				sfx_archive = fopen ( archive_name ,"w");
data/xarchiver-0.5.4.15/src/window.c:1622:23:  [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).
				archive_not_sfx = fopen(archive[idx]->path[0], "r");
data/xarchiver-0.5.4.15/src/window.c:1750: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 magic[14];
data/xarchiver-0.5.4.15/src/window.c:1756: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(filename, "r");
data/xarchiver-0.5.4.15/src/window.c:1983:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char date[64];
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:147:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:167:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/globs2");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:177:38:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcpy (file_name, directory); strcat (file_name, "/mime/globs");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:190:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/magic");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:202:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/aliases");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:207:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/subclasses");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:212:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/icons");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:217:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/generic-icons");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:251:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	  strcat (guessed_xdg_home, "/.local/share/");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:352:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/mime.cache");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:367:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/globs");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:378:34:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcpy (file_name, directory); strcat (file_name, "/mime/magic");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimealias.c:124:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[255];
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimealias.c:127:10:  [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, "r");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimecache.c:123:8:  [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).
  fd = open (file_name, O_RDONLY|_O_BINARY, 0);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeglob.c:615:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[255];
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeglob.c:618:15:  [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).
  glob_file = fopen (file_name, "r");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeglob.c:646: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).
          weight = atoi (p);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeicon.c:123:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[255];
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeicon.c:126:10:  [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, "r");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeint.c:44:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char _xdg_utf8_skip_data[256] = {
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimemagic.c:204:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char number_string[MAX_NUMBER_SIZE + 1];
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimemagic.c:799:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char header[12];
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimemagic.c:801:16:  [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).
  magic_file = fopen (file_name, "r");
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeparent.c:129:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char line[255];
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeparent.c:133:10:  [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, "r");
data/xarchiver-0.5.4.15/src/7zip.c:58: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).
		ext = strlen(fvname) - 4;
data/xarchiver-0.5.4.15/src/7zip.c:294: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).
	linesize = strlen(line);
data/xarchiver-0.5.4.15/src/add_dialog.c:363:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (strlen(temp_password) == 0)
data/xarchiver-0.5.4.15/src/ar.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).
	linesize = strlen(line);
data/xarchiver-0.5.4.15/src/ar.c:85:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(time, line + a + 7, 5);
data/xarchiver-0.5.4.15/src/ar.c:90:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(line + a + 7, line + a + 13, 5);
data/xarchiver-0.5.4.15/src/archive.c:241: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(entry->filename) == 0)
data/xarchiver-0.5.4.15/src/arj.c:77: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).
		linesize = strlen(line);
data/xarchiver-0.5.4.15/src/arj.c:120: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).
		linesize = strlen(line);
data/xarchiver-0.5.4.15/src/cpio.c:85:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(time, ((char *) item[2]) + 7, 5);
data/xarchiver-0.5.4.15/src/date_utils.c:53:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(iso8601 + 5, mm, 2);
data/xarchiver-0.5.4.15/src/date_utils.c:54:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(iso8601 + 8, date + 4, 2);
data/xarchiver-0.5.4.15/src/date_utils.c:73:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(iso8601, yyyy, 4);
data/xarchiver-0.5.4.15/src/date_utils.c:76:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(iso8601, date + (date[7] == ' ' ? 8 : 7), 4);
data/xarchiver-0.5.4.15/src/date_utils.c:86:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(iso8601 + 2, date, 8);
data/xarchiver-0.5.4.15/src/date_utils.c:92: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(iso8601, "19", 2);
data/xarchiver-0.5.4.15/src/date_utils.c:94: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(iso8601, "20", 2);
data/xarchiver-0.5.4.15/src/exe.c:41: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).
	wlen = strlen(what);
data/xarchiver-0.5.4.15/src/extract_dialog.c:57: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(current_path) > 0)
data/xarchiver-0.5.4.15/src/extract_dialog.c:508: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(archive->extraction_dir)== 0)
data/xarchiver-0.5.4.15/src/extract_dialog.c:529:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (archive->has_password && strlen(archive->password)== 0 )
data/xarchiver-0.5.4.15/src/extract_dialog.c:822: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(dest_path)== 0)
data/xarchiver-0.5.4.15/src/extract_dialog.c:860: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(output->str)> 0)
data/xarchiver-0.5.4.15/src/gzip_et_al.c:265: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).
		filename[strlen(filename) - 1] = 0;   // remove colon
data/xarchiver-0.5.4.15/src/interface.c:486: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(string) == 0)
data/xarchiver-0.5.4.15/src/lha.c:80: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).
	linesize = strlen(line);
data/xarchiver-0.5.4.15/src/lha.c:116:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(time, ((char *) item[3]) + 7, 5);
data/xarchiver-0.5.4.15/src/lha.c:132: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(filename) - strlen(temp);
data/xarchiver-0.5.4.15/src/lha.c:132: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).
		gint len = strlen(filename) - strlen(temp);
data/xarchiver-0.5.4.15/src/lha.c:135: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).
		filename[strlen(filename) - strlen(temp)-1] = '\0';
data/xarchiver-0.5.4.15/src/lha.c:135: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).
		filename[strlen(filename) - strlen(temp)-1] = '\0';
data/xarchiver-0.5.4.15/src/mime.c:46:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(icon_name,mime,sizeof(icon_name));
data/xarchiver-0.5.4.15/src/new_dialog.c:92:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					size_t l = strlen(list->data + 1);
data/xarchiver-0.5.4.15/src/new_dialog.c:108:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		stem = g_strndup(file, strlen(file) - longest);
data/xarchiver-0.5.4.15/src/open-with-dlg.c:201:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						app_name = g_strndup(line + strlen(key), strlen(line) - strlen(key));
data/xarchiver-0.5.4.15/src/open-with-dlg.c:201:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						app_name = g_strndup(line + strlen(key), strlen(line) - strlen(key));
data/xarchiver-0.5.4.15/src/open-with-dlg.c:201: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).
						app_name = g_strndup(line + strlen(key), strlen(line) - strlen(key));
data/xarchiver-0.5.4.15/src/open-with-dlg.c:212: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).
				app_name = g_strndup(line + 5, strlen(line) - 5);
data/xarchiver-0.5.4.15/src/open-with-dlg.c:224: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).
					app_exec = g_strndup(line + 5, strlen(line) - 5);
data/xarchiver-0.5.4.15/src/open-with-dlg.c:233: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).
					app_icon = g_strndup(line + 5, strlen(line) - 5);
data/xarchiver-0.5.4.15/src/parser.h:73: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).
#define IF_ITEM_LINE(string) if ((_len = strlen(string)) && (strncmp(line, string, _len) == 0) && (line += _len))
data/xarchiver-0.5.4.15/src/rar.c:134: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).
		linesize = strlen(line);
data/xarchiver-0.5.4.15/src/rar.c:153: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).
		linesize = strlen(line);
data/xarchiver-0.5.4.15/src/rar.c:308: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).
	linesize = strlen(line);
data/xarchiver-0.5.4.15/src/rar.c:366: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).
	iso_date = (strlen(item[i]) == 10);
data/xarchiver-0.5.4.15/src/rar.c:392: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).
	end = filename + strlen(filename) - 1;
data/xarchiver-0.5.4.15/src/rpm.c:163: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).
	linesize = strlen(line);
data/xarchiver-0.5.4.15/src/rpm.c:209:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(time, ((char *) item[2]) + 7, 5);
data/xarchiver-0.5.4.15/src/rpm.c:226: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(filename) - strlen(temp);
data/xarchiver-0.5.4.15/src/rpm.c:226: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).
		gint len = strlen(filename) - strlen(temp);
data/xarchiver-0.5.4.15/src/rpm.c:228: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).
		filename[strlen(filename) - strlen(temp)] = '\0';
data/xarchiver-0.5.4.15/src/rpm.c:228: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).
		filename[strlen(filename) - strlen(temp)] = '\0';
data/xarchiver-0.5.4.15/src/socket.c:58:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, path, sizeof(addr.sun_path) - 1);
data/xarchiver-0.5.4.15/src/socket.c:92:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(addr.sun_path, path, sizeof(addr.sun_path) - 1);
data/xarchiver-0.5.4.15/src/socket.c:186:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(fd, buf, len);
data/xarchiver-0.5.4.15/src/socket.c:242: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).
				socket_fd_write_all(sock, filename, strlen(filename));
data/xarchiver-0.5.4.15/src/string_utils.c:44: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 (tmpl);
data/xarchiver-0.5.4.15/src/string_utils.c:102: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).
	int meta_chars_n = strlen (meta_chars);
data/xarchiver-0.5.4.15/src/string_utils.c:122:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int         meta_chars_n = strlen (meta_chars);
data/xarchiver-0.5.4.15/src/string_utils.c:136: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).
  new_l = strlen (str) + (count_chars_to_escape (str, meta_chars) * extra_chars);
data/xarchiver-0.5.4.15/src/string_utils.c:163: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(working_dir)+1;
data/xarchiver-0.5.4.15/src/string_utils.c:173:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(path);
data/xarchiver-0.5.4.15/src/string_utils.c:189:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (path[strlen(path)-1] == '/')
data/xarchiver-0.5.4.15/src/string_utils.c:191:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		_local_path = g_strndup(path,strlen(path)-1);
data/xarchiver-0.5.4.15/src/string_utils.c:391: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).
	offset = strlen(directory) + 1;
data/xarchiver-0.5.4.15/src/string_utils.c:445: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).
	ellipsized = g_malloc0(strlen(string) + 2);
data/xarchiver-0.5.4.15/src/string_utils.c:457:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(ellipsized, "…");
data/xarchiver-0.5.4.15/src/string_utils.c:472:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(ellipsized, "…");
data/xarchiver-0.5.4.15/src/tar.c:125: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).
	linesize = strlen(line);
data/xarchiver-0.5.4.15/src/tar.c:177: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(filename) - strlen(temp);
data/xarchiver-0.5.4.15/src/tar.c:177: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).
		gint len = strlen(filename) - strlen(temp);
data/xarchiver-0.5.4.15/src/tar.c:179: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).
		filename[strlen(filename) - strlen(temp)-1] = '\0';
data/xarchiver-0.5.4.15/src/tar.c:179: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).
		filename[strlen(filename) - strlen(temp)-1] = '\0';
data/xarchiver-0.5.4.15/src/unar.c:29:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define MAXWIDTH(item, width) (strlen(item) > width ? strlen(item) - width : 0)
data/xarchiver-0.5.4.15/src/unar.c:29:55:  [1] (buffer) strlen:
  Does not handle 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 MAXWIDTH(item, width) (strlen(item) > width ? strlen(item) - width : 0)
data/xarchiver-0.5.4.15/src/window.c:169:18:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			byte = (eof = fgetc(stream));
data/xarchiver-0.5.4.15/src/window.c:296: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(path_utf8) == 0)
data/xarchiver-0.5.4.15/src/window.c:641: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).
	fwrite(content, strlen(content), 1, stream);
data/xarchiver-0.5.4.15/src/window.c:662: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(archive[idx]->comment->str) > 0)
data/xarchiver-0.5.4.15/src/window.c:663: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).
		g_string_erase(archive[idx]->comment,0,strlen(archive[idx]->comment->str));
data/xarchiver-0.5.4.15/src/window.c:664: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(content) > 0)
data/xarchiver-0.5.4.15/src/window.c:720:115:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	gtk_selection_data_set(selection_data, gtk_selection_data_get_target(selection_data), 8, (guchar *) params->str, strlen(params->str));
data/xarchiver-0.5.4.15/src/window.c:2001:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(dummy_string) == 0 || strcmp(dummy_string,"..") == 0 || strcmp(dummy_string,".") == 0)
data/xarchiver-0.5.4.15/src/window.c:2163: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).
			     	strlen (XDS_FILENAME));
data/xarchiver-0.5.4.15/src/window.c:2521: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(gtk_entry_get_text(GTK_ENTRY(location_entry))) == 0)
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:146: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:146:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:166: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/globs2") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:166:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  file_name = malloc (strlen (directory) + strlen ("/mime/globs2") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:176: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).
      file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:176:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:189: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:189:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:201: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/aliases") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:201:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  file_name = malloc (strlen (directory) + strlen ("/mime/aliases") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:206: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/subclasses") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:206:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  file_name = malloc (strlen (directory) + strlen ("/mime/subclasses") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:211: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/icons") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:211:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  file_name = malloc (strlen (directory) + strlen ("/mime/icons") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:216: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/generic-icons") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:216:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  file_name = malloc (strlen (directory) + strlen ("/mime/generic-icons") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:249: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).
	  guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:249: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).
	  guessed_xdg_home = malloc (strlen (home) + strlen ("/.local/share/") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:288:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (dir, ptr, len);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:351: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:351:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  file_name = malloc (strlen (directory) + strlen ("/mime/mime.cache") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:366: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:366:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  file_name = malloc (strlen (directory) + strlen ("/mime/globs") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:377: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).
  file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmime.c:377:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  file_name = malloc (strlen (directory) + strlen ("/mime/magic") + 1);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimealias.c:146: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).
      sep[strlen (sep) -1] = '\000';
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimecache.c:616: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 (file_name);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeglob.c:446: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 (file_name);
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeglob.c:635: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).
      end = line + strlen(line) - 1;
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeicon.c:145: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).
      sep[strlen (sep) -1] = '\000';
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeint.c:163: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).
  out = malloc (sizeof (xdg_unichar_t) * (strlen (source) + 1));
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimemagic.c:51:28:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc_unlocked(fp) getc (fp)
data/xarchiver-0.5.4.15/src/xdgmime/xdgmimeparent.c:152: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).
      sep[strlen (sep) -1] = '\000';
data/xarchiver-0.5.4.15/src/zip.c:74: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).
	linesize = strlen(line);

ANALYSIS SUMMARY:

Hits = 208
Lines analyzed = 23175 in approximately 0.56 seconds (41358 lines/second)
Physical Source Lines of Code (SLOC) = 16137
Hits@level = [0]  30 [1] 119 [2]  66 [3]   5 [4]  18 [5]   0
Hits@level+ = [0+] 238 [1+] 208 [2+]  89 [3+]  23 [4+]  18 [5+]   0
Hits/KSLOC@level+ = [0+] 14.7487 [1+] 12.8896 [2+] 5.51528 [3+] 1.4253 [4+] 1.11545 [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.