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/dwarves-dfsg-1.17/btf_encoder.c
Examining data/dwarves-dfsg-1.17/btf_encoder.h
Examining data/dwarves-dfsg-1.17/btf_loader.c
Examining data/dwarves-dfsg-1.17/ctf_encoder.c
Examining data/dwarves-dfsg-1.17/ctf_encoder.h
Examining data/dwarves-dfsg-1.17/ctf_loader.c
Examining data/dwarves-dfsg-1.17/dwarf_loader.c
Examining data/dwarves-dfsg-1.17/dwarves.c
Examining data/dwarves-dfsg-1.17/dwarves.h
Examining data/dwarves-dfsg-1.17/dwarves_emit.c
Examining data/dwarves-dfsg-1.17/dwarves_emit.h
Examining data/dwarves-dfsg-1.17/dwarves_fprintf.c
Examining data/dwarves-dfsg-1.17/dwarves_reorganize.c
Examining data/dwarves-dfsg-1.17/dwarves_reorganize.h
Examining data/dwarves-dfsg-1.17/codiff.c
Examining data/dwarves-dfsg-1.17/ctracer.c
Examining data/dwarves-dfsg-1.17/dtagnames.c
Examining data/dwarves-dfsg-1.17/elfcreator.c
Examining data/dwarves-dfsg-1.17/elfcreator.h
Examining data/dwarves-dfsg-1.17/elf_symtab.c
Examining data/dwarves-dfsg-1.17/elf_symtab.h
Examining data/dwarves-dfsg-1.17/gobuffer.c
Examining data/dwarves-dfsg-1.17/gobuffer.h
Examining data/dwarves-dfsg-1.17/hash.h
Examining data/dwarves-dfsg-1.17/libbtf.c
Examining data/dwarves-dfsg-1.17/libbtf.h
Examining data/dwarves-dfsg-1.17/list.h
Examining data/dwarves-dfsg-1.17/pahole.c
Examining data/dwarves-dfsg-1.17/pdwtags.c
Examining data/dwarves-dfsg-1.17/pfunct.c
Examining data/dwarves-dfsg-1.17/pglobal.c
Examining data/dwarves-dfsg-1.17/prefcnt.c
Examining data/dwarves-dfsg-1.17/rbtree.c
Examining data/dwarves-dfsg-1.17/rbtree.h
Examining data/dwarves-dfsg-1.17/scncopy.c
Examining data/dwarves-dfsg-1.17/syscse.c
Examining data/dwarves-dfsg-1.17/strings.c
Examining data/dwarves-dfsg-1.17/strings.h
Examining data/dwarves-dfsg-1.17/dutil.c
Examining data/dwarves-dfsg-1.17/dutil.h
Examining data/dwarves-dfsg-1.17/lib/ctracer_relay.c
Examining data/dwarves-dfsg-1.17/lib/ctracer_relay.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/bpf.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/if_link.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/bpf_common.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/if_xdp.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/netlink.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/btf.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/tools/libc_compat.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/asm/barrier.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/linux/overflow.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/linux/err.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/linux/list.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/linux/types.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/linux/compiler.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/linux/ring_buffer.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/linux/filter.h
Examining data/dwarves-dfsg-1.17/lib/bpf/include/linux/kernel.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/bpf_prog_linfo.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_util.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/bpf_tracing.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/bpf_helpers.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/nlattr.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/xsk.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/bpf.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/str_error.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/bpf_endian.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_errno.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/bpf_helper_defs.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_common.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/bpf.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/xsk.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/hashmap.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/btf_dump.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_internal.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/btf.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_probes.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/netlink.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/bpf_core_read.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/nlattr.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/str_error.h
Examining data/dwarves-dfsg-1.17/lib/bpf/src/btf.c
Examining data/dwarves-dfsg-1.17/lib/bpf/src/hashmap.h
Examining data/dwarves-dfsg-1.17/ctf.h
Examining data/dwarves-dfsg-1.17/libctf.c
Examining data/dwarves-dfsg-1.17/libctf.h

FINAL RESULTS:

