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/reiserfsprogs-3.6.27/version.h
Examining data/reiserfsprogs-3.6.27/include/parse_time.h
Examining data/reiserfsprogs-3.6.27/include/progbar.h
Examining data/reiserfsprogs-3.6.27/include/io.h
Examining data/reiserfsprogs-3.6.27/include/misc.h
Examining data/reiserfsprogs-3.6.27/include/reiserfs_fs.h
Examining data/reiserfsprogs-3.6.27/include/reiserfs_lib.h
Examining data/reiserfsprogs-3.6.27/include/swab.h
Examining data/reiserfsprogs-3.6.27/lib/io.c
Examining data/reiserfsprogs-3.6.27/lib/misc.c
Examining data/reiserfsprogs-3.6.27/lib/progbar.c
Examining data/reiserfsprogs-3.6.27/lib/parse_time.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/reiserfs_err.h
Examining data/reiserfsprogs-3.6.27/reiserfscore/do_balan.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/fix_node.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/hashes.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/lbalance.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/prints.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/stree.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/bitmap.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/journal.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/xattr.c
Examining data/reiserfsprogs-3.6.27/reiserfscore/includes.h
Examining data/reiserfsprogs-3.6.27/reiserfscore/reiserfs_err.c
Examining data/reiserfsprogs-3.6.27/fsck/main.c
Examining data/reiserfsprogs-3.6.27/fsck/pass0.c
Examining data/reiserfsprogs-3.6.27/fsck/pass1.c
Examining data/reiserfsprogs-3.6.27/fsck/pass2.c
Examining data/reiserfsprogs-3.6.27/fsck/semantic_check.c
Examining data/reiserfsprogs-3.6.27/fsck/semantic_rebuild.c
Examining data/reiserfsprogs-3.6.27/fsck/pass4.c
Examining data/reiserfsprogs-3.6.27/fsck/lost+found.c
Examining data/reiserfsprogs-3.6.27/fsck/ubitmap.c
Examining data/reiserfsprogs-3.6.27/fsck/uobjectid.c
Examining data/reiserfsprogs-3.6.27/fsck/ustree.c
Examining data/reiserfsprogs-3.6.27/fsck/ufile.c
Examining data/reiserfsprogs-3.6.27/fsck/check_tree.c
Examining data/reiserfsprogs-3.6.27/fsck/info.c
Examining data/reiserfsprogs-3.6.27/fsck/super.c
Examining data/reiserfsprogs-3.6.27/fsck/fsck.h
Examining data/reiserfsprogs-3.6.27/debugreiserfs/debugreiserfs.c
Examining data/reiserfsprogs-3.6.27/debugreiserfs/pack.c
Examining data/reiserfsprogs-3.6.27/debugreiserfs/unpack.c
Examining data/reiserfsprogs-3.6.27/debugreiserfs/stat.c
Examining data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c
Examining data/reiserfsprogs-3.6.27/debugreiserfs/scan.c
Examining data/reiserfsprogs-3.6.27/debugreiserfs/recover.c
Examining data/reiserfsprogs-3.6.27/debugreiserfs/debugreiserfs.h
Examining data/reiserfsprogs-3.6.27/resize_reiserfs/fe.c
Examining data/reiserfsprogs-3.6.27/resize_reiserfs/resize_reiserfs.c
Examining data/reiserfsprogs-3.6.27/resize_reiserfs/do_shrink.c
Examining data/reiserfsprogs-3.6.27/resize_reiserfs/resize.h
Examining data/reiserfsprogs-3.6.27/mkreiserfs/mkreiserfs.c
Examining data/reiserfsprogs-3.6.27/tune/tune.c
Examining data/reiserfsprogs-3.6.27/tune/tune.h

FINAL RESULTS:

