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/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c
Examining data/gfs2-utils-3.3.0/gfs2/edit/extended.c
Examining data/gfs2-utils-3.3.0/gfs2/edit/extended.h
Examining data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c
Examining data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.h
Examining data/gfs2-utils-3.3.0/gfs2/edit/hexedit.h
Examining data/gfs2-utils-3.3.0/gfs2/edit/journal.c
Examining data/gfs2-utils-3.3.0/gfs2/edit/journal.h
Examining data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c
Examining data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/afterpass1_common.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/afterpass1_common.h
Examining data/gfs2-utils-3.3.0/gfs2/fsck/fs_recovery.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/fs_recovery.h
Examining data/gfs2-utils-3.3.0/gfs2/fsck/fsck.h
Examining data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/inode_hash.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/inode_hash.h
Examining data/gfs2-utils-3.3.0/gfs2/fsck/link.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/link.h
Examining data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.h
Examining data/gfs2-utils-3.3.0/gfs2/fsck/metawalk.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/metawalk.h
Examining data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/pass1b.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/pass3.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/pass4.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/pass5.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/rgrepair.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/util.c
Examining data/gfs2-utils-3.3.0/gfs2/fsck/util.h
Examining data/gfs2-utils-3.3.0/gfs2/fsck/main.c
Examining data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c
Examining data/gfs2-utils-3.3.0/gfs2/include/linux_endian.h
Examining data/gfs2-utils-3.3.0/gfs2/include/logging.h
Examining data/gfs2-utils-3.3.0/gfs2/include/osi_list.h
Examining data/gfs2-utils-3.3.0/gfs2/include/osi_tree.h
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/block_list.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/buf.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/config.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/config.h
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/crc32c.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/crc32c.h
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/device_geometry.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_bits.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_geometry.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs1.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs2_disk_hash.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs2l.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/lang.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/lang.h
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/libgfs2.h
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/meta.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/misc.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/ondisk.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/recovery.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/rgrp.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/rgrp.h
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c
Examining data/gfs2-utils-3.3.0/gfs2/libgfs2/super.c
Examining data/gfs2-utils-3.3.0/gfs2/mkfs/gfs2_mkfs.h
Examining data/gfs2-utils-3.3.0/gfs2/mkfs/metafs.c
Examining data/gfs2-utils-3.3.0/gfs2/mkfs/metafs.h
Examining data/gfs2-utils-3.3.0/gfs2/mkfs/progress.c
Examining data/gfs2-utils-3.3.0/gfs2/mkfs/progress.h
Examining data/gfs2-utils-3.3.0/gfs2/mkfs/main_grow.c
Examining data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c
Examining data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c
Examining data/gfs2-utils-3.3.0/gfs2/tune/super.c
Examining data/gfs2-utils-3.3.0/gfs2/tune/tunegfs2.h
Examining data/gfs2-utils-3.3.0/gfs2/tune/main.c
Examining data/gfs2-utils-3.3.0/tests/check_meta.c
Examining data/gfs2-utils-3.3.0/tests/check_rgrp.c
Examining data/gfs2-utils-3.3.0/tests/nukerg.c

FINAL RESULTS:

