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/libfiu-1.00/bindings/python/fiu_ll.c
Examining data/libfiu-1.00/libfiu/backtrace.c
Examining data/libfiu-1.00/libfiu/fiu-control.h
Examining data/libfiu-1.00/libfiu/fiu-local.h
Examining data/libfiu-1.00/libfiu/fiu-rc.c
Examining data/libfiu-1.00/libfiu/fiu.c
Examining data/libfiu-1.00/libfiu/fiu.h
Examining data/libfiu-1.00/libfiu/hash.c
Examining data/libfiu-1.00/libfiu/hash.h
Examining data/libfiu-1.00/libfiu/internal.h
Examining data/libfiu-1.00/libfiu/wtable.c
Examining data/libfiu-1.00/libfiu/wtable.h
Examining data/libfiu-1.00/preload/posix/build-libccheck.c
Examining data/libfiu-1.00/preload/posix/codegen.c
Examining data/libfiu-1.00/preload/posix/codegen.h
Examining data/libfiu-1.00/preload/posix/modules/posix.custom.c
Examining data/libfiu-1.00/preload/run/run.c
Examining data/libfiu-1.00/tests/collisions/binary.c
Examining data/libfiu-1.00/tests/collisions/libcoltest.c
Examining data/libfiu-1.00/tests/collisions/libcoltest.h
Examining data/libfiu-1.00/tests/small-cat.c
Examining data/libfiu-1.00/tests/test-enable_stack.c
Examining data/libfiu-1.00/tests/test-enable_stack_by_name.c
Examining data/libfiu-1.00/tests/test-ferror.c
Examining data/libfiu-1.00/tests/test-parallel-wildcard.c
Examining data/libfiu-1.00/tests/test-parallel.c

FINAL RESULTS:

