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/ltrace-0.7.3/printf.h
Examining data/ltrace-0.7.3/dict.c
Examining data/ltrace-0.7.3/lens_default.h
Examining data/ltrace-0.7.3/ltrace.h
Examining data/ltrace-0.7.3/zero.h
Examining data/ltrace-0.7.3/lens_enum.h
Examining data/ltrace-0.7.3/fetch.c
Examining data/ltrace-0.7.3/read_config_file.c
Examining data/ltrace-0.7.3/backend.h
Examining data/ltrace-0.7.3/output.h
Examining data/ltrace-0.7.3/vect.c
Examining data/ltrace-0.7.3/defs.h
Examining data/ltrace-0.7.3/dict.h
Examining data/ltrace-0.7.3/breakpoints.c
Examining data/ltrace-0.7.3/glob.c
Examining data/ltrace-0.7.3/value_dict.h
Examining data/ltrace-0.7.3/read_config_file.h
Examining data/ltrace-0.7.3/lens.h
Examining data/ltrace-0.7.3/expr.h
Examining data/ltrace-0.7.3/type.c
Examining data/ltrace-0.7.3/type.h
Examining data/ltrace-0.7.3/execute_program.c
Examining data/ltrace-0.7.3/filter.c
Examining data/ltrace-0.7.3/value.h
Examining data/ltrace-0.7.3/callback.h
Examining data/ltrace-0.7.3/ltrace-elf.h
Examining data/ltrace-0.7.3/summary.c
Examining data/ltrace-0.7.3/fetch.h
Examining data/ltrace-0.7.3/sysdeps/sysdep.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/sparc/ptrace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/sparc/signalent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/sparc/arch.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/sparc/regs.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/sparc/syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/sparc/plt.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/sparc/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/insn.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/ptrace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/fetch.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/signalent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/plt.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/arch.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/regs.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/ptrace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/fetch.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/signalent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/plt.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/syscalls64.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/syscallent1.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/arch.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/signalent1.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/regs.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/syscalls31.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/s390/syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/breakpoint.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/breakpoint.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/ptrace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/fetch.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/signalent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/plt.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/arch.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/regs.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/trace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/os.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/alpha/ptrace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/alpha/signalent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/alpha/plt.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/alpha/arch.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/alpha/regs.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/alpha/syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/alpha/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/ptrace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/fetch.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/signalent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/plt.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/arch.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/regs.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/arch_syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/cris/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/cris/ptrace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/cris/signalent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/cris/plt.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/cris/arch.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/cris/regs.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/cris/syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/arm/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/arm/breakpoint.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/arm/ptrace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/arm/signalent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/arm/plt.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/arm/arch_syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/arm/arch.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/arm/regs.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/arm/syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/mips/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/mips/ptrace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/mips/mips.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/mips/signalent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/mips/plt.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/mips/arch.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/mips/regs.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/mips/syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/events.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/syscallent1.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/signalent1.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/x86/trace.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/x86/ptrace.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/x86/fetch.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/x86/signalent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/x86/plt.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/x86/syscallent1.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/x86/arch.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/x86/signalent1.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/x86/regs.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/x86/syscallent.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/trace-defs.h
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/events.c
Examining data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c
Examining data/ltrace-0.7.3/value_dict.c
Examining data/ltrace-0.7.3/library.c
Examining data/ltrace-0.7.3/zero.c
Examining data/ltrace-0.7.3/filter.h
Examining data/ltrace-0.7.3/param.h
Examining data/ltrace-0.7.3/glob.h
Examining data/ltrace-0.7.3/output.c
Examining data/ltrace-0.7.3/options.c
Examining data/ltrace-0.7.3/expr.c
Examining data/ltrace-0.7.3/options.h
Examining data/ltrace-0.7.3/demangle.h
Examining data/ltrace-0.7.3/proc.h
Examining data/ltrace-0.7.3/debug.c
Examining data/ltrace-0.7.3/param.c
Examining data/ltrace-0.7.3/libltrace.c
Examining data/ltrace-0.7.3/lens.c
Examining data/ltrace-0.7.3/breakpoint.h
Examining data/ltrace-0.7.3/forward.h
Examining data/ltrace-0.7.3/testsuite/lib/compiler.c
Examining data/ltrace-0.7.3/testsuite/lib/compiler.cc
Examining data/ltrace-0.7.3/testsuite/ltrace.main/parameters-lib.c
Examining data/ltrace-0.7.3/testsuite/ltrace.main/system_calls.c
Examining data/ltrace-0.7.3/testsuite/ltrace.main/signals.c
Examining data/ltrace-0.7.3/testsuite/ltrace.main/main-threaded.c
Examining data/ltrace-0.7.3/testsuite/ltrace.main/hello-vfork.c
Examining data/ltrace-0.7.3/testsuite/ltrace.main/main-vfork.c
Examining data/ltrace-0.7.3/testsuite/ltrace.main/parameters.c
Examining data/ltrace-0.7.3/testsuite/ltrace.main/branch_func.c
Examining data/ltrace-0.7.3/testsuite/ltrace.main/main.c
Examining data/ltrace-0.7.3/testsuite/ltrace.main/main-lib.c
Examining data/ltrace-0.7.3/testsuite/ltrace.torture/signals.c
Examining data/ltrace-0.7.3/testsuite/ltrace.torture/vfork-thread.c
Examining data/ltrace-0.7.3/testsuite/ltrace.torture/ppc-lwarx.c
Examining data/ltrace-0.7.3/testsuite/ltrace.minor/demangle-lib.cpp
Examining data/ltrace-0.7.3/testsuite/ltrace.minor/libdl-simple.c
Examining data/ltrace-0.7.3/testsuite/ltrace.minor/demangle.cpp
Examining data/ltrace-0.7.3/testsuite/ltrace.minor/print-instruction-pointer.c
Examining data/ltrace-0.7.3/testsuite/ltrace.minor/count-record.c
Examining data/ltrace-0.7.3/testsuite/ltrace.minor/libdl-simple-lib.c
Examining data/ltrace-0.7.3/testsuite/ltrace.minor/trace-fork.c
Examining data/ltrace-0.7.3/testsuite/ltrace.minor/demangle.h
Examining data/ltrace-0.7.3/testsuite/ltrace.minor/trace-clone.c
Examining data/ltrace-0.7.3/testsuite/ltrace.minor/time-record.c
Examining data/ltrace-0.7.3/main.c
Examining data/ltrace-0.7.3/debug.h
Examining data/ltrace-0.7.3/vect.h
Examining data/ltrace-0.7.3/demangle.c
Examining data/ltrace-0.7.3/lens_enum.c
Examining data/ltrace-0.7.3/library.h
Examining data/ltrace-0.7.3/common.h
Examining data/ltrace-0.7.3/proc.c
Examining data/ltrace-0.7.3/debian/patches/03-alpha-debug.h
Examining data/ltrace-0.7.3/printf.c
Examining data/ltrace-0.7.3/value.c
Examining data/ltrace-0.7.3/lens_default.c
Examining data/ltrace-0.7.3/handle_event.c
Examining data/ltrace-0.7.3/ltrace-elf.c