data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:403:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (sscanf
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:453:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
		if (sscanf
data/reiserfsprogs-3.6.27/debugreiserfs/recover.c:59:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			if (sscanf(line, "%c %s\n", &code, name) != 2) {
data/reiserfsprogs-3.6.27/include/misc.h:39:55:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void die(const char *fmt, ...) __attribute__ ((format(printf, 1, 2)));
data/reiserfsprogs-3.6.27/lib/misc.c:36:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(buf, fmt, args);
data/reiserfsprogs-3.6.27/lib/misc.c:96:2:  [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(p, MEM_BEGIN);
data/reiserfsprogs-3.6.27/lib/misc.c:103:2:  [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(p, MEM_END);
data/reiserfsprogs-3.6.27/lib/misc.c:127: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(p, MEM_BEGIN);
data/reiserfsprogs-3.6.27/lib/misc.c:135:2:  [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(mem + size + by, MEM_END);
data/reiserfsprogs-3.6.27/lib/misc.c:152:2:  [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(p, MEM_FREED);
data/reiserfsprogs-3.6.27/lib/misc.c:153:2:  [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(p + size + CONTROL_SIZE - strlen(MEM_END) - 1, MEM_FREED);
data/reiserfsprogs-3.6.27/lib/misc.c:405:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf, strs[i]);
data/reiserfsprogs-3.6.27/lib/misc.c:432:2:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	strcat(current_progress, progress_to_be + strlen(current_progress));
data/reiserfsprogs-3.6.27/mkreiserfs/mkreiserfs.c:39:28:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__ ((format(printf, 1, 2)));
data/reiserfsprogs-3.6.27/reiserfscore/prints.c:210:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(fp, fmt, args);
data/reiserfsprogs-3.6.27/tune/tune.c:20:28:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    __attribute__ ((format(printf, 1, 2)));
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:775:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:902:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:1016:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:1102:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:1188:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(NULL));
data/reiserfsprogs-3.6.27/debugreiserfs/debugreiserfs.c:263:3:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		getopt(argc, argv, "a:b:C:F:SU1:pkn:Nfr:dDomj:JqtZl:LVB:uv"))
data/reiserfsprogs-3.6.27/fsck/main.c:139:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "iql:nb:Szd:R:h:j:gafVrpyt:B:",
data/reiserfsprogs-3.6.27/fsck/main.c:1323:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	width = getenv("COLUMNS");
data/reiserfsprogs-3.6.27/fsck/super.c:883:13:  [3] (random) random:
  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.
				magic = random();
data/reiserfsprogs-3.6.27/lib/misc.c:572:2:  [3] (random) srandom:
  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.
	srandom(time(NULL));
data/reiserfsprogs-3.6.27/lib/misc.c:573:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	return random();
data/reiserfsprogs-3.6.27/mkreiserfs/mkreiserfs.c:609:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "b:j:s:t:o:h:u:l:VfdB:q",
data/reiserfsprogs-3.6.27/resize_reiserfs/resize_reiserfs.c:205:14:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((c = getopt(argc, argv, "fvcqks:j:V")) != EOF) {
data/reiserfsprogs-3.6.27/tune/tune.c:446:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "hj:s:t:o:fu:l:b:B:Vc:C:m:M:",
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:353: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 code, name[100];
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:709: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 *)ih)[i] = get_rand(0, 255);
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:757: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 *)blkh)[i] = get_rand(0, 255);
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:994: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 *)p)[i] = get_rand(0, 255);
data/reiserfsprogs-3.6.27/debugreiserfs/debugreiserfs.c:395: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).
			data->log = fopen(optarg, "w");
data/reiserfsprogs-3.6.27/debugreiserfs/debugreiserfs.c:489: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(input_bitmap_file_name(fs), "r");
data/reiserfsprogs-3.6.27/debugreiserfs/debugreiserfs.c:590:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(fd = fopen(badblocks_file, "w"))) {
data/reiserfsprogs-3.6.27/debugreiserfs/debugreiserfs.c:620: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(corruption_list_file, "r");
data/reiserfsprogs-3.6.27/debugreiserfs/recover.c:20: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 name[100];
data/reiserfsprogs-3.6.27/debugreiserfs/recover.c:62:9:  [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(name, O_RDWR | O_CREAT | O_EXCL, 0644);
data/reiserfsprogs-3.6.27/debugreiserfs/recover.c:296: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((void *)map + map_size - sizeof(struct saved_item),
data/reiserfsprogs-3.6.27/debugreiserfs/recover.c:417: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(map_file(fs), "r");
data/reiserfsprogs-3.6.27/debugreiserfs/recover.c:428: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).
	if (!(recovery = fopen(recovery_file(fs), "w+"))) {
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:46: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 name[1];
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:228:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(new->name, name, namelen);
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:278:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new->name, name, new->name_len);
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:439: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((char *)map.head + (map.head_len + padd) * 4, data,
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:460:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(map.tails[i].data + map.tails[i].len +
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:478: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(map.tails[map.tail_nr].data + skip, data,
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:597: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).
	fp = fopen(map_file(fs), "a");
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:746: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(map_file(fs), "r");
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:826: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).
					fp = fopen(file_name, "w+");
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:901:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		set_key_dirid(&key, atol(dirid));
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:907:26:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		set_key_objectid(&key, atol(objectid));
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:1028: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).
	log_to = fopen("scan.log", "w+");
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:1042: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).
		set_key_dirid(&key, atoi(answer));
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:1046: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).
		set_key_objectid(&key, atoi(answer));