data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:127:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, args);
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:576: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(estring, highlighted_addr);
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:109:2:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	vsprintf(string, fmt, args);
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:162:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		vsprintf(tmp_string, fmt, args);
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:174:4:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
			vsprintf(tmp_string, fmt2, args);
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:205:5:  [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(estring, tmp_string);
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.h:9:69:  [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.
extern void print_gfs2(const char *fmt, ...) __attribute__((format (printf, 1, 2)));
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1596:3:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
		sscanf(estring, "%"SCNx64, &temp_blk);/* retrieve in hex */
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1763:10:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
			err = sscanf(nstr, "%"SCNi64, &val);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2492:5:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
				sscanf(argv[i], "%"SCNx32, &rg);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2500:6:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
					sscanf(argv[i], "%"SCNx32, &new_flags);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2562:4:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
			sscanf(argv[i], "%"SCNd64, &temp_blk);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.h:133:52:  [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.
static __inline__ __attribute__((noreturn, format (printf, 1, 2)))
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.h:138: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(stderr, fmt, ap);
data/gfs2-utils-3.3.0/gfs2/edit/journal.c:232:6:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
					sprintf(str, "0x%llx %2s",
data/gfs2-utils-3.3.0/gfs2/fsck/fsck.h:136:24:  [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/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:1295: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(sb.sb_lockproto, GFS2_DEFAULT_LOCKPROTO);
data/gfs2-utils-3.3.0/gfs2/fsck/main.c:54:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, args);
data/gfs2-utils-3.3.0/gfs2/fsck/main.c:67:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(REDHAT_COPYRIGHT "\n");
data/gfs2-utils-3.3.0/gfs2/fsck/pass1b.c:55:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(reftypestring, "as %s", reftypes[get_ref_type(id)]);
data/gfs2-utils-3.3.0/gfs2/fsck/util.c:187:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(format, args);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:74:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(BKG_CYAN);		   \
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:82:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(BOLD_WHITE);		   \
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:90:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(STR_WHITE);		   \
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:99:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(BKG_WHITE);		    \
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:107:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(BKG_WHITE);		    \
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:115:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(STR_CYAN);		    \
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:123:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(BKG_BLUE);		    \
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:297: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(newmnt->device, mnt->mnt_fsname);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:298: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(newmnt->dir, mnt->mnt_dir);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:561:3:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		vsnprintf(tmp_string, 127, fmt, args);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:598: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(contended_filenames[i], mp->dir);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:604:6:  [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(contended_filenames[i],
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:760:3:  [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.
		sscanf(dlmwlines[i], "%x %d %d        %d         %s",
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:863:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(gline, "Is:%s, Want:%s   %s",
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:868:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(gline, "Held:%s   %s",
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:949:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dlm_resid, "%8d%16s", locktype, trgt_res_name);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1018:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(stackfn, "/proc/%s/stack", tmp);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1218:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(extras, "%sinode", i_type);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1619:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(fstitle, "@ %.22s       %s ", fsname, ctimestr);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1621:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(fsdlm, "dlm: %s/%s/%s [", dlm_dirtbl_size,
data/gfs2-utils-3.3.0/gfs2/include/logging.h:19:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(format); } } while(0)
data/gfs2-utils-3.3.0/gfs2/include/logging.h:22:36:  [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.
	do { if (print_level >= MSG_INFO) printf(format); } while(0)
data/gfs2-utils-3.3.0/gfs2/include/logging.h:25:38:  [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.
	do { if (print_level >= MSG_NOTICE) printf(format); } while(0)
data/gfs2-utils-3.3.0/gfs2/include/logging.h:28:36:  [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.
	do { if (print_level >= MSG_WARN) printf(format); } while(0)
data/gfs2-utils-3.3.0/gfs2/include/logging.h:31:37:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	do { if (print_level >= MSG_ERROR) fprintf(stderr, format); } while(0)
data/gfs2-utils-3.3.0/gfs2/include/logging.h:34:40:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	do { if (print_level >= MSG_CRITICAL) fprintf(stderr, format); } while(0)
data/gfs2-utils-3.3.0/gfs2/libgfs2/lang.c:54:9:  [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 the scanf format is influenceable by an
  attacker, it's exploitable.
		ret = sscanf(str, "%"SCNi64, &expr->ast_num);
data/gfs2-utils-3.3.0/gfs2/libgfs2/libgfs2.h:718:24:  [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,2,4)));
data/gfs2-utils-3.3.0/gfs2/libgfs2/meta.c:998:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(str, size, "%"PRIx64, value);
data/gfs2-utils-3.3.0/gfs2/libgfs2/meta.c:1026:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(str, size, "%"PRIu64, value);
data/gfs2-utils-3.3.0/gfs2/mkfs/gfs2_mkfs.h:10:52:  [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.
static __inline__ __attribute__((noreturn, format (printf, 1, 2)))
data/gfs2-utils-3.3.0/gfs2/mkfs/gfs2_mkfs.h:15: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(stderr, fmt, ap);
data/gfs2-utils-3.3.0/gfs2/mkfs/gfs2_mkfs.h:27:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, args);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_grow.c:104:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(REDHAT_COPYRIGHT "\n");
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:182:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(REDHAT_COPYRIGHT "\n");
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:379:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(REDHAT_COPYRIGHT "\n");
data/gfs2-utils-3.3.0/gfs2/tune/super.c:149: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(tfs->sb->sb_locktable, locktable);
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:1736:13:  [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, "hnqvyV")) != -1) {
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:1399: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/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:1400:46:  [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.
	sequence = ji_nsegment / (RAND_MAX + 1.0) * random();
data/gfs2-utils-3.3.0/gfs2/fsck/main.c:74: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, "afhnpqvyV")) != -1) {
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:208: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.
		termtype = getenv("TERM");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1685:13:  [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.
		optchar = getopt(argc, argv, "-d:Dn:rs:thHi");
data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs2l.c:60:16:  [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 ((opt = getopt(argc, argv, "F:f:hT")) != -1) {
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:162:30:  [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.
	uint64_t seq = ((blocks) * (random() / (RAND_MAX + 1.0)));
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:225:30:  [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.
	uint64_t seq = ((blocks) * (random() / (RAND_MAX + 1.0)));
data/gfs2-utils-3.3.0/gfs2/mkfs/main_grow.c:96:16:  [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 ((opt = getopt(argc, argv, "VD:hqTv?")) != EOF) {
data/gfs2-utils-3.3.0/gfs2/mkfs/main_grow.c:360: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) ^ getpid());
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:30:37:  [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.
#define RANDOM(values) ((values) * (random() / (RAND_MAX + 1.0)))
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:157:13:  [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.
		optchar = getopt(argc, argv, "c:DhJ:j:qu:V");
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:601: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) ^ getpid());
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:325:7:  [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.
		c = getopt(argc, argv, "-b:c:DhJ:j:KOo:p:qr:t:V");
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:1052: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) ^ getpid());
data/gfs2-utils-3.3.0/gfs2/tune/main.c:70:13:  [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, "hL:U:lo:V")) != -1) {
data/gfs2-utils-3.3.0/tests/nukerg.c:145:7:  [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.
		c = getopt(argc, argv, "-hi:r:");
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:325: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 + hdrsize + ptramt, (char *)srcptr, amount);
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:482: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 + ptramt, (char *)srcptr, amount);
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:534: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(blk->ptrbuf, dibh->b_data + sizeof(struct gfs_dinode),
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:577: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(newblk->ptrbuf, bh->b_data + sizeof(struct gfs_indirect), bufsize);
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:623: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(&blk->mp, &gfs2mp, sizeof(struct metapath));
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:678: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(newblk->ptrbuf, bh->b_data +
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:691: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(&newblk->mp, &gfs2mp, sizeof(struct metapath));
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:784:7:  [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 char *cdpn[14] = {"{hostname}", "{mach}", "{os}", "{uid}", "{gid}", "{sys}", "{jid}",
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:848:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, eabh->b_data + old_hdr_sz, sbp->bsize - old_hdr_sz);
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:850: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(eabh->b_data + new_hdr_sz, buf, len);
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:1471: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[sizeof(struct gfs_jindex)];
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:1556: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).
	if ((sbp->device_fd = open(opts->device, O_RDWR)) < 0) {
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:1588: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(&raw_gfs1_ondisk_sb, (struct gfs_sb *)bh->b_data,
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:1920: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[sizeof(struct gfs2_statfs_change)];
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:1980: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 name[256];
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:1984: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(name, "journal%u", j);
data/gfs2-utils-3.3.0/gfs2/convert/gfs2_convert.c:2118: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(nq_ip->i_bh->b_data + sizeof(struct gfs2_dinode), 
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:187:5:  [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(estring, "%llx",
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:189:5:  [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(edit_fmt, "%llx");
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:340:6:  [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(estring, "%llx",
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:342:6:  [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(edit_fmt, "%llx");
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:418: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(&more_indir->ii[x].mp,
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:451: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 jbuf[sizeof(struct gfs_jindex)];
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:471:5:  [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(efield, "ji_addr");
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:472:5:  [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(estring, "%llx", (unsigned long long)ji.ji_addr);
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:519: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 rbuf[sizeof(struct gfs2_rindex)];
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:520: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 highlighted_addr[32];
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:545:5:  [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(highlighted_addr, "%llx", (unsigned long long)ri.ri_addr);
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:557: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 buf[sizeof(struct gfs2_rgrp)] = {0};
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:37:1:  [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 edit_fmt[80];
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:38:1:  [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 estring[1024];
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:39:1:  [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 efield[64];
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:72:7:  [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 char *block_type_str[15] = {
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:105: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[PATH_MAX];
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:145: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 tmp_string[NAME_MAX];
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:228: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(&indir->dirent[d].dirent, &de, sizeof(struct gfs2_dirent));
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:229: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(&indir->dirent[d].filename,
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:338: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(&indir->ii[0].dirent[x].dirent,
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:340: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(&indir->ii[0].dirent[x].filename,
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:420: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 readable_uuid[36+1];
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:443: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(rgrp->rg_reserved, str->rg_reserved, 64);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:33:7:  [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 char *allocdesc[2][5] = {
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:511:2:  [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(edit_fmt,"%02x");
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:588:5:  [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(estring,"%02x",*pointer);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:997: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(&masterdir, &indirect[0], sizeof(struct indirect_info));
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1049: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(&indirect->ii[0].dirent[0].filename, "root", 4);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1057: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(&indirect->ii[0].dirent[1].filename, "master", 7);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1074: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(&indirect->ii[i].mp,
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1130: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(&blockstack[bhst].mp,
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1376:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		rgnum = atoi(kword + 3);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1399: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[256];
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1403: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(string,"%lld", (long long)block);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1778: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 str[GFS2_LOCKNAME_LEN] = "";
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2065: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(head->lh_reserved, str->lh_reserved, 64);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2342: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).
		color_scheme = atoi(argv[i]);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2428: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).
					blk = atoi(argv[i + 1]);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2472: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).
					newval = (uint64_t)atoi(argv[i + 1]);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2494:10:  [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).
				rg = atoi(argv[i]);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2502: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).
					new_flags = atoi(argv[i]);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2517:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			rg = atoi(argv[i]);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2539:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			rg = atoi(argv[i]);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2610: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(device, O_RDWR);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.h:35:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char edit_fmt[80];
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.h:36:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char estring[1024]; /* edit string */
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.h:37:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char efield[64];
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.h:49:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char edit_fmt[80];
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.h:63: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.
extern const char *block_type_str[15];
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.h:68: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.
extern const char *allocdesc[2][5];
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.h:73: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 filename[NAME_MAX];
data/gfs2-utils-3.3.0/gfs2/edit/journal.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 jbuf[sbd.bsize];
data/gfs2-utils-3.3.0/gfs2/edit/journal.c:45:16:  [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).
	journal_num = atoi(journal + 7);
data/gfs2-utils-3.3.0/gfs2/edit/journal.c:165: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(rbuf, lbh->b_data + o, amount);
data/gfs2-utils-3.3.0/gfs2/edit/journal.c:211: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 str[256];
data/gfs2-utils-3.3.0/gfs2/edit/journal.c:237:6:  [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(str, "0x%llx",
data/gfs2-utils-3.3.0/gfs2/edit/journal.c:380: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.
	const char *logtypestr[2][6] = {
data/gfs2-utils-3.3.0/gfs2/edit/journal.c:502:16:  [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).
	journal_num = atoi(journal + 7);
data/gfs2-utils-3.3.0/gfs2/edit/journal.c:609: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 flags_str[256];
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:444: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 gzmode[3] = "w9";
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:453:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
		mfd.fd = mkstemp(out_fn);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:455:12:  [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).
		mfd.fd = open(out_fn, O_RDWR | O_CREAT, 0644);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:554: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(savedata + 1, buf, blklen);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:948:4:  [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 jbuf[sizeof(struct gfs_jindex)];
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:1309: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(buf, bp, savedata.siglen);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:1356:12:  [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).
	mfd->fd = open(path, O_RDONLY|O_CLOEXEC);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:1426:19:  [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).
		sbd.device_fd = open(out_device, O_RDWR);
data/gfs2-utils-3.3.0/gfs2/fsck/afterpass1_common.c:254: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 ea_name[256];
data/gfs2-utils-3.3.0/gfs2/fsck/fs_recovery.c:110: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(rgd->bits[i].bi_data, bh->b_data, sdp->bsize);
data/gfs2-utils-3.3.0/gfs2/fsck/fs_recovery.c:161: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_ip->b_data, bh_log->b_data, sdp->bsize);
data/gfs2-utils-3.3.0/gfs2/fsck/fs_recovery.c:281: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_ip->b_data, bh_log->b_data, sdp->bsize);
data/gfs2-utils-3.3.0/gfs2/fsck/fs_recovery.c:760: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 journal_name[JOURNAL_NAME_SIZE];
data/gfs2-utils-3.3.0/gfs2/fsck/fs_recovery.c:762: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[sizeof(struct gfs_jindex)];
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:51: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(sdp->sd_sb.sb_lockproto, "fsck_", 5);
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:60: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(sdp->sd_sb.sb_lockproto, "lock_", 5);
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:138: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[sdp->sd_sb.sb_bsize];
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:271:6:  [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 msg[256];
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:274:6:  [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(msg,
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:1055: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(root_bh->b_data, bh->b_data, sdp->bsize);
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:1296: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(sb.sb_locktable, "unknown");
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:1452: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[sizeof(struct gfs_jindex)];
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:1505: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[sizeof(struct gfs_jindex)];
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:1574:19:  [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).
	sdp->device_fd = open(opts.device, open_flag);
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:1711:20:  [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).
		sdp->device_fd = open("/proc/sys/vm/drop_caches", O_WRONLY);
data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c:178: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 tmp_name[256];
data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c:198: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(tmp_name, "lost_dir_%llu",
data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c:203: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(tmp_name, "lost_file_%llu",
data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c:208: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(tmp_name, "lost_link_%llu",
data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c:213: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(tmp_name, "lost_blkdev_%llu",
data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c:218: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(tmp_name, "lost_chrdev_%llu",
data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c:223: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(tmp_name, "lost_fifo_%llu",
data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c:228: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(tmp_name, "lost_socket_%llu",
data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c:233: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(tmp_name, "lost_%llu",
data/gfs2-utils-3.3.0/gfs2/fsck/main.c:143: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 progress[PATH_MAX];
data/gfs2-utils-3.3.0/gfs2/fsck/main.c:146: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(progress, _("progress unknown.\n"));
data/gfs2-utils-3.3.0/gfs2/fsck/main.c:148: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(progress, _("processing block %llu out of %llu\n"),
data/gfs2-utils-3.3.0/gfs2/fsck/main.c:172: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[sizeof(struct gfs2_statfs_change)];
data/gfs2-utils-3.3.0/gfs2/fsck/metawalk.c:39: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.
	const char *allocdesc[2][5] = { /* gfs2 descriptions */
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:268: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 tmp_name[PATH_MAX];
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:1008: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 ea_name[256];
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:1177:7:  [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 char *btypes[5] = {
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:1782: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[256];
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:1786: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(name, "journal%u", sdp->md.journals);
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:1879: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 jname[16];
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:1881: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(jname, "journal%d", sdp->md.journals);
data/gfs2-utils-3.3.0/gfs2/fsck/pass1b.c:50: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 reftypestring[32];
data/gfs2-utils-3.3.0/gfs2/fsck/pass1b.c:57: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(reftypestring, "%d/%d/%d/%d",
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:130: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.
	const char *de_types[15] = {"unknown", "fifo", "chrdev", "invalid",
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:679: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 fn[MAX_FILENAME];
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:786: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 tmp_name[MAX_FILENAME];
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:1177: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 tmp_name[PATH_MAX];
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:1188: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(tmp_name, filename, de.de_name_len);
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:1258: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 tmp_name[MAX_FILENAME];
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:2074: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 fn[64];
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:2078:4:  [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(fn, "inum_range%d", j);
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:2081:4:  [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(fn, "statfs_change%d", j);
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:2084:4:  [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(fn, "quota_change%d", j);
data/gfs2-utils-3.3.0/gfs2/fsck/util.c:20:7:  [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 char *reftypes[ref_types + 1] = {"data", "metadata",
data/gfs2-utils-3.3.0/gfs2/fsck/util.c:668: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 duration[17] = ""; /* strlen("XXdXXhXXmXX.XXXs") + 1 */
data/gfs2-utils-3.3.0/gfs2/fsck/util.h:24: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.
extern const char *reftypes[ref_types + 1];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:152:1:  [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 *glock[MAX_GLOCKS];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:162:1:  [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 dlmwlines[100][96]; /* waiters lines */
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:163:1:  [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 dlmglines[MAX_LINES][97]; /* granted lines */
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:164:1:  [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 contended_filenames[MAX_FILES][PATH_MAX];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:169:1:  [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 dlm_dirtbl_size[32], dlm_rsbtbl_size[32], dlm_lkbtbl_size[32];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:181:1:  [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 hostname[256];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:203: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 term_buffer[2048];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:299:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		newmnt->fd = open(newmnt->device, O_RDONLY);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:484: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 id[32];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.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 tmp_string[128];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:580: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 blk[32];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:595: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(blk, "%lld", block);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:694: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).
		dlmf = fopen(DLM_DIRTBL, "rt");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:706: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).
		dlmf = fopen(DLM_RSBTBL, "rt");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:718: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).
		dlmf = fopen(DLM_LKBTBL, "rt");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:731: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(dlm_dirtbl_size, "nolock");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:732: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(dlm_lkbtbl_size, "nolock");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:733: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(dlm_lkbtbl_size, "nolock");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:757: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 locknum[32];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:792: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 flagout[PATH_MAX];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:808: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(flagout, "Demoting");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:811: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(flagout, "Demote pending");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:814: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(flagout, "Demote in progress");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:817: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(flagout, "Dirty");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:820: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(flagout, "Flush");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:823: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(flagout, "Invalidating");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:826: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(flagout, "Reply pending");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:832: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(flagout, "Frozen");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:835: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(flagout, "Queued");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:838: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(flagout, "LRU");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:844: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(flagout, "Blocking");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:847: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(flagout, "Unknown");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:851: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(flagout, ", ");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:860: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 gline[PATH_MAX];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:876: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.
	const char *dlm_types[8] = {"NL", "CR", "CW", "PR", "PW", "EX",
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:886: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.
	const char *dlm_statuses[4] = {"Unknown", "Waiting", "Granted",
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:895: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 nodeid[16];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:899: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(nodeid, "node %d", lkbnodeid);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:905: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 fn[1024];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:906: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 str[80];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:910: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(fn, "/proc/%d/status", ownpid);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:911: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(fn, "r");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:933: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 dlm_resid[75];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:937: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 trgt_res_name[64], res_name[64], *p1, *p2;
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:948: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(trgt_res_name, p1, p2 - p1);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1005: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 *p, *pid, tmp[32], stackfn[64], str[96];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1017: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(tmp, pid, p - pid);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1019: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(stackfn, "rt");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1093: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 tmp[80];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1115: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 pidstr[80];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1166:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void print_friendly_prefix(char one_glocks_lines[MAX_LINES][97])
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1176:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void show_glock(char one_glocks_lines[MAX_LINES][97], int gline,
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1182: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 id[33], *p;
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1183: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 extras[80], prefix = '\0';
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1420: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 one_glocks_lines[MAX_LINES][97];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1608: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 fstitle[96], fsdlm[105];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1609: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 ctimestr[64];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1669: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[96];
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1689: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).
			refresh_time = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1700:17:  [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).
			iterations = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1706:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			summary = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1822: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).
			dlmf = fopen(dlm_fn, "rt");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1834:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				dlmfd = open(dlm_fn, O_RDONLY);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1847: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(fn, O_RDONLY);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1891:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					refresh_time = atoi(string);
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:234: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_bh->b_data + to_head, from_bh->b_data + from_head,
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:572:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*p, bh->b_data + offset, size);
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:661: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 + offset, *p, size);
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:974: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((char *)(new + 1), (char *)(dent + 1), name_len);
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:1225: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 *)(dent + 1), filename, len);
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:1320: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 *)(dent + 1), filename, len);
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:1389: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 +
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:1394: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 +
data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs1.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(bh->b_data + offset, buf + copied, amount);
data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs1.c:289: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(&ip->i_di.di_header, &gfs1_dinode.di_header,
data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs1.c:291: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(&ip->i_di.di_num, &gfs1_dinode.di_num,
data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs1.c:350: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(jindex->ji_reserved, str->ji_reserved, 64);
data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs1.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(rgrp->rg_reserved, str->rg_reserved, 64);
data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs1.c:382: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(str->rg_reserved, rgrp->rg_reserved, 64);
data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs2l.c:64:17:  [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).
				opts->src = fopen(optarg, "r");
data/gfs2-utils-3.3.0/gfs2/libgfs2/gfs2l.c:107: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(path, O_RDWR);
data/gfs2-utils-3.3.0/gfs2/libgfs2/lang.c:319: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 readable_uuid[36+1];
data/gfs2-utils-3.3.0/gfs2/libgfs2/lang.c:322: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(uuid, fieldp, sizeof(uuid_t));
data/gfs2-utils-3.3.0/gfs2/libgfs2/libgfs2.h:502: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 in_reserved[64];
data/gfs2-utils-3.3.0/gfs2/libgfs2/libgfs2.h:548: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 di_reserved[56];
data/gfs2-utils-3.3.0/gfs2/libgfs2/libgfs2.h:577: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 sb_reserved[96];
data/gfs2-utils-3.3.0/gfs2/libgfs2/libgfs2.h:595: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 rg_reserved[64];
data/gfs2-utils-3.3.0/gfs2/libgfs2/meta.c:967: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 readable_uuid[36+1];
data/gfs2-utils-3.3.0/gfs2/libgfs2/meta.c:970: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(uuid, fieldp, sizeof(uuid_t));
data/gfs2-utils-3.3.0/gfs2/libgfs2/meta.c:1018: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(s, v, len);
data/gfs2-utils-3.3.0/gfs2/libgfs2/meta.c:1039: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(fieldp, val, 16);
data/gfs2-utils-3.3.0/gfs2/libgfs2/misc.c:114:11:  [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).
	*dirfd = open(path, dirflags);
data/gfs2-utils-3.3.0/gfs2/libgfs2/misc.c:122:12:  [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).
		*devfd = open((*mnt)->mnt_fsname, devflags);
data/gfs2-utils-3.3.0/gfs2/libgfs2/misc.c:132:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			*dirfd = open((*mnt)->mnt_dir, dirflags);
data/gfs2-utils-3.3.0/gfs2/libgfs2/misc.c:136: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((*mnt)->mnt_dir, dirflags);
data/gfs2-utils-3.3.0/gfs2/libgfs2/ondisk.c:23:41:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define CPIN_08(s1, s2, member, count) {memcpy((s1->member), (s2->member), (count));}
data/gfs2-utils-3.3.0/gfs2/libgfs2/ondisk.c:24:42:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define CPOUT_08(s1, s2, member, count) {memcpy((s2->member), (s1->member), (count));}
data/gfs2-utils-3.3.0/gfs2/libgfs2/ondisk.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(str->sb_uuid, sb->sb_uuid, 16);
data/gfs2-utils-3.3.0/gfs2/libgfs2/ondisk.c:166: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 readable_uuid[36+1];
data/gfs2-utils-3.3.0/gfs2/libgfs2/ondisk.c:522: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[GFS2_EA_MAX_NAME_LEN + 1];
data/gfs2-utils-3.3.0/gfs2/libgfs2/ondisk.c:532: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(buf, name, ea->ea_name_len);
data/gfs2-utils-3.3.0/gfs2/libgfs2/rgrp.c:447: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[sizeof(struct gfs2_rindex)];
data/gfs2-utils-3.3.0/gfs2/libgfs2/rgrp.c:483: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[sizeof(struct gfs2_rindex)];
data/gfs2-utils-3.3.0/gfs2/libgfs2/rgrp.c:645: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(&rg->ri, entry, sizeof(struct gfs2_rindex));
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:279: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[256];
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:282: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(name, "journal%u", j);
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:302: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 fname[GFS2_FNAMESIZE + 1];
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:366: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[256];
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:369: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(name, "inum_range%u", j);
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:389: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[256];
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:392: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(name, "statfs_change%u", j);
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:414: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[256];
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:426: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(name, "quota_change%u", j);
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:534: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[sizeof(struct gfs2_rindex)];
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:575: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[sizeof(struct gfs2_quota)];
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:656: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[sizeof(struct gfs2_statfs_change)];
data/gfs2-utils-3.3.0/gfs2/libgfs2/super.c:235: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(&rgd->ri, &ri, sizeof(struct gfs2_rindex));
data/gfs2-utils-3.3.0/gfs2/mkfs/main_grow.c:99:27:  [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).
			override_device_size = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_grow.c:342: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(path, (mode | O_CLOEXEC));
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:161: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).
			sdp->qcsize = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:172:17:  [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).
			sdp->jsize = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:175:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			opts->journals = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:246: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(name, O_WRONLY | O_CREAT | O_EXCL | O_NOFOLLOW | O_CLOEXEC, 0600);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:277: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 new_name[256];
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:300: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(new_name, "inum_range%u", opts->journals);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:313: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 new_name[256];
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:335: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(new_name, "statfs_change%u", opts->journals);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:348: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 new_name[256], buf[sdp->bsize];
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:392: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(new_name, "quota_change%u", opts->journals);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:480: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 new_name[256], buf[sdp->bsize];
data/gfs2-utils-3.3.0/gfs2/mkfs/main_jadd.c:551: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(new_name, "journal%u", opts->journals);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:331: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).
			opts->bsize = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:335: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).
			opts->qcsize = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:346: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).
			opts->jsize = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:350:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			opts->journals = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:371: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).
			opts->rgsize = atoi(optarg);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:394:20:  [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).
				opts->fssize = atol(optarg);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:584: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 readable_uuid[36+1];
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:1007:12:  [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).
	dev->fd = open(dev->path, O_RDWR|O_CLOEXEC|O_EXCL);
data/gfs2-utils-3.3.0/gfs2/mkfs/metafs.c:28:12:  [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).
	mfs->fd = open(mfs->path, O_RDONLY | O_NOFOLLOW);
data/gfs2-utils-3.3.0/gfs2/mkfs/progress.c:15: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 spaces[44], backspaces[44];
data/gfs2-utils-3.3.0/gfs2/tune/main.c:112:12:  [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).
	tfs->fd = open(tfs->devicename, O_RDWR); 
data/gfs2-utils-3.3.0/gfs2/tune/super.c:60: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 readable_uuid[36+1];
data/gfs2-utils-3.3.0/gfs2/tune/super.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(tfs->sb->sb_lockproto, lockproto, l);
data/gfs2-utils-3.3.0/tests/nukerg.c:322: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).
	if ((sbd.device_fd = open(opts.device, O_RDWR)) < 0) {
data/gfs2-utils-3.3.0/gfs2/edit/extended.c:190: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).
				edit_size[dmode] = strlen(estring);
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:171: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).
			decimalsize = strlen(tmp_string);
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:203:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(efield, label + 2, 63); /* it's indented */
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:206:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(edit_fmt, fmt, 79);
data/gfs2-utils-3.3.0/gfs2/edit/gfs2hex.c:208: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).
				edit_size[dmode] = strlen(estring);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:99: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).
			char *p=string+strlen(string); // end of the string
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:686:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(masterdir.dirent[d].filename, fn, strlen(fn)))
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1380: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).
	} else if (strlen(kword) > 7 && !strncmp(kword, "journal", 7) && isdigit(kword[7])) {
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:1467: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).
			int i, sl = strlen(estring);
data/gfs2-utils-3.3.0/gfs2/edit/hexedit.c:2037:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(50000);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:60:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int (*read)(struct metafd *mfd, void *buf, unsigned len);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:77:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = mfd->read(mfd, restore_buf + restore_left, RESTORE_BUF_SIZE - restore_left);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:125:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	restore_left = mfd->read(mfd, restore_buf, RESTORE_BUF_SIZE);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:178:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	restore_left = mfd->read(mfd, restore_buf, RESTORE_BUF_SIZE);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:446:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t mask = umask(S_IXUSR | S_IRWXG | S_IRWXO);
data/gfs2-utils-3.3.0/gfs2/edit/savemeta.c:457:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/gfs2-utils-3.3.0/gfs2/fsck/afterpass1_common.c:264:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ea_name, (char *)ea_hdr + sizeof(struct gfs2_ea_header),
data/gfs2-utils-3.3.0/gfs2/fsck/fs_recovery.c:808: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(journal_name), &jip);
data/gfs2-utils-3.3.0/gfs2/fsck/initialize.c:176:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	error = read(sdp->device_fd, buf, sdp->sd_sb.sb_bsize);
data/gfs2-utils-3.3.0/gfs2/fsck/lost_n_found.c:239: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).
	err = dir_add(lf_dip, tmp_name, strlen(tmp_name), &(ip->i_di.di_num),
data/gfs2-utils-3.3.0/gfs2/fsck/main.c:291: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).
		len += strlen(argv[i]);
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:278:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp_name, filename, de->de_name_len);
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:280:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp_name, filename, sizeof(tmp_name) - 1);
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:1038:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ea_name, (char *)ea_hdr + sizeof(struct gfs2_ea_header),
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:1713: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(filename));
data/gfs2-utils-3.3.0/gfs2/fsck/pass1.c:1787: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).
	gfs2_dirent_del(sdp->md.jiinode, name, strlen(name));
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:702:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(fn, filename, de->de_name_len);
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:704:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(fn, filename, MAX_FILENAME - 1);
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:806:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp_name, filename, de->de_name_len);
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:808:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp_name, filename, MAX_FILENAME - 1);
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:1275:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp_name, filename, de->de_name_len);
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:1277:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(tmp_name, filename, MAX_FILENAME - 1);
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:1936: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).
	error = gfs2_lookupi(pernode, fn, strlen(fn), &ip);
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:1966: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).
		gfs2_dirent_del(pernode, fn, strlen(fn));
data/gfs2-utils-3.3.0/gfs2/fsck/pass2.c:1978: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).
	error = gfs2_lookupi(pernode, fn, strlen(fn), &ip);
data/gfs2-utils-3.3.0/gfs2/fsck/util.c:110:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		size = read(STDIN_FILENO, &ch, 1);
data/gfs2-utils-3.3.0/gfs2/fsck/util.c:113:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
		usleep(50000);
data/gfs2-utils-3.3.0/gfs2/fsck/util.c:141:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(read(STDIN_FILENO, &response, sizeof(char)) < 0) {
data/gfs2-utils-3.3.0/gfs2/fsck/util.c:160: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).
		for (i = 0; i < strlen(answers) - 1; i++)
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:278:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t devlen = strlen(mnt->mnt_fsname);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:279:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t dirlen = strlen(mnt->mnt_dir);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:373: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).
			char *p=string+strlen(string); // end of the string
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:461:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		*maxpos = read(fd, bigbuf, bufsize - 1);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:490:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(id, glockid, sizeof(id));
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:603:6:  [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(contended_filenames[i], "/");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:704: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(dlm_dirtbl_size, " ");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:716: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(dlm_rsbtbl_size, " ");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:728: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(dlm_lkbtbl_size, " ");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:801:2:  [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(flagout, "[");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:850: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(flagout)) > 1 && (!strchr(" lIo", *(p + 1))))
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:854: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(flagout, "]");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:965:3:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		sscanf(dlmglines[i], "%x %d %x %u %llu %x %x %d %d %d %llu "
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1103:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(tmp, p, 79);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1120:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(pidstr, p + 2, sizeof(pidstr));
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1206:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(id, p, sizeof(id) - 1);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1213:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(extras, ltype[locktype], 79);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1305:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(dlmglines[dlml], dlmline, 96);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1526:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(one_glocks_lines[gline], ln, 96);
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1624: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(fsdlm, "*");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1626: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(fsdlm, " ");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1627:3:  [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(fsdlm, "]");
data/gfs2-utils-3.3.0/gfs2/glocktop/glocktop.c:1874:10:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ch = getchar();
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:1498: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).
	gfs2_lookupi(dip, filename, strlen(filename), &ip);
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:1510: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).
		err = dir_add(dip, filename, strlen(filename), &inum, IF2DT(mode));
data/gfs2-utils-3.3.0/gfs2/libgfs2/fs_ops.c:1561: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(file1) != len_of_file2)
data/gfs2-utils-3.3.0/gfs2/libgfs2/lang.c:172: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).
		err = gfs2_lookupi(ip, segment, strlen(segment), &iptmp);
data/gfs2-utils-3.3.0/gfs2/libgfs2/meta.c:1014:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					size_t len = strlen(v);
data/gfs2-utils-3.3.0/gfs2/libgfs2/meta.c:1049:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(fieldp, val, field->length - 1);
data/gfs2-utils-3.3.0/gfs2/libgfs2/rgrp.c:456:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t ret = read(fd, buf, sizeof(struct gfs2_rindex));
data/gfs2-utils-3.3.0/gfs2/libgfs2/structures.c:319: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).
		ret = dir_add(jindex, fname, strlen(fname), &jnls[j], IF2DT(S_IFREG | 0600));
data/gfs2-utils-3.3.0/gfs2/libgfs2/super.c:216:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			error = read(fd, &buf, sizeof(struct gfs2_rindex));
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:454: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(c))
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:456: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(c) > 30)
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:1159:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sb.sb_lockproto, opts.lockproto, GFS2_LOCKNAME_LEN - 1);
data/gfs2-utils-3.3.0/gfs2/mkfs/main_mkfs.c:1160:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sb.sb_locktable, opts.locktable, GFS2_LOCKNAME_LEN - 1);
data/gfs2-utils-3.3.0/gfs2/tune/main.c:40: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).
		l = strlen(m->tag);
data/gfs2-utils-3.3.0/gfs2/tune/super.c:107: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).
	int l = strlen(lockproto);
data/gfs2-utils-3.3.0/gfs2/tune/super.c:128: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(locktable) >= GFS2_LOCKNAME_LEN) {
data/gfs2-utils-3.3.0/gfs2/tune/super.c:139: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(++fsname) > 30) {

ANALYSIS SUMMARY:

Hits = 438
Lines analyzed = 38629 in approximately 1.07 seconds (36133 lines/second)
Physical Source Lines of Code (SLOC) = 30849
Hits@level = [0] 561 [1]  79 [2] 283 [3]  18 [4]  58 [5]   0
Hits@level+ = [0+] 999 [1+] 438 [2+] 359 [3+]  76 [4+]  58 [5+]   0
Hits/KSLOC@level+ = [0+] 32.3835 [1+] 14.1982 [2+] 11.6373 [3+] 2.46361 [4+] 1.88013 [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.