data/libfiu-1.00/libfiu/fiu.c:21:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	do { fprintf(stderr, __VA_ARGS__); fflush(stderr); } while (0)
data/libfiu-1.00/preload/posix/codegen.h:68:4:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			fprintf(stderr, __VA_ARGS__);	\
data/libfiu-1.00/preload/posix/modules/posix.custom.c:223:2:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	snprintf(key, STREAM_KEY_SIZE, "%" PRIxPTR, (uintptr_t) stream);
data/libfiu-1.00/preload/posix/modules/posix.custom.c:441:18:  [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.
mkwrap_init(int, vfprintf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:445:42:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
mkwrap_variadic_def_and_body_called(int, fprintf, vfprintf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:445:51:  [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.
mkwrap_variadic_def_and_body_called(int, fprintf, vfprintf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:487:24:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
mkwrap_variadic_bottom(fprintf, vfprintf, (stream, format, arguments), format)
data/libfiu-1.00/preload/posix/modules/posix.custom.c:487:33:  [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.
mkwrap_variadic_bottom(fprintf, vfprintf, (stream, format, arguments), format)
data/libfiu-1.00/preload/posix/modules/posix.custom.c:491:18:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
mkwrap_init(int, vprintf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:495:42:  [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.
mkwrap_variadic_def_and_body_called(int, printf, vprintf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:495:50:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
mkwrap_variadic_def_and_body_called(int, printf, vprintf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:537:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
mkwrap_variadic_bottom(printf, vprintf, (format, arguments), format)
data/libfiu-1.00/preload/posix/modules/posix.custom.c:537:32:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
mkwrap_variadic_bottom(printf, vprintf, (format, arguments), format)
data/libfiu-1.00/preload/posix/modules/posix.custom.c:591:18:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
mkwrap_init(int, vfscanf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:595:42:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
mkwrap_variadic_def_and_body_called(int, fscanf, vfscanf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:595:50:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
mkwrap_variadic_def_and_body_called(int, fscanf, vfscanf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:631:24:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
mkwrap_variadic_bottom(fscanf, vfscanf, (stream, format, arguments), format)
data/libfiu-1.00/preload/posix/modules/posix.custom.c:631:32:  [4] (buffer) vfscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
mkwrap_variadic_bottom(fscanf, vfscanf, (stream, format, arguments), format)
data/libfiu-1.00/preload/posix/modules/posix.custom.c:635:18:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
mkwrap_init(int, vscanf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:639:42:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
mkwrap_variadic_def_and_body_called(int, scanf, vscanf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:639:49:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
mkwrap_variadic_def_and_body_called(int, scanf, vscanf,
data/libfiu-1.00/preload/posix/modules/posix.custom.c:672:24:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
mkwrap_variadic_bottom(scanf, vscanf, (format, arguments), format)
data/libfiu-1.00/preload/posix/modules/posix.custom.c:672:31:  [4] (buffer) vscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
mkwrap_variadic_bottom(scanf, vscanf, (format, arguments), format)
data/libfiu-1.00/libfiu/fiu.c:257:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	static_seed_from_env = getenv("FIU_PRNG_SEED");
data/libfiu-1.00/preload/posix/codegen.c:55:2:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srandom(tv.tv_usec);
data/libfiu-1.00/preload/posix/codegen.h:162:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				errno = valid_errnos[random() % \
data/libfiu-1.00/preload/posix/codegen.h:179:26:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
				errno = valid_errnos[random() % \
data/libfiu-1.00/preload/posix/codegen.h:198:11:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			CNT -= random() % CNT;			\
data/libfiu-1.00/preload/run/run.c:18:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	fiu_fifo_env = getenv("FIU_CTRL_FIFO");
data/libfiu-1.00/preload/run/run.c:25:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	fiu_enable_env = getenv("FIU_ENABLE");
data/libfiu-1.00/libfiu/fiu-rc.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char m_cmd[MAX_LINE] = {0};
data/libfiu-1.00/libfiu/fiu-rc.c:84: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 command[MAX_LINE] = {0};
data/libfiu-1.00/libfiu/fiu-rc.c:85: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 parameters[MAX_LINE] = {0};
data/libfiu-1.00/libfiu/fiu-rc.c:152:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				failnum = atoi(value);
data/libfiu-1.00/libfiu/fiu-rc.c:164:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				func_pos_in_stack = atoi(value);
data/libfiu-1.00/libfiu/fiu-rc.c:199:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[MAX_LINE], reply[MAX_LINE];
data/libfiu-1.00/libfiu/fiu-rc.c:249: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).
	fdr = open(npipe_path_in, O_RDONLY);
data/libfiu-1.00/libfiu/fiu-rc.c:253: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).
	fdw = open(npipe_path_out, O_WRONLY);
data/libfiu-1.00/libfiu/fiu.c:259:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		fiu_set_prng_seed(atoi(static_seed_from_env));
data/libfiu-1.00/preload/posix/modules/posix.custom.c:23:18:  [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).
mkwrap_init(int, open, (const char *pathname, int flags, ...),
data/libfiu-1.00/preload/posix/modules/posix.custom.c:26:5:  [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).
int open(const char *pathname, int flags, ...)
data/libfiu-1.00/preload/posix/modules/posix.custom.c:56: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).
mkwrap_body_called(open, (pathname, flags, mode), -1)
data/libfiu-1.00/preload/posix/modules/posix.custom.c:100:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
mkwrap_bottom(open, (pathname, flags, mode))
data/libfiu-1.00/preload/posix/modules/posix.custom.c:140: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).
mkwrap_body_called(open, (pathname, flags, mode), -1)
data/libfiu-1.00/preload/posix/modules/posix.custom.c:221:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void stream_to_key(void *stream, char key[STREAM_KEY_SIZE])
data/libfiu-1.00/preload/posix/modules/posix.custom.c:228: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 key[STREAM_KEY_SIZE];
data/libfiu-1.00/preload/posix/modules/posix.custom.c:245: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 key[STREAM_KEY_SIZE];
data/libfiu-1.00/preload/posix/modules/posix.custom.c:262: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 key[STREAM_KEY_SIZE];
data/libfiu-1.00/tests/small-cat.c:14:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUFSIZE];
data/libfiu-1.00/tests/test-ferror.c:12:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen("/dev/zero", "r");
data/libfiu-1.00/tests/test-ferror.c:14:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[1024];
data/libfiu-1.00/tests/test-ferror.c:62: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 prefix[8];
data/libfiu-1.00/tests/test-parallel-wildcard.c:39:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char final_point_name[NHIGH][NLOW][MAX_FPNAME];
data/libfiu-1.00/tests/test-parallel-wildcard.c:42:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char wildcard_point_name[NHIGH][MAX_FPNAME];
data/libfiu-1.00/tests/test-parallel-wildcard.c:46:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(name, "point/number/%d/%d", high, low);
data/libfiu-1.00/tests/test-parallel-wildcard.c:52:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(name, "point/number/%d/*", high);
data/libfiu-1.00/tests/test-parallel.c:26:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char point_name[NPOINTS][16];
data/libfiu-1.00/tests/test-parallel.c:30:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(name, "fp-%d", i);
data/libfiu-1.00/libfiu/fiu-rc.c:45:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(fd, &c, 1);
data/libfiu-1.00/libfiu/fiu-rc.c:88:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(m_cmd, cmd, MAX_LINE - 1);
data/libfiu-1.00/libfiu/fiu-rc.c:99:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(command, tok, MAX_LINE - 1);
data/libfiu-1.00/libfiu/fiu-rc.c:106:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(parameters, tok, MAX_LINE - 1);
data/libfiu-1.00/libfiu/fiu-rc.c:296:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int path_len = strlen(basename) + 40;
data/libfiu-1.00/libfiu/fiu.c:87: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).
	pf->namelen = strlen(name);
data/libfiu-1.00/libfiu/hash.c:145: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).
	pos = murmurhash2(key, strlen(key)) % h->table_size;
data/libfiu-1.00/libfiu/hash.c:177: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).
	pos = murmurhash2(key, strlen(key)) % h->table_size;
data/libfiu-1.00/libfiu/hash.c:290: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).
	pos = murmurhash2(key, strlen(key)) % h->table_size;
data/libfiu-1.00/libfiu/hash.c:427: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).
	pos = murmurhash2(key, strlen(key)) % c->hash->table_size;
data/libfiu-1.00/libfiu/wtable.c:180:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	key_len = strlen(key);
data/libfiu-1.00/libfiu/wtable.c:250: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).
		first_free->key_len = strlen(key);
data/libfiu-1.00/libfiu/wtable.c:303:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (is_wildcard(key, strlen(key))) {
data/libfiu-1.00/libfiu/wtable.c:328:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (is_wildcard(key, strlen(key))) {
data/libfiu-1.00/tests/small-cat.c:17:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(0, buf, BUFSIZE);

ANALYSIS SUMMARY:

Hits = 73
Lines analyzed = 4131 in approximately 0.15 seconds (27486 lines/second)
Physical Source Lines of Code (SLOC) = 2620
Hits@level = [0]  26 [1]  15 [2]  28 [3]   7 [4]  23 [5]   0
Hits@level+ = [0+]  99 [1+]  73 [2+]  58 [3+]  30 [4+]  23 [5+]   0
Hits/KSLOC@level+ = [0+] 37.7863 [1+] 27.8626 [2+] 22.1374 [3+] 11.4504 [4+] 8.77863 [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.