data/reiserfsprogs-3.6.27/debugreiserfs/stat.c:231: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).
	fp = fopen(input_bitmap_file_name(fs), "w");
data/reiserfsprogs-3.6.27/debugreiserfs/unpack.c:506: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 c[2];
data/reiserfsprogs-3.6.27/debugreiserfs/unpack.c:601:7:  [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(host, O_RDWR | O_LARGEFILE);
data/reiserfsprogs-3.6.27/debugreiserfs/unpack.c:608:9:  [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).
		fdj = open(j_filename, O_RDWR | O_LARGEFILE);
data/reiserfsprogs-3.6.27/fsck/main.c:169: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).
			data->log = fopen(optarg, "w");
data/reiserfsprogs-3.6.27/fsck/main.c:255:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			data->rebuild.test = atoi(optarg);
data/reiserfsprogs-3.6.27/fsck/main.c:554:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(sb_jp(sb), &jh->jh_journal,
data/reiserfsprogs-3.6.27/fsck/main.c:771:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(fs->fs_ondisk_sb, on_place_sb, sb_size);
data/reiserfsprogs-3.6.27/fsck/main.c:777:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sb_jp(on_place_sb), sb_jp(fs->fs_ondisk_sb),
data/reiserfsprogs-3.6.27/fsck/main.c:781:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(on_place_sb->s_v1.s_magic, fs->fs_ondisk_sb->s_v1.s_magic, 10);
data/reiserfsprogs-3.6.27/fsck/main.c:791: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(on_place_sb->s_uuid, fs->fs_ondisk_sb->s_uuid, 16);
data/reiserfsprogs-3.6.27/fsck/main.c:792: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(on_place_sb->s_label, fs->fs_ondisk_sb->s_label, 16);
data/reiserfsprogs-3.6.27/fsck/main.c:1258:7:  [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_RDWR | O_LARGEFILE);
data/reiserfsprogs-3.6.27/fsck/main.c:1273:24:  [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).
		fs->fs_journal_dev = open(data->journal_dev_name,
data/reiserfsprogs-3.6.27/fsck/main.c:1325:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		screen_width = atoi(width);
data/reiserfsprogs-3.6.27/fsck/main.c:1357:20:  [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).
		data->progress = fopen("fsck.run", "a+");
data/reiserfsprogs-3.6.27/fsck/pass0.c:240: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[4096];
data/reiserfsprogs-3.6.27/fsck/pass0.c:532: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(buf, "%.*s", name_in_entry_length(ih, deh, i),
data/reiserfsprogs-3.6.27/fsck/pass0.c:2108: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(fsck_data(fs)->rebuild.bitmap_file_name, "r");
data/reiserfsprogs-3.6.27/fsck/pass1.c:22:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(bh->b_data, data, size);
data/reiserfsprogs-3.6.27/fsck/pass1.c:745:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(new_bh->b_data, bh->b_data, bh->b_size);
data/reiserfsprogs-3.6.27/fsck/pass2.c:143:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&(si->si_ih), ih, IH_SIZE);
data/reiserfsprogs-3.6.27/fsck/pass2.c:144:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(si->si_dnm_data, item, get_ih_item_len(ih));
data/reiserfsprogs-3.6.27/fsck/pass2.c:253: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(tp_item_body(path), new_item, get_ih_item_len(tp_item_head(path)));
data/reiserfsprogs-3.6.27/fsck/pass2.c:267:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tp_item_body(path), new_item, SD_V1_SIZE);
data/reiserfsprogs-3.6.27/fsck/pass2.c:272:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tp_item_body(path), new_item, SD_SIZE);
data/reiserfsprogs-3.6.27/fsck/semantic_check.c:366:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dir_item, ih_item_body(bh, ih), get_ih_item_len(ih));
data/reiserfsprogs-3.6.27/fsck/semantic_rebuild.c:639:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dir_item, ih_item_body(bh, ih), get_ih_item_len(ih));
data/reiserfsprogs-3.6.27/fsck/super.c:29:12:  [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).
	version = atoi(answer);
