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/sbsigntool-0.9.2/lib/ccan/ccan/array_size/array_size.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/build_assert/build_assert.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/check_type/check_type.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/compiler/compiler.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/container_of/container_of.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/endian/endian.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_override.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_proto.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_undo.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/hash/hash.c
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/hash/hash.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/htable/htable.c
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/htable/htable.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/htable/htable_type.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/list/list.c
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/list/list.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/read_write_all/read_write_all.c
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/read_write_all/read_write_all.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/str/debug.c
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/str/str.c
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/str/str.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/str/str_debug.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/tcon/tcon.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/time/time.c
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/time/time.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/tlist/tlist.h
Examining data/sbsigntool-0.9.2/lib/ccan/ccan/typesafe_cb/typesafe_cb.h
Examining data/sbsigntool-0.9.2/src/coff/external.h
Examining data/sbsigntool-0.9.2/src/coff/pe.h
Examining data/sbsigntool-0.9.2/src/efivars.h
Examining data/sbsigntool-0.9.2/src/fileio.h
Examining data/sbsigntool-0.9.2/src/idc.c
Examining data/sbsigntool-0.9.2/src/idc.h
Examining data/sbsigntool-0.9.2/src/image.h
Examining data/sbsigntool-0.9.2/src/libcoff.h
Examining data/sbsigntool-0.9.2/src/sbattach.c
Examining data/sbsigntool-0.9.2/src/sbkeysync.c
Examining data/sbsigntool-0.9.2/src/sbsiglist.c
Examining data/sbsigntool-0.9.2/src/sbvarsign.c
Examining data/sbsigntool-0.9.2/src/sbverify.c
Examining data/sbsigntool-0.9.2/src/verify.c
Examining data/sbsigntool-0.9.2/src/sbsign.c
Examining data/sbsigntool-0.9.2/src/fileio.c
Examining data/sbsigntool-0.9.2/src/image.c
Examining data/sbsigntool-0.9.2/tests/test.c

FINAL RESULTS:

data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:262: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(warnf, fmt, ap);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:301: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/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:327: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(tracef, fmt, ap);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:692:8:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			if (system(str) == 0)
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1047:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		return access(pathname, R_OK) != 0;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1050:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			return access(pathname, W_OK) != 0;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1052:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			return access(pathname, W_OK) != 0
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1053:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
				|| access(pathname, R_OK) != 0;
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1369:8:  [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.
	len = vsnprintf(&c, 1, fmt, ap2);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1380: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(ret, len+1, fmt, ap2);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1426:8:  [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.
	len = vsnprintf(&c, 1, fmt, ap2);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1443:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(s+s_len, len+1, fmt, ap2);
data/sbsigntool-0.9.2/src/sbkeysync.c:390:35:  [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 void __attribute__((format(printf, 2, 3))) print_keystore_key_error(
data/sbsigntool-0.9.2/src/sbattach.c:185:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "a:d:s:rhV", options, &idx);
data/sbsigntool-0.9.2/src/sbkeysync.c:893:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "e:dpkvhV", options, &idx);
data/sbsigntool-0.9.2/src/sbsiglist.c:203:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "o:t:w:ivVh", options, &idx);
data/sbsigntool-0.9.2/src/sbsign.c:131:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "o:c:k:dvVhe:", options, &idx);
data/sbsigntool-0.9.2/src/sbvarsign.c:459:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "o:g:a:k:c:ivVhe:", options, &idx);
data/sbsigntool-0.9.2/src/sbverify.c:264:7:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
		c = getopt_long(argc, argv, "c:d:lvVh", options, &idx);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:122: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 contents[1];
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:182: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(&call->u, elem, elem_size);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:449: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).
	if (opener->u.open.closed) {
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:451: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(opener->u.open.pathname, O_RDWR);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:451: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).
		fd = open(opener->u.open.pathname, O_RDWR);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:454: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).
			      opener->u.open.pathname, caller);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:460: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).
		      opener->u.open.pathname, opener->u.open.ret, fd);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:460:44:  [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).
		      opener->u.open.pathname, opener->u.open.ret, fd);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:461: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).
		opener->u.open.ret = fd;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:462: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).
		opener->u.open.closed = false;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:464:17:  [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 = opener->u.open.ret;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:467:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	      s, opener->u.open.pathname, s->count, (long long)s->off, caller,
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:471: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).
		      opener->u.open.pathname, caller);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:476: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).
		      opener->u.open.pathname, caller);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:500: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).
		if (m->opener->u.open.closed)
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:504:37:  [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).
		s->s = save_contents(m->opener->u.open.pathname,
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:549: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).
			if (i->u.open.ret == fd) {
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:550:14:  [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 (i->u.open.closed)
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:573: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).
		free((char *)call->u.open.pathname);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:686: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 str[80];
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:690: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(str, "xterm -e gdb /proc/%d/exe %d &",
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1032: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(pathname, O_RDONLY);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1063:14:  [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).
					      u.open),
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1101: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).
		p->u.open.ret = -1;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1107: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).
			p->u.open.saved = save_file(pathname);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1109: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).
			p->u.open.saved = NULL;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1110: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).
		p->u.open.ret = open(pathname, call.flags, call.mode);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1110: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).
		p->u.open.ret = open(pathname, call.flags, call.mode);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1111: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).
		if (p->u.open.ret == -1) {
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1112: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).
			p->u.open.closed = true;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1119:35:  [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).
	      pathname, file, line, p->u.open.ret, &p->u.open);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1119:51:  [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).
	      pathname, file, line, p->u.open.ret, &p->u.open);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1121:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return p->u.open.ret;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1168:39:  [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).
			const char *fname = call.opener->u.open.pathname;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1207: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).
		p->u.open.ret = -1;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1221: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(pipefd, p->u.pipe.fds, sizeof(p->u.pipe.fds));
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1272:54:  [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).
	trace("cleaning up write on %s\n", write->opener->u.open.pathname);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1338:10:  [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.
			free((char *)child_writes[0].buf);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1352:52:  [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).
			p->u.write.saved = save_contents(call.opener->u.open.pathname,
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1517:14:  [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).
			opener->u.open.closed = true;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.h:179: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).
		struct open_call open;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_override.h:36: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).
