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/care-2.2.1/tests/test-88888888.c
Examining data/care-2.2.1/tests/test-66666666.c
Examining data/care-2.2.1/tests/test-ptrace00.c
Examining data/care-2.2.1/tests/test-5bed7141.c
Examining data/care-2.2.1/tests/false.c
Examining data/care-2.2.1/tests/test-33333334.c
Examining data/care-2.2.1/tests/test-af062114.c
Examining data/care-2.2.1/tests/test-c5a7a0f0.c
Examining data/care-2.2.1/tests/test-kkkkkkkk.c
Examining data/care-2.2.1/tests/test-79cf6614.c
Examining data/care-2.2.1/tests/ptrace-2.c
Examining data/care-2.2.1/tests/symlink.c
Examining data/care-2.2.1/tests/test-fdf487a0.c
Examining data/care-2.2.1/tests/test-xxxxxxxx.c
Examining data/care-2.2.1/tests/test-d2175fc4.c
Examining data/care-2.2.1/tests/test-305ae31d.c
Examining data/care-2.2.1/tests/test-16573e73.c
Examining data/care-2.2.1/tests/test-44444444.c
Examining data/care-2.2.1/tests/cat.c
Examining data/care-2.2.1/tests/chdir_getcwd.c
Examining data/care-2.2.1/tests/test-a8e69d6f.c
Examining data/care-2.2.1/tests/pwd.c
Examining data/care-2.2.1/tests/test-1c68c218.c
Examining data/care-2.2.1/tests/true.c
Examining data/care-2.2.1/tests/test-ptrace01.c
Examining data/care-2.2.1/tests/readdir.c
Examining data/care-2.2.1/tests/test-82ba4ba1.c
Examining data/care-2.2.1/tests/fork-wait.c
Examining data/care-2.2.1/tests/test-33333333.c
Examining data/care-2.2.1/tests/argv0.c
Examining data/care-2.2.1/tests/readlink.c
Examining data/care-2.2.1/tests/test-a3e68988.c
Examining data/care-2.2.1/tests/test-e87b34ae.c
Examining data/care-2.2.1/tests/test-bdc90417.c
Examining data/care-2.2.1/tests/test-5bed7143.c
Examining data/care-2.2.1/tests/test-oooooooo.c
Examining data/care-2.2.1/tests/echo.c
Examining data/care-2.2.1/tests/test-ssssssss.c
Examining data/care-2.2.1/tests/fchdir_getcwd.c
Examining data/care-2.2.1/tests/ptrace.c
Examining data/care-2.2.1/tests/test-1ffc8309.c
Examining data/care-2.2.1/tests/test-nnnnnnnn.c
Examining data/care-2.2.1/tests/test-0cf405b0.c
Examining data/care-2.2.1/tests/test-iiiiiiii.c
Examining data/care-2.2.1/tests/test-c10e2073.c
Examining data/care-2.2.1/tests/test-51943658.c
Examining data/care-2.2.1/src/extension/extension.c
Examining data/care-2.2.1/src/extension/kompat/kompat.c
Examining data/care-2.2.1/src/extension/fake_id0/fake_id0.c
Examining data/care-2.2.1/src/extension/care/care.c
Examining data/care-2.2.1/src/extension/care/care.h
Examining data/care-2.2.1/src/extension/care/extract.h
Examining data/care-2.2.1/src/extension/care/final.h
Examining data/care-2.2.1/src/extension/care/extract.c
Examining data/care-2.2.1/src/extension/care/archive.c
Examining data/care-2.2.1/src/extension/care/final.c
Examining data/care-2.2.1/src/extension/care/archive.h
Examining data/care-2.2.1/src/extension/extension.h
Examining data/care-2.2.1/src/compat.h
Examining data/care-2.2.1/src/syscall/sysnums-arm64.h
Examining data/care-2.2.1/src/syscall/chain.h
Examining data/care-2.2.1/src/syscall/seccomp.h
Examining data/care-2.2.1/src/syscall/sysnums-x86_64.h
Examining data/care-2.2.1/src/syscall/exit.c
Examining data/care-2.2.1/src/syscall/sysnums-arm.h
Examining data/care-2.2.1/src/syscall/heap.h
Examining data/care-2.2.1/src/syscall/socket.c
Examining data/care-2.2.1/src/syscall/heap.c
Examining data/care-2.2.1/src/syscall/syscall.h
Examining data/care-2.2.1/src/syscall/sysnums-sh4.h
Examining data/care-2.2.1/src/syscall/seccomp.c
Examining data/care-2.2.1/src/syscall/sysnum.h
Examining data/care-2.2.1/src/syscall/enter.c
Examining data/care-2.2.1/src/syscall/sysnums-x32.h
Examining data/care-2.2.1/src/syscall/sysnum.c
Examining data/care-2.2.1/src/syscall/syscall.c
Examining data/care-2.2.1/src/syscall/socket.h
Examining data/care-2.2.1/src/syscall/sysnums-i386.h
Examining data/care-2.2.1/src/syscall/chain.c
Examining data/care-2.2.1/src/cli/care.c
Examining data/care-2.2.1/src/cli/care.h
Examining data/care-2.2.1/src/cli/cli.c
Examining data/care-2.2.1/src/cli/proot.c
Examining data/care-2.2.1/src/cli/notice.h
Examining data/care-2.2.1/src/cli/proot.h
Examining data/care-2.2.1/src/cli/cli.h
Examining data/care-2.2.1/src/cli/notice.c
Examining data/care-2.2.1/src/tracee/reg.h
Examining data/care-2.2.1/src/tracee/event.h
Examining data/care-2.2.1/src/tracee/array.h
Examining data/care-2.2.1/src/tracee/mem.c
Examining data/care-2.2.1/src/tracee/reg.c
Examining data/care-2.2.1/src/tracee/event.c
Examining data/care-2.2.1/src/tracee/tracee.h
Examining data/care-2.2.1/src/tracee/tracee.c
Examining data/care-2.2.1/src/tracee/mem.h
Examining data/care-2.2.1/src/tracee/abi.h
Examining data/care-2.2.1/src/tracee/array.c
Examining data/care-2.2.1/src/arch.h
Examining data/care-2.2.1/src/.check_seccomp_filter.c
Examining data/care-2.2.1/src/path/canon.h
Examining data/care-2.2.1/src/path/canon.c
Examining data/care-2.2.1/src/path/binding.h
Examining data/care-2.2.1/src/path/path.h
Examining data/care-2.2.1/src/path/proc.h
Examining data/care-2.2.1/src/path/temp.c
Examining data/care-2.2.1/src/path/path.c
Examining data/care-2.2.1/src/path/glue.c
Examining data/care-2.2.1/src/path/binding.c
Examining data/care-2.2.1/src/path/temp.h
Examining data/care-2.2.1/src/path/proc.c
Examining data/care-2.2.1/src/path/glue.h
Examining data/care-2.2.1/src/execve/interp.h
Examining data/care-2.2.1/src/execve/interp.c
Examining data/care-2.2.1/src/execve/ldso.h
Examining data/care-2.2.1/src/execve/ldso.c
Examining data/care-2.2.1/src/execve/execve.c
Examining data/care-2.2.1/src/execve/execve.h
Examining data/care-2.2.1/src/execve/elf.c
Examining data/care-2.2.1/src/execve/auxv.c
Examining data/care-2.2.1/src/execve/elf.h
Examining data/care-2.2.1/src/execve/auxv.h
Examining data/care-2.2.1/src/attribute.h
Examining data/care-2.2.1/src/ptrace/ptrace.h
Examining data/care-2.2.1/src/ptrace/user.c
Examining data/care-2.2.1/src/ptrace/user.h
Examining data/care-2.2.1/src/ptrace/wait.h
Examining data/care-2.2.1/src/ptrace/ptrace.c
Examining data/care-2.2.1/src/ptrace/wait.c
Examining data/care-2.2.1/src/.check_process_vm.c