data/reiserfsprogs-3.6.27/fsck/super.c:200: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).
			    open(fs->fs_file_name, O_RDWR | O_LARGEFILE);
data/reiserfsprogs-3.6.27/fsck/super.c:227: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(sb, fs->fs_ondisk_sb, sizeof(*sb));
data/reiserfsprogs-3.6.27/fsck/super.c:326: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).
					block_count = atoi(answer);
data/reiserfsprogs-3.6.27/fsck/super.c:351: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(filename, O_RDWR | O_LARGEFILE);
data/reiserfsprogs-3.6.27/fsck/super.c:435:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(fs->fs_ondisk_sb->s_v1.s_magic,
data/reiserfsprogs-3.6.27/fsck/super.c:450: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).
				block_count = atoi(answer);
data/reiserfsprogs-3.6.27/fsck/super.c:926:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&j_head->jh_journal, sb_jp(sb),
data/reiserfsprogs-3.6.27/fsck/super.c:951:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ondisk_sb, sb, sb_size);
data/reiserfsprogs-3.6.27/fsck/ufile.c:43: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 bad_drct[fs->fs_blocksize];
data/reiserfsprogs-3.6.27/fsck/ufile.c:605:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&sd_copy, sd, get_ih_item_len(sd_ih));
data/reiserfsprogs-3.6.27/fsck/ufile.c:677:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(unbh->b_data + get_offset(&ih->ih_key) - 1, item,
data/reiserfsprogs-3.6.27/fsck/ufile.c:695:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ni, (item), get_ih_item_len(ih));
data/reiserfsprogs-3.6.27/fsck/ufile.c:784: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(unbh->b_data + copied,
data/reiserfsprogs-3.6.27/fsck/ufile.c:905:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(unbh->b_data + offset, item, coming_len);
data/reiserfsprogs-3.6.27/fsck/ufile.c:955: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(unbh->b_data +
data/reiserfsprogs-3.6.27/fsck/ufile.c:984: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(ni, (item + pos * UNFM_P_SIZE), count * UNFM_P_SIZE);
data/reiserfsprogs-3.6.27/fsck/ufile.c:1085:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(unbh->b_data + offset, item, coming_len);
data/reiserfsprogs-3.6.27/fsck/ufile.c:1137:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(bh_in_tree->b_data +
data/reiserfsprogs-3.6.27/include/progbar.h:13: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 units[16];
data/reiserfsprogs-3.6.27/include/reiserfs_fs.h:48:9:  [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(&__tmp, (ptr), sizeof(*(ptr)));		\
data/reiserfsprogs-3.6.27/include/reiserfs_fs.h:57:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((ptr), &__tmp, sizeof(*(ptr)));		\
data/reiserfsprogs-3.6.27/include/reiserfs_fs.h:94: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 s_magic[16];
data/reiserfsprogs-3.6.27/include/reiserfs_fs.h:155: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 s_magic[10];	/* 52 reiserfs magic string indicates that
data/reiserfsprogs-3.6.27/include/reiserfs_fs.h:197:25:  [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.
						/* 84 */ unsigned char s_uuid[16];
data/reiserfsprogs-3.6.27/include/reiserfs_fs.h:199:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					/*100 */ char s_label[16];
data/reiserfsprogs-3.6.27/include/reiserfs_fs.h:205:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					/*128 */ char s_unused[76];
data/reiserfsprogs-3.6.27/lib/io.c:545:20:  [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).
	s_rollback_file = fopen(rollback_file, "w+");
data/reiserfsprogs-3.6.27/lib/io.c:588: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 string[28];
data/reiserfsprogs-3.6.27/lib/io.c:600:20:  [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).
	s_rollback_file = fopen(rollback_file, "r+");
data/reiserfsprogs-3.6.27/lib/misc.c:32:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[1024];
data/reiserfsprogs-3.6.27/lib/misc.c:348: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.
static char buf1[100];
data/reiserfsprogs-3.6.27/lib/misc.c:349: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.
static char buf2[100];
data/reiserfsprogs-3.6.27/lib/misc.c:374: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(buf1, "left %lu, %d /sec", total - passed, speed);
data/reiserfsprogs-3.6.27/lib/misc.c:377: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(buf1, "done %lu, %d /sec", passed, speed);
data/reiserfsprogs-3.6.27/lib/misc.c:396: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.
static char progress_to_be[1024];
data/reiserfsprogs-3.6.27/lib/misc.c:397: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.
static char current_progress[1024];
data/reiserfsprogs-3.6.27/lib/misc.c:487:7:  [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(filename, O_RDONLY);
data/reiserfsprogs-3.6.27/lib/misc.c:652:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(*base + (char)*position * elem_size, elem, elem_size);
data/reiserfsprogs-3.6.27/lib/misc.c:691: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[256];
data/reiserfsprogs-3.6.27/lib/misc.c:730:21:  [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).
					dma_info->fd = open(buf, O_RDONLY
data/reiserfsprogs-3.6.27/lib/progbar.c:8: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.
static char bar[128], spaces[128];
data/reiserfsprogs-3.6.27/mkreiserfs/mkreiserfs.c:95:17:  [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 unsigned char UUID[16];
data/reiserfsprogs-3.6.27/mkreiserfs/mkreiserfs.c:118: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(fs->fs_ondisk_sb->s_uuid, UUID, 16);
data/reiserfsprogs-3.6.27/reiserfscore/bitmap.c:87:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(to->bm_map, from->bm_map, from->bm_byte_size);
data/reiserfsprogs-3.6.27/reiserfscore/bitmap.c:282: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(p, bh->b_data, copied);
data/reiserfsprogs-3.6.27/reiserfscore/bitmap.c:367: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(bh->b_data, p, copied);
data/reiserfsprogs-3.6.27/reiserfscore/bitmap.c:421:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(filename, option);
data/reiserfsprogs-3.6.27/reiserfscore/do_balan.c:1284: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(insert_key + i, leaf_key(S_new[i], 0), KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/do_balan.c:1430:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(internal_key(dest, n_dest),
data/reiserfsprogs-3.6.27/reiserfscore/do_balan.c:1433:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(internal_key(dest, n_dest),
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:110:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dc, new_dc, DC_SIZE * count);
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:120:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, inserted, KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:122: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(key + 1, inserted + 1, KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:244:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dc, B_N_CHILD(src, src_order), DC_SIZE * cpy_num);
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:253:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, internal_key(src, src_order), KEY_SIZE * (cpy_num - 1));
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:327:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(key, internal_key(src, src_position), KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:555:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(internal_key(tb->CFL[h], tb->lkey[h]), key, KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:563:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(internal_key(tb->CFR[h], tb->rkey[h]), key, KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:793:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&new_insert_key, internal_key(tbSh, n - snum),
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:803:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&new_insert_key,
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:836:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&new_insert_key, insert_key + insert_num - k - 1,
data/reiserfsprogs-3.6.27/reiserfscore/ibalance.c:886: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(new_insert_key_addr, &new_insert_key, KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/journal.c:279:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(bh->b_data, j_bh->b_data, bh->b_size);
data/reiserfsprogs-3.6.27/reiserfscore/journal.c:455:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&j_head->jh_journal, sb_jp(sb),
data/reiserfsprogs-3.6.27/reiserfscore/journal.c:501:23:  [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).
	fs->fs_journal_dev = open(j_filename, flags
data/reiserfsprogs-3.6.27/reiserfscore/journal.c:685:23:  [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).
	fs->fs_journal_dev = open(j_device, O_RDWR
data/reiserfsprogs-3.6.27/reiserfscore/journal.c:740:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sb_jp(sb), &jh->jh_journal, sizeof(struct journal_params));
data/reiserfsprogs-3.6.27/reiserfscore/journal.c:763:23:  [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).
	fs->fs_journal_dev = open(fs->fs_j_file_name, flag
data/reiserfsprogs-3.6.27/reiserfscore/lbalance.c:77: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(&new_ih.ih_key, &ih->ih_key, KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/lbalance.c:283:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ih, item_head(src, first), cpy_num * IH_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/lbalance.c:306:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dest->b_data + last_inserted_loc,
data/reiserfsprogs-3.6.27/reiserfscore/lbalance.c:348:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&n_ih, ih, IH_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/lbalance.c:375:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&n_ih, ih, SHORT_KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/lbalance.c:798:6:  [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(bh->b_data +
data/reiserfsprogs-3.6.27/reiserfscore/lbalance.c:805:6:  [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(bh->b_data + unmoved_loc -
data/reiserfsprogs-3.6.27/reiserfscore/lbalance.c:1126:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(insert_point + DEH_SIZE * new_entry_count, records,
data/reiserfsprogs-3.6.27/reiserfscore/lbalance.c:1135:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(deh, new_dehs, DEH_SIZE * new_entry_count);
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:819:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(body + get_deh_location(deh), ".", 1);
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:820:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(body + get_deh_location(deh + 1), "..", 2);
data/reiserfsprogs-3.6.27/reiserfscore/prints.c:181:48:  [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.
	const unsigned char *uuid = *((const unsigned char **)(args[0]));
data/reiserfsprogs-3.6.27/reiserfscore/prints.c:182: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[37];
data/reiserfsprogs-3.6.27/reiserfscore/prints.c:326: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.
static char timebuf[256];
data/reiserfsprogs-3.6.27/reiserfscore/prints.c:557: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 last_check_buf[26];
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:72:7:  [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(filename, flags
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:206:15:  [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).
	fs->fs_dev = open(filename, O_RDWR | O_EXCL
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:261: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(fs->fs_ondisk_sb->s_v1.s_magic,
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:272: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(fs->fs_ondisk_sb->s_v1.s_magic,
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:278: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(fs->fs_ondisk_sb->s_v1.s_magic,
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:337:15:  [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).
	fs->fs_dev = open(fs->fs_file_name, flag
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:1047:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy((char *)(deh + 1), name, strlen(name));
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:1127:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(to, from, KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:1132:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(to, from, SHORT_KEY_SIZE);
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:1251: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[128];
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:1262: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(badblocks_file, "r");
data/reiserfsprogs-3.6.27/resize_reiserfs/do_shrink.c:76:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(bh2->b_data, bh->b_data, bh2->b_size);
data/reiserfsprogs-3.6.27/resize_reiserfs/fe.c:12: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[40];
data/reiserfsprogs-3.6.27/resize_reiserfs/fe.c:18: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(buf, "resize=%lld", blocks);
data/reiserfsprogs-3.6.27/resize_reiserfs/resize_reiserfs.c:327: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(sb_old, fs->fs_ondisk_sb, SB_SIZE);
data/reiserfsprogs-3.6.27/tune/tune.c:82:17:  [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 unsigned char UUID[16];
data/reiserfsprogs-3.6.27/tune/tune.c:136: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(fs->fs_ondisk_sb->s_v1.s_magic,
data/reiserfsprogs-3.6.27/tune/tune.c:140: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(fs->fs_ondisk_sb->s_v1.s_magic,
data/reiserfsprogs-3.6.27/tune/tune.c:670:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(fs->fs_ondisk_sb->s_uuid, UUID, 16);
data/reiserfsprogs-3.6.27/tune/tune.c:867: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(fs->fs_ondisk_sb->s_v1.s_magic,
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:162:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(fs->fs_ondisk_sb->s_v1.s_magic, str, n > 10 ? 10 : n);
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:423: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).
				    (int)strlen(name)
data/reiserfsprogs-3.6.27/debugreiserfs/corruption.c:425:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						strlen(name)))
data/reiserfsprogs-3.6.27/debugreiserfs/debugreiserfs.c:634: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).
		line[strlen(line) - 1] = '\0';
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:259: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).
			  sizeof(struct saved_name) + strlen(name));
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:277: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).
	new->name_len = strlen(name);
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:607: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).
	v32 = strlen(device_name(fs)) + 1;
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:612: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).
	v32 = strlen(name) + 1;
data/reiserfsprogs-3.6.27/debugreiserfs/scan.c:914: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).
		name[strlen(name) - 1] = 0;
data/reiserfsprogs-3.6.27/debugreiserfs/unpack.c:113:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			namelen = strlen(item + location);
data/reiserfsprogs-3.6.27/fsck/lost+found.c:211: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(lost_name));
data/reiserfsprogs-3.6.27/fsck/lost+found.c:217: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).
					erase_name(strlen(lost_name));
data/reiserfsprogs-3.6.27/fsck/semantic_rebuild.c:36:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(screen_savebuffer, "/");
data/reiserfsprogs-3.6.27/fsck/semantic_rebuild.c:37:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(screen_savebuffer, name, len);
data/reiserfsprogs-3.6.27/fsck/super.c:437: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).
				       strlen(REISERFS_JR_SUPER_MAGIC_STRING));
data/reiserfsprogs-3.6.27/include/reiserfs_fs.h:903: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).
(DEH_SIZE * 2 + ROUND_UP (strlen (".")) + ROUND_UP (strlen ("..")))
data/reiserfsprogs-3.6.27/include/reiserfs_fs.h:903:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
(DEH_SIZE * 2 + ROUND_UP (strlen (".")) + ROUND_UP (strlen ("..")))
data/reiserfsprogs-3.6.27/lib/io.c:478:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(bh->b_dev, bh->b_data, bh->b_size);
data/reiserfsprogs-3.6.27/lib/io.c:850:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (read(bh->b_dev, rollback_data, bh->b_size)
data/reiserfsprogs-3.6.27/lib/misc.c:46: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).
#define CONTROL_SIZE (strlen (MEM_BEGIN) + 1 + sizeof (int) + strlen (MEM_END) + 1)
data/reiserfsprogs-3.6.27/lib/misc.c:46: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).
#define CONTROL_SIZE (strlen (MEM_BEGIN) + 1 + sizeof (int) + strlen (MEM_END) + 1)
data/reiserfsprogs-3.6.27/lib/misc.c:52: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).
	begin = p - strlen(MEM_BEGIN) - 1 - sizeof(int);
data/reiserfsprogs-3.6.27/lib/misc.c:53: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).
	return *(int *)(begin + strlen(MEM_BEGIN) + 1);
data/reiserfsprogs-3.6.27/lib/misc.c:61: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).
	begin = p - strlen(MEM_BEGIN) - 1 - sizeof(int);
data/reiserfsprogs-3.6.27/lib/misc.c:65:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (*(int *)(begin + strlen(MEM_BEGIN) + 1) != size)
data/reiserfsprogs-3.6.27/lib/misc.c:68:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	end = begin + size + CONTROL_SIZE - strlen(MEM_END) - 1;
data/reiserfsprogs-3.6.27/lib/misc.c:97: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).
	p += strlen(MEM_BEGIN) + 1;
data/reiserfsprogs-3.6.27/lib/misc.c:117: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).
		p -= (strlen(MEM_BEGIN) + 1 + sizeof(int));
data/reiserfsprogs-3.6.27/lib/misc.c:129: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).
	mem = p + strlen(MEM_BEGIN) + 1 + sizeof(int);
data/reiserfsprogs-3.6.27/lib/misc.c:131: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).
	*(int *)(p + strlen(MEM_BEGIN) + 1) = size + by;
data/reiserfsprogs-3.6.27/lib/misc.c:151: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).
	p -= (strlen(MEM_BEGIN) + 1 + sizeof(int));
data/reiserfsprogs-3.6.27/lib/misc.c:153: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).
	strcpy(p + size + CONTROL_SIZE - strlen(MEM_END) - 1, MEM_FREED);
data/reiserfsprogs-3.6.27/lib/misc.c:381:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	indent = 79 - cursor_pos - strlen(buf1);
data/reiserfsprogs-3.6.27/lib/misc.c:386:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memset(buf2, '\b', indent + strlen(buf1));
data/reiserfsprogs-3.6.27/lib/misc.c:387:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	buf2[indent + strlen(buf1)] = 0;
data/reiserfsprogs-3.6.27/lib/misc.c:428: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_progress) != strlen(progress_to_be)) {
data/reiserfsprogs-3.6.27/lib/misc.c:428:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(current_progress) != strlen(progress_to_be)) {
data/reiserfsprogs-3.6.27/lib/misc.c:429:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		fprintf(fp, "%s", progress_to_be + strlen(current_progress));
data/reiserfsprogs-3.6.27/lib/misc.c:432: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).
	strcat(current_progress, progress_to_be + strlen(current_progress));
data/reiserfsprogs-3.6.27/lib/misc.c:436: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).
			       strlen(progress_to_be),
data/reiserfsprogs-3.6.27/lib/misc.c:468:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, &ch, 1) < 1)
data/reiserfsprogs-3.6.27/lib/misc.c:721:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
				strncat(buf, "/dev/", 5);
data/reiserfsprogs-3.6.27/lib/misc.c:722:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat(buf, dirent->d_name,
data/reiserfsprogs-3.6.27/lib/misc.c:723: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).
					strlen(dirent->d_name));
data/reiserfsprogs-3.6.27/lib/misc.c:808:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (getline(&answer, &n, stdin) != (ssize_t) strlen(yes)
data/reiserfsprogs-3.6.27/lib/progbar.c:18:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ctx->units, units, sizeof(ctx->units));
data/reiserfsprogs-3.6.27/lib/progbar.c:76: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).
	dpywidth = 66 - strlen(label);
data/reiserfsprogs-3.6.27/mkreiserfs/mkreiserfs.c:121: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(LABEL) > 16)
data/reiserfsprogs-3.6.27/mkreiserfs/mkreiserfs.c:125:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(fs->fs_ondisk_sb->s_label, LABEL, 16);
data/reiserfsprogs-3.6.27/reiserfscore/hashes.c:207: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).
		name[strlen(name) - 1] = 0;