data/dwarves-dfsg-1.17/dwarves.c:2094:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(bf, sizeof(bf), vmlinux_paths_upd[i], kernel_version);
data/dwarves-dfsg-1.17/dwarves.c:2112:6:  [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("/sys/kernel/btf/vmlinux", R_OK) == 0) {
data/dwarves-dfsg-1.17/dwarves_fprintf.c:837:15:  [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.
			printed += fprintf(fp, " = %" PRIu64, member->const_value);
data/dwarves-dfsg-1.17/dwarves_fprintf.c:868:15:  [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.
			printed += fprintf(fp, sconf.hex_fmt ?
data/dwarves-dfsg-1.17/dwarves_fprintf.c:881:16:  [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.
				printed += fprintf(fp, sconf.hex_fmt ?  ":%#2x" : ":%2u", bitfield_offset);
data/dwarves-dfsg-1.17/dwarves_fprintf.c:885:15:  [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.
			printed += fprintf(fp, sconf.hex_fmt ?  " %#*x */" : " %*u */", size_spacing, size);
data/dwarves-dfsg-1.17/dwarves_fprintf.c:898:15:  [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.
			printed += fprintf(fp, sconf.hex_fmt ?
data/dwarves-dfsg-1.17/dwarves_fprintf.c:909:16:  [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.
				printed += fprintf(fp, sconf.hex_fmt ?
data/dwarves-dfsg-1.17/dwarves_fprintf.c:915:15:  [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.
			printed += fprintf(fp, sconf.hex_fmt ?
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:3003:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(path, PATH_MAX, locations[i].path_fmt, buf.release);
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:3005:7:  [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(path, R_OK))
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:74:46:  [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.
#define __printf(a, b)	__attribute__((format(printf, a, b)))
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:88:9:  [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.
	return vfprintf(stderr, format, args);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:965:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(obj->path, path);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:6393:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf, section_defs[i].sec);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7043:8:  [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. If the scanf format is influenceable by an
  attacker, it's exploitable.
	err = fscanf(f, fmt, &ret);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_internal.h:55:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 2, 3)));
data/dwarves-dfsg-1.17/libbtf.c:292:23:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
__attribute ((format (printf, 5, 6)))
data/dwarves-dfsg-1.17/libbtf.c:314:3:  [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(out, fmt, ap);
data/dwarves-dfsg-1.17/libbtf.c:322:23:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
__attribute ((format (printf, 5, 6)))
data/dwarves-dfsg-1.17/libbtf.c:351:3:  [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(out, fmt, ap);
data/dwarves-dfsg-1.17/libbtf.c:358:23:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
__attribute ((format (printf, 6, 7)))
data/dwarves-dfsg-1.17/libbtf.c:383:3:  [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(out, fmt, ap);
data/dwarves-dfsg-1.17/libbtf.c:702:53:  [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 (write(fd, btf_data, btf_size) == btf_size && !system(cmd))
data/dwarves-dfsg-1.17/libbtf.c:718:9:  [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.
	return vfprintf(stderr, format, args);
data/dwarves-dfsg-1.17/libbtf.h:36:64:  [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.
#define btf_elf__verbose_log(fmt, ...) { if (btf_elf__verbose) printf(fmt, __VA_ARGS__); }
data/dwarves-dfsg-1.17/libctf.c:746:6:  [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(cmd) == 0)
data/dwarves-dfsg-1.17/pfunct.c:209:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, args);
data/dwarves-dfsg-1.17/libbtf.c:685:18:  [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.
		llvm_objcopy = getenv("LLVM_OBJCOPY");
data/dwarves-dfsg-1.17/codiff.c:107: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 proto[1024], twin_proto[1024];
data/dwarves-dfsg-1.17/codiff.c:136: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 old_type_name[128], new_type_name[128];
data/dwarves-dfsg-1.17/codiff.c:229: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 name[128];
data/dwarves-dfsg-1.17/codiff.c:252: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 name[128];
data/dwarves-dfsg-1.17/codiff.c:410: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 proto[1024], twin_proto[1024];
data/dwarves-dfsg-1.17/codiff.c:444:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bf[128];
data/dwarves-dfsg-1.17/ctf_loader.c:640: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 name[256];
data/dwarves-dfsg-1.17/ctracer.c:417:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[128];
data/dwarves-dfsg-1.17/ctracer.c:418: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 parm_list[1024];
data/dwarves-dfsg-1.17/ctracer.c:426:14:  [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_fields = fopen(filename, "w");
data/dwarves-dfsg-1.17/ctracer.c:434:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp_converter = fopen(filename, "w");
data/dwarves-dfsg-1.17/ctracer.c:655: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 mini_class_name[128];
data/dwarves-dfsg-1.17/ctracer.c:831: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(filename, O_RDONLY);
data/dwarves-dfsg-1.17/ctracer.c:967: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 functions_filename[PATH_MAX];
data/dwarves-dfsg-1.17/ctracer.c:968: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 methods_filename[PATH_MAX];
data/dwarves-dfsg-1.17/ctracer.c:969: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 collector_filename[PATH_MAX];
data/dwarves-dfsg-1.17/ctracer.c:970: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 classes_filename[PATH_MAX];
data/dwarves-dfsg-1.17/ctracer.c:1049:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp_functions = fopen(functions_filename, "w");
data/dwarves-dfsg-1.17/ctracer.c:1058:15:  [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_methods = fopen(methods_filename, "w");
data/dwarves-dfsg-1.17/ctracer.c:1067:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp_collector = fopen(collector_filename, "w");
data/dwarves-dfsg-1.17/ctracer.c:1076:15:  [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_classes = fopen(classes_filename, "w");
data/dwarves-dfsg-1.17/dutil.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 entry[1024];
data/dwarves-dfsg-1.17/dutil.c:86:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen(filename, "r");
data/dwarves-dfsg-1.17/dwarf_loader.c:192: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(s, src, len);
data/dwarves-dfsg-1.17/dwarf_loader.c:2488: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/dwarves-dfsg-1.17/dwarves.c:54: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 bbf[2048], *abf = bbf;
data/dwarves-dfsg-1.17/dwarves.c:208: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 bf[64];
data/dwarves-dfsg-1.17/dwarves.c:557: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(cu->build_id, build_id, build_id_len);
data/dwarves-dfsg-1.17/dwarves.c:635: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 bf[64];
data/dwarves-dfsg-1.17/dwarves.c:992: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(member, from, sizeof(*member));
data/dwarves-dfsg-1.17/dwarves.c:1091: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(class, from, sizeof(*class));
data/dwarves-dfsg-1.17/dwarves.c:1690: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 pathname[PATH_MAX];
data/dwarves-dfsg-1.17/dwarves.c:1838: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/dwarves-dfsg-1.17/dwarves.c:1843: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 bf[BUFSIZ];
data/dwarves-dfsg-1.17/dwarves.c:1948: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(bf, ptr, sz);
data/dwarves-dfsg-1.17/dwarves.c:1969: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/dwarves-dfsg-1.17/dwarves.c:1995: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(bid, "%02x", *raw);
data/dwarves-dfsg-1.17/dwarves.c:2005: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 notes[PATH_MAX];
data/dwarves-dfsg-1.17/dwarves.c:2006: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 build_id[BUILD_ID_SIZE];
data/dwarves-dfsg-1.17/dwarves.c:2023: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 build_id[BUILD_ID_SIZE];
data/dwarves-dfsg-1.17/dwarves.c:2075: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 bf[PATH_MAX];
data/dwarves-dfsg-1.17/dwarves.c:2109: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 running_sbuild_id[SBUILD_ID_SIZE];
data/dwarves-dfsg-1.17/dwarves.c:2130: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 sbuild_id[SBUILD_ID_SIZE];
data/dwarves-dfsg-1.17/dwarves.h:230: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	 build_id[0];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:256: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 bf[512];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:320: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 bf[BUFSIZ];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:412: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 tmpbf[1024];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:448: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 bf2[64];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:465: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 suffix[512];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:489: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 tmpbf[128];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:595:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tbf[128];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:596: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 namebf[256];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:597: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 namebfptr[258];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:632: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(namebf + nr_indirections, name, len);
data/dwarves-dfsg-1.17/dwarves_fprintf.c:863: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 bftmp[64];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:1024: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 sbf[128];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:1091: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 bf[512];
data/dwarves-dfsg-1.17/dwarves_fprintf.c:1205: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 sbf[128];
data/dwarves-dfsg-1.17/dwarves_reorganize.c:512: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 old_bf[64], new_bf[64];
data/dwarves-dfsg-1.17/dwarves_reorganize.c:557:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char old_bf[64], new_bf[64];
data/dwarves-dfsg-1.17/elfcreator.c:68: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).
	if ((ctor->fd = open(path, O_RDWR|O_CREAT|O_TRUNC, 0755)) < 0) {
data/dwarves-dfsg-1.17/gobuffer.c:87: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(gb->entries + rc, s, len);
data/dwarves-dfsg-1.17/gobuffer.c:95: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(dest, gb->entries, gobuffer__size(gb));
data/dwarves-dfsg-1.17/gobuffer.c:98: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(dest, "", gobuffer__size(gb));
data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/bpf.h:387: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	build_id[BPF_BUILD_ID_SIZE];
data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/bpf.h:407: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	map_name[BPF_OBJ_NAME_LEN];
data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/bpf.h:455: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		prog_name[BPF_OBJ_NAME_LEN];
data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/bpf.h:3381:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[BPF_OBJ_NAME_LEN];
data/dwarves-dfsg-1.17/lib/bpf/include/uapi/linux/bpf.h:3414:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  name[BPF_OBJ_NAME_LEN];
data/dwarves-dfsg-1.17/lib/bpf/src/bpf.c:94: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(attr.map_name, create_attr->name,
data/dwarves-dfsg-1.17/lib/bpf/src/bpf.c:175: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(attr.map_name, name,
data/dwarves-dfsg-1.17/lib/bpf/src/bpf.c:210: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(nrecord, orecord, expected_rec_size);
data/dwarves-dfsg-1.17/lib/bpf/src/bpf.c:269: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(attr.prog_name, load_attr->name,
data/dwarves-dfsg-1.17/lib/bpf/src/bpf_prog_linfo.c:133: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(prog_linfo->raw_linfo, (void *)(long)info->line_info, data_sz);
data/dwarves-dfsg-1.17/lib/bpf/src/bpf_prog_linfo.c:153: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(prog_linfo->raw_jited_linfo,
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:417: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(btf->data, data, size);
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:464:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:778: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 container_name[max_name];
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:1038: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(btf_ext->data, data, size);
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:1102: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(data + existing_len, sinfo->data, records_len);
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:2954:6:  [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).
	f = fopen(path, "rb");
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:2995: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 path[PATH_MAX + 1];
data/dwarves-dfsg-1.17/lib/bpf/src/btf_dump.c:1353: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 new_name[max_len];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:117: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[100];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:331:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[BPF_OBJ_NAME_LEN];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:332: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 license[64];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:497: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(prog->insns, data, size);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:831: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(kern_mdata, mdata, msize);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:937: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(st_ops->data,
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1043: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).
		obj->efile.fd = open(obj->path, O_RDONLY);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1045: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 errmsg[STRERR_BUFSIZE], *cp;
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1286: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 map_name[BPF_OBJ_NAME_LEN];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1343:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(map->mmaped, data, data_sz);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1455: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(ext_val, value + 1, len);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1593: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1632: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1778: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(&map->def, def, map_def_sz);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1797: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(&map->def, def, sizeof(struct bpf_map_def));
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1874: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:2497:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:3071: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).
	new_fd = open("/", O_RDONLY | O_CLOEXEC);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:3128: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 *cp, errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:3169: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 *cp, errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:3335: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 msg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:3356: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 *cp, errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:3396: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 *cp, errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:3437: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 *cp, errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:4671:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_insn + prog->insns_cnt, text->insns,
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:4842: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 *cp, errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5052:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tmp_name[64];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5357: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 *cp, errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5379: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 *cp, errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5410: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 *cp, errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5499: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5520: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5562: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5585: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 *cp, errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5720: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5767: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5805: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5827: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:5852: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[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:6561: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 btf_type_name[BTF_MAX_NAME_SIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:6984: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 errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7032: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[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7036:6:  [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).
	f = fopen(file, "r");
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7087: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 errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7134: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 errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7177: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 errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7208: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 file[PATH_MAX];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7228: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 errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7259: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 errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7320: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 errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7359: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 errmsg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7490: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(*copy_mem, copy_start, len_first);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7491: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(*copy_mem + len_first, base, len_secnd);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7587: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 msg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7676: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 msg[STRERR_BUFSIZE];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:7813: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 data[0];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:8188: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/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:8190: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(fcpu, O_RDONLY);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:8254: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(&skel_opts, opts, sizeof(*opts));
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_errno.c:23:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *libbpf_strerror_table[NR_ERRNO] = {
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_probes.c:30: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 ifname[IF_NAMESIZE], path[64], buf[8];
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_probes.c:39:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_probes.c:162:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(raw_btf, &hdr, sizeof(hdr));
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_probes.c:163:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(raw_btf + hdr.hdr_len, raw_types, hdr.type_len);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_probes.c:164:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(raw_btf + hdr.hdr_len + hdr.type_len, str_sec, hdr.str_len);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_probes.c:310:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096] = {};
data/dwarves-dfsg-1.17/lib/bpf/src/netlink.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 buf[4096];
data/dwarves-dfsg-1.17/lib/bpf/src/netlink.c:142: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             attrbuf[64];
data/dwarves-dfsg-1.17/lib/bpf/src/netlink.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((char *)nla_xdp + NLA_HDRLEN, &fd, sizeof(fd));
data/dwarves-dfsg-1.17/lib/bpf/src/netlink.c:177:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char *)nla_xdp + NLA_HDRLEN, &flags, sizeof(flags));
data/dwarves-dfsg-1.17/lib/bpf/src/netlink.c:282:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(info, &xdp_id.info, sz);
data/dwarves-dfsg-1.17/lib/bpf/src/nlattr.c:193: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.
		errmsg = (char *) libbpf_nla_data(tb[NLMSGERR_ATTR_MSG]);
data/dwarves-dfsg-1.17/lib/bpf/src/xsk.c:70: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 ifname[IFNAMSIZ];
data/dwarves-dfsg-1.17/lib/bpf/src/xsk.c:327:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&config, usr_config, sizeof(struct xsk_umem_config_v1));
data/dwarves-dfsg-1.17/lib/bpf/src/xsk.c:339: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 log_buf[log_buf_size];
data/dwarves-dfsg-1.17/lib/bpf/src/xsk.c:429: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(ifr.ifr_name, xsk->ifname, IFNAMSIZ - 1);
data/dwarves-dfsg-1.17/lib/bpf/src/xsk.c:631: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(xsk->ifname, ifname, IFNAMSIZ - 1);
data/dwarves-dfsg-1.17/lib/bpf/src/xsk.h:168: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.
	return &((char *)umem_area)[addr];
data/dwarves-dfsg-1.17/libbtf.c:77:14:  [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(btfe->filename, "rb");
data/dwarves-dfsg-1.17/libbtf.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(btfe->data, hp, orig_size);
data/dwarves-dfsg-1.17/libbtf.c:159: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).
		btfe->in_fd = open(filename, O_RDONLY);
data/dwarves-dfsg-1.17/libbtf.c:253:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const btf_kind_str[NR_BTF_KINDS] = {
data/dwarves-dfsg-1.17/libbtf.c:628: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_RDWR);
data/dwarves-dfsg-1.17/libbtf.c:682:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp_fn[PATH_MAX];
data/dwarves-dfsg-1.17/libbtf.c:683: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 cmd[PATH_MAX * 2];
data/dwarves-dfsg-1.17/libctf.c:92:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new, hp, sizeof(*hp));
data/dwarves-dfsg-1.17/libctf.c:166: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(ctf->buf, hp, orig_size);
data/dwarves-dfsg-1.17/libctf.c:190: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).
			ctf->in_fd = open(filename, O_RDONLY);
data/dwarves-dfsg-1.17/libctf.c:349: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(gobuffer__ptr(&ctf->types, *position), &m, sizeof(m));
data/dwarves-dfsg-1.17/libctf.c:363: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(gobuffer__ptr(&ctf->types, *position), &m, sizeof(m));
data/dwarves-dfsg-1.17/libctf.c:453: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(gobuffer__ptr(&ctf->types, *position), &m, sizeof(m));
data/dwarves-dfsg-1.17/libctf.c:612:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_bf, hdr, sizeof(*hdr));
data/dwarves-dfsg-1.17/libctf.c:613:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new_bf + sizeof(*hdr), bf, size);
data/dwarves-dfsg-1.17/libctf.c:629: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(ctf->filename, O_RDWR);
data/dwarves-dfsg-1.17/libctf.c:706:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(new_strings_table, data->d_buf, data->d_size);
data/dwarves-dfsg-1.17/libctf.c:707: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(new_strings_table + data->d_size, ".SUNW_ctf");
data/dwarves-dfsg-1.17/libctf.c:730: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 pathname[PATH_MAX];
data/dwarves-dfsg-1.17/libctf.c:743: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 cmd[PATH_MAX * 2];
data/dwarves-dfsg-1.17/pahole.c:497: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 bf[64];
data/dwarves-dfsg-1.17/pahole.c:604: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 bf[64];
data/dwarves-dfsg-1.17/pahole.c:678:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char tab[128];
data/dwarves-dfsg-1.17/pahole.c:1070:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	case 'B': nr_bit_holes = atoi(arg);		break;
data/dwarves-dfsg-1.17/pahole.c:1072:29:  [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).
	case 'c': cacheline_size = atoi(arg);		break;
data/dwarves-dfsg-1.17/pahole.c:1081:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	case 'H': nr_holes = atoi(arg);			break;
data/dwarves-dfsg-1.17/pahole.c:1108:24:  [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).
	case 'w': word_size = atoi(arg);		break;
data/dwarves-dfsg-1.17/pahole.c:1119:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		hole_size_ge = atoi(arg);
data/dwarves-dfsg-1.17/pdwtags.c:27: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 bf[64];
data/dwarves-dfsg-1.17/pfunct.c:418: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(filename, O_RDONLY), err = -1;
data/dwarves-dfsg-1.17/scncopy.c:83: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 (!(fd = open(infile, O_RDONLY))) {
data/dwarves-dfsg-1.17/syscse.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char bf[64];
data/dwarves-dfsg-1.17/syscse.c:71: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 bf[64];
data/dwarves-dfsg-1.17/codiff.c:75: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).
	const uint32_t len = strlen(name) + addend;
data/dwarves-dfsg-1.17/ctracer.c:320: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(class_member__name(pos, cu)) : 0;
data/dwarves-dfsg-1.17/dutil.c:92: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).
		const size_t len = strlen(entry);
data/dwarves-dfsg-1.17/dutil.h:300:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return strncmp(str, prefix, strlen(prefix)) == 0;
data/dwarves-dfsg-1.17/dwarves.c:1847:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, &nhdr, sizeof(nhdr)) != sizeof(nhdr))
data/dwarves-dfsg-1.17/dwarves.c:1854:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(fd, bf, namesz) != (ssize_t)namesz)
data/dwarves-dfsg-1.17/dwarves.c:1858:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (read(fd, build_id, sz) == (ssize_t)sz) {
data/dwarves-dfsg-1.17/dwarves.c:1863:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			} else if (read(fd, bf, descsz) != (ssize_t)descsz)
data/dwarves-dfsg-1.17/dwarves.c:1873:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(fd, bf, n) != n)
data/dwarves-dfsg-1.17/dwarves_fprintf.c:443:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(bf, "void", len);
data/dwarves-dfsg-1.17/dwarves_fprintf.c:454:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(bf, name, len);
data/dwarves-dfsg-1.17/dwarves_fprintf.c:458:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(bf, function__name(tag__function(tag), cu), len);
data/dwarves-dfsg-1.17/dwarves_fprintf.c:541:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
		strncpy(bf, "void", len);
data/dwarves-dfsg-1.17/dwarves_fprintf.c:628: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).
			const size_t len = strlen(name);
data/dwarves-dfsg-1.17/dwarves_fprintf.c:854:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int slen = cm_name ? (int)strlen(cm_name) : -1;
data/dwarves-dfsg-1.17/dwarves_fprintf.c:1116:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			namelen = strlen(name);
data/dwarves-dfsg-1.17/lib/bpf/src/bpf.c:95: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).
		       min(strlen(create_attr->name), BPF_OBJ_NAME_LEN - 1));
data/dwarves-dfsg-1.17/lib/bpf/src/bpf.c:176: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).
		       min(strlen(name), BPF_OBJ_NAME_LEN - 1));
data/dwarves-dfsg-1.17/lib/bpf/src/bpf.c:270: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).
		       min(strlen(load_attr->name), BPF_OBJ_NAME_LEN - 1));
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:1717:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		p += strlen(p) + 1;
data/dwarves-dfsg-1.17/lib/bpf/src/btf.c:1764: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).
			__u32 len = strlen(strs.ptrs[grp_idx].str);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:959:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	obj = calloc(1, sizeof(struct bpf_object) + strlen(path) + 1);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:967:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(obj->name, obj_name, sizeof(obj->name) - 1);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:971:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(obj->name, basename((void *)path),
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1288: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).
	int sfx_len = max((size_t)7, strlen(sfx));
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1290: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(obj->name));
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1441: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(value);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1549: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(buf);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:1636: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).
	file = fmemopen((void *)config, strlen(config), "r");
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:3812: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).
	size_t n = strlen(name);
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:6388: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(buf) + strlen(section_defs[i].sec) + 2 > len) {
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:6388: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).
		if (strlen(buf) + strlen(section_defs[i].sec) + 2 > len) {
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:6392:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(buf, " ");
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf.c:8196:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf));
data/dwarves-dfsg-1.17/lib/bpf/src/libbpf_probes.c:43:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf));
data/dwarves-dfsg-1.17/libctf.c:697: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).
		ctf_name_offset += strlen(cur_str) + 1;