FINAL RESULTS:

data/care-2.2.1/src/execve/execve.c:200:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		status = readlink("/proc/self/exe", path, PATH_MAX);
data/care-2.2.1/src/extension/care/archive.c:473:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		status = readlink(path, target, PATH_MAX);
data/care-2.2.1/src/extension/care/final.c:368:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	status = readlink("/proc/self/exe", path, PATH_MAX);
data/care-2.2.1/src/extension/fake_id0/fake_id0.c:138:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	(void) chmod(node->path, node->mode);
data/care-2.2.1/src/extension/fake_id0/fake_id0.c:224:9:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	(void) chmod(path, new_mode);
data/care-2.2.1/src/path/canon.c:214:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		status = readlink(host_path, scratch_path, sizeof(scratch_path));
data/care-2.2.1/src/path/path.c:387:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	status = readlink(link, path, PATH_MAX);
data/care-2.2.1/src/path/path.c:715:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		status = readlink(tmp, path, PATH_MAX);
data/care-2.2.1/src/path/temp.c:33:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	status = readlink("/proc/self/cwd", prefix, length_tmpdir);
data/care-2.2.1/src/path/temp.c:63:12:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		status = chmod(entry->d_name, 0700);
data/care-2.2.1/src/path/temp.c:127:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	status = chmod(path, 0700);
data/care-2.2.1/tests/test-44444444.c:15:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	if (readlink("/bin/abs-true", buffer, sizeof(buffer)) < 0) {
data/care-2.2.1/tests/test-51943658.c:38:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	status = readlink(fd_link, path1, PATH_MAX - 1);
data/care-2.2.1/tests/test-51943658.c:46:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	status = readlink(fd_link, path2, PATH_MAX - 1);
data/care-2.2.1/tests/test-5bed7141.c:39:11:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	status = readlink("/proc/self/cwd", path, PATH_MAX - 1);
data/care-2.2.1/tests/test-xxxxxxxx.c:37:11:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	status = chmod(tmp_name, 0700);
data/care-2.2.1/src/cli/notice.c:76:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(stderr, message, extra_params);
data/care-2.2.1/src/cli/notice.h:49:109:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
extern void notice(const Tracee *tracee, Severity severity, Origin origin, const char *message, ...) FORMAT(printf, 4, 5);
data/care-2.2.1/src/execve/elf.c:237: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(*xpaths, paths);
data/care-2.2.1/src/execve/elf.c:249: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(*xpaths, paths);
data/care-2.2.1/src/execve/execve.c:58:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	status = access(t_path, F_OK);
data/care-2.2.1/src/execve/execve.c:62:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	status = access(t_path, X_OK);
data/care-2.2.1/src/execve/execve.c:98: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(u_interp, u_path);
data/care-2.2.1/src/execve/execve.c:117: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(u_interp, u_path);
data/care-2.2.1/src/execve/execve.c:396: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(u_path, t_interp);
data/care-2.2.1/src/execve/execve.c:457:4:  [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(t_interp, tracee->qemu[0]);
data/care-2.2.1/src/execve/interp.c:221: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(u_interp, HOST_ROOTFS);
data/care-2.2.1/src/execve/ldso.c:219:4:  [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(cursor1, HOST_ROOTFS);
data/care-2.2.1/src/extension/care/care.c:266:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	status = access(path, F_OK);
data/care-2.2.1/src/extension/care/final.c:140:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		if (fprintf(file, format "\n", ##__VA_ARGS__) < 0) {	\
data/care-2.2.1/src/extension/care/final.c:432: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(info.signature, AUTOEXTRACT_SIGNATURE);
data/care-2.2.1/src/path/binding.c:406: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(binding->host.path, host_path);
data/care-2.2.1/src/path/binding.c:407: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(binding->guest.path, guest_path);
data/care-2.2.1/src/path/binding.c:542: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(path, binding->guest.path);
data/care-2.2.1/src/path/binding.c:617: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(path, new_binding->host.path);
data/care-2.2.1/src/path/binding.c:660: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(induced_binding->host.path, old_binding->host.path);
data/care-2.2.1/src/path/binding.c:661: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(induced_binding->guest.path, path2);
data/care-2.2.1/src/path/canon.c:53: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(host_path, guest_path);
data/care-2.2.1/src/path/canon.c:171:4:  [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(scratch_path, guest_path);
data/care-2.2.1/src/path/canon.c:200:6:  [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(guest_path, scratch_path);
data/care-2.2.1/src/path/canon.c:257:4:  [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(scratch_path, guest_path);
data/care-2.2.1/src/path/canon.c:264:4:  [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(scratch_path, guest_path);
data/care-2.2.1/src/path/path.c:169:4:  [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(result + length, path);
data/care-2.2.1/src/path/path.c:179:4:  [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(result + length, path + 1);
data/care-2.2.1/src/path/path.c:189:4:  [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(result + length, path);
data/care-2.2.1/src/path/path.c:275: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(path, command);
data/care-2.2.1/src/path/path.c:342: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(guest_path, tracee->fs->cwd);
data/care-2.2.1/src/path/path.c:515:4:  [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(proc_path, path);
data/care-2.2.1/src/path/path.c:520:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(path, proc_path);
data/care-2.2.1/src/path/path.c:711: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(tmp, proc_fd);
data/care-2.2.1/src/path/path.c:713: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(tmp, dirent->d_name);
data/care-2.2.1/src/path/proc.c:181: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(base, referer);
data/care-2.2.1/src/syscall/exit.c:291: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(old_path, tracee->fs->cwd);
data/care-2.2.1/src/syscall/socket.c:123:10:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
		(void) mktemp(shorter_host_path);
data/care-2.2.1/src/syscall/socket.c:130: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(user_path, host_path);
data/care-2.2.1/src/syscall/socket.c:145: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(host_path, shorter_host_path);
data/care-2.2.1/src/tracee/event.c:95: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(tracee->exe, tracee->cmdline);
data/care-2.2.1/tests/ptrace-2.c:211: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(argv[1], &argv[1]);
data/care-2.2.1/tests/ptrace.c:34:4:  [4] (shell) execl:
  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.
			execl("true", "true", NULL);
data/care-2.2.1/tests/test-0cf405b0.c:10:2:  [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("/proc/self/exe", NULL);
data/care-2.2.1/tests/test-5bed7143.c:44:10:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
	path2 = mktemp(strdup(TEMPLATE));
data/care-2.2.1/tests/test-5bed7143.c:49:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	status = access(COOKIE2, F_OK);
data/care-2.2.1/tests/test-79cf6614.c:19:2:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
	mktemp(tmp);
data/care-2.2.1/tests/test-bdc90417.c:27:10:  [4] (shell) execv:
  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.
		return execv(argv[0], dummy_argv);
data/care-2.2.1/tests/test-iiiiiiii.c:20:2:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
	mktemp(path);
data/care-2.2.1/tests/test-nnnnnnnn.c:35: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(sockaddr.sun_path, sockname);
data/care-2.2.1/tests/test-ssssssss.c:28:9:  [4] (tmpfile) mktemp:
  Temporary file race condition (CWE-377).
	(void) mktemp(sockname);
data/care-2.2.1/src/cli/care.c:214:9:  [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.
	home = getenv("HOME");
data/care-2.2.1/src/cli/care.c:215:9:  [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.
	pwd  = getenv("PWD");
data/care-2.2.1/src/cli/cli.c:128:26:  [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.
	if (status == -EPERM && getenv("PROOT_NO_SECCOMP") == NULL) {
data/care-2.2.1/src/cli/cli.c:542:11:  [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.
		return (getenv(&string[1]) ?: string);
data/care-2.2.1/src/cli/cli.c:552:13:  [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.
	expanded = getenv(expanded);
data/care-2.2.1/src/execve/elf.c:174:20:  [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.
		force_foreign = (getenv("PROOT_FORCE_FOREIGN_BINARY") != NULL);
data/care-2.2.1/src/execve/execve.c:193:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		no_subreconf = (int) (getenv("PROOT_NO_SUBRECONF") != NULL);
data/care-2.2.1/src/execve/ldso.c:277:31:  [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.
		initial_ldso_paths = strdup(getenv("LD_LIBRARY_PATH") ?: "/");
data/care-2.2.1/src/extension/kompat/kompat.c:890: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.
		if (status < 0 || getenv("PROOT_FORCE_KOMPAT") != NULL || release == NULL)
data/care-2.2.1/src/path/binding.c:335:31:  [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.
			if (tracee->verbose > 0 && getenv("PROOT_IGNORE_MISSING_BINDINGS") == NULL) {
data/care-2.2.1/src/path/binding.c:482: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.
		if (must_exist && getenv("PROOT_IGNORE_MISSING_BINDINGS") == NULL)
data/care-2.2.1/src/path/glue.c:151: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.
	if (getenv("PROOT_DONT_POLLUTE_ROOTFS") != NULL && !belongs_to_gluefs)
data/care-2.2.1/src/path/path.c:250:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	paths = paths ?: getenv("PATH");
data/care-2.2.1/src/path/path.c:318:13:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
		status = (realpath(path, host_path) == NULL ? -errno : 0);
data/care-2.2.1/src/tracee/event.c:88:7:  [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.
		if (getenv("PROOT_NO_SECCOMP") == NULL)
data/care-2.2.1/tests/ptrace-2.c:218:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	restart_how = (getenv("PTRACER_BEHAVIOR_1") == NULL
data/care-2.2.1/tests/ptrace-2.c:331:9:  [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.
				if (getenv("PTRACER_BEHAVIOR_2") == NULL)
data/care-2.2.1/tests/test-1c68c218.c:11:9:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
	path = tmpnam(NULL);
data/care-2.2.1/src/cli/care.c:201: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];
data/care-2.2.1/src/cli/cli.c:154:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char string[ARG_MAX] = "";
data/care-2.2.1/src/cli/cli.c:209: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 path2[PATH_MAX];
data/care-2.2.1/src/cli/cli.c:210: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];
data/care-2.2.1/src/cli/cli.c:263: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];
data/care-2.2.1/src/cli/proot.c:255: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];
data/care-2.2.1/src/execve/auxv.c:210: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_WRONLY);
data/care-2.2.1/src/execve/elf.c:55: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(t_path, O_RDONLY);
data/care-2.2.1/src/execve/elf.h:32: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 e_ident[EI_NIDENT];
data/care-2.2.1/src/execve/elf.h:49: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 e_ident[EI_NIDENT];
data/care-2.2.1/src/execve/execve.c:49:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int translate_n_check(Tracee *tracee, char t_path[PATH_MAX], const char *u_path)
data/care-2.2.1/src/execve/execve.c:79:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int expand_interp(Tracee *tracee, const char *u_path, char t_interp[PATH_MAX],
data/care-2.2.1/src/execve/execve.c:79:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int expand_interp(Tracee *tracee, const char *u_path, char t_interp[PATH_MAX],
data/care-2.2.1/src/execve/execve.c:80: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 u_interp[PATH_MAX], Array *argv, extract_interp_t callback,
data/care-2.2.1/src/execve/execve.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char argument[ARG_MAX];
data/care-2.2.1/src/execve/execve.c:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dummy_path[PATH_MAX];
data/care-2.2.1/src/execve/execve.c:86: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 dummy_arg[ARG_MAX];
data/care-2.2.1/src/execve/execve.c:186: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];
data/care-2.2.1/src/execve/execve.c:333: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 u_path[PATH_MAX];
data/care-2.2.1/src/execve/execve.c:334: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 t_interp[PATH_MAX];
data/care-2.2.1/src/execve/execve.c:335: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 u_interp[PATH_MAX];
data/care-2.2.1/src/execve/interp.c:47:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int extract_script_interp(const Tracee *tracee UNUSED, const char *t_path,
data/care-2.2.1/src/execve/interp.c:48: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 u_interp[PATH_MAX], char argument[ARG_MAX])
data/care-2.2.1/src/execve/interp.c:48:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char u_interp[PATH_MAX], char argument[ARG_MAX])
data/care-2.2.1/src/execve/interp.c:59: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(t_path, O_RDONLY);
data/care-2.2.1/src/execve/interp.c:186:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int extract_elf_interp(const Tracee *tracee, const char *t_path,
data/care-2.2.1/src/execve/interp.c:187: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.
		       char u_interp[PATH_MAX], char argument[ARG_MAX])
data/care-2.2.1/src/execve/interp.c:187:35:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		       char u_interp[PATH_MAX], char argument[ARG_MAX])
data/care-2.2.1/src/execve/interp.h:30:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef int (* extract_interp_t)(const Tracee *tracee, const char *t_path,
data/care-2.2.1/src/execve/interp.h:31: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 u_interp[PATH_MAX], char argument[ARG_MAX]);
data/care-2.2.1/src/execve/interp.h:31:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				 char u_interp[PATH_MAX], char argument[ARG_MAX]);
data/care-2.2.1/src/execve/interp.h:33:62:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int extract_script_interp(const Tracee *tracee, const char *t_path,
data/care-2.2.1/src/execve/interp.h:34: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 u_interp[PATH_MAX], char argument[ARG_MAX]);
data/care-2.2.1/src/execve/interp.h:34:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				 char u_interp[PATH_MAX], char argument[ARG_MAX]);
data/care-2.2.1/src/execve/interp.h:36:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int extract_elf_interp(const Tracee *tracee, const char *t_path,
data/care-2.2.1/src/execve/interp.h:37: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 u_interp[PATH_MAX], char argument[ARG_MAX]);
data/care-2.2.1/src/execve/interp.h:37:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				 char u_interp[PATH_MAX], char argument[ARG_MAX]);
data/care-2.2.1/src/execve/ldso.c:184:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int add_host_ldso_paths(char host_ldso_paths[ARG_MAX], const char *paths)
data/care-2.2.1/src/execve/ldso.c:240:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int rebuild_host_ldso_paths(Tracee *tracee, const char t_program[PATH_MAX], Array *envp)
data/care-2.2.1/src/execve/ldso.c:245:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char host_ldso_paths[ARG_MAX] = "";
data/care-2.2.1/src/execve/ldso.c:347: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(host_ldso_paths, "LD_LIBRARY_PATH=" , length1);
data/care-2.2.1/src/execve/ldso.h:33:58:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int rebuild_host_ldso_paths(Tracee *tracee, const char t_program[PATH_MAX], Array *envp);
data/care-2.2.1/src/extension/care/archive.c:212: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).
	input_fd = open("/proc/self/exe", O_RDONLY);
data/care-2.2.1/src/extension/care/archive.c:218:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	output_fd = open(destination, O_RDWR|O_CREAT|O_TRUNC, S_IRWXU|S_IRGRP|S_IXGRP);
data/care-2.2.1/src/extension/care/archive.c:376: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).
		archive->fd = open(output, O_RDWR|O_CREAT|O_TRUNC, S_IRUSR|S_IWUSR|S_IRGRP);
data/care-2.2.1/src/extension/care/archive.c:472: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 target[PATH_MAX];
data/care-2.2.1/src/extension/care/archive.c:503: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/care-2.2.1/src/extension/care/care.c:180:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[PATH_MAX];
data/care-2.2.1/src/extension/care/care.c:249: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];
data/care-2.2.1/src/extension/care/care.c:256: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(path, path_, length + 1);
data/care-2.2.1/src/extension/care/care.c:436: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 component[PATH_MAX];
data/care-2.2.1/src/extension/care/care.c:437: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];
data/care-2.2.1/src/extension/care/extract.c:108: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).
	data->fd = open(data->path, O_RDONLY);
data/care-2.2.1/src/extension/care/extract.h:32: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 signature[sizeof(AUTOEXTRACT_SIGNATURE)];
data/care-2.2.1/src/extension/care/final.c:71: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];
data/care-2.2.1/src/extension/care/final.c:124:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buffer[2] = { input[i], '\0' };
data/care-2.2.1/src/extension/care/final.c:363: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];
data/care-2.2.1/src/extension/fake_id0/fake_id0.c:661: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 path[PATH_MAX];
data/care-2.2.1/src/extension/fake_id0/fake_id0.c:811: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(extension->config, parent->config, sizeof(Config));
data/care-2.2.1/src/path/binding.c:120:61:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
Binding *get_binding(const Tracee *tracee, Side side, const char path[PATH_MAX])
data/care-2.2.1/src/path/binding.c:171:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *get_path_binding(const Tracee *tracee, Side side, const char path[PATH_MAX])
data/care-2.2.1/src/path/binding.c:171:69:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *get_path_binding(const Tracee *tracee, Side side, const char path[PATH_MAX])
data/care-2.2.1/src/path/binding.c:239:57:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int substitute_binding(const Tracee *tracee, Side side, char path[PATH_MAX])
data/care-2.2.1/src/path/binding.c:397: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.
			const char host_path[PATH_MAX],
data/care-2.2.1/src/path/binding.c:398: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.
			const char guest_path[PATH_MAX])
data/care-2.2.1/src/path/binding.c:460: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 base[PATH_MAX];
data/care-2.2.1/src/path/binding.c:532: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];
data/care-2.2.1/src/path/binding.c:605: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];
data/care-2.2.1/src/path/binding.c:625: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 path2[PATH_MAX];
data/care-2.2.1/src/path/binding.h:49: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.
				const char host_path[PATH_MAX], const char guest_path[PATH_MAX]);
data/care-2.2.1/src/path/binding.h:49:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				const char host_path[PATH_MAX], const char guest_path[PATH_MAX]);
data/care-2.2.1/src/path/binding.h:52:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *get_path_binding(const Tracee* tracee, Side side, const char path[PATH_MAX]);
data/care-2.2.1/src/path/binding.h:52:76:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char *get_path_binding(const Tracee* tracee, Side side, const char path[PATH_MAX]);
data/care-2.2.1/src/path/binding.h:53:68:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern Binding *get_binding(const Tracee *tracee, Side side, const char path[PATH_MAX]);
data/care-2.2.1/src/path/binding.h:55:64:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int substitute_binding(const Tracee* tracee, Side side, char path[PATH_MAX]);
data/care-2.2.1/src/path/canon.c:48: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.
					const char guest_path[PATH_MAX], char host_path[PATH_MAX])
data/care-2.2.1/src/path/canon.c:48:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					const char guest_path[PATH_MAX], char host_path[PATH_MAX])
data/care-2.2.1/src/path/canon.c:96:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int canonicalize(Tracee *tracee, const char *user_path, bool deref_final,
data/care-2.2.1/src/path/canon.c:97: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 guest_path[PATH_MAX], unsigned int recursion_level)
data/care-2.2.1/src/path/canon.c:99: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 scratch_path[PATH_MAX];
data/care-2.2.1/src/path/canon.c:130: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 component[NAME_MAX];
data/care-2.2.1/src/path/canon.c:131: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 host_path[PATH_MAX];
data/care-2.2.1/src/path/canon.h:31:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int canonicalize(Tracee *tracee, const char *user_path, bool deref_final,
data/care-2.2.1/src/path/canon.h:32: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 guest_path[PATH_MAX], unsigned int nb_recursion);
data/care-2.2.1/src/path/glue.c:112:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
mode_t build_glue(Tracee *tracee, const char *guest_path, char host_path[PATH_MAX],
data/care-2.2.1/src/path/glue.c:112:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
mode_t build_glue(Tracee *tracee, const char *guest_path, char host_path[PATH_MAX],
data/care-2.2.1/src/path/glue.h:31:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern mode_t build_glue(Tracee *tracee, const char *guest_path, char host_path[PATH_MAX],
data/care-2.2.1/src/path/glue.h:31:66:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern mode_t build_glue(Tracee *tracee, const char *guest_path, char host_path[PATH_MAX],
data/care-2.2.1/src/path/path.c:59:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
Finality next_component(char component[NAME_MAX], const char **cursor)
data/care-2.2.1/src/path/path.c:138:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int join_paths(int number_paths, char result[PATH_MAX], ...)
data/care-2.2.1/src/path/path.c:206:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int which(Tracee *tracee, const char *paths, char host_path[PATH_MAX], char *const command)
data/care-2.2.1/src/path/path.c:206:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int which(Tracee *tracee, const char *paths, char host_path[PATH_MAX], char *const command)
data/care-2.2.1/src/path/path.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 path[PATH_MAX];
data/care-2.2.1/src/path/path.c:292: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(path, "<unknown>");
data/care-2.2.1/src/path/path.c:313:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int realpath2(Tracee *tracee, char host_path[PATH_MAX], const char *path, bool deref_final)
data/care-2.2.1/src/path/path.c:332:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int getcwd2(Tracee *tracee, char guest_path[PATH_MAX])
data/care-2.2.1/src/path/path.c:374:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int readlink_proc_pid_fd(pid_t pid, int fd, char path[PATH_MAX])
data/care-2.2.1/src/path/path.c:376: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 link[32]; /* 32 > sizeof("/proc//cwd") + sizeof(#ULONG_MAX) */
data/care-2.2.1/src/path/path.c:405:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int translate_path(Tracee *tracee, char result[PATH_MAX], int dir_fd,
data/care-2.2.1/src/path/path.c:408: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 guest_path[PATH_MAX];
data/care-2.2.1/src/path/path.c:484:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int detranslate_path(Tracee *tracee, char path[PATH_MAX], const char t_referrer[PATH_MAX])
data/care-2.2.1/src/path/path.c:484:65:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int detranslate_path(Tracee *tracee, char path[PATH_MAX], const char t_referrer[PATH_MAX])
data/care-2.2.1/src/path/path.c:514: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 proc_path[PATH_MAX];
data/care-2.2.1/src/path/path.c:676:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef int (*foreach_fd_t)(const Tracee *tracee, int fd, char path[PATH_MAX]);
data/care-2.2.1/src/path/path.c:686: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];
data/care-2.2.1/src/path/path.c:687: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 proc_fd[32]; /* 32 > sizeof("/proc//fd") + sizeof(#ULONG_MAX) */
data/care-2.2.1/src/path/path.c:707: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[PATH_MAX];
data/care-2.2.1/src/path/path.c:724: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).
		status = callback(tracee, atoi(dirent->d_name), path);
data/care-2.2.1/src/path/path.c:738:64:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int list_open_fd_callback(const Tracee *tracee, int fd, char path[PATH_MAX])
data/care-2.2.1/src/path/path.c:761:31:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
size_t substitute_path_prefix(char path[PATH_MAX], size_t old_prefix_length,
data/care-2.2.1/src/path/path.c:795: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(path, new_prefix, new_prefix_length);
data/care-2.2.1/src/path/path.c:799: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(path, new_prefix, new_prefix_length);
data/care-2.2.1/src/path/path.c:813: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(path, new_prefix, new_prefix_length);
data/care-2.2.1/src/path/path.h:51: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];
data/care-2.2.1/src/path/path.h:74:40:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int which(Tracee *tracee, const char *paths, char host_path[PATH_MAX], char *const command);
data/care-2.2.1/src/path/path.h:74:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int which(Tracee *tracee, const char *paths, char host_path[PATH_MAX], char *const command);
data/care-2.2.1/src/path/path.h:75:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int realpath2(Tracee *tracee, char host_path[PATH_MAX], const char *path, bool deref_final);
data/care-2.2.1/src/path/path.h:76:36:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int getcwd2(Tracee *tracee, char guest_path[PATH_MAX]);
data/care-2.2.1/src/path/path.h:79:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int translate_path(Tracee *tracee, char host_path[PATH_MAX],
data/care-2.2.1/src/path/path.h:82:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int detranslate_path(Tracee *tracee, char path[PATH_MAX], const char t_referrer[PATH_MAX]);
data/care-2.2.1/src/path/path.h:82:72:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int detranslate_path(Tracee *tracee, char path[PATH_MAX], const char t_referrer[PATH_MAX]);
data/care-2.2.1/src/path/path.h:85:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int join_paths(int number_paths, char result[PATH_MAX], ...);
data/care-2.2.1/src/path/path.h:86:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern Finality next_component(char component[NAME_MAX], const char **cursor);
data/care-2.2.1/src/path/path.h:93:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern size_t substitute_path_prefix(char path[PATH_MAX], size_t old_prefix_length,
data/care-2.2.1/src/path/path.h:96:52:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int readlink_proc_pid_fd(pid_t pid, int fd, char path[PATH_MAX]);
data/care-2.2.1/src/path/proc.c:43:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
Action readlink_proc(const Tracee *tracee, char result[PATH_MAX],
data/care-2.2.1/src/path/proc.c:44: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.
			const char base[PATH_MAX], const char component[NAME_MAX],
data/care-2.2.1/src/path/proc.c:44:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			const char base[PATH_MAX], const char component[NAME_MAX],
data/care-2.2.1/src/path/proc.c:48: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 proc_path[64]; /* 64 > sizeof("/proc//fd/") + 2 * sizeof(#ULONG_MAX) */
data/care-2.2.1/src/path/proc.c:76:8:  [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 = atoi(base + strlen("/proc/"));
data/care-2.2.1/src/path/proc.c:167:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
ssize_t readlink_proc2(const Tracee *tracee, char result[PATH_MAX], const char referer[PATH_MAX])
data/care-2.2.1/src/path/proc.c:167:75:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
ssize_t readlink_proc2(const Tracee *tracee, char result[PATH_MAX], const char referer[PATH_MAX])
data/care-2.2.1/src/path/proc.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 base[PATH_MAX];
data/care-2.2.1/src/path/proc.h:39:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern Action readlink_proc(const Tracee *tracee, char result[PATH_MAX], const char path[PATH_MAX],
data/care-2.2.1/src/path/proc.h:39:80:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern Action readlink_proc(const Tracee *tracee, char result[PATH_MAX], const char path[PATH_MAX],
data/care-2.2.1/src/path/proc.h:40: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.
			const char component[NAME_MAX],	Comparison comparison);
data/care-2.2.1/src/path/proc.h:42:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern ssize_t readlink_proc2(const Tracee *tracee, char result[PATH_MAX], const char path[PATH_MAX]);
data/care-2.2.1/src/path/proc.h:42:82:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern ssize_t readlink_proc2(const Tracee *tracee, char result[PATH_MAX], const char path[PATH_MAX]);
data/care-2.2.1/src/path/temp.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prefix[length_tmpdir];
data/care-2.2.1/src/path/temp.c:270:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(name);
data/care-2.2.1/src/path/temp.c:296:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(name);
data/care-2.2.1/src/ptrace/ptrace.c:343: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(&regs64, &buffer.regs, sizeof(struct user_regs_struct));
data/care-2.2.1/src/ptrace/ptrace.c:402: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(&fpregs64, &buffer.fpregs, sizeof(struct user_fpregs_struct));
data/care-2.2.1/src/syscall/enter.c:53:56:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 int translate_path2(Tracee *tracee, int dir_fd, char path[PATH_MAX], Reg reg, Type type)
data/care-2.2.1/src/syscall/enter.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char new_path[PATH_MAX];
data/care-2.2.1/src/syscall/enter.c:75: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_path[PATH_MAX];
data/care-2.2.1/src/syscall/enter.c:102: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];
data/care-2.2.1/src/syscall/enter.c:103: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 oldpath[PATH_MAX];
data/care-2.2.1/src/syscall/enter.c:104: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 newpath[PATH_MAX];
data/care-2.2.1/src/syscall/exit.c:82: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 path[PATH_MAX];
data/care-2.2.1/src/syscall/exit.c:234:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char old_path[PATH_MAX];
data/care-2.2.1/src/syscall/exit.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 new_path[PATH_MAX];
data/care-2.2.1/src/syscall/exit.c:311: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 referee[PATH_MAX];
data/care-2.2.1/src/syscall/exit.c:312:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char referer[PATH_MAX];
data/care-2.2.1/src/syscall/seccomp.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(&program->filter[length], &statements[i], sizeof(struct sock_filter));
data/care-2.2.1/src/syscall/socket.c:58: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], word_t address, int size)
data/care-2.2.1/src/syscall/socket.c:97: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 user_path[PATH_MAX];
data/care-2.2.1/src/syscall/socket.c:98: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 host_path[PATH_MAX];
data/care-2.2.1/src/syscall/socket.c:172:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/care-2.2.1/src/syscall/syscall.c:41:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int get_sysarg_path(const Tracee *tracee, char path[PATH_MAX], Reg reg)
data/care-2.2.1/src/syscall/syscall.c:97:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int set_sysarg_path(Tracee *tracee, char path[PATH_MAX], Reg reg)
data/care-2.2.1/src/syscall/syscall.h:31:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int get_sysarg_path(const Tracee *tracee, char path[PATH_MAX], Reg reg);
data/care-2.2.1/src/syscall/syscall.h:32:44:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern int set_sysarg_path(Tracee *tracee, char path[PATH_MAX], Reg reg);
data/care-2.2.1/src/tracee/array.c:101: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[ARG_MAX];
data/care-2.2.1/src/tracee/event.c:213: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];
data/care-2.2.1/src/tracee/mem.c:54: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, address, sizeof(word_t));
data/care-2.2.1/src/tracee/mem.c:72: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(address, &value, sizeof(word_t));
data/care-2.2.1/src/tracee/mem.h:51:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 inline int read_path(const Tracee *tracee, char dest_tracer[PATH_MAX], word_t src_tracee)
data/care-2.2.1/src/tracee/reg.c:224: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(&tracee->_regs[version], &tracee->_regs[CURRENT], sizeof(tracee->_regs[CURRENT]));
data/care-2.2.1/tests/cat.c:16: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[1024];
data/care-2.2.1/tests/cat.c:18:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(argv[i], O_RDONLY);
data/care-2.2.1/tests/chdir_getcwd.c:12: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];
data/care-2.2.1/tests/fchdir_getcwd.c:12: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];
data/care-2.2.1/tests/fchdir_getcwd.c:21: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(argv[1], O_DIRECTORY);
data/care-2.2.1/tests/ptrace.c:15:30:  [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 = (argc <= 1 ? fork() : vfork());
data/care-2.2.1/tests/pwd.c:10: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];
data/care-2.2.1/tests/readlink.c:9: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];
data/care-2.2.1/tests/test-16573e73.c:14:21:  [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 = (argc <= 1 ? vfork() : fork());
data/care-2.2.1/tests/test-305ae31d.c:14:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[64]; /* 64 > sizeof("/proc//fd/") + 2 * sizeof(#ULONG_MAX) */
data/care-2.2.1/tests/test-305ae31d.c:17: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).
	fd_dir = open("/bin", O_RDONLY);
data/care-2.2.1/tests/test-305ae31d.c:21: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).
	fd_file = open("/bin/true", O_RDONLY);
data/care-2.2.1/tests/test-305ae31d.c:29: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/care-2.2.1/tests/test-305ae31d.c:38: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/care-2.2.1/tests/test-305ae31d.c:47: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/care-2.2.1/tests/test-305ae31d.c:55: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/care-2.2.1/tests/test-44444444.c:8: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 buffer[2 * PATH_MAX];
data/care-2.2.1/tests/test-51943658.c:13: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 path1[PATH_MAX];
data/care-2.2.1/tests/test-51943658.c:14:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path2[PATH_MAX];
data/care-2.2.1/tests/test-51943658.c:15: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 fd_link[64];
data/care-2.2.1/tests/test-51943658.c:19: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).
	dir_fd = open("/", O_RDONLY);
data/care-2.2.1/tests/test-51943658.c:37:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(fd_link, "/proc/self/fd/%d", dir_fd1);
data/care-2.2.1/tests/test-51943658.c:45:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(fd_link, "/proc/self/fd/%d", dir_fd2);
data/care-2.2.1/tests/test-5bed7141.c:26: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];
data/care-2.2.1/tests/test-88888888.c:13: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("/bin/true", O_RDONLY);
data/care-2.2.1/tests/test-88888888.c:20: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("/bin/true/", O_RDONLY);
data/care-2.2.1/tests/test-88888888.c:27: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("/bin/true/.", O_RDONLY);
data/care-2.2.1/tests/test-88888888.c:34: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("/bin/true/..", O_RDONLY);
data/care-2.2.1/tests/test-88888888.c:41: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("/6a05942f08d5a72de56483487963deec", O_RDONLY);
data/care-2.2.1/tests/test-88888888.c:48: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("/6a05942f08d5a72de56483487963deec/", O_RDONLY);
data/care-2.2.1/tests/test-88888888.c:55: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("/6a05942f08d5a72de56483487963deec/.", O_RDONLY);
data/care-2.2.1/tests/test-88888888.c:64: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("/6a05942f08d5a72de56483487963deec/..", O_RDONLY);
data/care-2.2.1/tests/test-a3e68988.c:86: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("/proc/self/auxv", O_RDONLY);
data/care-2.2.1/tests/test-af062114.c:13: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("/proc/self/cmdline", O_RDONLY);
data/care-2.2.1/tests/test-c10e2073.c:10: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];
data/care-2.2.1/tests/test-d2175fc4.c:10: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];
data/care-2.2.1/tests/test-xxxxxxxx.c:24:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(tmp_name);
data/care-2.2.1/src/cli/cli.c:162:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ssize_t length = sizeof(string) - (strlen(string) + strlen(post)); \
data/care-2.2.1/src/cli/cli.c:162:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		ssize_t length = sizeof(string) - (strlen(string) + strlen(post)); \
data/care-2.2.1/src/cli/cli.c:165:3:  [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(string, post, length);				\
data/care-2.2.1/src/cli/cli.c:222:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(path, "/");
data/care-2.2.1/src/cli/cli.c:234:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(path, "/");
data/care-2.2.1/src/cli/cli.c:241:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(path, "/");
data/care-2.2.1/src/cli/cli.c:322: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).
		if (strncasecmp(basename(argv[0]), "care", strlen("care")) == 0)