#undef open
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_override.h:37: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).
#define open(pathname, ...) \
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_undo.h:18: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).
#undef open
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_undo.h:19: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).
#define open(pathname, ...) \
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:841: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(ptr, &p, sizeof(p));
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:932:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(new_ptr, tc, tc->size + TC_HDR_SIZE);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1169:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			if ((((char *)ptr)[i] > 31) && (((char *)ptr)[i] < 126)) {
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1169:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			if ((((char *)ptr)[i] > 31) && (((char *)ptr)[i] < 126)) {
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1170: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.
				fprintf(f, "%c", ((char *)ptr)[i]);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1172:27:  [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.
				fprintf(f, "~%02x", ((char *)ptr)[i]);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1292: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(newp, p, size);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1333: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(&ret[olen], append, alenz);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1354: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(ret, p, len);
data/sbsigntool-0.9.2/src/coff/external.h:28: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 f_magic[2];	/* magic number			*/
data/sbsigntool-0.9.2/src/coff/external.h:29: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 f_nscns[2];	/* number of sections		*/
data/sbsigntool-0.9.2/src/coff/external.h:30: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 f_timdat[4];	/* time & date stamp		*/
data/sbsigntool-0.9.2/src/coff/external.h:31: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 f_symptr[4];	/* file pointer to symtab	*/
data/sbsigntool-0.9.2/src/coff/external.h:32: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 f_nsyms[4];	/* number of symtab entries	*/
data/sbsigntool-0.9.2/src/coff/external.h:33: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 f_opthdr[2];	/* sizeof(optional hdr)		*/
data/sbsigntool-0.9.2/src/coff/external.h:34: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 f_flags[2];	/* flags			*/
data/sbsigntool-0.9.2/src/coff/external.h:46: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 magic[2];	/* type of file				*/
data/sbsigntool-0.9.2/src/coff/external.h:47: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 vstamp[2];	/* version stamp			*/
data/sbsigntool-0.9.2/src/coff/external.h:48: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 tsize[4];	/* text size in bytes, padded to FW bdry*/
data/sbsigntool-0.9.2/src/coff/external.h:49: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 dsize[4];	/* initialized data "  "		*/
data/sbsigntool-0.9.2/src/coff/external.h:50: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 bsize[4];	/* uninitialized data "   "		*/
data/sbsigntool-0.9.2/src/coff/external.h:51: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 entry[4];	/* entry pt.				*/
data/sbsigntool-0.9.2/src/coff/external.h:52: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 text_start[4];	/* base of text used for this file 	*/
data/sbsigntool-0.9.2/src/coff/external.h:53: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 data_start[4];	/* base of data used for this file 	*/
data/sbsigntool-0.9.2/src/coff/external.h:62: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 magic[2];	/* Type of file.			*/
data/sbsigntool-0.9.2/src/coff/external.h:63: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 vstamp[2];	/* Version stamp.			*/
data/sbsigntool-0.9.2/src/coff/external.h:64: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 tsize[4];	/* Text size in bytes, padded to FW bdry*/
data/sbsigntool-0.9.2/src/coff/external.h:65: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 dsize[4];	/* Initialized data "  ".		*/
data/sbsigntool-0.9.2/src/coff/external.h:66: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 bsize[4];	/* Uninitialized data "   ".		*/
data/sbsigntool-0.9.2/src/coff/external.h:67: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 entry[4];	/* Entry pt.				*/
data/sbsigntool-0.9.2/src/coff/external.h:68: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 text_start[4];	/* Base of text used for this file. 	*/
data/sbsigntool-0.9.2/src/coff/external.h:80: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 s_name[8];	/* section name				*/
data/sbsigntool-0.9.2/src/coff/external.h:81: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 s_paddr[4];	/* physical address, aliased s_nlib 	*/
data/sbsigntool-0.9.2/src/coff/external.h:82: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 s_vaddr[4];	/* virtual address			*/
data/sbsigntool-0.9.2/src/coff/external.h:83: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 s_size[4];	/* section size				*/
data/sbsigntool-0.9.2/src/coff/external.h:84: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 s_scnptr[4];	/* file ptr to raw data for section 	*/
data/sbsigntool-0.9.2/src/coff/external.h:85: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 s_relptr[4];	/* file ptr to relocation		*/
data/sbsigntool-0.9.2/src/coff/external.h:86: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 s_lnnoptr[4];	/* file ptr to line numbers		*/
data/sbsigntool-0.9.2/src/coff/external.h:87: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 s_nreloc[2];	/* number of relocation entries		*/
data/sbsigntool-0.9.2/src/coff/external.h:88: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 s_nlnno[2];	/* number of line number entries	*/
data/sbsigntool-0.9.2/src/coff/external.h:89: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 s_flags[4];	/* flags				*/
data/sbsigntool-0.9.2/src/coff/external.h:120: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 l_symndx[4];	/* function name symbol index, iff l_lnno == 0*/
data/sbsigntool-0.9.2/src/coff/external.h:121: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 l_paddr[4];	/* (physical) address of line number	*/
data/sbsigntool-0.9.2/src/coff/external.h:124:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char l_lnno[L_LNNO_SIZE];	/* line number		*/
data/sbsigntool-0.9.2/src/coff/external.h:154: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 e_name[E_SYMNMLEN];
data/sbsigntool-0.9.2/src/coff/external.h:158: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.
      char e_zeroes[4];
data/sbsigntool-0.9.2/src/coff/external.h:159: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.
      char e_offset[4];
data/sbsigntool-0.9.2/src/coff/external.h:163: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 e_value[4];
data/sbsigntool-0.9.2/src/coff/external.h:164: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 e_scnum[2];
data/sbsigntool-0.9.2/src/coff/external.h:165: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 e_type[2];
data/sbsigntool-0.9.2/src/coff/external.h:166: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 e_sclass[1];
data/sbsigntool-0.9.2/src/coff/external.h:167: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 e_numaux[1];
data/sbsigntool-0.9.2/src/coff/external.h:197: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 x_tagndx[4];		/* str, un, or enum tag indx */
data/sbsigntool-0.9.2/src/coff/external.h:203: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  x_lnno[2]; /* declaration line number */
data/sbsigntool-0.9.2/src/coff/external.h:204: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  x_size[2]; /* str/union/array size */
data/sbsigntool-0.9.2/src/coff/external.h:207: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.
      char x_fsize[4];	/* size of function */
data/sbsigntool-0.9.2/src/coff/external.h:215: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 x_lnnoptr[4];	/* ptr to fcn line # */
data/sbsigntool-0.9.2/src/coff/external.h:216: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 x_endndx[4];	/* entry ndx past block end */
data/sbsigntool-0.9.2/src/coff/external.h:221: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 x_dimen[E_DIMNUM][2];
data/sbsigntool-0.9.2/src/coff/external.h:226: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 x_tvndx[2];	/* tv index */
data/sbsigntool-0.9.2/src/coff/external.h:232: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 x_fname[E_FILNMLEN];
data/sbsigntool-0.9.2/src/coff/external.h:236: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.
      char x_zeroes[4];
data/sbsigntool-0.9.2/src/coff/external.h:237: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.
      char x_offset[4];
data/sbsigntool-0.9.2/src/coff/external.h:244: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 x_scnlen[4];	/* section length */
data/sbsigntool-0.9.2/src/coff/external.h:245: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 x_nreloc[2];	/* # relocation entries */
data/sbsigntool-0.9.2/src/coff/external.h:246: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 x_nlinno[2];	/* # line numbers */
data/sbsigntool-0.9.2/src/coff/external.h:248: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 x_checksum[4];		   /* section COMDAT checksum	      */
data/sbsigntool-0.9.2/src/coff/external.h:249: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 x_associated[2];	   /* COMDAT associated section index */
data/sbsigntool-0.9.2/src/coff/external.h:250: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 x_comdat[1];		   /* COMDAT selection number	      */
data/sbsigntool-0.9.2/src/coff/external.h:256: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 x_tvfill[4];	/* tv fill value */
data/sbsigntool-0.9.2/src/coff/external.h:257: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 x_tvlen[2];	/* length of .tv */
data/sbsigntool-0.9.2/src/coff/external.h:258: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 x_tvran[2][2];	/* tv range */
data/sbsigntool-0.9.2/src/coff/pe.h:180: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 e_magic[2];		/* Magic number, 0x5a4d.  */
data/sbsigntool-0.9.2/src/coff/pe.h:181: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 e_cblp[2];		/* Bytes on last page of file, 0x90.  */
data/sbsigntool-0.9.2/src/coff/pe.h:182: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 e_cp[2];			/* Pages in file, 0x3.  */
data/sbsigntool-0.9.2/src/coff/pe.h:183: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 e_crlc[2];		/* Relocations, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:184: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 e_cparhdr[2];		/* Size of header in paragraphs, 0x4.  */
data/sbsigntool-0.9.2/src/coff/pe.h:185: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 e_minalloc[2];		/* Minimum extra paragraphs needed, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:186: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 e_maxalloc[2];		/* Maximum extra paragraphs needed, 0xFFFF.  */
data/sbsigntool-0.9.2/src/coff/pe.h:187: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 e_ss[2];			/* Initial (relative) SS value, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:188: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 e_sp[2];			/* Initial SP value, 0xb8.  */
data/sbsigntool-0.9.2/src/coff/pe.h:189: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 e_csum[2];		/* Checksum, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:190: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 e_ip[2];			/* Initial IP value, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:191: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 e_cs[2];			/* Initial (relative) CS value, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:192: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 e_lfarlc[2];		/* File address of relocation table, 0x40.  */
data/sbsigntool-0.9.2/src/coff/pe.h:193: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 e_ovno[2];		/* Overlay number, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:194: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 e_res[4][2];		/* Reserved words, all 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:195: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 e_oemid[2];		/* OEM identifier (for e_oeminfo), 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:196: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 e_oeminfo[2];		/* OEM information; e_oemid specific, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:197: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 e_res2[10][2];		/* Reserved words, all 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:198: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 e_lfanew[4];		/* File address of new exe header, usually 0x80.  */
data/sbsigntool-0.9.2/src/coff/pe.h:199: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 dos_message[16][4];	/* Other stuff, always follow DOS header.  */
data/sbsigntool-0.9.2/src/coff/pe.h:204:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char nt_signature[4];		/* required NT signature, 0x4550.  */
data/sbsigntool-0.9.2/src/coff/pe.h:207: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 f_magic[2];		/* Magic number.		*/
data/sbsigntool-0.9.2/src/coff/pe.h:208: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 f_nscns[2];		/* Number of sections.		*/
data/sbsigntool-0.9.2/src/coff/pe.h:209: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 f_timdat[4];		/* Time & date stamp.		*/
data/sbsigntool-0.9.2/src/coff/pe.h:210: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 f_symptr[4];		/* File pointer to symtab.	*/
data/sbsigntool-0.9.2/src/coff/pe.h:211: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 f_nsyms[4];		/* Number of symtab entries.	*/
data/sbsigntool-0.9.2/src/coff/pe.h:212: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 f_opthdr[2];		/* Sizeof(optional hdr).	*/
data/sbsigntool-0.9.2/src/coff/pe.h:213: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 f_flags[2];		/* Flags.			*/
data/sbsigntool-0.9.2/src/coff/pe.h:219: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 e_magic[2];		/* Magic number, 0x5a4d.  */
data/sbsigntool-0.9.2/src/coff/pe.h:220: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 e_cblp[2];		/* Bytes on last page of file, 0x90.  */
data/sbsigntool-0.9.2/src/coff/pe.h:221: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 e_cp[2];			/* Pages in file, 0x3.  */
data/sbsigntool-0.9.2/src/coff/pe.h:222: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 e_crlc[2];		/* Relocations, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:223: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 e_cparhdr[2];		/* Size of header in paragraphs, 0x4.  */
data/sbsigntool-0.9.2/src/coff/pe.h:224: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 e_minalloc[2];		/* Minimum extra paragraphs needed, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:225: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 e_maxalloc[2];		/* Maximum extra paragraphs needed, 0xFFFF.  */
data/sbsigntool-0.9.2/src/coff/pe.h:226: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 e_ss[2];			/* Initial (relative) SS value, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:227: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 e_sp[2];			/* Initial SP value, 0xb8.  */
data/sbsigntool-0.9.2/src/coff/pe.h:228: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 e_csum[2];		/* Checksum, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:229: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 e_ip[2];			/* Initial IP value, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:230: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 e_cs[2];			/* Initial (relative) CS value, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:231: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 e_lfarlc[2];		/* File address of relocation table, 0x40.  */
data/sbsigntool-0.9.2/src/coff/pe.h:232: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 e_ovno[2];		/* Overlay number, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:233: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 e_res[4][2];		/* Reserved words, all 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:234: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 e_oemid[2];		/* OEM identifier (for e_oeminfo), 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:235: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 e_oeminfo[2];		/* OEM information; e_oemid specific, 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:236: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 e_res2[10][2];		/* Reserved words, all 0x0.  */
data/sbsigntool-0.9.2/src/coff/pe.h:237: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 e_lfanew[4];		/* File address of new exe header, usually 0x80.  */
data/sbsigntool-0.9.2/src/coff/pe.h:238: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 dos_message[16][4];	/* Other stuff, always follow DOS header.  */
data/sbsigntool-0.9.2/src/coff/pe.h:243: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 nt_signature[4];		/* required NT signature, 0x4550.  */
data/sbsigntool-0.9.2/src/coff/pe.h:246: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 f_magic[2];		/* Magic number.		*/
data/sbsigntool-0.9.2/src/coff/pe.h:247: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 f_nscns[2];		/* Number of sections.		*/
data/sbsigntool-0.9.2/src/coff/pe.h:248: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 f_timdat[4];		/* Time & date stamp.		*/
data/sbsigntool-0.9.2/src/coff/pe.h:249: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 f_symptr[4];		/* File pointer to symtab.	*/
data/sbsigntool-0.9.2/src/coff/pe.h:250: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 f_nsyms[4];		/* Number of symtab entries.	*/
data/sbsigntool-0.9.2/src/coff/pe.h:251: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 f_opthdr[2];		/* Sizeof(optional hdr).	*/
data/sbsigntool-0.9.2/src/coff/pe.h:252: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 f_flags[2];		/* Flags.			*/
data/sbsigntool-0.9.2/src/coff/pe.h:273: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  ImageBase[4];
data/sbsigntool-0.9.2/src/coff/pe.h:274: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  SectionAlignment[4];
data/sbsigntool-0.9.2/src/coff/pe.h:275: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  FileAlignment[4];
data/sbsigntool-0.9.2/src/coff/pe.h:276: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  MajorOperatingSystemVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:277: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  MinorOperatingSystemVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:278: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  MajorImageVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:279: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  MinorImageVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:280: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  MajorSubsystemVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:281: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  MinorSubsystemVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:282: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  Reserved1[4];
data/sbsigntool-0.9.2/src/coff/pe.h:283: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  SizeOfImage[4];
data/sbsigntool-0.9.2/src/coff/pe.h:284: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  SizeOfHeaders[4];
data/sbsigntool-0.9.2/src/coff/pe.h:285: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  CheckSum[4];
data/sbsigntool-0.9.2/src/coff/pe.h:286: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  Subsystem[2];
data/sbsigntool-0.9.2/src/coff/pe.h:287: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  DllCharacteristics[2];
data/sbsigntool-0.9.2/src/coff/pe.h:288: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  SizeOfStackReserve[4];
data/sbsigntool-0.9.2/src/coff/pe.h:289: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  SizeOfStackCommit[4];
data/sbsigntool-0.9.2/src/coff/pe.h:290: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  SizeOfHeapReserve[4];
data/sbsigntool-0.9.2/src/coff/pe.h:291: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  SizeOfHeapCommit[4];
data/sbsigntool-0.9.2/src/coff/pe.h:292: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  LoaderFlags[4];
data/sbsigntool-0.9.2/src/coff/pe.h:293: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  NumberOfRvaAndSizes[4];
data/sbsigntool-0.9.2/src/coff/pe.h:295: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  DataDirectory[16][2][4]; /* 16 entries, 2 elements/entry, 4 chars.  */
data/sbsigntool-0.9.2/src/coff/pe.h:312: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  ImageBase[8];
data/sbsigntool-0.9.2/src/coff/pe.h:313: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  SectionAlignment[4];
data/sbsigntool-0.9.2/src/coff/pe.h:314: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  FileAlignment[4];
data/sbsigntool-0.9.2/src/coff/pe.h:315: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  MajorOperatingSystemVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:316: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  MinorOperatingSystemVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:317: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  MajorImageVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:318: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  MinorImageVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h: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  MajorSubsystemVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:320: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  MinorSubsystemVersion[2];
data/sbsigntool-0.9.2/src/coff/pe.h:321: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  Reserved1[4];
data/sbsigntool-0.9.2/src/coff/pe.h:322: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  SizeOfImage[4];
data/sbsigntool-0.9.2/src/coff/pe.h:323: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  SizeOfHeaders[4];
data/sbsigntool-0.9.2/src/coff/pe.h:324: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  CheckSum[4];
data/sbsigntool-0.9.2/src/coff/pe.h:325: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  Subsystem[2];
data/sbsigntool-0.9.2/src/coff/pe.h:326: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  DllCharacteristics[2];
data/sbsigntool-0.9.2/src/coff/pe.h:327: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  SizeOfStackReserve[8];
data/sbsigntool-0.9.2/src/coff/pe.h:328: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  SizeOfStackCommit[8];
data/sbsigntool-0.9.2/src/coff/pe.h:329: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  SizeOfHeapReserve[8];
data/sbsigntool-0.9.2/src/coff/pe.h:330: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  SizeOfHeapCommit[8];
data/sbsigntool-0.9.2/src/coff/pe.h:331: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  LoaderFlags[4];
data/sbsigntool-0.9.2/src/coff/pe.h:332: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  NumberOfRvaAndSizes[4];
data/sbsigntool-0.9.2/src/coff/pe.h:334: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  DataDirectory[16][2][4]; /* 16 entries, 2 elements/entry, 4 chars.  */
data/sbsigntool-0.9.2/src/fileio.c:53: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 password[128];
data/sbsigntool-0.9.2/src/fileio.c:151:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/sbsigntool-0.9.2/src/fileio.c:202:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/sbsigntool-0.9.2/src/idc.c:151: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 s[SHA256_DIGEST_LENGTH * 2 + 1];
data/sbsigntool-0.9.2/src/idc.c:273:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char sha[SHA256_DIGEST_LENGTH];
data/sbsigntool-0.9.2/src/image.c:566: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(start, sig, size);
data/sbsigntool-0.9.2/src/image.c:653:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/sbsigntool-0.9.2/src/sbattach.c:202:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			signum = atoi(optarg) - 1;
data/sbsigntool-0.9.2/src/sbkeysync.c:237: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 guid_str[GUID_STRLEN];
data/sbsigntool-0.9.2/src/sbkeysync.c:352: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 guid_str[GUID_STRLEN];
data/sbsigntool-0.9.2/src/sbkeysync.c:718: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 guid_str[GUID_STRLEN];
data/sbsigntool-0.9.2/src/sbkeysync.c:735: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, &sigdb_attrs, sizeof(sigdb_attrs));
data/sbsigntool-0.9.2/src/sbkeysync.c:736: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 + sizeof(sigdb_attrs), ke->data, ke->len);
data/sbsigntool-0.9.2/src/sbkeysync.c:743: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(efivars_filename, O_WRONLY | O_CREAT, 0600);
data/sbsigntool-0.9.2/src/sbsiglist.c:149: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(sigdata->SignatureData, ctx->data, ctx->data_len);
data/sbsigntool-0.9.2/src/sbvarsign.c:298: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(ctx->outfilename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/sbsigntool-0.9.2/src/sbverify.c:119: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 subject_name[cert_name_len + 1], issuer_name[cert_name_len + 1];
data/sbsigntool-0.9.2/src/sbverify.c:150: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 subject_name[cert_name_len + 1], issuer_name[cert_name_len + 1];
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:57:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return hash(call->file, strlen(call->file),
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:682: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).
		call->fail = cisupper(debugpath[strlen(debugpath)-1]);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:696:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			path[strlen(path)-1] = '\0';
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:842:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			len = read(output[0], out + outlen, 8192);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1252:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		p->u.read.ret = -1;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1256:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			p->u.read.ret = pread(fd, buf, count, off);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1258:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			p->u.read.ret = read(fd, buf, count);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1258:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			p->u.read.ret = read(fd, buf, count);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1259:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (p->u.read.ret != -1)
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1265:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      p->u.read.ret);
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1267:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return p->u.read.ret;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1548:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				   && i->u.read.fd == fd) {
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1705:40:  [1] (buffer) strlen:
  Does not handle 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(argv[i], "--failpath=", strlen("--failpath="))) {
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1706:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			failpath = argv[i] + strlen("--failpath=");
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1711:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				    strlen("--debugpath="))) {
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.c:1712:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			debugpath = argv[i] + strlen("--debugpath=");
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest.h:182:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		struct read_call read;
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_override.h:44:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef read
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_override.h:45:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read(fd, buf, count) \
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_undo.h:26:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef read
data/sbsigntool-0.9.2/lib/ccan/ccan/failtest/failtest_undo.h:27:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read(fd, buf, count) \
data/sbsigntool-0.9.2/lib/ccan/ccan/read_write_all/read_write_all.c:28:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		done = read(fd, data, size);
data/sbsigntool-0.9.2/lib/ccan/ccan/str/str.c:5:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t i = 0, nlen = strlen(needle);
data/sbsigntool-0.9.2/lib/ccan/ccan/str/str.h:31:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define strstarts(str,prefix) (strncmp((str),(prefix),strlen(prefix)) == 0)
data/sbsigntool-0.9.2/lib/ccan/ccan/str/str.h:44: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(str) < strlen(postfix))
data/sbsigntool-0.9.2/lib/ccan/ccan/str/str.h:44:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(str) < strlen(postfix))
data/sbsigntool-0.9.2/lib/ccan/ccan/str/str.h:47:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return streq(str + strlen(str) - strlen(postfix), postfix);
data/sbsigntool-0.9.2/lib/ccan/ccan/str/str.h:47: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).
	return streq(str + strlen(str) - strlen(postfix), postfix);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1307: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).
	ret = (char *)talloc_memdup(t, p, strlen(p) + 1);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1320: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).
	size_t olen = strlen(orig);
data/sbsigntool-0.9.2/lib/ccan/ccan/talloc/talloc.c:1326: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).
	alenz = strlen(append) + 1;
data/sbsigntool-0.9.2/src/sbvarsign.c:124:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strncmp(attr_str, attr_prefix, strlen(attr_prefix)))
data/sbsigntool-0.9.2/src/sbvarsign.c:125:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		attr_str += strlen(attr_prefix);
data/sbsigntool-0.9.2/src/sbvarsign.c:170:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(str);

ANALYSIS SUMMARY:

Hits = 288
Lines analyzed = 15047 in approximately 0.42 seconds (35886 lines/second)
Physical Source Lines of Code (SLOC) = 8875
Hits@level = [0] 164 [1]  34 [2] 235 [3]   6 [4]  13 [5]   0
Hits@level+ = [0+] 452 [1+] 288 [2+] 254 [3+]  19 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 50.9296 [1+] 32.4507 [2+] 28.6197 [3+] 2.14085 [4+] 1.46479 [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.