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/crun-0.15.1+dfsg/python/crun_python.c
Examining data/crun-0.15.1+dfsg/src/libcrun/utils.c
Examining data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c
Examining data/crun-0.15.1+dfsg/src/libcrun/container.c
Examining data/crun-0.15.1+dfsg/src/libcrun/cgroup.c
Examining data/crun-0.15.1+dfsg/src/libcrun/criu.c
Examining data/crun-0.15.1+dfsg/src/libcrun/linux.c
Examining data/crun-0.15.1+dfsg/src/libcrun/seccomp.c
Examining data/crun-0.15.1+dfsg/src/libcrun/ebpf.c
Examining data/crun-0.15.1+dfsg/src/libcrun/error.c
Examining data/crun-0.15.1+dfsg/src/libcrun/status.c
Examining data/crun-0.15.1+dfsg/src/libcrun/terminal.c
Examining data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c
Examining data/crun-0.15.1+dfsg/src/libcrun/signals.c
Examining data/crun-0.15.1+dfsg/src/libcrun/seccomp_notify.c
Examining data/crun-0.15.1+dfsg/src/libcrun/seccomp_notify.h
Examining data/crun-0.15.1+dfsg/src/libcrun/seccomp_notify_plugin.h
Examining data/crun-0.15.1+dfsg/src/libcrun/container.h
Examining data/crun-0.15.1+dfsg/src/libcrun/seccomp.h
Examining data/crun-0.15.1+dfsg/src/libcrun/ebpf.h
Examining data/crun-0.15.1+dfsg/src/libcrun/cgroup.h
Examining data/crun-0.15.1+dfsg/src/libcrun/linux.h
Examining data/crun-0.15.1+dfsg/src/libcrun/utils.h
Examining data/crun-0.15.1+dfsg/src/libcrun/error.h
Examining data/crun-0.15.1+dfsg/src/libcrun/criu.h
Examining data/crun-0.15.1+dfsg/src/libcrun/status.h
Examining data/crun-0.15.1+dfsg/src/libcrun/terminal.h
Examining data/crun-0.15.1+dfsg/src/libcrun/intprops.h
Examining data/crun-0.15.1+dfsg/src/crun.c
Examining data/crun-0.15.1+dfsg/src/run.c
Examining data/crun-0.15.1+dfsg/src/delete.c
Examining data/crun-0.15.1+dfsg/src/kill.c
Examining data/crun-0.15.1+dfsg/src/pause.c
Examining data/crun-0.15.1+dfsg/src/unpause.c
Examining data/crun-0.15.1+dfsg/src/spec.c
Examining data/crun-0.15.1+dfsg/src/exec.c
Examining data/crun-0.15.1+dfsg/src/list.c
Examining data/crun-0.15.1+dfsg/src/create.c
Examining data/crun-0.15.1+dfsg/src/start.c
Examining data/crun-0.15.1+dfsg/src/state.c
Examining data/crun-0.15.1+dfsg/src/update.c
Examining data/crun-0.15.1+dfsg/src/ps.c
Examining data/crun-0.15.1+dfsg/src/checkpoint.c
Examining data/crun-0.15.1+dfsg/src/restore.c
Examining data/crun-0.15.1+dfsg/src/crun.h
Examining data/crun-0.15.1+dfsg/src/list.h
Examining data/crun-0.15.1+dfsg/src/run.h
Examining data/crun-0.15.1+dfsg/src/delete.h
Examining data/crun-0.15.1+dfsg/src/kill.h
Examining data/crun-0.15.1+dfsg/src/pause.h
Examining data/crun-0.15.1+dfsg/src/unpause.h
Examining data/crun-0.15.1+dfsg/src/create.h
Examining data/crun-0.15.1+dfsg/src/start.h
Examining data/crun-0.15.1+dfsg/src/state.h
Examining data/crun-0.15.1+dfsg/src/exec.h
Examining data/crun-0.15.1+dfsg/src/spec.h
Examining data/crun-0.15.1+dfsg/src/update.h
Examining data/crun-0.15.1+dfsg/src/ps.h
Examining data/crun-0.15.1+dfsg/src/checkpoint.h
Examining data/crun-0.15.1+dfsg/src/restore.h
Examining data/crun-0.15.1+dfsg/tests/init.c
Examining data/crun-0.15.1+dfsg/tests/tests_libcrun_errors.c
Examining data/crun-0.15.1+dfsg/tests/tests_libcrun_utils.c
Examining data/crun-0.15.1+dfsg/git-version.h
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_content_descriptor.c
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_defs.c
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_defs_descriptor.c
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_layout_schema.c
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_manifest_schema.c
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_vm.c
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_windows.c
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs.c
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_vm.c
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_windows.c
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_state_schema.c
Examining data/crun-0.15.1+dfsg/libocispec/src/image_manifest_items_image_manifest_items_schema.c
Examining data/crun-0.15.1+dfsg/libocispec/src/json_common.c
Examining data/crun-0.15.1+dfsg/libocispec/src/read-file.c
Examining data/crun-0.15.1+dfsg/libocispec/src/validate.c
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.h
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_content_descriptor.h
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_defs.h
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_defs_descriptor.h
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.h
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_layout_schema.h
Examining data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_manifest_schema.h
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.h
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.h
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.h
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_vm.h
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_windows.h
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs.h
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.h
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_vm.h
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_windows.h
Examining data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_state_schema.h
Examining data/crun-0.15.1+dfsg/libocispec/src/image_manifest_items_image_manifest_items_schema.h
Examining data/crun-0.15.1+dfsg/libocispec/src/json_common.h
Examining data/crun-0.15.1+dfsg/libocispec/src/read-file.h
Examining data/crun-0.15.1+dfsg/libocispec/tests/test-1.c
Examining data/crun-0.15.1+dfsg/libocispec/tests/test-2.c
Examining data/crun-0.15.1+dfsg/libocispec/tests/test-3.c
Examining data/crun-0.15.1+dfsg/libocispec/tests/test-4.c
Examining data/crun-0.15.1+dfsg/libocispec/tests/test-5.c
Examining data/crun-0.15.1+dfsg/libocispec/tests/test-6.c
Examining data/crun-0.15.1+dfsg/libocispec/tests/test-7.c
Examining data/crun-0.15.1+dfsg/libocispec/tests/test-8.c
Examining data/crun-0.15.1+dfsg/libocispec/tests/test-9.c

FINAL RESULTS:

data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:134:7:  [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.
		n = readlink(got_path, link_path, PATH_MAX - 1);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1033:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
          ret = chmod (fd_buffer, device->mode);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1037:17:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
          ret = chown (fd_buffer, device->uid, device->gid);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1084:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
          ret = chmod (fd_buffer, device->mode);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1088:17:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
          ret = chown (fd_buffer, device->uid, device->gid);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1579:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
  if (UNLIKELY (chmod (host_path, 0777) < 0))
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2597:13:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
      ret = chown (*pty, container->container_def->process->user->uid, -1);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2632:13:  [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.
      ret = readlink (fd_path, link_path, PATH_MAX - 1);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:296:29:  [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.
  ret = TEMP_FAILURE_RETRY (readlink (fdpath, link, sizeof (link)));
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1846:21:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
              ret = chmod (proc_path, mode & ALLPERMS);
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:1756:16:  [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.
    free (ptr->access);
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:1821:68:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if ((ctx->options & OPT_GEN_KEY_VALUE) || (ptr != NULL && ptr->access != NULL))
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:1827:33:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (ptr != NULL && ptr->access != NULL)
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:1828:24:  [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.
            str = ptr->access;
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.h:176: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.
    char *access;
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:687:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (subsystem_path, "/sys/fs/cgroup/%s", subsystems[i]);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1971:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      len = sprintf (fmt_buf, "%" PRIu64 ":%" PRIu64 " %s=%lu\n", throttling[i]->major, throttling[i]->minor, name,
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1998:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      len = sprintf (fmt_buf, "%" PRIu32, val);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2150:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          len = sprintf (fmt_buf, "%s %d\n", net->priorities[i]->name, net->priorities[i]->priority);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2227:36:  [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.
                          devs[i]->access);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2257:17:  [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.
    const char *access;
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2273:69:  [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.
      program = bpf_program_append_dev (program, default_devices[i].access, default_devices[i].type,
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2290:59:  [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.
      program = bpf_program_append_dev (program, devs[i]->access, type, major, minor, devs[i]->allow, err);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2599:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        len = sprintf (fmt_buf, "max %" PRIi64, period);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2601:15:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        len = sprintf (fmt_buf, "%" PRIi64 " %" PRIi64, quota, period);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2878:48:  [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.
          rwm = is_rwm (resources->devices[i]->access, err);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:66: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(resolved_path, path);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:78: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(copy_path, path);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:83: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(new_path, chroot);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:138:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf (resolved_path, "%s%s%s", got_path, path[0] == '/' || path[0] == '\0' ? "" : "/", path);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:145: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(resolved_path, got_path);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:165: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(link_path, path);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:166: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(copy_path, link_path);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:178: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(resolved_path, got_path);
data/crun-0.15.1+dfsg/src/libcrun/container.c:1055:3:  [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.
  execv (exec_path, def->process->args);
data/crun-0.15.1+dfsg/src/libcrun/container.c:2700:7:  [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.
      execv (exec_path, process->args);
data/crun-0.15.1+dfsg/src/libcrun/container.c:2840:10:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  return fprintf (out, spec_file, root ? spec_pts_tty_group : "\n", root ? "" : spec_user);
data/crun-0.15.1+dfsg/src/libcrun/ebpf.c:142:66:  [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.
bpf_program_append_dev (struct bpf_program *program, const char *access, char type, int major, int minor, bool accept,
data/crun-0.15.1+dfsg/src/libcrun/ebpf.c:162:15:  [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.
  for (i = 0; access[i]; i++)
data/crun-0.15.1+dfsg/src/libcrun/ebpf.c:164:15:  [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.
      switch (access[i])
data/crun-0.15.1+dfsg/src/libcrun/ebpf.h:36:86:  [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.
struct bpf_program *bpf_program_append_dev (struct bpf_program *program, const char *access, char type, int major,
data/crun-0.15.1+dfsg/src/libcrun/error.h:31:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf (stderr, "crun: " fmt, ##__VA_ARGS__);    \
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2183:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          len = sprintf (buffer, MAPPING_FMT_SIZE, def->linux->uid_mappings[s]->container_id,
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2212:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          len = sprintf (buffer, MAPPING_FMT_SIZE, def->linux->gid_mappings[s]->container_id,
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2239:32:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          single_mapping_len = sprintf (single_mapping, MAPPING_FMT_1, container->container_gid, container->host_gid);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2267:32:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
          single_mapping_len = sprintf (single_mapping, MAPPING_FMT_1, container->container_uid, container->host_uid);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:73:13:  [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.
  int ret = access (path, F_OK);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:820: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 (addr.sun_path, path);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:843: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 (addr.sun_path, path);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1048: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 (args[0], args);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1449:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (out, "%s.%09ldZ", timestamp, tv.tv_usec);
data/crun-0.15.1+dfsg/src/spec.c:87:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  ret = access ("config.json", F_OK);
data/crun-0.15.1+dfsg/tests/init.c:38:9:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        fprintf (stderr, "crun: " fmt, ##__VA_ARGS__);                  \
data/crun-0.15.1+dfsg/tests/init.c:200:7:  [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.
      printf (isatty (fd) ? "true" : "false");
data/crun-0.15.1+dfsg/src/create.c:132:33:  [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.
          config_file_cleanup = realpath (config_file, NULL);
data/crun-0.15.1+dfsg/src/create.c:145:28:  [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.
          bundle_cleanup = realpath (bundle, NULL);
data/crun-0.15.1+dfsg/src/create.c:164: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 ("LISTEN_FDS"))
data/crun-0.15.1+dfsg/src/create.c:165:43:  [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.
    crun_context.preserve_fds += strtoll (getenv ("LISTEN_FDS"), NULL, 10);
data/crun-0.15.1+dfsg/src/crun.c:63:24:  [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.
  con->notify_socket = getenv ("NOTIFY_SOCKET");
data/crun-0.15.1+dfsg/src/exec.c:224: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 ("LISTEN_FDS"))
data/crun-0.15.1+dfsg/src/exec.c:225:43:  [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.
    crun_context.preserve_fds += strtoll (getenv ("LISTEN_FDS"), NULL, 10);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:50:35:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
char *chroot_realpath(const char *chroot, const char *path, char resolved_path[])
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:65:25:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	    (*chroot == '/' && chroot[1] == '\0')) {
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:70:22:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	chroot_len = strlen(chroot);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:83:19:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	strcpy(new_path, chroot);
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:135: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(CLONED_BINARY_ENV)) {
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:269: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.
	char *prefix = getenv("_LIBCONTAINER_STATEDIR");
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:372: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.
	char *prefix = getenv("_LIBCONTAINER_STATEDIR");
data/crun-0.15.1+dfsg/src/libcrun/container.c:722:16:  [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.
      rootfs = realpath (def->root->path, NULL);
data/crun-0.15.1+dfsg/src/libcrun/container.c:810: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 ("HOME") == NULL)
data/crun-0.15.1+dfsg/src/libcrun/container.c:1696: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.
    tmp = getenv ("RUN_OCI_SECCOMP_RECEIVER");
data/crun-0.15.1+dfsg/src/libcrun/container.c:2615: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.
      if (getenv ("HOME") == NULL)
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1943:9:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
  ret = chroot (".");
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1980:13:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
      ret = chroot (rootfs);
data/crun-0.15.1+dfsg/src/libcrun/status.c:51:33:  [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.
      const char *runtime_dir = getenv ("XDG_RUNTIME_DIR");
data/crun-0.15.1+dfsg/src/libcrun/utils.c:317:36:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
char *chroot_realpath (const char *chroot, const char *path, char resolved_path[]);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1553:24:  [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.
  end = tmp = xstrdup (getenv ("PATH"));
data/crun-0.15.1+dfsg/src/restore.c:132:16:  [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.
      bundle = realpath (".", NULL);
data/crun-0.15.1+dfsg/src/restore.c:138:28:  [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.
          bundle_cleanup = realpath (bundle, NULL);
data/crun-0.15.1+dfsg/src/run.c:137:33:  [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.
          config_file_cleanup = realpath (config_file, NULL);
data/crun-0.15.1+dfsg/src/run.c:150:28:  [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.
          bundle_cleanup = realpath (bundle, NULL);
data/crun-0.15.1+dfsg/src/run.c:169: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 ("LISTEN_FDS"))
data/crun-0.15.1+dfsg/src/run.c:170:43:  [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.
    crun_context.preserve_fds += strtoll (getenv ("LISTEN_FDS"), NULL, 10);
data/crun-0.15.1+dfsg/tests/init.c:148:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      fputs (getenv (argv[2]), stdout);
data/crun-0.15.1+dfsg/libocispec/src/image_manifest_items_image_manifest_items_schema.c:377:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[1024];
data/crun-0.15.1+dfsg/libocispec/src/image_manifest_items_image_manifest_items_schema.c:451:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy (json_buf, gen_buf, gen_len);
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:1248:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[1024];
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:1322:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy (json_buf, gen_buf, gen_len);
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_content_descriptor.c:359:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[1024];
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_content_descriptor.c:433:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy (json_buf, gen_buf, gen_len);
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c:836:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[1024];
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c:910:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy (json_buf, gen_buf, gen_len);
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_layout_schema.c:195:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[1024];
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_layout_schema.c:269:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy (json_buf, gen_buf, gen_len);
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_manifest_schema.c:315:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[1024];
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_manifest_schema.c:389:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy (json_buf, gen_buf, gen_len);
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:128: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 numstr[MAX_NUM_STR_LEN];
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:141: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 numstr[MAX_NUM_STR_LEN];
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:448:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char numstr[MAX_NUM_STR_LEN];
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:598:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      (void) memcpy (keys, map->keys, map->len * sizeof (int));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:599:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      (void) memcpy (vals, map->values, map->len * sizeof (int));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:630:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char numstr[MAX_NUM_STR_LEN];
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:777:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      (void) memcpy (keys, map->keys, map->len * sizeof (int));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:778:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      (void) memcpy (vals, map->values, map->len * sizeof (bool));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:810:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char numstr[MAX_NUM_STR_LEN];
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:1299:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      (void) memcpy (keys, map->keys, map->len * sizeof (char *));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:1300:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      (void) memcpy (vals, map->values, map->len * sizeof (bool));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:1570:10:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  (void) memcpy (json_buf, gen_buf, gen_len);
data/crun-0.15.1+dfsg/libocispec/src/read-file.c:66:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen (path, "r");
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:2690:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[1024];
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:2764:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy (json_buf, gen_buf, gen_len);
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_state_schema.c:359:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[1024];
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_state_schema.c:433:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    (void) memcpy (json_buf, gen_buf, gen_len);
data/crun-0.15.1+dfsg/python/crun_python.c:364:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char errbuf[1024];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:160:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:165:28:  [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 = TEMP_FAILURE_RETRY (open (controllers, O_RDONLY | O_CLOEXEC));
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:306: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).
  dirfd = open (path, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:449: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 cpus_buf[257];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:450: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 mems_buf[257];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:464: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).
  dirfd = open (path, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:487: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 pid_str[16];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:489:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (pid_str, "%d", pid);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:635:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char cgroup_path[32];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:639:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (cgroup_path, "/proc/%d/cgroup", pid);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:663: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 pid_str[16];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:670:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (pid_str, "%d", pid);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:682:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char subsystem_path[64];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:716: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 pid_str[16];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:720:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (pid_str, "%d", pid);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1074:7:  [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 (tmp_name, name, name_len - 3);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1075:7:  [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 (tmp_name + name_len - 3, "USec", 5);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1208:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  const char *boolean_opts[10];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1724: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).
  dirfd = open (cgroup_path, O_DIRECTORY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1814:27:  [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).
  cleanup_close int dfd = open (path, O_DIRECTORY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1932: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 fmt_buf[128];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1947:13:  [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.
      len = sprintf (fmt_buf, "%" PRIu64 ":%" PRIu64 " %" PRIu64 "\n", throttling[i]->major, throttling[i]->minor,
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1961: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 fmt_buf[128];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1985: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 fmt_buf[128];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2007:13:  [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.
      len = sprintf (fmt_buf, "%d", blkio->leaf_weight);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2026:21:  [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.
              len = sprintf (fmt_buf, "%" PRIu64 ":%" PRIu64 " %i\n", blkio->weight_device[i]->major,
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2051:21:  [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.
              len = sprintf (fmt_buf, "%lu:%lu %i\n", blkio->weight_device[i]->major, blkio->weight_device[i]->minor,
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2057:21:  [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.
              len = sprintf (fmt_buf, "%lu:%lu %i\n", blkio->weight_device[i]->major, blkio->weight_device[i]->minor,
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2130:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fmt_buf[128];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2135:13:  [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.
      len = sprintf (fmt_buf, "%d", net->class_id);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2165: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 fmt_buf[128];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2178:13:  [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.
      len = sprintf (fmt_buf, "%lu", htlb[i]->limit);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2200:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fmt_buf[FMT_BUF_LEN];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2210: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.
          char fmt_buf_major[16];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2211: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.
          char fmt_buf_minor[16];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2217:9:  [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 (b, "%lu", x); \
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2368:12:  [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.
    return sprintf (buf, "%lu", value);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2370:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (buf, "max", 4);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2377: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 limit_buf[32];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2393: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 swap_buf[32];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2421: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 fmt_buf[32];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2460:13:  [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.
      len = sprintf (fmt_buf, "%lu", memory->kernel);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2468:13:  [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.
      len = sprintf (fmt_buf, "%lu", memory->reservation);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2487:13:  [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.
      len = sprintf (fmt_buf, "%lu", memory->kernel_tcp);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2497:13:  [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.
      len = sprintf (fmt_buf, "%lu", memory->swappiness);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2512:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fmt_buf[32];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2531: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 fmt_buf[64];
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2545:13:  [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.
      len = sprintf (fmt_buf, "%u", val);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2557:17:  [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.
          len = sprintf (fmt_buf, "%lu", cpu->period);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2569:17:  [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.
          len = sprintf (fmt_buf, "%lu", cpu->quota);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2579:13:  [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.
      len = sprintf (fmt_buf, "%lu", cpu->realtime_period);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2588:13:  [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.
      len = sprintf (fmt_buf, "%lu", cpu->realtime_runtime);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2642:21:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      dirfd_blkio = open (path_to_blkio, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2662:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      dirfd_netclass = open (path_to_netclass, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2666:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      dirfd_netprio = open (path_to_netprio, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2681:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      dirfd_htlb = open (path_to_htlb, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2697:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      dirfd_devs = open (path_to_devs, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2712:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      dirfd_mem = open (path_to_mem, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2727:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      dirfd_pid = open (path_to_pid, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2744:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      dirfd_cpu = open (path_to_cpu, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2755:22:  [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).
      dirfd_cpuset = open (path_to_cpuset, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2803:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  cgroup_dirfd = open (cgroup_path, O_DIRECTORY);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:52: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 copy_path[PATH_MAX];
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link_path[PATH_MAX];
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char got_path[PATH_MAX];
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:114: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/exe", O_RDONLY|O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:169:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096], *copy = NULL;
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:174: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 | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:189: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(copy + *length, buf, n);
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:268: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 template[PATH_MAX] = {0};
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:295: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(prefix, O_TMPFILE | O_EXCL | O_RDWR | O_CLOEXEC, 0700);
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:345: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 fdpath[PATH_MAX] = {0};
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:353: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).
		newfd = open(fdpath, O_PATH | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:371: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 template[PATH_MAX] = {0};
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:384: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(template);
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:403: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).
	ret = open(template, O_PATH | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:429: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[4096];
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:476:10:  [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).
	binfd = open("/proc/self/exe", O_RDONLY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/container.c:97: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 message[512];
data/crun-0.15.1+dfsg/src/libcrun/container.c:305: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 (msg.message, log_msg, err_len);
data/crun-0.15.1+dfsg/src/libcrun/container.c:926:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      *out_fd = TEMP_FAILURE_RETRY (open (annotation, O_CREAT | O_WRONLY | O_APPEND, 0700));
data/crun-0.15.1+dfsg/src/libcrun/container.c:934:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      *err_fd = TEMP_FAILURE_RETRY (open (annotation, O_CREAT | O_WRONLY | O_APPEND, 0700));
data/crun-0.15.1+dfsg/src/libcrun/container.c:983:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[1];
data/crun-0.15.1+dfsg/src/libcrun/container.c:1329:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/crun-0.15.1+dfsg/src/libcrun/container.c:1371:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[12];
data/crun-0.15.1+dfsg/src/libcrun/container.c:1372:24:  [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.
      size_t buf_len = sprintf (buf, "%d", pid);
data/crun-0.15.1+dfsg/src/libcrun/container.c:1528:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[256];
data/crun-0.15.1+dfsg/src/libcrun/container.c:1591:33:  [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).
      ret = TEMP_FAILURE_RETRY (open (dest_path, O_RDONLY));
data/crun-0.15.1+dfsg/src/libcrun/container.c:1602:33:  [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).
      ret = TEMP_FAILURE_RETRY (open (dest_path, O_RDWR | O_CREAT, 0700));
data/crun-0.15.1+dfsg/src/libcrun/container.c:1734: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 created[35];
data/crun-0.15.1+dfsg/src/libcrun/container.c:2089: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.
          char buf[512];
data/crun-0.15.1+dfsg/src/libcrun/container.c:2927: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 created[35];
data/crun-0.15.1+dfsg/src/libcrun/container.c:3014:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[12];
data/crun-0.15.1+dfsg/src/libcrun/container.c:3015:24:  [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.
      size_t buf_len = sprintf (buf, "%d", status.pid);
data/crun-0.15.1+dfsg/src/libcrun/criu.c:86: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).
  image_fd = open (cr_options->image_path, O_DIRECTORY);
data/crun-0.15.1+dfsg/src/libcrun/criu.c:95:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  descriptors_fd = open (descriptors_path, O_CREAT | O_WRONLY | O_CLOEXEC, S_IRUSR | S_IWUSR);
data/crun-0.15.1+dfsg/src/libcrun/criu.c:111: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).
      work_fd = open (cr_options->work_path, O_DIRECTORY);
data/crun-0.15.1+dfsg/src/libcrun/criu.c:258: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).
      root_fd = open (root, O_RDONLY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/criu.c:306: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).
  image_fd = open (cr_options->image_path, O_DIRECTORY);
data/crun-0.15.1+dfsg/src/libcrun/criu.c:316:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char err_buffer[256];
data/crun-0.15.1+dfsg/src/libcrun/criu.c:361: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).
      work_fd = open (cr_options->work_path, O_DIRECTORY);
data/crun-0.15.1+dfsg/src/libcrun/criu.c:441:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          inherit_fd = open (def->linux->namespaces[i]->path, O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/ebpf.c:111: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 (p->program + p->used, data, size);
data/crun-0.15.1+dfsg/src/libcrun/error.c:154:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef char timestamp_t[64];
data/crun-0.15.1+dfsg/src/libcrun/error.c:165:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (((char *) timestamp) + 19, ".%09ldZ%.8s", tv.tv_usec, suffix);
data/crun-0.15.1+dfsg/src/libcrun/error.c:224:37:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          *new_output_handler_arg = fopen (arg, "a+");
data/crun-0.15.1+dfsg/src/libcrun/linux.c:393: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_buffer[64];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:398:7:  [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 (target_buffer, "/proc/self/fd/%d", targetfd);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:540: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_buffer[64];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:556:7:  [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 (target_buffer, "/proc/self/fd/%d", targetfd);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:621:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open (temporary_mount, O_CLOEXEC | O_PATH);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:634:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_file[32];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:635:15:  [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 (proc_file, "/proc/self/fd/%d", fd);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:654:11:  [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 (target_buffer, "/proc/self/fd/%d", targetfd);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:971: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 fd_buffer[64];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1004:7:  [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_buffer, "/proc/self/fd/%d", fd);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1031:11:  [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_buffer, "/proc/self/fd/%d", fd);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1082:11:  [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_buffer, "/proc/self/fd/%d", fd);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1172:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                      char procpath[32];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1173:23:  [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 (procpath, "/proc/self/fd/%d", tfd);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1212:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char source_buffer[64];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1213:7:  [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 (source_buffer, "/proc/self/fd/%d", pathfd);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1263:33:  [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).
  cleanup_close int oldrootfd = open ("/", O_DIRECTORY | O_PATH);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1264:33:  [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).
  cleanup_close int newrootfd = open (rootfs, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1719: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.
          char tmp_dir[32];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1724:15:  [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 (tmp_dir, "/tmp/libcrun.XXXXXX");
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1741:15:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  xasprintf (&tmpfile, "%s/tmp-file", where);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1742:27:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  ret = crun_ensure_file (tmpfile, 0700, true, err);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1750:18:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  *tmpfile_out = tmpfile;
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1764:31:  [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).
      cleanup_close int dfd = open (*pp, O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1812:70:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      ret = allocate_tmp_mounts (container, &tmpdirparent, &tmpdir, &tmpfile, err);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1817:52:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
      get_private_data (container)->tmpmountfile = tmpfile;
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1842:37:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      rootfsfd = rootfsfd_cleanup = open (rootfs, O_PATH | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2004: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 ("/dev/null", O_RDWR);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2030: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 pid_fmt[16];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2031: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 *args[MAX_ARGS + 1];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2035:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (pid_fmt, "%d", pid);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2177:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[64];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2185:11:  [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 (uid_map + written, buffer, len);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2206:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[64];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2214:11:  [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 (gid_map + written, buffer, len);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2232: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.
          char single_mapping[32];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2257: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.
          char single_mapping[32];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2306: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[16];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2307: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 ("/proc/sys/kernel/cap_last_cap", O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2527: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 oom_buffer[16];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2530:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (oom_buffer, "%i", def->process->oom_score_adj);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2531: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 ("/proc/self/oom_score_adj", O_RDWR);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2549: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).
  dirfd = open ("/proc/sys", O_DIRECTORY | O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2629:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fd_path[64];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2630:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char link_path[PATH_MAX];
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2631:7:  [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_path, "/proc/%d/fd/%d", pid, i);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2637:13:  [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 (link_path, "/dev/null");
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2945:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
          fd = open (def->linux->namespaces[i]->path, O_RDONLY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:3440:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      fds[i] = open (ns_join, O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/seccomp.c:262:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char lowercase_arch[32];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:113:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str0[sizeof("ILL")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:114:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str1[sizeof("HUP")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:115:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str2[sizeof("KILL")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:116:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str3[sizeof("TTOU")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:117:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str4[sizeof("QUIT")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:118:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str5[sizeof("STOP")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:119:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str6[sizeof("RTMIN+2")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:120:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str7[sizeof("RTMIN+12")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:121:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str8[sizeof("RTMAX-2")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:122:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str9[sizeof("RTMAX-12")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:123:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str10[sizeof("RTMIN+1")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:124:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str11[sizeof("RTMIN+11")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:125:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str12[sizeof("RTMAX-1")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:126:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str13[sizeof("RTMAX-11")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:127:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str14[sizeof("RTMIN+4")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:128:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str15[sizeof("RTMIN+14")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:129:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str16[sizeof("RTMAX-4")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:130:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str17[sizeof("RTMAX-14")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:131:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str18[sizeof("RTMIN+3")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:132:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str19[sizeof("RTMIN+13")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:133:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str20[sizeof("RTMAX-3")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:134:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str21[sizeof("RTMAX-13")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:135:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str22[sizeof("BUS")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:136:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str23[sizeof("VTALRM")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:137:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str24[sizeof("INT")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:138:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str25[sizeof("FPE")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:139:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str26[sizeof("CONT")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:140:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str27[sizeof("STKFLT")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:141:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str28[sizeof("USR2")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:142:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str29[sizeof("TRAP")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:143:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str30[sizeof("TSTP")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:144:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str31[sizeof("RTMIN")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:145:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str32[sizeof("RTMIN+5")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:146:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str33[sizeof("RTMIN+15")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:147:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str34[sizeof("RTMAX-5")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:148:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str35[sizeof("RTMIN+9")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:149:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str36[sizeof("USR1")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:150:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str37[sizeof("RTMAX-9")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:151:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str38[sizeof("ALRM")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:152:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str39[sizeof("IO")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:153:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str40[sizeof("RTMIN+8")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:154:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str41[sizeof("RTMIN+7")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:155:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str42[sizeof("RTMAX-8")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:156:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str43[sizeof("RTMAX-7")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:157:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str44[sizeof("RTMIN+6")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:158:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str45[sizeof("RTMIN+10")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:159:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str46[sizeof("RTMAX-6")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:160:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str47[sizeof("RTMAX-10")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:161:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str48[sizeof("SYS")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:162:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str49[sizeof("XFSZ")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:163:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str50[sizeof("RTMAX")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:164:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str51[sizeof("PWR")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:165:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str52[sizeof("SEGV")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:166:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str53[sizeof("XCPU")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:167:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str54[sizeof("WINCH")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:168:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str55[sizeof("URG")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:169:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str56[sizeof("CHLD")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:170:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str57[sizeof("TTIN")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:171:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str58[sizeof("PIPE")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:172:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str59[sizeof("ABRT")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:173:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str60[sizeof("TERM")];
data/crun-0.15.1+dfsg/src/libcrun/signals.c:174:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char stringpool_str61[sizeof("PROF")];
data/crun-0.15.1+dfsg/src/libcrun/status.c:87: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 pid_stat_file[64];
data/crun-0.15.1+dfsg/src/libcrun/status.c:91:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (pid_stat_file, "/proc/%d/stat", pid);
data/crun-0.15.1+dfsg/src/libcrun/status.c:93: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 (pid_stat_file, O_RDONLY);
data/crun-0.15.1+dfsg/src/libcrun/status.c:166: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).
  fd_write = open (file_tmp, O_CREAT | O_WRONLY, 0700);
data/crun-0.15.1+dfsg/src/libcrun/status.c:244: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 err_buffer[256];
data/crun-0.15.1+dfsg/src/libcrun/status.c:434:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  rundir_dfd = open (dir, O_DIRECTORY | O_RDONLY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/status.c:576: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 (fifo_path, O_NONBLOCK);
data/crun-0.15.1+dfsg/src/libcrun/status.c:588: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[1] = {
data/crun-0.15.1+dfsg/src/libcrun/status.c:596: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 (fifo_path, O_WRONLY);
data/crun-0.15.1+dfsg/src/libcrun/terminal.c:42:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];
data/crun-0.15.1+dfsg/src/libcrun/terminal.c:44:26:  [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).
  cleanup_close int fd = open ("/dev/ptmx", O_RDWR | O_NOCTTY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/terminal.c:90:26:  [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).
  cleanup_close int fd = open (pty, O_RDWR);
data/crun-0.15.1+dfsg/src/libcrun/terminal.c:123:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&(s->termios), &termios, sizeof (termios));
data/crun-0.15.1+dfsg/src/libcrun/utils.c:116:26:  [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).
  cleanup_close int fd = open (name, O_WRONLY | flags, 0700);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:292:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char link[PATH_MAX];
data/crun-0.15.1+dfsg/src/libcrun/utils.c:293:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fdpath[64];
data/crun-0.15.1+dfsg/src/libcrun/utils.c:295:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (fdpath, "/proc/self/fd/%d", fd);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:326:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[PATH_MAX], *path_in_chroot;
data/crun-0.15.1+dfsg/src/libcrun/utils.c:607: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 ("/proc/mounts", O_RDONLY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/utils.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 buf[2];
data/crun-0.15.1+dfsg/src/libcrun/utils.c:632: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 = open ("/sys/module/apparmor/parameters/enabled", O_RDONLY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:681: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 (file, O_WRONLY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:869: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 ctrl_buf[CMSG_SPACE (sizeof (int))] = {};
data/crun-0.15.1+dfsg/src/libcrun/utils.c:870: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 data[1];
data/crun-0.15.1+dfsg/src/libcrun/utils.c:903: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 ctrl_buf[CMSG_SPACE (sizeof (int))] = {};
data/crun-0.15.1+dfsg/src/libcrun/utils.c:904: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 data[1];
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1134:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  stream = fopen ("/etc/passwd", "r");
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1212:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  input = fopen (is_uid ? "/etc/subuid" : "/etc/subgid", "r");
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1260:18:  [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.
      written += sprintf (buffer + written, "%d %d %d\n", 0, from, used);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1266:14:  [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.
  written += sprintf (buffer + written, "%d %d 1\n", container_id, host_id);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1270:16:  [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.
    written += sprintf (buffer + written, "%d %d %d\n", container_id + 1, from, available);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1360:25:  [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).
          dev_null_fd = open ("/dev/null", O_WRONLY);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1401:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  cfd = open ("/proc/self/fd", O_DIRECTORY | O_RDONLY | O_CLOEXEC);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1443: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 timestamp[64];
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1468: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 errbuf[1024];
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1514: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 + 1];
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1838:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1845:15:  [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 (proc_path, "/proc/self/fd/%d", fd);
data/crun-0.15.1+dfsg/src/spec.c:91:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen ("config.json", "w+");
data/crun-0.15.1+dfsg/src/update.c:91:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *values[LAST_VALUE - FIRST_VALUE];
data/crun-0.15.1+dfsg/tests/init.c:49:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen (file, "rb");
data/crun-0.15.1+dfsg/tests/init.c:50:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[512];
data/crun-0.15.1+dfsg/tests/init.c:75: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).
  int fd = open (file, O_RDONLY);
data/crun-0.15.1+dfsg/tests/init.c:88:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen (path, "wb");
data/crun-0.15.1+dfsg/tests/init.c:181:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[64] = {};
data/crun-0.15.1+dfsg/tests/init.c:199:12:  [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).
      fd = atoi (argv[2]);
data/crun-0.15.1+dfsg/tests/init.c:227:11:  [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).
      n = atoi (argv[2]);
data/crun-0.15.1+dfsg/tests/tests_libcrun_utils.c:34: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[256];
data/crun-0.15.1+dfsg/tests/tests_libcrun_utils.c:95:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[256];
data/crun-0.15.1+dfsg/tests/tests_libcrun_utils.c:123:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buffer[256];
data/crun-0.15.1+dfsg/libocispec/src/image_manifest_items_image_manifest_items_schema.c:183:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_manifest_items_image_manifest_items_schema.c:202:91:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->layers[i]), strlen (ptr->layers[i]));
data/crun-0.15.1+dfsg/libocispec/src/image_manifest_items_image_manifest_items_schema.c:227:94:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->repo_tags[i]), strlen (ptr->repo_tags[i]));
data/crun-0.15.1+dfsg/libocispec/src/image_manifest_items_image_manifest_items_schema.c:245:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:328:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:356:88:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->env[i]), strlen (ptr->env[i]));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:381:95:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->entrypoint[i]), strlen (ptr->entrypoint[i]));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:406:88:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->cmd[i]), strlen (ptr->cmd[i]));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:433:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:454:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:645:93:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->diff_ids[i]), strlen (ptr->diff_ids[i]));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:663:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:802:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:814:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:826:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:838:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:1102:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:1114:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:1126:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_config_schema.c:1138:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_content_descriptor.c:234:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_content_descriptor.c:258:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_content_descriptor.c:277:89:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->urls[i]), strlen (ptr->urls[i]));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_defs.c:142:79:  [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).
            stat = yajl_gen_string ((yajl_gen) g, (const unsigned char *)str, strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c:230:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c:242:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c:254:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c:273:96:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->os_features[i]), strlen (ptr->os_features[i]));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c:291:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c:481:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c:505:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_index_schema.c:524:89:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->urls[i]), strlen (ptr->urls[i]));
data/crun-0.15.1+dfsg/libocispec/src/image_spec_schema_image_layout_schema.c:128:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:27:83:  [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).
        stat = yajl_gen_string (g, (const unsigned char *) obj->u.object.keys[i], strlen (obj->u.object.keys[i]));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:75:74:  [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).
            __stat = yajl_gen_string (g, (const unsigned char *) __tstr, strlen (__tstr));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:84:50:  [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).
            __stat = yajl_gen_number (g, __tstr, strlen (__tstr));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:114:83:  [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).
        stat = yajl_gen_string (g, (const unsigned char *) obj->u.object.keys[i], strlen (obj->u.object.keys[i]));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:135:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			  strlen (numstr));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:148:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			  strlen (numstr));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:461:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 strlen (numstr));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:643:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 strlen (numstr));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:823:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 strlen (numstr));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:829:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 strlen (map->values[i]));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:994:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 strlen (map->keys[i]));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:1162:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 strlen (map->keys[i]));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:1338:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 strlen (map->keys[i]));
data/crun-0.15.1+dfsg/libocispec/src/json_common.c:1344:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			 strlen (map->values[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:827:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:839:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:993:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:2208:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:2227:90:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->flags[i]), strlen (ptr->flags[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:2252:98:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->architectures[i]), strlen (ptr->architectures[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:2444:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:2456:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:2468:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:3049:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:3061:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:3098:97:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->masked_paths[i]), strlen (ptr->masked_paths[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:3123:99:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->readonly_paths[i]), strlen (ptr->readonly_paths[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_linux.c:3141:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:630:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:864:76:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            int invalid = common_safe_uint32 (YAJL_GET_NUMBER (val), &ret->umask);
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:1033:33:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        if (ptr != NULL && ptr->umask)
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:1034:48:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
            num = (long long unsigned int)ptr->umask;
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:1072:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:1414:93:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->bounding[i]), strlen (ptr->bounding[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:1439:94:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->permitted[i]), strlen (ptr->permitted[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:1464:94:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->effective[i]), strlen (ptr->effective[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:1489:96:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->inheritable[i]), strlen (ptr->inheritable[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:1514:92:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->ambient[i]), strlen (ptr->ambient[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:1654:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:2058:89:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->args[i]), strlen (ptr->args[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:2076:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:2097:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:2116:88:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->env[i]), strlen (ptr->env[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:2165:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:2189:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:2514:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.c:2544:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_schema.h:90:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    uint32_t umask;
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:122:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:266:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:278:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:446:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:458:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:470:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:482:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:494:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:506:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:518:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:734:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:746:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_solaris.c:758:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_vm.c:173:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_vm.c:192:95:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->parameters[i]), strlen (ptr->parameters[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_vm.c:393:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_vm.c:412:95:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->parameters[i]), strlen (ptr->parameters[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_vm.c:430:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_vm.c:586:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_vm.c:598:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_windows.c:911:98:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->endpoint_list[i]), strlen (ptr->endpoint_list[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_windows.c:949:100:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->dns_search_list[i]), strlen (ptr->dns_search_list[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_windows.c:967:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_windows.c:979:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_windows.c:1148:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_config_windows.c:1439:98:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->layer_folders[i]), strlen (ptr->layer_folders[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs.c:235:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs.c:254:89:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->args[i]), strlen (ptr->args[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs.c:279:88:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->env[i]), strlen (ptr->env[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs.c:694:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs.c:706:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs.c:725:92:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->options[i]), strlen (ptr->options[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs.c:743:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:167:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:186:90:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->flags[i]), strlen (ptr->flags[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:412:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:659:90:  [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).
            stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(ptr->names[i]), strlen (ptr->names[i]));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:677:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:955:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:967:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:1793:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:1829:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:1979:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:2297:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_linux.c:2309:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_windows.c:151:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_defs_windows.c:163:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_state_schema.c:235:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_state_schema.c:247:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_state_schema.c:259:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/libocispec/src/runtime_spec_schema_state_schema.c:283:76:  [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).
        stat = yajl_gen_string ((yajl_gen)g, (const unsigned char *)(str), strlen (str));
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:169:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = TEMP_FAILURE_RETRY (read (fd, buf, sizeof (buf) - 1));
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:240: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).
          ret = write_file (subtree_control, token, strlen (token), err);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:316:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      b_len = TEMP_FAILURE_RETRY (read (cpus_fd, cpus, 256));
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:330:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      b_len = TEMP_FAILURE_RETRY (read (mems_fd, mems, 256));
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:361:57:  [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).
      b_len = TEMP_FAILURE_RETRY (write (cpus_fd, cpus, strlen (cpus)));
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:368:57:  [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).
      b_len = TEMP_FAILURE_RETRY (write (mems_fd, mems, strlen (mems)));
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:453: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 initialize_cpuset_subsystem_rec (tmp_path, strlen (tmp_path), cpus_buf, mems_buf, err);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:493:50:  [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 write_file (cgroup_path_procs, pid_str, strlen (pid_str), err);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:731:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = write_file (cgroup_path_procs, pid_str, strlen (pid_str), err);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:758: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).
          if (strncmp (path, cgroup_crun_exec_path, strlen (path)))
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:771:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ret = write_file (cgroup_sub_path_procs, pid_str, strlen (pid_str), err);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1277: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).
          len = strlen (annotations->keys[i]);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:1606: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).
  ret = write_file (path, state, strlen (state), err);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2205:11:  [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 (fmt_buf, "a");
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2219:9:  [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 (b, "*");       \
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2238:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ret = write_file_at (dirfd, "devices.allow", default_devices[i], strlen (default_devices[i]), err);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2617:99:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ret = write_file_and_check_controllers_at (cgroup2, dirfd_cpuset, "cpuset.cpus", cpu->cpus, strlen (cpu->cpus), err);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2623:99:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ret = write_file_and_check_controllers_at (cgroup2, dirfd_cpuset, "cpuset.mems", cpu->mems, strlen (cpu->mems), err);
data/crun-0.15.1+dfsg/src/libcrun/cgroup.c:2782: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).
      len = strlen (resources->unified->values[i]);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:70: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).
	chroot_len = strlen(chroot);
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:72: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).
	if (chroot_len + strlen(path) >= PATH_MAX - 3) {
data/crun-0.15.1+dfsg/src/libcrun/chroot_realpath.c:160:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(path) + n >= PATH_MAX - 2) {
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:182:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(fd, buf, sizeof(buf));
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:218:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		cur += strlen(cur) + 1;
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:383:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask = umask(0700);
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:385:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(mask);
data/crun-0.15.1+dfsg/src/libcrun/cloned_binary.c:434:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		nread = read(infd, buffer, sizeof(buffer));
data/crun-0.15.1+dfsg/src/libcrun/container.c:301: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).
  err_len = strlen (log_msg);
data/crun-0.15.1+dfsg/src/libcrun/container.c:348:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = TEMP_FAILURE_RETRY (read (fd, &msg, sizeof (msg)));
data/crun-0.15.1+dfsg/src/libcrun/container.c:395:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ret = TEMP_FAILURE_RETRY (read (fd, &msg, sizeof (msg)));
data/crun-0.15.1+dfsg/src/libcrun/container.c:532:50:  [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).
  yajl_gen_string (gen, YAJL_STR ("ociVersion"), strlen ("ociVersion"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:533:43:  [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).
  yajl_gen_string (gen, YAJL_STR ("1.0"), strlen ("1.0"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:535:42:  [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).
  yajl_gen_string (gen, YAJL_STR ("id"), strlen ("id"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:536: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).
  yajl_gen_string (gen, YAJL_STR (id), strlen (id));
data/crun-0.15.1+dfsg/src/libcrun/container.c:538:43:  [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).
  yajl_gen_string (gen, YAJL_STR ("pid"), strlen ("pid"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:541:44:  [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).
  yajl_gen_string (gen, YAJL_STR ("root"), strlen ("root"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:542:44:  [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).
  yajl_gen_string (gen, YAJL_STR (rootfs), strlen (rootfs));
data/crun-0.15.1+dfsg/src/libcrun/container.c:544: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).
  yajl_gen_string (gen, YAJL_STR ("bundle"), strlen ("bundle"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:545: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).
  yajl_gen_string (gen, YAJL_STR (cwd), strlen (cwd));
data/crun-0.15.1+dfsg/src/libcrun/container.c:547: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).
  yajl_gen_string (gen, YAJL_STR ("status"), strlen ("status"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:548:44:  [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).
  yajl_gen_string (gen, YAJL_STR (status), strlen (status));
data/crun-0.15.1+dfsg/src/libcrun/container.c:552: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).
      yajl_gen_string (gen, YAJL_STR ("annotations"), strlen ("annotations"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:559:49:  [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).
          yajl_gen_string (gen, YAJL_STR (key), strlen (key));
data/crun-0.15.1+dfsg/src/libcrun/container.c:560:49:  [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).
          yajl_gen_string (gen, YAJL_STR (val), strlen (val));
data/crun-0.15.1+dfsg/src/libcrun/container.c:879:5:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (def->process->user->umask_present ? def->process->user->umask : 0022);
data/crun-0.15.1+dfsg/src/libcrun/container.c:879:68:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    umask (def->process->user->umask_present ? def->process->user->umask : 0022);
data/crun-0.15.1+dfsg/src/libcrun/container.c:996:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ret = TEMP_FAILURE_RETRY (read (fd, buffer, sizeof (buffer)));
data/crun-0.15.1+dfsg/src/libcrun/container.c:1498:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              res = TEMP_FAILURE_RETRY (read (signalfd, &si, sizeof (si)));
data/crun-0.15.1+dfsg/src/libcrun/container.c:1541:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int ret = TEMP_FAILURE_RETRY (read (terminal_fd, buf, sizeof (buf) - 1));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2082:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = TEMP_FAILURE_RETRY (read (pipefd0, &status, sizeof (status)));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2090:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ret = TEMP_FAILURE_RETRY (read (pipefd0, &errno_, sizeof (errno_)));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2094:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ret = TEMP_FAILURE_RETRY (read (pipefd0, buf, sizeof (buf) - 1));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2122:56:  [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).
      TEMP_FAILURE_RETRY (write (pipefd1, (*err)->msg, strlen ((*err)->msg) + 1));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2189:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = TEMP_FAILURE_RETRY (read (pipefd0, &exit_code, sizeof (exit_code)));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2406:50:  [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).
  yajl_gen_string (gen, YAJL_STR ("ociVersion"), strlen ("ociVersion"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2407:45:  [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).
  yajl_gen_string (gen, YAJL_STR ("1.0.0"), strlen ("1.0.0"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2409:42:  [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).
  yajl_gen_string (gen, YAJL_STR ("id"), strlen ("id"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2410: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).
  yajl_gen_string (gen, YAJL_STR (id), strlen (id));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2412:43:  [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).
  yajl_gen_string (gen, YAJL_STR ("pid"), strlen ("pid"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2415: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).
  yajl_gen_string (gen, YAJL_STR ("status"), strlen ("status"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2416:54:  [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).
  yajl_gen_string (gen, YAJL_STR (container_status), strlen (container_status));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2418: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).
  yajl_gen_string (gen, YAJL_STR ("bundle"), strlen ("bundle"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2419: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).
  yajl_gen_string (gen, YAJL_STR (status.bundle), strlen (status.bundle));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2421: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).
  yajl_gen_string (gen, YAJL_STR ("rootfs"), strlen ("rootfs"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2422: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).
  yajl_gen_string (gen, YAJL_STR (status.rootfs), strlen (status.rootfs));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2424:47:  [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).
  yajl_gen_string (gen, YAJL_STR ("created"), strlen ("created"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2425: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).
  yajl_gen_string (gen, YAJL_STR (status.created), strlen (status.created));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2427:45:  [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).
  yajl_gen_string (gen, YAJL_STR ("owner"), strlen ("owner"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2428: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).
  yajl_gen_string (gen, YAJL_STR (""), strlen (""));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2453:57:  [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).
        yajl_gen_string (gen, YAJL_STR ("annotations"), strlen ("annotations"));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2459: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).
            yajl_gen_string (gen, YAJL_STR (key), strlen (key));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2460: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).
            yajl_gen_string (gen, YAJL_STR (val), strlen (val));
data/crun-0.15.1+dfsg/src/libcrun/container.c:2694:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask (process->user->umask_present ? process->user->umask : 0022);
data/crun-0.15.1+dfsg/src/libcrun/container.c:2694:62:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask (process->user->umask_present ? process->user->umask : 0022);
data/crun-0.15.1+dfsg/src/libcrun/container.c:2747:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = TEMP_FAILURE_RETRY (read (pipefd0, &b, sizeof (b)));
data/crun-0.15.1+dfsg/src/libcrun/criu.c:101:64:  [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).
          write (descriptors_fd, status->external_descriptors, strlen (status->external_descriptors)));
data/crun-0.15.1+dfsg/src/libcrun/criu.c:234: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).
          if (strncmp (dest, dest_loop, strlen (dest_loop)) == 0 && strcmp (def->mounts[j]->type, "tmpfs") == 0)
data/crun-0.15.1+dfsg/src/libcrun/criu.c:266:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          ret = crun_safe_ensure_directory_at (root_fd, root, strlen (root), dest, 0755, err);
data/crun-0.15.1+dfsg/src/libcrun/criu.c:274:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          ret = crun_safe_ensure_file_at (root_fd, root, strlen (root), dest, 0755, err);
data/crun-0.15.1+dfsg/src/libcrun/error.c:344:43:  [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).
  yajl_gen_string (gen, YAJL_STR ("msg"), strlen ("msg"));
data/crun-0.15.1+dfsg/src/libcrun/error.c:346:43:  [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).
    yajl_gen_string (gen, YAJL_STR (msg), strlen (msg));
data/crun-0.15.1+dfsg/src/libcrun/error.c:352:45:  [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).
      yajl_gen_string (gen, YAJL_STR (tmp), strlen (tmp));
data/crun-0.15.1+dfsg/src/libcrun/error.c:355:45:  [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).
  yajl_gen_string (gen, YAJL_STR ("level"), strlen ("level"));
data/crun-0.15.1+dfsg/src/libcrun/error.c:356:43:  [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).
  yajl_gen_string (gen, YAJL_STR (level), strlen (level));
data/crun-0.15.1+dfsg/src/libcrun/error.c:358:44:  [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).
  yajl_gen_string (gen, YAJL_STR ("time"), strlen ("time"));
data/crun-0.15.1+dfsg/src/libcrun/error.c:359:47:  [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).
  yajl_gen_string (gen, YAJL_STR (timestamp), strlen (timestamp));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:638:70:  [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).
              (void) setxattr (proc_file, "security.selinux", label, strlen (label), 0);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1587: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).
                       strlen (container->container_def->linux->mount_label), 0);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:1849: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).
  get_private_data (container)->rootfs_len = rootfs ? strlen (rootfs) : 0;
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2310:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = TEMP_FAILURE_RETRY (read (fd, buffer, sizeof (buffer)));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2515:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = sethostname (def->hostname, strlen (def->hostname));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2534: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).
  ret = TEMP_FAILURE_RETRY (write (fd, oom_buffer, strlen (oom_buffer)));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2567: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).
      ret = TEMP_FAILURE_RETRY (write (fd, def->linux->sysctl->values[i], strlen (def->linux->sysctl->values[i])));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2645: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).
      yajl_gen_string (gen, YAJL_STR (link_path), strlen (link_path));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2713:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = TEMP_FAILURE_RETRY (read (sync_socket_fd, &code, sizeof (code)));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2719:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = TEMP_FAILURE_RETRY (read (sync_socket_fd, &size, sizeof (size)));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2730:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = TEMP_FAILURE_RETRY (read (sync_socket_fd, b, size));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2767:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size = strlen (msg) + 1;
data/crun-0.15.1+dfsg/src/libcrun/linux.c:2804:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = TEMP_FAILURE_RETRY (read (sync_fd, &res, 1));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:3032:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ret = TEMP_FAILURE_RETRY (read (sync_socket_container, &tmp, 1));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:3072:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          ret = write_file ("/proc/self/timens_offsets", v, strlen (v), err);
data/crun-0.15.1+dfsg/src/libcrun/linux.c:3266:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          ret = TEMP_FAILURE_RETRY (read (sync_socket_host, &grandchild, sizeof (grandchild)));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:3341:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = TEMP_FAILURE_RETRY (read (sync_fd, &res, 1));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:3348:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = TEMP_FAILURE_RETRY (read (sync_fd, &pid, sizeof (pid)));
data/crun-0.15.1+dfsg/src/libcrun/linux.c:3533:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = TEMP_FAILURE_RETRY (read (sync_fd, &r, sizeof (r)));
data/crun-0.15.1+dfsg/src/libcrun/signals.c:593: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).
  s = libcrun_signal_in_word_set (name, strlen (name));
data/crun-0.15.1+dfsg/src/libcrun/status.c:178:43:  [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).
  yajl_gen_string (gen, YAJL_STR ("pid"), strlen ("pid"));
data/crun-0.15.1+dfsg/src/libcrun/status.c:181:58:  [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).
  yajl_gen_string (gen, YAJL_STR ("process-start-time"), strlen ("process-start-time"));
data/crun-0.15.1+dfsg/src/libcrun/status.c:184: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).
  yajl_gen_string (gen, YAJL_STR ("cgroup-path"), strlen ("cgroup-path"));
data/crun-0.15.1+dfsg/src/libcrun/status.c:186: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).
  yajl_gen_string (gen, YAJL_STR (tmp), strlen (tmp));
data/crun-0.15.1+dfsg/src/libcrun/status.c:188:45:  [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).
  yajl_gen_string (gen, YAJL_STR ("scope"), strlen ("scope"));
data/crun-0.15.1+dfsg/src/libcrun/status.c:190: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).
  yajl_gen_string (gen, YAJL_STR (tmp), strlen (tmp));
data/crun-0.15.1+dfsg/src/libcrun/status.c:192: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).
  yajl_gen_string (gen, YAJL_STR ("rootfs"), strlen ("rootfs"));
data/crun-0.15.1+dfsg/src/libcrun/status.c:193: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).
  yajl_gen_string (gen, YAJL_STR (status->rootfs), strlen (status->rootfs));
data/crun-0.15.1+dfsg/src/libcrun/status.c:195:54:  [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).
  yajl_gen_string (gen, YAJL_STR ("systemd-cgroup"), strlen ("systemd-cgroup"));
data/crun-0.15.1+dfsg/src/libcrun/status.c:198: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).
  yajl_gen_string (gen, YAJL_STR ("bundle"), strlen ("bundle"));
data/crun-0.15.1+dfsg/src/libcrun/status.c:199: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).
  yajl_gen_string (gen, YAJL_STR (status->bundle), strlen (status->bundle));
data/crun-0.15.1+dfsg/src/libcrun/status.c:201:47:  [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).
  yajl_gen_string (gen, YAJL_STR ("created"), strlen ("created"));
data/crun-0.15.1+dfsg/src/libcrun/status.c:202: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).
  yajl_gen_string (gen, YAJL_STR (status->created), strlen (status->created));
data/crun-0.15.1+dfsg/src/libcrun/status.c:204:48:  [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).
  yajl_gen_string (gen, YAJL_STR ("detached"), strlen ("detached"));
data/crun-0.15.1+dfsg/src/libcrun/status.c:207:60:  [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).
  yajl_gen_string (gen, YAJL_STR ("external_descriptors"), strlen ("external_descriptors"));
data/crun-0.15.1+dfsg/src/libcrun/status.c:208:66:  [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).
  yajl_gen_string (gen, YAJL_STR (status->external_descriptors), strlen (status->external_descriptors));
data/crun-0.15.1+dfsg/src/libcrun/status.c:335: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).
                yajl_gen_string (gen, YAJL_STR (str), strlen (str));
data/crun-0.15.1+dfsg/src/libcrun/utils.c:274: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).
  ret = ensure_directory_internal_at (dirfd, tmp, strlen (tmp), mode, err);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:388: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).
  it = npath + strlen (npath) - 1;
data/crun-0.15.1+dfsg/src/libcrun/utils.c:511:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen (tmp);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:636:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      size = TEMP_FAILURE_RETRY (read (fd, &buf, 2));
data/crun-0.15.1+dfsg/src/libcrun/utils.c:710:81:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ret = write_file_and_check_fs_type ("/proc/thread-self/attr/exec", label, strlen (label), PROC_SUPER_MAGIC,
data/crun-0.15.1+dfsg/src/libcrun/utils.c:740:79:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      ret = write_file_and_check_fs_type ("/proc/thread-self/attr/exec", buf, strlen (buf), PROC_SUPER_MAGIC, "procfs",
data/crun-0.15.1+dfsg/src/libcrun/utils.c:768:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = TEMP_FAILURE_RETRY (read (fd, buf + nread, allocated - nread));
data/crun-0.15.1+dfsg/src/libcrun/utils.c:818: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 (path) >= sizeof (addr.sun_path))
data/crun-0.15.1+dfsg/src/libcrun/utils.c:841: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 (path) >= sizeof (addr.sun_path))
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1010:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      nread = TEMP_FAILURE_RETRY (read (src, buffer, BUFFER_SIZE));
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1210: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).
  len_name = strlen (name);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1220:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (read < 0)
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1223:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (read < (ssize_t) (len_name + 2))
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1231:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (endptr >= &lineptr[read])
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1482: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 prefix_len = strlen (prefix);
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1483:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return strlen (str) >= prefix_len && memcmp (str, prefix, prefix_len) == 0;
data/crun-0.15.1+dfsg/src/libcrun/utils.c:1642: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).
  for (it = buf; it - buf < xattr_len; it += strlen (it) + 1)
data/crun-0.15.1+dfsg/src/list.c:124: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).
      int l = strlen (it->name);
data/crun-0.15.1+dfsg/src/list.c:176:54:  [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).
              yajl_gen_string (gen, YAJL_STR ("id"), strlen ("id"));
data/crun-0.15.1+dfsg/src/list.c:177:58:  [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).
              yajl_gen_string (gen, YAJL_STR (it->name), strlen (it->name));
data/crun-0.15.1+dfsg/src/list.c:178: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).
              yajl_gen_string (gen, YAJL_STR ("pid"), strlen ("pid"));
data/crun-0.15.1+dfsg/src/list.c:180:58:  [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).
              yajl_gen_string (gen, YAJL_STR ("status"), strlen ("status"));
data/crun-0.15.1+dfsg/src/list.c:181:66:  [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).
              yajl_gen_string (gen, YAJL_STR (container_status), strlen (container_status));
data/crun-0.15.1+dfsg/src/list.c:182:58:  [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).
              yajl_gen_string (gen, YAJL_STR ("bundle"), strlen ("bundle"));
data/crun-0.15.1+dfsg/src/list.c:183:63:  [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).
              yajl_gen_string (gen, YAJL_STR (status.bundle), strlen (status.bundle));
data/crun-0.15.1+dfsg/src/update.c:157: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).
      yajl_gen_string (gen, YAJL_STR (sections[i]), strlen (sections[i]));
data/crun-0.15.1+dfsg/src/update.c:166: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).
          yajl_gen_string (gen, YAJL_STR (d->key), strlen (d->key));
data/crun-0.15.1+dfsg/src/update.c:168:57:  [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).
            yajl_gen_string (gen, YAJL_STR (values[j]), strlen (values[j]));
data/crun-0.15.1+dfsg/tests/tests_libcrun_utils.c:49:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read (fds[1], buffer, sizeof (buffer));
data/crun-0.15.1+dfsg/tests/tests_libcrun_utils.c:59:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  ret = read (fds[0], buffer, sizeof (buffer));
data/crun-0.15.1+dfsg/tests/tests_libcrun_utils.c:109: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 (write (pipefd1, test_string, strlen (test_string) + 1) < 0)
data/crun-0.15.1+dfsg/tests/tests_libcrun_utils.c:112:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = read (fd1, buffer, sizeof (buffer));
data/crun-0.15.1+dfsg/tests/tests_libcrun_utils.c:116: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 (ret != (int) strlen (test_string) + 1)
data/crun-0.15.1+dfsg/tests/tests_libcrun_utils.c:131:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      ret = read (fd, buffer, sizeof (buffer));

ANALYSIS SUMMARY:

Hits = 671
Lines analyzed = 42304 in approximately 1.08 seconds (39307 lines/second)
Physical Source Lines of Code (SLOC) = 35228
Hits@level = [0] 140 [1] 289 [2] 298 [3]  30 [4]  44 [5]  10
Hits@level+ = [0+] 811 [1+] 671 [2+] 382 [3+]  84 [4+]  54 [5+]  10
Hits/KSLOC@level+ = [0+] 23.0215 [1+] 19.0473 [2+] 10.8436 [3+] 2.38447 [4+] 1.53287 [5+] 0.283865
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.