data/care-2.2.1/src/cli/cli.c:366: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).
				length = strlen(argument->name);
data/care-2.2.1/src/cli/cli.c:371: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).
				if (strlen(arg) > length
data/care-2.2.1/src/cli/cli.c:387: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).
					assert(strlen(arg) >= length);
data/care-2.2.1/src/cli/cli.c:579:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fprintf(stderr, "%*s from %s\n", (int) strlen(symbols[0]) + indent_level, symbols[0], symbols[1]);
data/care-2.2.1/src/execve/elf.c:60:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	status = read(fd, elf_header, sizeof(ElfHeader));
data/care-2.2.1/src/execve/elf.c:137:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = read(fd, program_header, elf_phentsize);
data/care-2.2.1/src/execve/elf.c:224:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = read(fd, paths + length, 1024);
data/care-2.2.1/src/execve/elf.c:240: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).
		length += strlen(*xpaths);
data/care-2.2.1/src/execve/elf.c:248: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(*xpaths, ":");
data/care-2.2.1/src/execve/elf.c:305:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = read(fd, &dynamic_entry, sizeof_dynamic_entry);		\
data/care-2.2.1/src/execve/interp.c:63:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	status = read(fd, u_interp, 2 * sizeof(char));
data/care-2.2.1/src/execve/interp.c:81:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = read(fd, &tmp, sizeof(char));
data/care-2.2.1/src/execve/interp.c:120:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = read(fd, &tmp, sizeof(char));
data/care-2.2.1/src/execve/interp.c:157:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = read(fd, &tmp, sizeof(char));
data/care-2.2.1/src/execve/interp.c:222: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).
		extra_size = strlen(HOST_ROOTFS);