FINAL RESULTS:

data/ltrace-0.7.3/debug.c:36: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(buf, 1024, fmt, args);
data/ltrace-0.7.3/debug.h:33:47:  [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.
		const char *fmt, ...) __attribute__((format(printf,4,5)));
data/ltrace-0.7.3/execute_program.c:111:3:  [4] (shell) execvp:
  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.
		execvp(command, argv);
data/ltrace-0.7.3/handle_event.c:365:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(result, "SYS_%s",
data/ltrace-0.7.3/handle_event.c:385:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(result, "ARCH_%s",
data/ltrace-0.7.3/lens_default.c:70:11:  [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.
			return fprintf(stream, "%#"PRIx64, v);		\
data/ltrace-0.7.3/lens_default.c:73:11:  [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.
			return fprintf(stream, "%"PRIi##BITS, i);	\
data/ltrace-0.7.3/lens_default.c:75:11:  [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.
			return fprintf(stream, "%"PRIu64, v);		\
data/ltrace-0.7.3/lens_default.c:77:11:  [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.
			return fprintf(stream, "0%"PRIo64, v);		\
data/ltrace-0.7.3/lens_default.c:118: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.
	int i = account_output(countp, vfprintf(stream, format, pa));
data/ltrace-0.7.3/lens_default.c:171:9:  [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.
	return fprintf(stream, fmt, c);
data/ltrace-0.7.3/options.c:162:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(pathname + n, filename);
data/ltrace-0.7.3/options.c:163: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.
		if (!access(pathname, X_OK)) {
data/ltrace-0.7.3/options.c:200:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(lib, "^%s$", a_lib);
data/ltrace-0.7.3/options.c:243:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(sym, "^%s$", a_sym);
data/ltrace-0.7.3/options.c:439:3:  [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, fmt, opt, optarg, min, max);
data/ltrace-0.7.3/options.c:559:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(buf, "@%s", optarg);
data/ltrace-0.7.3/output.c:232: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(options.output, fmt, args);
data/ltrace-0.7.3/output.c:679: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(buf, sizeof(buf), fmt, args);
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:60:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(VAR, FORMAT, PID)
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:73:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
			if (!access(proc_exe, F_OK)) {
data/ltrace-0.7.3/testsuite/ltrace.main/main-vfork.c:24:5:  [4] (shell) execlp:
  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.
    execlp (argv[0], argv[0], "", NULL);
data/ltrace-0.7.3/testsuite/ltrace.main/system_calls.c:57:3:  [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 ("system_calls.tmp", R_OK);
data/ltrace-0.7.3/testsuite/ltrace.minor/count-record.c:44:3:  [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 ("system_calls.tmp", R_OK);
data/ltrace-0.7.3/libltrace.c:118:21:  [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.
			char *home_dir = getenv("HOME");
data/ltrace-0.7.3/options.c:147:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	for (path = getenv("PATH"); path && *path; path += m) {
data/ltrace-0.7.3/options.c:176:6:  [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.
	c = getenv("COLUMNS");
data/ltrace-0.7.3/options.c:481: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, "+cfhiLrStTVb"
data/ltrace-0.7.3/breakpoint.h:58: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 orig_value[BREAKPOINT_LENGTH];
data/ltrace-0.7.3/breakpoints.c:169: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(retp->orig_value, bp->orig_value, sizeof(bp->orig_value));
data/ltrace-0.7.3/debug.c:29: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[1024];
data/ltrace-0.7.3/debug.c:57: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 text[17];
data/ltrace-0.7.3/dict.c:249: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(d, old, sizeof(Dict));
data/ltrace-0.7.3/dict.c:263: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(*de_new, de_old, sizeof(struct dict_entry));
data/ltrace-0.7.3/fetch.c:76:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	return memcpy(ret, context, sizeof(*ret));
data/ltrace-0.7.3/filter.c:120: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[200];
data/ltrace-0.7.3/glob.c:102: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(*bufp + *sizep, str, str_size);
data/ltrace-0.7.3/handle_event.c:345: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 result[128];
data/ltrace-0.7.3/handle_event.c:362:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(result, "SYS_%d", sysnum);
data/ltrace-0.7.3/handle_event.c:373: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 result[128];
data/ltrace-0.7.3/handle_event.c:382:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(result, "ARCH_%d", sysnum);
data/ltrace-0.7.3/lens_default.c:46:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[0];				\
data/ltrace-0.7.3/lens_default.c:303: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 buf[reclevel + 1];
data/ltrace-0.7.3/lens_default.c:343: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).
	     const char *open, const char *close, const char *delim)
data/ltrace-0.7.3/lens_default.c:354:42:  [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 (acc_fprintf(&written, stream, "%s", open) < 0)
data/ltrace-0.7.3/lens_default.c:632: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[sz];
data/ltrace-0.7.3/lens_default.c:640:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[0];
data/ltrace-0.7.3/libltrace.c:117: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 path[PATH_MAX];
data/ltrace-0.7.3/ltrace-elf.c:231: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 buf[0];					\
data/ltrace-0.7.3/ltrace-elf.c:233: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(u.buf, data->d_buf + offset, sizeof(u.dst));	\
data/ltrace-0.7.3/ltrace-elf.c:247: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).
	lte->fd = open(filename, O_RDONLY);
data/ltrace-0.7.3/ltrace-elf.c:672:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[len + 1];
data/ltrace-0.7.3/ltrace-elf.c:673: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(name, orig_name, len);
data/ltrace-0.7.3/options.c:140: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 pathname[PATH_MAX];
data/ltrace-0.7.3/options.c: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 lib[strlen(a_lib) + 3];
data/ltrace-0.7.3/options.c:208: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 buf[100];
data/ltrace-0.7.3/options.c:242: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 sym[strlen(a_sym) + 3];
data/ltrace-0.7.3/options.c:247: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 buf[100];
data/ltrace-0.7.3/options.c:558: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 buf[patlen + 2];
data/ltrace-0.7.3/options.c:572:21:  [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).
			options.output = fopen(optarg, "w");
data/ltrace-0.7.3/output.c:611:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char fn_name[100];
data/ltrace-0.7.3/output.c:678:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/ltrace-0.7.3/printf.c:151:9:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				l = atol(len_buf);
data/ltrace-0.7.3/printf.c:188: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 len_buf[25] = {};
data/ltrace-0.7.3/read_config_file.c:390: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[len + 1];
data/ltrace-0.7.3/read_config_file.c:391: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, *str, len);
data/ltrace-0.7.3/read_config_file.c:1249: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(&fun->params[fun->num_params++], extra_param,
data/ltrace-0.7.3/read_config_file.c:1276: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[1024];
data/ltrace-0.7.3/read_config_file.c:1279:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	stream = fopen(filename, "r");
data/ltrace-0.7.3/sysdeps/linux-gnu/arm/breakpoint.c:43:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		union _ { long l; unsigned char b[SIZEOF_LONG]; };
data/ltrace-0.7.3/sysdeps/linux-gnu/arm/breakpoint.c:76:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		union _ { long l; unsigned char b[SIZEOF_LONG]; };
data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/breakpoint.c:170: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 cbundle[16];
data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/breakpoint.c:201: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(sbp->orig_value, &instr, sizeof(instr));
data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/fetch.c:168:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, value_get_data(&tmp, NULL), chunk_sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/fetch.c: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 buf[0];
data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/fetch.c:325:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, value_get_data(&tmp, NULL), hfa_sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/fetch.c:353:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, data, 8 - slot_off);
data/ltrace-0.7.3/sysdeps/linux-gnu/ia64/fetch.c:396:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, ctx->regs.gr + 8, sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/fetch.c:183:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, val, sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/fetch.c:194:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char buf[0];
data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/fetch.c:208:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy (buf, u.buf, sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/fetch.c:220:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, val, sz <= 4 ? sz : 4);
data/ltrace-0.7.3/sysdeps/linux-gnu/m68k/fetch.c:222:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buf + 4, &context->regs[PT_D1], 4);
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/fetch.c: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 buf[0];
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/fetch.c:197: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(u.buf, buf, w);
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/fetch.c:214: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, u.buf, sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/fetch.c:237:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buf[0];
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/fetch.c:243: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(value_get_raw_data(valuep), u.buf, sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/fetch.c:256: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 buf[0];
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/fetch.c:272:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(value_get_raw_data(valuep), u.buf, sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/fetch.c:354: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(ptr, value_get_data(&val, NULL), width);
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/trace.c:106: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 buf[BREAKPOINT_LENGTH];
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/trace.c:109: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(u.buf, sbp->orig_value, BREAKPOINT_LENGTH);
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:59: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 VAR[strlen(FORMAT) + 6];		\
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:91:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return fopen(fn, "r");
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:129:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	*pidp = atoi(line + strlen(prefix));
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:248:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			pid_t npid = atoi(result->d_name);
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:497: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 lib_name[BUFSIZ];
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:658:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(fn, O_RDONLY);
data/ltrace-0.7.3/sysdeps/linux-gnu/s390/fetch.c:184:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buf[8];
data/ltrace-0.7.3/sysdeps/linux-gnu/s390/fetch.c:188: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, u.buf, sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/s390/fetch.c:206: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(value_get_raw_data(valuep),
data/ltrace-0.7.3/sysdeps/linux-gnu/trace.c:1181:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char c[sizeof(long)];
data/ltrace-0.7.3/sysdeps/linux-gnu/trace.c:1197: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(laddr + offset, &a.c[0], sizeof(long));
data/ltrace-0.7.3/sysdeps/linux-gnu/trace.c:1201: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(laddr + offset, &a.c[0], len - offset);
data/ltrace-0.7.3/sysdeps/linux-gnu/x86/fetch.c:109:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + offset, &val, sizeof(val));
data/ltrace-0.7.3/sysdeps/linux-gnu/x86/fetch.c:128:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + offset, u.halves + half, sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/x86/fetch.c:181: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 buf[0];
data/ltrace-0.7.3/sysdeps/linux-gnu/x86/fetch.c:197: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(&u.ld, reg, sizeof(u));
data/ltrace-0.7.3/sysdeps/linux-gnu/x86/fetch.c:206:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + offset, u.buf, sz);
data/ltrace-0.7.3/sysdeps/linux-gnu/x86/fetch.c:593: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(valuep, &context->u.ix86.retval, sizeof(*valuep));
data/ltrace-0.7.3/sysdeps/linux-gnu/x86/fetch.c:732:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	return memcpy(ret, context, sizeof(*ret));
data/ltrace-0.7.3/testsuite/ltrace.main/hello-vfork.c:7:17:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
        int r = vfork();
data/ltrace-0.7.3/testsuite/ltrace.main/main-vfork.c:23:8:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
  if (!vfork ())
data/ltrace-0.7.3/testsuite/ltrace.main/parameters-lib.c:21:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(p, "Hello world");
data/ltrace-0.7.3/testsuite/ltrace.main/parameters-lib.c:27:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(p, "Hello another world!");
data/ltrace-0.7.3/testsuite/ltrace.main/parameters-lib.c:33:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(p, "Hello world");
data/ltrace-0.7.3/testsuite/ltrace.main/parameters-lib.c:113:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[100];
data/ltrace-0.7.3/testsuite/ltrace.main/parameters-lib.c:155:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char a[6];
data/ltrace-0.7.3/testsuite/ltrace.main/parameters.c:53: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 buf[200];
data/ltrace-0.7.3/testsuite/ltrace.main/parameters.c:79:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(s, "Dude");
data/ltrace-0.7.3/testsuite/ltrace.main/parameters.c:136: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[10] = {};
data/ltrace-0.7.3/testsuite/ltrace.main/parameters.c:137: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 y[10] = {};
data/ltrace-0.7.3/testsuite/ltrace.main/parameters.c:147: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 a[6];
data/ltrace-0.7.3/testsuite/ltrace.main/system_calls.c:25: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 buffer[BUF_SIZE];
data/ltrace-0.7.3/testsuite/ltrace.main/system_calls.c:29:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen ("system_calls.tmp", "w");
data/ltrace-0.7.3/testsuite/ltrace.minor/count-record.c:23: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 buffer[BUF_SIZE];
data/ltrace-0.7.3/testsuite/ltrace.minor/count-record.c:26:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen ("system_calls.tmp", "w");
data/ltrace-0.7.3/testsuite/ltrace.minor/trace-clone.c:25: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.
  static char stack[STACK_SIZE];
data/ltrace-0.7.3/testsuite/ltrace.torture/vfork-thread.c:22:17:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
  pid_t child = vfork ();
data/ltrace-0.7.3/value.c:202: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(retp->u.address, val->u.address, size);
data/ltrace-0.7.3/value.c:320: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[0];
data/ltrace-0.7.3/value.c:366:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(tgt, data, sz);
data/ltrace-0.7.3/value.h:56:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buf[0];
data/ltrace-0.7.3/vect.c:48: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(tgt, src, target->elt_size);
data/ltrace-0.7.3/vect.c:127: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(slot(vec, vec->size++), eltp, vec->elt_size);
data/ltrace-0.7.3/glob.c:91:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		str_size = strlen(str);
data/ltrace-0.7.3/glob.c:114:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t length = strlen(glob);
data/ltrace-0.7.3/lens_default.c:593: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).
				    options.strlen, 0, "\"", "\"", "");
data/ltrace-0.7.3/libltrace.c:120:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(path, home_dir, PATH_MAX - 1);
data/ltrace-0.7.3/libltrace.c:122:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
				strncat(path, opt_F->filename + 1,
data/ltrace-0.7.3/libltrace.c:123:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
						PATH_MAX - strlen(path) - 1);
data/ltrace-0.7.3/ltrace-elf.c:671:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			: strlen(orig_name);
data/ltrace-0.7.3/ltrace-elf.c:747:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (strlen(full_name) < strlen(unique->libsym->name)) {
data/ltrace-0.7.3/ltrace-elf.c:747:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		} else if (strlen(full_name) < strlen(unique->libsym->name)) {
data/ltrace-0.7.3/options.c:152: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).
			m = n = strlen(path);
data/ltrace-0.7.3/options.c:154:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (n + strlen(filename) + 1 >= PATH_MAX) {
data/ltrace-0.7.3/options.c:158:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(pathname, path, n);
data/ltrace-0.7.3/options.c:199: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).
		char lib[strlen(a_lib) + 3];
data/ltrace-0.7.3/options.c:242: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).
		char sym[strlen(a_sym) + 3];
data/ltrace-0.7.3/options.c:330:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *symend = symname + strlen(symname) - 1;
data/ltrace-0.7.3/options.c:331:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		char *libend = libname + strlen(libname) - 1;
data/ltrace-0.7.3/options.c:557: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).
			size_t patlen = strlen(optarg);
data/ltrace-0.7.3/options.h:39: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).
	size_t strlen;     /* default maximum # of bytes printed in strings */
data/ltrace-0.7.3/read_config_file.c:122:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ret, str, len);
data/ltrace-0.7.3/read_config_file.c:152:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!strlen(str))
data/ltrace-0.7.3/read_config_file.c:155:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pos = &str[strlen(str)];
data/ltrace-0.7.3/read_config_file.c:425: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).
	(*str) += strlen("typedef");
data/ltrace-0.7.3/read_config_file.c:684:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(kwd);
data/ltrace-0.7.3/read_config_file.c:1200: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).
			if (str[strlen(str) - 1] == '\n')
data/ltrace-0.7.3/read_config_file.c:1201: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).
				str[strlen(str) - 1] = '\0';
data/ltrace-0.7.3/sysdeps/linux-gnu/events.c:193:4:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
			usleep(10000);
data/ltrace-0.7.3/sysdeps/linux-gnu/ppc/plt.c:533: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).
					len = strlen(name);
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:59:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char VAR[strlen(FORMAT) + 6];		\
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:115:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(prefix);
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:129:22:  [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).
	*pidp = atoi(line + strlen(prefix));
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:149: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).
	char c = line[strlen(prefix)];
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:171:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const char * status = line + strlen(prefix);
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:446:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(fd, ret, sizeof(*ret)) == sizeof(*ret) ? 0 : -1;
data/ltrace-0.7.3/sysdeps/linux-gnu/proc.c:453:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, &auxv, sizeof(auxv)) != sizeof(auxv))
data/ltrace-0.7.3/testsuite/ltrace.main/parameters-lib.c:22: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).
	return strlen(p);
data/ltrace-0.7.3/testsuite/ltrace.main/parameters-lib.c:28: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).
	return strlen(p);
data/ltrace-0.7.3/testsuite/ltrace.main/parameters-lib.c:132:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(buf, x->str, x->slen);
data/ltrace-0.7.3/testsuite/ltrace.torture/signals.c:40:7:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
      usleep(100);

ANALYSIS SUMMARY:

Hits = 174
Lines analyzed = 32402 in approximately 0.94 seconds (34346 lines/second)
Physical Source Lines of Code (SLOC) = 23146
Hits@level = [0] 207 [1]  38 [2] 108 [3]   4 [4]  24 [5]   0
Hits@level+ = [0+] 381 [1+] 174 [2+] 136 [3+]  28 [4+]  24 [5+]   0
Hits/KSLOC@level+ = [0+] 16.4607 [1+] 7.5175 [2+] 5.87575 [3+] 1.20971 [4+] 1.0369 [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.