data/dwarves-dfsg-1.17/libctf.c:701:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	const size_t ctf_name_len = strlen(".SUNW_ctf") + 1;
data/dwarves-dfsg-1.17/pahole.c:185:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	printf("%s%c%zd\n", name, separator, strlen(name));
data/dwarves-dfsg-1.17/pahole.c:1074: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).
		  decl_exclude_prefix_len = strlen(decl_exclude_prefix);
data/dwarves-dfsg-1.17/pahole.c:1110:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		  cu__exclude_prefix_len = strlen(cu__exclude_prefix);
data/dwarves-dfsg-1.17/pahole.c:1113:33:  [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).
		  class__exclude_prefix_len = strlen(class__exclude_prefix);
data/dwarves-dfsg-1.17/pahole.c:1116:33:  [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).
		  class__include_prefix_len = strlen(class__include_prefix);
data/dwarves-dfsg-1.17/pfunct.c:140: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).
	printf("%s: %zd\n", name, strlen(name));
data/dwarves-dfsg-1.17/pfunct.c:450: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).
		int len = strlen(elf_sym__name(&sym, symtab));
data/dwarves-dfsg-1.17/strings.c:47:37:  [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 gobuffer__add(&strs->gb, s, strlen(s) + 1);
data/dwarves-dfsg-1.17/syscse.c:26: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(name) > prefix_len &&
data/dwarves-dfsg-1.17/syscse.c:131: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).
		prefix_len = strlen(prefix);

ANALYSIS SUMMARY:

Hits = 270
Lines analyzed = 48281 in approximately 1.20 seconds (40256 lines/second)
Physical Source Lines of Code (SLOC) = 32388
Hits@level = [0] 423 [1]  47 [2] 194 [3]   1 [4]  28 [5]   0
Hits@level+ = [0+] 693 [1+] 270 [2+] 223 [3+]  29 [4+]  28 [5+]   0
Hits/KSLOC@level+ = [0+] 21.3968 [1+] 8.33642 [2+] 6.88527 [3+] 0.895393 [4+] 0.864518 [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.