data/care-2.2.1/src/execve/ldso.c:43: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(name);
data/care-2.2.1/src/execve/ldso.c:46: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).
		&& length < strlen(variable)
data/care-2.2.1/src/execve/ldso.c:189: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).
	cursor1 = host_ldso_paths + strlen(host_ldso_paths);
data/care-2.2.1/src/execve/ldso.c:201: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).
			length1 += strlen(HOST_ROOTFS);
data/care-2.2.1/src/execve/ldso.c:208:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(cursor1, ":");
data/care-2.2.1/src/execve/ldso.c:220: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).
			cursor1 += strlen(HOST_ROOTFS);
data/care-2.2.1/src/execve/ldso.c:223:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(cursor1, cursor2, length2);
data/care-2.2.1/src/execve/ldso.c:341: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).
	length1 = strlen("LD_LIBRARY_PATH=");
data/care-2.2.1/src/execve/ldso.c:342: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).
	length2 = strlen(host_ldso_paths);
data/care-2.2.1/src/extension/care/archive.c:56: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).
	length = strlen(suffix);
data/care-2.2.1/src/extension/care/archive.c:80: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).
	cursor = string + strlen(string);
data/care-2.2.1/src/extension/care/archive.c:197:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	*suffix_length = strlen(cursor);
data/care-2.2.1/src/extension/care/archive.c:229:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = read(input_fd, buffer, sizeof(buffer));
data/care-2.2.1/src/extension/care/archive.c:382:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		status = write(archive->fd, "RAW", strlen("RAW"));
data/care-2.2.1/src/extension/care/archive.c:383: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).
		if (status != strlen("RAW")) {
data/care-2.2.1/src/extension/care/archive.c:515:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = read(fd, buffer, sizeof(buffer));
data/care-2.2.1/src/extension/care/care.c:167:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (cursor == NULL || strlen(cursor) == 1)
data/care-2.2.1/src/extension/care/care.c:172: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).
	care->prefix = talloc_strndup(care, cursor, strlen(cursor) - suffix_length);