data/reiserfsprogs-3.6.27/reiserfscore/hashes.c:209: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).
		       keyed_hash(name, strlen(name)) & 0x7fffff80,
data/reiserfsprogs-3.6.27/reiserfscore/hashes.c:210: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).
		       r5_hash(name, strlen(name)) & 0x7fffff80,
data/reiserfsprogs-3.6.27/reiserfscore/hashes.c:211: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).
		       yura_hash(name, strlen(name)) & 0x7fffff80);
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:226: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).
			 strlen(REISERFS_3_5_SUPER_MAGIC_STRING)));
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:232: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).
			 strlen(REISERFS_3_6_SUPER_MAGIC_STRING)));
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:238: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).
			 strlen(REISERFS_JR_SUPER_MAGIC_STRING)));
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:286: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).
			 strlen(REISERFS_3_5_SUPER_MAGIC_STRING)));
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:809:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		set_deh_location(deh, EMPTY_DIR_SIZE - ROUND_UP(strlen(".")));
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:812: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).
				 ROUND_UP(strlen("..")));
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:814:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		set_deh_location(deh, EMPTY_DIR_SIZE_V1 - strlen("."));
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:815:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		set_deh_location(deh + 1, get_deh_location(deh) - strlen(".."));
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:1024: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).
		return ROUND_UP(strlen(name));