data/care-2.2.1/src/extension/care/care.c:185:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(path, "/");
data/care-2.2.1/src/extension/care/care.c:253: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).
	length = strlen(path_);
data/care-2.2.1/src/extension/care/care.c:330:52:  [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).
		HASH_ADD_KEYPTR(hh, care->dentries, entry->path, strlen(entry->path), entry);
data/care-2.2.1/src/extension/care/care.c:332:51:  [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).
		HASH_ADD_KEYPTR(hh, care->entries, entry->path, strlen(entry->path), entry);
data/care-2.2.1/src/extension/care/care.c:497:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(path, "/");
data/care-2.2.1/src/extension/care/extract.c:131:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	status = read(data->fd, &info, sizeof(AutoExtractInfo));
data/care-2.2.1/src/extension/care/extract.c:187:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size = read(data->fd, data->buffer, sizeof(data->buffer));
data/care-2.2.1/src/extension/care/final.c:122: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).
	length = strlen(input);
data/care-2.2.1/src/extension/care/final.c:446:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (care->archive->offset == strlen("RAW"))
data/care-2.2.1/src/extension/care/final.c:451:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	else if (care->output[strlen(care->output) - 1] != '/')
data/care-2.2.1/src/extension/kompat/kompat.c:721:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(utsname.release, config->release, size);
data/care-2.2.1/src/path/binding.c:123:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t path_length = strlen(path);
data/care-2.2.1/src/path/binding.c:409:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	binding->host.length = strlen(binding->host.path);
data/care-2.2.1/src/path/binding.c:410:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	binding->guest.length = strlen(binding->guest.path);
data/care-2.2.1/src/path/binding.c:487:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	binding->host.length = strlen(binding->host.path);
data/care-2.2.1/src/path/binding.c:503:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(base, "/");
data/care-2.2.1/src/path/binding.c:511:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	binding->guest.length = strlen(binding->guest.path);
data/care-2.2.1/src/path/binding.c:543: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).
		length = strlen(path);
data/care-2.2.1/src/path/binding.c:553:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(binding->guest.path, "/");
data/care-2.2.1/src/path/binding.c:581:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	binding->guest.length = strlen(binding->guest.path);
data/care-2.2.1/src/path/binding.c:644:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		prefix_length = strlen(path);
data/care-2.2.1/src/path/binding.c:663: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).
		induced_binding->host.length = strlen(induced_binding->host.path);
data/care-2.2.1/src/path/binding.c:664:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		induced_binding->guest.length = strlen(induced_binding->guest.path);
data/care-2.2.1/src/path/canon.c:123:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(guest_path, "/");
data/care-2.2.1/src/path/path.c:83:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(component, start, length);
data/care-2.2.1/src/path/path.c:111: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).
	offset = strlen(path) - 1;
data/care-2.2.1/src/path/path.c:159: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).
		path_length = strlen(path);
data/care-2.2.1/src/path/path.c:168:4:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
			strcat(result + length, "/");
data/care-2.2.1/src/path/path.c:264:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(path, ".");
data/care-2.2.1/src/path/path.c:266:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(path, cursor - length - 1, length);
data/care-2.2.1/src/path/path.c:271: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).
		if (length + strlen(command) + 2 >= PATH_MAX)
data/care-2.2.1/src/path/path.c:274: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(path, "/");
data/care-2.2.1/src/path/path.c:339: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(tracee->fs->cwd) >= PATH_MAX)
data/care-2.2.1/src/path/path.c:353: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(path);
data/care-2.2.1/src/path/path.c:413:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(result, "/");
data/care-2.2.1/src/path/path.c:457:2:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
	strcpy(result, "/");