data/reiserfsprogs-3.6.27/reiserfscore/node_formats.c:1026: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).
		return strlen(name);
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:263: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(REISERFS_3_5_SUPER_MAGIC_STRING));
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:274: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(REISERFS_3_6_SUPER_MAGIC_STRING));
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:280: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(REISERFS_JR_SUPER_MAGIC_STRING));
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:893: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).
			     (int)strlen(name))
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:895: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).
				       strlen(name))) {
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:949:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		hash = hash_value(reiserfs_hash(fs), name, strlen(name));
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:978: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).
			     (int)strlen(name))
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:981:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			     (name_in_entry(deh, i), name, strlen(name)))) {
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:1033:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		entry = getmem(DEH_SIZE + ROUND_UP(strlen(name)));
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:1035:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memset(entry, 0, DEH_SIZE + ROUND_UP(strlen(name)));
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:1047: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).
	memcpy((char *)(deh + 1), name, strlen(name));
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:1079: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).
			       strlen(name)) + gen_counter;
data/reiserfsprogs-3.6.27/reiserfscore/reiserfslib.c:1603:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				name_len = strlen(name);
data/reiserfsprogs-3.6.27/resize_reiserfs/do_shrink.c:221:7:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		c = getchar();
data/reiserfsprogs-3.6.27/resize_reiserfs/resize_reiserfs.c:37: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 = bytes_str + strlen(bytes_str) - 1;
data/reiserfsprogs-3.6.27/tune/tune.c:138: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(REISERFS_3_5_SUPER_MAGIC_STRING));
data/reiserfsprogs-3.6.27/tune/tune.c:142: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(REISERFS_3_6_SUPER_MAGIC_STRING));
data/reiserfsprogs-3.6.27/tune/tune.c:675: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(LABEL) > 16)
data/reiserfsprogs-3.6.27/tune/tune.c:678:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(fs->fs_ondisk_sb->s_label, LABEL, 16);
data/reiserfsprogs-3.6.27/tune/tune.c:869: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(REISERFS_JR_SUPER_MAGIC_STRING));

ANALYSIS SUMMARY:

Hits = 272
Lines analyzed = 38512 in approximately 0.91 seconds (42199 lines/second)
Physical Source Lines of Code (SLOC) = 27331
Hits@level = [0] 417 [1]  83 [2] 159 [3]  14 [4]  16 [5]   0
Hits@level+ = [0+] 689 [1+] 272 [2+] 189 [3+]  30 [4+]  16 [5+]   0
Hits/KSLOC@level+ = [0+] 25.2095 [1+] 9.95207 [2+] 6.91522 [3+] 1.09765 [4+] 0.585416 [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.