data/care-2.2.1/src/path/path.c:561: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).
			return strlen(path) + 1;
data/care-2.2.1/src/path/path.c:570:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		prefix_length = strlen(get_root(tracee));
data/care-2.2.1/src/path/path.c:576: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).
		new_length = strlen(path) - prefix_length;
data/care-2.2.1/src/path/path.c:585:3:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
		strcpy(path, "/");
data/care-2.2.1/src/path/path.c:673: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).
	return compare_paths2(path1, strlen(path1), path2, strlen(path2));
data/care-2.2.1/src/path/path.c:673:53:  [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 compare_paths2(path1, strlen(path1), path2, strlen(path2));
data/care-2.2.1/src/path/path.c:708: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(proc_fd) + strlen(dirent->d_name) + 1 >= PATH_MAX)
data/care-2.2.1/src/path/path.c:708:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (strlen(proc_fd) + strlen(dirent->d_name) + 1 >= PATH_MAX)
data/care-2.2.1/src/path/path.c:712: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(tmp, "/");
data/care-2.2.1/src/path/path.c:767: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).
	path_length = strlen(path);
data/care-2.2.1/src/path/proc.c:76: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).
	pid = atoi(base + strlen("/proc/"));
data/care-2.2.1/src/path/proc.c:97: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).
			status = strlen(string);		\
data/care-2.2.1/src/path/proc.c:101:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(result, string, status + 1);	\
data/care-2.2.1/src/path/proc.c:194:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return (action == CANONICALIZE ? strlen(result) : 0);
data/care-2.2.1/src/path/temp.c:25: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 size_t length_tmpdir = strlen(P_tmpdir);
data/care-2.2.1/src/syscall/enter.c:170:4:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
			strcpy(oldpath, ".");
data/care-2.2.1/src/syscall/exit.c:98: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).
		new_size = strlen(tracee->fs->cwd) + 1;
data/care-2.2.1/src/syscall/exit.c:265:53:  [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).
		old_length = (status > 0 ? status - 1 : (ssize_t) strlen(old_path));
data/care-2.2.1/src/syscall/exit.c:284:53:  [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).
		new_length = (status > 0 ? status - 1 : (ssize_t) strlen(new_path));
data/care-2.2.1/src/syscall/exit.c:287: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(tracee->fs->cwd) >= PATH_MAX) {
data/care-2.2.1/src/syscall/exit.c:415: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(utsname.machine, "i686", size);
data/care-2.2.1/src/syscall/socket.c:80:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(path, sockaddr->sun_path, sizeof_path);
data/care-2.2.1/src/syscall/socket.c:113:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(host_path) > sizeof_path) {
data/care-2.2.1/src/syscall/socket.c:120:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (shorter_host_path == NULL || strlen(shorter_host_path) > sizeof_path)
data/care-2.2.1/src/syscall/socket.c:125: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(shorter_host_path) > sizeof_path)
data/care-2.2.1/src/syscall/socket.c:147:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sockaddr.sun_path, host_path, sizeof_path);
data/care-2.2.1/src/syscall/socket.c:193:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = offsetof_path + strlen(path) + 1;
data/care-2.2.1/src/syscall/socket.c:198:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(sockaddr.sun_path, path, sizeof_path);
data/care-2.2.1/src/syscall/syscall.c:99: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).
	return set_sysarg_data(tracee, path, strlen(path) + 1, reg);
data/care-2.2.1/src/tracee/array.c:152: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(value) + 1;
data/care-2.2.1/tests/cat.c:24:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while ((status = read(fd, buffer, sizeof(buffer))) > 0 && write(1, buffer, status) == status)
data/care-2.2.1/tests/test-1ffc8309.c:23:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	(void) read(fds[0], &buffer, 1);
data/care-2.2.1/tests/test-5bed7143.c:54:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (cwd == NULL || memcmp(cwd, path2, strlen(path2)) != 0)
data/care-2.2.1/tests/test-a3e68988.c:97:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = read(fd, data + size, CHUNK_SIZE);
data/care-2.2.1/tests/test-af062114.c:21:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		status = read(fd, &buffer, 1);
data/care-2.2.1/tests/test-c10e2073.c:20: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).
	if (status != strlen(path)) {
data/care-2.2.1/tests/test-c10e2073.c:21:77:  [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).
		fprintf(stderr, "readlink() returned the wrong size %d != %z.\n", status, strlen(path));
data/care-2.2.1/tests/test-c10e2073.c:31: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).
	if (status != strlen(path) + 1) {
data/care-2.2.1/tests/test-c10e2073.c:32:75:  [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).
		fprintf(stderr, "getcwd() returned the wrong size %d != %z.\n", status, strlen(path));
data/care-2.2.1/tests/test-nnnnnnnn.c:37:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(S_IXUSR|S_IXGRP|S_IRWXO);
data/care-2.2.1/tests/test-nnnnnnnn.c:43:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/care-2.2.1/tests/test-ssssssss.c:41: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).
	assert(strlen(sockname) == sizeof(sockaddr.sun_path));

ANALYSIS SUMMARY:

Hits = 409
Lines analyzed = 23250 in approximately 0.62 seconds (37402 lines/second)
Physical Source Lines of Code (SLOC) = 15397
Hits@level = [0] 117 [1] 118 [2] 206 [3]  18 [4]  51 [5]  16
Hits@level+ = [0+] 526 [1+] 409 [2+] 291 [3+]  85 [4+]  67 [5+]  16
Hits/KSLOC@level+ = [0+] 34.1625 [1+] 26.5636 [2+] 18.8998 [3+] 5.52056 [4+] 4.3515 [5+] 1.03916
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.