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/systemd-247~rc2/coccinelle/macros.h
Examining data/systemd-247~rc2/man/glib-event-glue.c
Examining data/systemd-247~rc2/man/hwdb-usb-device.c
Examining data/systemd-247~rc2/man/id128-app-specific.c
Examining data/systemd-247~rc2/man/inotify-watch-tmp.c
Examining data/systemd-247~rc2/man/journal-iterate-poll.c
Examining data/systemd-247~rc2/man/journal-iterate-unique.c
Examining data/systemd-247~rc2/man/journal-iterate-wait.c
Examining data/systemd-247~rc2/man/path-documents.c
Examining data/systemd-247~rc2/man/print-unit-path.c
Examining data/systemd-247~rc2/man/sd-bus-container-append.c
Examining data/systemd-247~rc2/man/sd-bus-container-read.c
Examining data/systemd-247~rc2/man/send-unit-files-changed.c
Examining data/systemd-247~rc2/man/vtable-example.c
Examining data/systemd-247~rc2/src/ac-power/ac-power.c
Examining data/systemd-247~rc2/src/activate/activate.c
Examining data/systemd-247~rc2/src/analyze/analyze-condition.c
Examining data/systemd-247~rc2/src/analyze/analyze-condition.h
Examining data/systemd-247~rc2/src/analyze/analyze-security.c
Examining data/systemd-247~rc2/src/analyze/analyze-security.h
Examining data/systemd-247~rc2/src/analyze/analyze-verify.c
Examining data/systemd-247~rc2/src/analyze/analyze-verify.h
Examining data/systemd-247~rc2/src/analyze/analyze.c
Examining data/systemd-247~rc2/src/analyze/test-verify.c
Examining data/systemd-247~rc2/src/ask-password/ask-password.c
Examining data/systemd-247~rc2/src/backlight/backlight.c
Examining data/systemd-247~rc2/src/basic/MurmurHash2.c
Examining data/systemd-247~rc2/src/basic/MurmurHash2.h
Examining data/systemd-247~rc2/src/basic/af-list.c
Examining data/systemd-247~rc2/src/basic/af-list.h
Examining data/systemd-247~rc2/src/basic/alloc-util.c
Examining data/systemd-247~rc2/src/basic/alloc-util.h
Examining data/systemd-247~rc2/src/basic/architecture.c
Examining data/systemd-247~rc2/src/basic/architecture.h
Examining data/systemd-247~rc2/src/basic/arphrd-list.c
Examining data/systemd-247~rc2/src/basic/arphrd-list.h
Examining data/systemd-247~rc2/src/basic/async.c
Examining data/systemd-247~rc2/src/basic/async.h
Examining data/systemd-247~rc2/src/basic/audit-util.c
Examining data/systemd-247~rc2/src/basic/audit-util.h
Examining data/systemd-247~rc2/src/basic/blockdev-util.c
Examining data/systemd-247~rc2/src/basic/blockdev-util.h
Examining data/systemd-247~rc2/src/basic/btrfs-util.c
Examining data/systemd-247~rc2/src/basic/btrfs-util.h
Examining data/systemd-247~rc2/src/basic/build.h
Examining data/systemd-247~rc2/src/basic/bus-label.c
Examining data/systemd-247~rc2/src/basic/bus-label.h
Examining data/systemd-247~rc2/src/basic/cap-list.c
Examining data/systemd-247~rc2/src/basic/cap-list.h
Examining data/systemd-247~rc2/src/basic/capability-util.c
Examining data/systemd-247~rc2/src/basic/capability-util.h
Examining data/systemd-247~rc2/src/basic/cgroup-util.c
Examining data/systemd-247~rc2/src/basic/cgroup-util.h
Examining data/systemd-247~rc2/src/basic/chattr-util.c
Examining data/systemd-247~rc2/src/basic/chattr-util.h
Examining data/systemd-247~rc2/src/basic/conf-files.c
Examining data/systemd-247~rc2/src/basic/conf-files.h
Examining data/systemd-247~rc2/src/basic/copy.c
Examining data/systemd-247~rc2/src/basic/copy.h
Examining data/systemd-247~rc2/src/basic/def.h
Examining data/systemd-247~rc2/src/basic/device-nodes.c
Examining data/systemd-247~rc2/src/basic/device-nodes.h
Examining data/systemd-247~rc2/src/basic/dirent-util.c
Examining data/systemd-247~rc2/src/basic/dirent-util.h
Examining data/systemd-247~rc2/src/basic/dlfcn-util.c
Examining data/systemd-247~rc2/src/basic/dlfcn-util.h
Examining data/systemd-247~rc2/src/basic/efivars.c
Examining data/systemd-247~rc2/src/basic/efivars.h
Examining data/systemd-247~rc2/src/basic/env-file.c
Examining data/systemd-247~rc2/src/basic/env-file.h
Examining data/systemd-247~rc2/src/basic/env-util.c
Examining data/systemd-247~rc2/src/basic/env-util.h
Examining data/systemd-247~rc2/src/basic/errno-list.c
Examining data/systemd-247~rc2/src/basic/errno-list.h
Examining data/systemd-247~rc2/src/basic/errno-util.h
Examining data/systemd-247~rc2/src/basic/escape.c
Examining data/systemd-247~rc2/src/basic/escape.h
Examining data/systemd-247~rc2/src/basic/ether-addr-util.c
Examining data/systemd-247~rc2/src/basic/ether-addr-util.h
Examining data/systemd-247~rc2/src/basic/extract-word.c
Examining data/systemd-247~rc2/src/basic/extract-word.h
Examining data/systemd-247~rc2/src/basic/fd-util.c
Examining data/systemd-247~rc2/src/basic/fd-util.h
Examining data/systemd-247~rc2/src/basic/fileio.c
Examining data/systemd-247~rc2/src/basic/fileio.h
Examining data/systemd-247~rc2/src/basic/format-util.c
Examining data/systemd-247~rc2/src/basic/format-util.h
Examining data/systemd-247~rc2/src/basic/fs-util.c
Examining data/systemd-247~rc2/src/basic/fs-util.h
Examining data/systemd-247~rc2/src/basic/gcrypt-util.c
Examining data/systemd-247~rc2/src/basic/gcrypt-util.h
Examining data/systemd-247~rc2/src/basic/glob-util.c
Examining data/systemd-247~rc2/src/basic/glob-util.h
Examining data/systemd-247~rc2/src/basic/gunicode.c
Examining data/systemd-247~rc2/src/basic/gunicode.h
Examining data/systemd-247~rc2/src/basic/hash-funcs.c
Examining data/systemd-247~rc2/src/basic/hash-funcs.h
Examining data/systemd-247~rc2/src/basic/hashmap.c
Examining data/systemd-247~rc2/src/basic/hashmap.h
Examining data/systemd-247~rc2/src/basic/hexdecoct.c
Examining data/systemd-247~rc2/src/basic/hexdecoct.h
Examining data/systemd-247~rc2/src/basic/hostname-util.c
Examining data/systemd-247~rc2/src/basic/hostname-util.h
Examining data/systemd-247~rc2/src/basic/in-addr-util.c
Examining data/systemd-247~rc2/src/basic/in-addr-util.h
Examining data/systemd-247~rc2/src/basic/io-util.c
Examining data/systemd-247~rc2/src/basic/io-util.h
Examining data/systemd-247~rc2/src/basic/ioprio.h
Examining data/systemd-247~rc2/src/basic/kbd-util.c
Examining data/systemd-247~rc2/src/basic/kbd-util.h
Examining data/systemd-247~rc2/src/basic/khash.c
Examining data/systemd-247~rc2/src/basic/khash.h
Examining data/systemd-247~rc2/src/basic/label.c
Examining data/systemd-247~rc2/src/basic/label.h
Examining data/systemd-247~rc2/src/basic/limits-util.c
Examining data/systemd-247~rc2/src/basic/limits-util.h
Examining data/systemd-247~rc2/src/basic/linux/btrfs.h
Examining data/systemd-247~rc2/src/basic/linux/btrfs_tree.h
Examining data/systemd-247~rc2/src/basic/linux/can/netlink.h
Examining data/systemd-247~rc2/src/basic/linux/can/vxcan.h
Examining data/systemd-247~rc2/src/basic/linux/fib_rules.h
Examining data/systemd-247~rc2/src/basic/linux/fou.h
Examining data/systemd-247~rc2/src/basic/linux/hdlc/ioctl.h
Examining data/systemd-247~rc2/src/basic/linux/if.h
Examining data/systemd-247~rc2/src/basic/linux/if_addr.h
Examining data/systemd-247~rc2/src/basic/linux/if_arp.h
Examining data/systemd-247~rc2/src/basic/linux/if_bonding.h
Examining data/systemd-247~rc2/src/basic/linux/if_bridge.h
Examining data/systemd-247~rc2/src/basic/linux/if_ether.h
Examining data/systemd-247~rc2/src/basic/linux/if_link.h
Examining data/systemd-247~rc2/src/basic/linux/if_macsec.h
Examining data/systemd-247~rc2/src/basic/linux/if_tun.h
Examining data/systemd-247~rc2/src/basic/linux/if_tunnel.h
Examining data/systemd-247~rc2/src/basic/linux/in.h
Examining data/systemd-247~rc2/src/basic/linux/in6.h
Examining data/systemd-247~rc2/src/basic/linux/ipv6_route.h
Examining data/systemd-247~rc2/src/basic/linux/l2tp.h
Examining data/systemd-247~rc2/src/basic/linux/libc-compat.h
Examining data/systemd-247~rc2/src/basic/linux/loadavg.h
Examining data/systemd-247~rc2/src/basic/linux/netdevice.h
Examining data/systemd-247~rc2/src/basic/linux/netlink.h
Examining data/systemd-247~rc2/src/basic/linux/nexthop.h
Examining data/systemd-247~rc2/src/basic/linux/pkt_sched.h
Examining data/systemd-247~rc2/src/basic/linux/rtnetlink.h
Examining data/systemd-247~rc2/src/basic/linux/wireguard.h
Examining data/systemd-247~rc2/src/basic/list.h
Examining data/systemd-247~rc2/src/basic/locale-util.c
Examining data/systemd-247~rc2/src/basic/locale-util.h
Examining data/systemd-247~rc2/src/basic/log.c
Examining data/systemd-247~rc2/src/basic/log.h
Examining data/systemd-247~rc2/src/basic/login-util.c
Examining data/systemd-247~rc2/src/basic/login-util.h
Examining data/systemd-247~rc2/src/basic/macro.h
Examining data/systemd-247~rc2/src/basic/memfd-util.c
Examining data/systemd-247~rc2/src/basic/memfd-util.h
Examining data/systemd-247~rc2/src/basic/memory-util.c
Examining data/systemd-247~rc2/src/basic/memory-util.h
Examining data/systemd-247~rc2/src/basic/mempool.c
Examining data/systemd-247~rc2/src/basic/mempool.h
Examining data/systemd-247~rc2/src/basic/missing_audit.h
Examining data/systemd-247~rc2/src/basic/missing_capability.h
Examining data/systemd-247~rc2/src/basic/missing_drm.h
Examining data/systemd-247~rc2/src/basic/missing_fcntl.h
Examining data/systemd-247~rc2/src/basic/missing_fs.h
Examining data/systemd-247~rc2/src/basic/missing_input.h
Examining data/systemd-247~rc2/src/basic/missing_keyctl.h
Examining data/systemd-247~rc2/src/basic/missing_loop.h
Examining data/systemd-247~rc2/src/basic/missing_magic.h
Examining data/systemd-247~rc2/src/basic/missing_mman.h
Examining data/systemd-247~rc2/src/basic/missing_network.h
Examining data/systemd-247~rc2/src/basic/missing_prctl.h
Examining data/systemd-247~rc2/src/basic/missing_random.h
Examining data/systemd-247~rc2/src/basic/missing_resource.h
Examining data/systemd-247~rc2/src/basic/missing_sched.h
Examining data/systemd-247~rc2/src/basic/missing_securebits.h
Examining data/systemd-247~rc2/src/basic/missing_socket.h
Examining data/systemd-247~rc2/src/basic/missing_stat.h
Examining data/systemd-247~rc2/src/basic/missing_stdlib.h
Examining data/systemd-247~rc2/src/basic/missing_timerfd.h
Examining data/systemd-247~rc2/src/basic/missing_type.h
Examining data/systemd-247~rc2/src/basic/missing_xfs.h
Examining data/systemd-247~rc2/src/basic/mkdir-label.c
Examining data/systemd-247~rc2/src/basic/mkdir.c
Examining data/systemd-247~rc2/src/basic/mkdir.h
Examining data/systemd-247~rc2/src/basic/mountpoint-util.c
Examining data/systemd-247~rc2/src/basic/mountpoint-util.h
Examining data/systemd-247~rc2/src/basic/namespace-util.c
Examining data/systemd-247~rc2/src/basic/namespace-util.h
Examining data/systemd-247~rc2/src/basic/nss-util.h
Examining data/systemd-247~rc2/src/basic/nulstr-util.c
Examining data/systemd-247~rc2/src/basic/nulstr-util.h
Examining data/systemd-247~rc2/src/basic/ordered-set.c
Examining data/systemd-247~rc2/src/basic/ordered-set.h
Examining data/systemd-247~rc2/src/basic/parse-util.c
Examining data/systemd-247~rc2/src/basic/parse-util.h
Examining data/systemd-247~rc2/src/basic/path-lookup.c
Examining data/systemd-247~rc2/src/basic/path-lookup.h
Examining data/systemd-247~rc2/src/basic/path-util.c
Examining data/systemd-247~rc2/src/basic/path-util.h
Examining data/systemd-247~rc2/src/basic/prioq.c
Examining data/systemd-247~rc2/src/basic/prioq.h
Examining data/systemd-247~rc2/src/basic/proc-cmdline.c
Examining data/systemd-247~rc2/src/basic/proc-cmdline.h
Examining data/systemd-247~rc2/src/basic/process-util.c
Examining data/systemd-247~rc2/src/basic/process-util.h
Examining data/systemd-247~rc2/src/basic/procfs-util.c
Examining data/systemd-247~rc2/src/basic/procfs-util.h
Examining data/systemd-247~rc2/src/basic/pthread-util.h
Examining data/systemd-247~rc2/src/basic/quota-util.c
Examining data/systemd-247~rc2/src/basic/quota-util.h
Examining data/systemd-247~rc2/src/basic/random-util.c
Examining data/systemd-247~rc2/src/basic/random-util.h
Examining data/systemd-247~rc2/src/basic/ratelimit.c
Examining data/systemd-247~rc2/src/basic/ratelimit.h
Examining data/systemd-247~rc2/src/basic/raw-clone.h
Examining data/systemd-247~rc2/src/basic/raw-reboot.h
Examining data/systemd-247~rc2/src/basic/replace-var.c
Examining data/systemd-247~rc2/src/basic/replace-var.h
Examining data/systemd-247~rc2/src/basic/rlimit-util.c
Examining data/systemd-247~rc2/src/basic/rlimit-util.h
Examining data/systemd-247~rc2/src/basic/rm-rf.c
Examining data/systemd-247~rc2/src/basic/rm-rf.h
Examining data/systemd-247~rc2/src/basic/selinux-util.c
Examining data/systemd-247~rc2/src/basic/selinux-util.h
Examining data/systemd-247~rc2/src/basic/set.h
Examining data/systemd-247~rc2/src/basic/sigbus.c
Examining data/systemd-247~rc2/src/basic/sigbus.h
Examining data/systemd-247~rc2/src/basic/signal-util.c
Examining data/systemd-247~rc2/src/basic/signal-util.h
Examining data/systemd-247~rc2/src/basic/siphash24.c
Examining data/systemd-247~rc2/src/basic/siphash24.h
Examining data/systemd-247~rc2/src/basic/smack-util.c
Examining data/systemd-247~rc2/src/basic/smack-util.h
Examining data/systemd-247~rc2/src/basic/socket-label.c
Examining data/systemd-247~rc2/src/basic/socket-util.c
Examining data/systemd-247~rc2/src/basic/socket-util.h
Examining data/systemd-247~rc2/src/basic/sort-util.c
Examining data/systemd-247~rc2/src/basic/sort-util.h
Examining data/systemd-247~rc2/src/basic/sparse-endian.h
Examining data/systemd-247~rc2/src/basic/special.h
Examining data/systemd-247~rc2/src/basic/stat-util.c
Examining data/systemd-247~rc2/src/basic/stat-util.h
Examining data/systemd-247~rc2/src/basic/static-destruct.h
Examining data/systemd-247~rc2/src/basic/stdio-util.h
Examining data/systemd-247~rc2/src/basic/strbuf.c
Examining data/systemd-247~rc2/src/basic/strbuf.h
Examining data/systemd-247~rc2/src/basic/string-table.c
Examining data/systemd-247~rc2/src/basic/string-table.h
Examining data/systemd-247~rc2/src/basic/string-util.c
Examining data/systemd-247~rc2/src/basic/string-util.h
Examining data/systemd-247~rc2/src/basic/strv.c
Examining data/systemd-247~rc2/src/basic/strv.h
Examining data/systemd-247~rc2/src/basic/strxcpyx.c
Examining data/systemd-247~rc2/src/basic/strxcpyx.h
Examining data/systemd-247~rc2/src/basic/syslog-util.c
Examining data/systemd-247~rc2/src/basic/syslog-util.h
Examining data/systemd-247~rc2/src/basic/terminal-util.c
Examining data/systemd-247~rc2/src/basic/terminal-util.h
Examining data/systemd-247~rc2/src/basic/time-util.h
Examining data/systemd-247~rc2/src/basic/tmpfile-util.c
Examining data/systemd-247~rc2/src/basic/tmpfile-util.h
Examining data/systemd-247~rc2/src/basic/umask-util.h
Examining data/systemd-247~rc2/src/basic/unaligned.h
Examining data/systemd-247~rc2/src/basic/unit-def.c
Examining data/systemd-247~rc2/src/basic/unit-def.h
Examining data/systemd-247~rc2/src/basic/unit-name.c
Examining data/systemd-247~rc2/src/basic/unit-name.h
Examining data/systemd-247~rc2/src/basic/user-util.c
Examining data/systemd-247~rc2/src/basic/user-util.h
Examining data/systemd-247~rc2/src/basic/utf8.c
Examining data/systemd-247~rc2/src/basic/utf8.h
Examining data/systemd-247~rc2/src/basic/util.c
Examining data/systemd-247~rc2/src/basic/util.h
Examining data/systemd-247~rc2/src/basic/virt.c
Examining data/systemd-247~rc2/src/basic/virt.h
Examining data/systemd-247~rc2/src/basic/xattr-util.c
Examining data/systemd-247~rc2/src/basic/xattr-util.h
Examining data/systemd-247~rc2/src/basic/missing_syscall.h
Examining data/systemd-247~rc2/src/basic/time-util.c
Examining data/systemd-247~rc2/src/binfmt/binfmt.c
Examining data/systemd-247~rc2/src/boot/bless-boot-generator.c
Examining data/systemd-247~rc2/src/boot/bless-boot.c
Examining data/systemd-247~rc2/src/boot/boot-check-no-failures.c
Examining data/systemd-247~rc2/src/boot/bootctl.c
Examining data/systemd-247~rc2/src/boot/efi/boot.c
Examining data/systemd-247~rc2/src/boot/efi/console.c
Examining data/systemd-247~rc2/src/boot/efi/console.h
Examining data/systemd-247~rc2/src/boot/efi/crc32.c
Examining data/systemd-247~rc2/src/boot/efi/crc32.h
Examining data/systemd-247~rc2/src/boot/efi/disk.c
Examining data/systemd-247~rc2/src/boot/efi/disk.h
Examining data/systemd-247~rc2/src/boot/efi/graphics.c
Examining data/systemd-247~rc2/src/boot/efi/graphics.h
Examining data/systemd-247~rc2/src/boot/efi/linux.c
Examining data/systemd-247~rc2/src/boot/efi/linux.h
Examining data/systemd-247~rc2/src/boot/efi/loader-features.h
Examining data/systemd-247~rc2/src/boot/efi/measure.c
Examining data/systemd-247~rc2/src/boot/efi/measure.h
Examining data/systemd-247~rc2/src/boot/efi/missing_efi.h
Examining data/systemd-247~rc2/src/boot/efi/pe.c
Examining data/systemd-247~rc2/src/boot/efi/pe.h
Examining data/systemd-247~rc2/src/boot/efi/random-seed.c
Examining data/systemd-247~rc2/src/boot/efi/random-seed.h
Examining data/systemd-247~rc2/src/boot/efi/sha256.c
Examining data/systemd-247~rc2/src/boot/efi/sha256.h
Examining data/systemd-247~rc2/src/boot/efi/shim.c
Examining data/systemd-247~rc2/src/boot/efi/shim.h
Examining data/systemd-247~rc2/src/boot/efi/splash.c
Examining data/systemd-247~rc2/src/boot/efi/splash.h
Examining data/systemd-247~rc2/src/boot/efi/stub.c
Examining data/systemd-247~rc2/src/boot/efi/util.c
Examining data/systemd-247~rc2/src/boot/efi/util.h
Examining data/systemd-247~rc2/src/busctl/busctl-introspect.c
Examining data/systemd-247~rc2/src/busctl/busctl-introspect.h
Examining data/systemd-247~rc2/src/busctl/busctl.c
Examining data/systemd-247~rc2/src/cgls/cgls.c
Examining data/systemd-247~rc2/src/cgroups-agent/cgroups-agent.c
Examining data/systemd-247~rc2/src/cgtop/cgtop.c
Examining data/systemd-247~rc2/src/core/all-units.h
Examining data/systemd-247~rc2/src/core/apparmor-setup.c
Examining data/systemd-247~rc2/src/core/apparmor-setup.h
Examining data/systemd-247~rc2/src/core/audit-fd.c
Examining data/systemd-247~rc2/src/core/audit-fd.h
Examining data/systemd-247~rc2/src/core/automount.c
Examining data/systemd-247~rc2/src/core/automount.h
Examining data/systemd-247~rc2/src/core/bpf-devices.c
Examining data/systemd-247~rc2/src/core/bpf-devices.h
Examining data/systemd-247~rc2/src/core/bpf-firewall.c
Examining data/systemd-247~rc2/src/core/bpf-firewall.h
Examining data/systemd-247~rc2/src/core/cgroup.c
Examining data/systemd-247~rc2/src/core/cgroup.h
Examining data/systemd-247~rc2/src/core/core-varlink.c
Examining data/systemd-247~rc2/src/core/core-varlink.h
Examining data/systemd-247~rc2/src/core/dbus-automount.c
Examining data/systemd-247~rc2/src/core/dbus-automount.h
Examining data/systemd-247~rc2/src/core/dbus-cgroup.c
Examining data/systemd-247~rc2/src/core/dbus-cgroup.h
Examining data/systemd-247~rc2/src/core/dbus-device.c
Examining data/systemd-247~rc2/src/core/dbus-device.h
Examining data/systemd-247~rc2/src/core/dbus-execute.c
Examining data/systemd-247~rc2/src/core/dbus-execute.h
Examining data/systemd-247~rc2/src/core/dbus-job.c
Examining data/systemd-247~rc2/src/core/dbus-job.h
Examining data/systemd-247~rc2/src/core/dbus-kill.c
Examining data/systemd-247~rc2/src/core/dbus-kill.h
Examining data/systemd-247~rc2/src/core/dbus-manager.c
Examining data/systemd-247~rc2/src/core/dbus-manager.h
Examining data/systemd-247~rc2/src/core/dbus-mount.c
Examining data/systemd-247~rc2/src/core/dbus-mount.h
Examining data/systemd-247~rc2/src/core/dbus-path.c
Examining data/systemd-247~rc2/src/core/dbus-path.h
Examining data/systemd-247~rc2/src/core/dbus-scope.c
Examining data/systemd-247~rc2/src/core/dbus-scope.h
Examining data/systemd-247~rc2/src/core/dbus-service.c
Examining data/systemd-247~rc2/src/core/dbus-service.h
Examining data/systemd-247~rc2/src/core/dbus-slice.c
Examining data/systemd-247~rc2/src/core/dbus-slice.h
Examining data/systemd-247~rc2/src/core/dbus-socket.c
Examining data/systemd-247~rc2/src/core/dbus-socket.h
Examining data/systemd-247~rc2/src/core/dbus-swap.c
Examining data/systemd-247~rc2/src/core/dbus-swap.h
Examining data/systemd-247~rc2/src/core/dbus-target.c
Examining data/systemd-247~rc2/src/core/dbus-target.h
Examining data/systemd-247~rc2/src/core/dbus-timer.c
Examining data/systemd-247~rc2/src/core/dbus-timer.h
Examining data/systemd-247~rc2/src/core/dbus-unit.c
Examining data/systemd-247~rc2/src/core/dbus-unit.h
Examining data/systemd-247~rc2/src/core/dbus-util.c
Examining data/systemd-247~rc2/src/core/dbus-util.h
Examining data/systemd-247~rc2/src/core/dbus.c
Examining data/systemd-247~rc2/src/core/dbus.h
Examining data/systemd-247~rc2/src/core/device.c
Examining data/systemd-247~rc2/src/core/device.h
Examining data/systemd-247~rc2/src/core/dynamic-user.c
Examining data/systemd-247~rc2/src/core/dynamic-user.h
Examining data/systemd-247~rc2/src/core/efi-random.c
Examining data/systemd-247~rc2/src/core/efi-random.h
Examining data/systemd-247~rc2/src/core/emergency-action.c
Examining data/systemd-247~rc2/src/core/emergency-action.h
Examining data/systemd-247~rc2/src/core/execute.c
Examining data/systemd-247~rc2/src/core/execute.h
Examining data/systemd-247~rc2/src/core/generator-setup.c
Examining data/systemd-247~rc2/src/core/generator-setup.h
Examining data/systemd-247~rc2/src/core/hostname-setup.c
Examining data/systemd-247~rc2/src/core/hostname-setup.h
Examining data/systemd-247~rc2/src/core/ima-setup.c
Examining data/systemd-247~rc2/src/core/ima-setup.h
Examining data/systemd-247~rc2/src/core/ip-address-access.c
Examining data/systemd-247~rc2/src/core/ip-address-access.h
Examining data/systemd-247~rc2/src/core/job.c
Examining data/systemd-247~rc2/src/core/job.h
Examining data/systemd-247~rc2/src/core/kill.c
Examining data/systemd-247~rc2/src/core/kill.h
Examining data/systemd-247~rc2/src/core/killall.c
Examining data/systemd-247~rc2/src/core/killall.h
Examining data/systemd-247~rc2/src/core/kmod-setup.c
Examining data/systemd-247~rc2/src/core/kmod-setup.h
Examining data/systemd-247~rc2/src/core/load-dropin.c
Examining data/systemd-247~rc2/src/core/load-dropin.h
Examining data/systemd-247~rc2/src/core/load-fragment.c
Examining data/systemd-247~rc2/src/core/load-fragment.h
Examining data/systemd-247~rc2/src/core/locale-setup.h
Examining data/systemd-247~rc2/src/core/loopback-setup.c
Examining data/systemd-247~rc2/src/core/loopback-setup.h
Examining data/systemd-247~rc2/src/core/machine-id-setup.c
Examining data/systemd-247~rc2/src/core/machine-id-setup.h
Examining data/systemd-247~rc2/src/core/manager.c
Examining data/systemd-247~rc2/src/core/manager.h
Examining data/systemd-247~rc2/src/core/mount-setup.h
Examining data/systemd-247~rc2/src/core/mount.c
Examining data/systemd-247~rc2/src/core/mount.h
Examining data/systemd-247~rc2/src/core/namespace.c
Examining data/systemd-247~rc2/src/core/namespace.h
Examining data/systemd-247~rc2/src/core/path.c
Examining data/systemd-247~rc2/src/core/path.h
Examining data/systemd-247~rc2/src/core/scope.c
Examining data/systemd-247~rc2/src/core/scope.h
Examining data/systemd-247~rc2/src/core/selinux-access.c
Examining data/systemd-247~rc2/src/core/selinux-access.h
Examining data/systemd-247~rc2/src/core/selinux-setup.c
Examining data/systemd-247~rc2/src/core/selinux-setup.h
Examining data/systemd-247~rc2/src/core/service.c
Examining data/systemd-247~rc2/src/core/service.h
Examining data/systemd-247~rc2/src/core/show-status.c
Examining data/systemd-247~rc2/src/core/show-status.h
Examining data/systemd-247~rc2/src/core/slice.c
Examining data/systemd-247~rc2/src/core/slice.h
Examining data/systemd-247~rc2/src/core/smack-setup.c
Examining data/systemd-247~rc2/src/core/smack-setup.h
Examining data/systemd-247~rc2/src/core/socket.c
Examining data/systemd-247~rc2/src/core/socket.h
Examining data/systemd-247~rc2/src/core/swap.c
Examining data/systemd-247~rc2/src/core/swap.h
Examining data/systemd-247~rc2/src/core/target.c
Examining data/systemd-247~rc2/src/core/target.h
Examining data/systemd-247~rc2/src/core/timer.c
Examining data/systemd-247~rc2/src/core/timer.h
Examining data/systemd-247~rc2/src/core/transaction.c
Examining data/systemd-247~rc2/src/core/transaction.h
Examining data/systemd-247~rc2/src/core/unit-printf.c
Examining data/systemd-247~rc2/src/core/unit-printf.h
Examining data/systemd-247~rc2/src/core/unit.h
Examining data/systemd-247~rc2/src/core/locale-setup.c
Examining data/systemd-247~rc2/src/core/mount-setup.c
Examining data/systemd-247~rc2/src/core/unit.c
Examining data/systemd-247~rc2/src/core/main.c
Examining data/systemd-247~rc2/src/coredump/coredump-vacuum.c
Examining data/systemd-247~rc2/src/coredump/coredump-vacuum.h
Examining data/systemd-247~rc2/src/coredump/coredump.c
Examining data/systemd-247~rc2/src/coredump/coredumpctl.c
Examining data/systemd-247~rc2/src/coredump/stacktrace.c
Examining data/systemd-247~rc2/src/coredump/stacktrace.h
Examining data/systemd-247~rc2/src/coredump/test-coredump-vacuum.c
Examining data/systemd-247~rc2/src/cryptsetup/cryptsetup-generator.c
Examining data/systemd-247~rc2/src/cryptsetup/cryptsetup-keyfile.c
Examining data/systemd-247~rc2/src/cryptsetup/cryptsetup-keyfile.h
Examining data/systemd-247~rc2/src/cryptsetup/cryptsetup-pkcs11.c
Examining data/systemd-247~rc2/src/cryptsetup/cryptsetup-pkcs11.h
Examining data/systemd-247~rc2/src/cryptsetup/cryptsetup.c
Examining data/systemd-247~rc2/src/debug-generator/debug-generator.c
Examining data/systemd-247~rc2/src/delta/delta.c
Examining data/systemd-247~rc2/src/detect-virt/detect-virt.c
Examining data/systemd-247~rc2/src/dissect/dissect.c
Examining data/systemd-247~rc2/src/environment-d-generator/environment-d-generator.c
Examining data/systemd-247~rc2/src/escape/escape.c
Examining data/systemd-247~rc2/src/firstboot/firstboot.c
Examining data/systemd-247~rc2/src/fsck/fsck.c
Examining data/systemd-247~rc2/src/fstab-generator/fstab-generator.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-bus-label.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-bus-message.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-calendarspec.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-catalog.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-compress.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-dhcp-server.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-dhcp6-client.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-dns-packet.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-env-file.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-hostname-util.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-journal-remote.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-journald-audit.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-journald-kmsg.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-journald-native-fd.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-journald-native.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-journald-stream.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-journald-syslog.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-journald.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-journald.h
Examining data/systemd-247~rc2/src/fuzz/fuzz-json.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-lldp.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-main.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-ndisc-rs.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-nspawn-oci.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-nspawn-settings.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-time-util.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-udev-database.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-udev-rule-parse-value.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-udev-rules.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-unit-file.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-varlink.c
Examining data/systemd-247~rc2/src/fuzz/fuzz-xdg-desktop.c
Examining data/systemd-247~rc2/src/fuzz/fuzz.h
Examining data/systemd-247~rc2/src/getty-generator/getty-generator.c
Examining data/systemd-247~rc2/src/gpt-auto-generator/gpt-auto-generator.c
Examining data/systemd-247~rc2/src/hibernate-resume/hibernate-resume-generator.c
Examining data/systemd-247~rc2/src/hibernate-resume/hibernate-resume.c
Examining data/systemd-247~rc2/src/home/home-util.c
Examining data/systemd-247~rc2/src/home/home-util.h
Examining data/systemd-247~rc2/src/home/homectl-fido2.c
Examining data/systemd-247~rc2/src/home/homectl-fido2.h
Examining data/systemd-247~rc2/src/home/homectl-pkcs11.c
Examining data/systemd-247~rc2/src/home/homectl-pkcs11.h
Examining data/systemd-247~rc2/src/home/homectl-recovery-key.c
Examining data/systemd-247~rc2/src/home/homectl-recovery-key.h
Examining data/systemd-247~rc2/src/home/homectl.c
Examining data/systemd-247~rc2/src/home/homed-bus.c
Examining data/systemd-247~rc2/src/home/homed-bus.h
Examining data/systemd-247~rc2/src/home/homed-conf.c
Examining data/systemd-247~rc2/src/home/homed-conf.h
Examining data/systemd-247~rc2/src/home/homed-home-bus.c
Examining data/systemd-247~rc2/src/home/homed-home-bus.h
Examining data/systemd-247~rc2/src/home/homed-home.c
Examining data/systemd-247~rc2/src/home/homed-home.h
Examining data/systemd-247~rc2/src/home/homed-manager-bus.c
Examining data/systemd-247~rc2/src/home/homed-manager-bus.h
Examining data/systemd-247~rc2/src/home/homed-manager.c
Examining data/systemd-247~rc2/src/home/homed-manager.h
Examining data/systemd-247~rc2/src/home/homed-operation.c
Examining data/systemd-247~rc2/src/home/homed-operation.h
Examining data/systemd-247~rc2/src/home/homed-varlink.c
Examining data/systemd-247~rc2/src/home/homed-varlink.h
Examining data/systemd-247~rc2/src/home/homed.c
Examining data/systemd-247~rc2/src/home/homework-cifs.c
Examining data/systemd-247~rc2/src/home/homework-cifs.h
Examining data/systemd-247~rc2/src/home/homework-directory.c
Examining data/systemd-247~rc2/src/home/homework-directory.h
Examining data/systemd-247~rc2/src/home/homework-fido2.c
Examining data/systemd-247~rc2/src/home/homework-fido2.h
Examining data/systemd-247~rc2/src/home/homework-fscrypt.c
Examining data/systemd-247~rc2/src/home/homework-fscrypt.h
Examining data/systemd-247~rc2/src/home/homework-luks.c
Examining data/systemd-247~rc2/src/home/homework-luks.h
Examining data/systemd-247~rc2/src/home/homework-mount.c
Examining data/systemd-247~rc2/src/home/homework-mount.h
Examining data/systemd-247~rc2/src/home/homework-pkcs11.c
Examining data/systemd-247~rc2/src/home/homework-pkcs11.h
Examining data/systemd-247~rc2/src/home/homework-quota.c
Examining data/systemd-247~rc2/src/home/homework-quota.h
Examining data/systemd-247~rc2/src/home/homework.c
Examining data/systemd-247~rc2/src/home/homework.h
Examining data/systemd-247~rc2/src/home/modhex.c
Examining data/systemd-247~rc2/src/home/modhex.h
Examining data/systemd-247~rc2/src/home/pam_systemd_home.c
Examining data/systemd-247~rc2/src/home/test-modhex.c
Examining data/systemd-247~rc2/src/home/user-record-pwquality.c
Examining data/systemd-247~rc2/src/home/user-record-pwquality.h
Examining data/systemd-247~rc2/src/home/user-record-sign.c
Examining data/systemd-247~rc2/src/home/user-record-sign.h
Examining data/systemd-247~rc2/src/home/user-record-util.c
Examining data/systemd-247~rc2/src/home/user-record-util.h
Examining data/systemd-247~rc2/src/hostname/hostnamectl.c
Examining data/systemd-247~rc2/src/hostname/hostnamed.c
Examining data/systemd-247~rc2/src/hwdb/hwdb.c
Examining data/systemd-247~rc2/src/id128/id128.c
Examining data/systemd-247~rc2/src/import/curl-util.c
Examining data/systemd-247~rc2/src/import/curl-util.h
Examining data/systemd-247~rc2/src/import/export-raw.c
Examining data/systemd-247~rc2/src/import/export-raw.h
Examining data/systemd-247~rc2/src/import/export-tar.c
Examining data/systemd-247~rc2/src/import/export-tar.h
Examining data/systemd-247~rc2/src/import/export.c
Examining data/systemd-247~rc2/src/import/import-common.c
Examining data/systemd-247~rc2/src/import/import-common.h
Examining data/systemd-247~rc2/src/import/import-compress.c
Examining data/systemd-247~rc2/src/import/import-compress.h
Examining data/systemd-247~rc2/src/import/import-fs.c
Examining data/systemd-247~rc2/src/import/import-raw.c
Examining data/systemd-247~rc2/src/import/import-raw.h
Examining data/systemd-247~rc2/src/import/import-tar.c
Examining data/systemd-247~rc2/src/import/import-tar.h
Examining data/systemd-247~rc2/src/import/import.c
Examining data/systemd-247~rc2/src/import/importd.c
Examining data/systemd-247~rc2/src/import/pull-common.c
Examining data/systemd-247~rc2/src/import/pull-common.h
Examining data/systemd-247~rc2/src/import/pull-job.c
Examining data/systemd-247~rc2/src/import/pull-job.h
Examining data/systemd-247~rc2/src/import/pull-raw.c
Examining data/systemd-247~rc2/src/import/pull-raw.h
Examining data/systemd-247~rc2/src/import/pull-tar.c
Examining data/systemd-247~rc2/src/import/pull-tar.h
Examining data/systemd-247~rc2/src/import/pull.c
Examining data/systemd-247~rc2/src/import/qcow2-util.c
Examining data/systemd-247~rc2/src/import/qcow2-util.h
Examining data/systemd-247~rc2/src/import/test-qcow2.c
Examining data/systemd-247~rc2/src/initctl/initctl.c
Examining data/systemd-247~rc2/src/journal-remote/journal-gatewayd.c
Examining data/systemd-247~rc2/src/journal-remote/journal-remote-main.c
Examining data/systemd-247~rc2/src/journal-remote/journal-remote-parse.c
Examining data/systemd-247~rc2/src/journal-remote/journal-remote-parse.h
Examining data/systemd-247~rc2/src/journal-remote/journal-remote-write.c
Examining data/systemd-247~rc2/src/journal-remote/journal-remote-write.h
Examining data/systemd-247~rc2/src/journal-remote/journal-remote.c
Examining data/systemd-247~rc2/src/journal-remote/journal-remote.h
Examining data/systemd-247~rc2/src/journal-remote/journal-upload-journal.c
Examining data/systemd-247~rc2/src/journal-remote/journal-upload.c
Examining data/systemd-247~rc2/src/journal-remote/journal-upload.h
Examining data/systemd-247~rc2/src/journal-remote/microhttpd-util.c
Examining data/systemd-247~rc2/src/journal-remote/microhttpd-util.h
Examining data/systemd-247~rc2/src/journal/audit-type.c
Examining data/systemd-247~rc2/src/journal/audit-type.h
Examining data/systemd-247~rc2/src/journal/cat.c
Examining data/systemd-247~rc2/src/journal/catalog.c
Examining data/systemd-247~rc2/src/journal/catalog.h
Examining data/systemd-247~rc2/src/journal/compress.c
Examining data/systemd-247~rc2/src/journal/fsprg.c
Examining data/systemd-247~rc2/src/journal/fsprg.h
Examining data/systemd-247~rc2/src/journal/journal-authenticate.c
Examining data/systemd-247~rc2/src/journal/journal-authenticate.h
Examining data/systemd-247~rc2/src/journal/journal-def.h
Examining data/systemd-247~rc2/src/journal/journal-file.h
Examining data/systemd-247~rc2/src/journal/journal-internal.h
Examining data/systemd-247~rc2/src/journal/journal-send.c
Examining data/systemd-247~rc2/src/journal/journal-vacuum.c
Examining data/systemd-247~rc2/src/journal/journal-vacuum.h
Examining data/systemd-247~rc2/src/journal/journal-verify.c
Examining data/systemd-247~rc2/src/journal/journal-verify.h
Examining data/systemd-247~rc2/src/journal/journalctl.c
Examining data/systemd-247~rc2/src/journal/journald-audit.c
Examining data/systemd-247~rc2/src/journal/journald-audit.h
Examining data/systemd-247~rc2/src/journal/journald-console.c
Examining data/systemd-247~rc2/src/journal/journald-console.h
Examining data/systemd-247~rc2/src/journal/journald-context.c
Examining data/systemd-247~rc2/src/journal/journald-context.h
Examining data/systemd-247~rc2/src/journal/journald-kmsg.c
Examining data/systemd-247~rc2/src/journal/journald-kmsg.h
Examining data/systemd-247~rc2/src/journal/journald-native.c
Examining data/systemd-247~rc2/src/journal/journald-native.h
Examining data/systemd-247~rc2/src/journal/journald-rate-limit.c
Examining data/systemd-247~rc2/src/journal/journald-rate-limit.h
Examining data/systemd-247~rc2/src/journal/journald-server.h
Examining data/systemd-247~rc2/src/journal/journald-stream.c
Examining data/systemd-247~rc2/src/journal/journald-stream.h
Examining data/systemd-247~rc2/src/journal/journald-syslog.c
Examining data/systemd-247~rc2/src/journal/journald-syslog.h
Examining data/systemd-247~rc2/src/journal/journald-wall.c
Examining data/systemd-247~rc2/src/journal/journald-wall.h
Examining data/systemd-247~rc2/src/journal/journald.c
Examining data/systemd-247~rc2/src/journal/lookup3.c
Examining data/systemd-247~rc2/src/journal/lookup3.h
Examining data/systemd-247~rc2/src/journal/mmap-cache.c
Examining data/systemd-247~rc2/src/journal/mmap-cache.h
Examining data/systemd-247~rc2/src/journal/pcre2-dlopen.c
Examining data/systemd-247~rc2/src/journal/pcre2-dlopen.h
Examining data/systemd-247~rc2/src/journal/sd-journal.c
Examining data/systemd-247~rc2/src/journal/test-audit-type.c
Examining data/systemd-247~rc2/src/journal/test-catalog.c
Examining data/systemd-247~rc2/src/journal/test-compress-benchmark.c
Examining data/systemd-247~rc2/src/journal/test-compress.c
Examining data/systemd-247~rc2/src/journal/test-journal-config.c
Examining data/systemd-247~rc2/src/journal/test-journal-enum.c
Examining data/systemd-247~rc2/src/journal/test-journal-flush.c
Examining data/systemd-247~rc2/src/journal/test-journal-init.c
Examining data/systemd-247~rc2/src/journal/test-journal-interleaving.c
Examining data/systemd-247~rc2/src/journal/test-journal-match.c
Examining data/systemd-247~rc2/src/journal/test-journal-send.c
Examining data/systemd-247~rc2/src/journal/test-journal-stream.c
Examining data/systemd-247~rc2/src/journal/test-journal-syslog.c
Examining data/systemd-247~rc2/src/journal/test-journal-verify.c
Examining data/systemd-247~rc2/src/journal/test-journal.c
Examining data/systemd-247~rc2/src/journal/test-mmap-cache.c
Examining data/systemd-247~rc2/src/journal/journald-server.c
Examining data/systemd-247~rc2/src/journal/compress.h
Examining data/systemd-247~rc2/src/journal/journal-file.c
Examining data/systemd-247~rc2/src/libsystemd-network/arp-util.c
Examining data/systemd-247~rc2/src/libsystemd-network/arp-util.h
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp-client-internal.h
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp-identifier.c
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp-identifier.h
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp-internal.h
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp-lease-internal.h
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp-network.c
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp-option.c
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp-packet.c
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp-protocol.h
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp-server-internal.h
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp6-internal.h
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp6-lease-internal.h
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp6-network.c
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c
Examining data/systemd-247~rc2/src/libsystemd-network/dhcp6-protocol.h
Examining data/systemd-247~rc2/src/libsystemd-network/icmp6-util.c
Examining data/systemd-247~rc2/src/libsystemd-network/icmp6-util.h
Examining data/systemd-247~rc2/src/libsystemd-network/lldp-internal.h
Examining data/systemd-247~rc2/src/libsystemd-network/lldp-neighbor.c
Examining data/systemd-247~rc2/src/libsystemd-network/lldp-neighbor.h
Examining data/systemd-247~rc2/src/libsystemd-network/lldp-network.c
Examining data/systemd-247~rc2/src/libsystemd-network/lldp-network.h
Examining data/systemd-247~rc2/src/libsystemd-network/ndisc-internal.h
Examining data/systemd-247~rc2/src/libsystemd-network/ndisc-router.c
Examining data/systemd-247~rc2/src/libsystemd-network/ndisc-router.h
Examining data/systemd-247~rc2/src/libsystemd-network/network-internal.c
Examining data/systemd-247~rc2/src/libsystemd-network/network-internal.h
Examining data/systemd-247~rc2/src/libsystemd-network/radv-internal.h
Examining data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c
Examining data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-lease.c
Examining data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-server.c
Examining data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c
Examining data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-lease.c
Examining data/systemd-247~rc2/src/libsystemd-network/sd-ipv4acd.c
Examining data/systemd-247~rc2/src/libsystemd-network/sd-ipv4ll.c
Examining data/systemd-247~rc2/src/libsystemd-network/sd-lldp.c
Examining data/systemd-247~rc2/src/libsystemd-network/sd-ndisc.c
Examining data/systemd-247~rc2/src/libsystemd-network/sd-radv.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-acd.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-dhcp-client.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-dhcp-option.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-dhcp-server.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-dhcp6-client.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-ipv4ll-manual.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-ipv4ll.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-lldp.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-ndisc-ra.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-ndisc-rs.c
Examining data/systemd-247~rc2/src/libsystemd-network/test-sd-dhcp-lease.c
Examining data/systemd-247~rc2/src/libsystemd/disable-mempool.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-common-errors.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-common-errors.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-container.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-container.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-control.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-control.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-convenience.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-creds.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-creds.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-dump.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-dump.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-error.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-error.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-internal.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-internal.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-introspect.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-introspect.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-kernel.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-kernel.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-match.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-match.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-objects.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-objects.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-protocol.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-signature.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-signature.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-slot.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-slot.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-track.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-track.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-type.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/bus-type.h
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-address.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-benchmark.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-chat.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-cleanup.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-creds.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-error.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-gvariant.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-introspect.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-marshal.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-match.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-objects.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-queue-ref-cycle.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-server.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-signature.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-track.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-vtable.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-watch-bind.c
Examining data/systemd-247~rc2/src/libsystemd/sd-bus/test-vtable-data.h
Examining data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c
Examining data/systemd-247~rc2/src/libsystemd/sd-device/device-enumerator-private.h
Examining data/systemd-247~rc2/src/libsystemd/sd-device/device-enumerator.c
Examining data/systemd-247~rc2/src/libsystemd/sd-device/device-monitor-private.h
Examining data/systemd-247~rc2/src/libsystemd/sd-device/device-monitor.c
Examining data/systemd-247~rc2/src/libsystemd/sd-device/device-private.h
Examining data/systemd-247~rc2/src/libsystemd/sd-device/device-util.h
Examining data/systemd-247~rc2/src/libsystemd/sd-device/test-sd-device-monitor.c
Examining data/systemd-247~rc2/src/libsystemd/sd-device/test-sd-device-thread.c
Examining data/systemd-247~rc2/src/libsystemd/sd-device/test-sd-device.c
Examining data/systemd-247~rc2/src/libsystemd/sd-device/test-udev-device-thread.c
Examining data/systemd-247~rc2/src/libsystemd/sd-device/device-internal.h
Examining data/systemd-247~rc2/src/libsystemd/sd-device/device-private.c
Examining data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c
Examining data/systemd-247~rc2/src/libsystemd/sd-event/event-source.h
Examining data/systemd-247~rc2/src/libsystemd/sd-event/event-util.c
Examining data/systemd-247~rc2/src/libsystemd/sd-event/event-util.h
Examining data/systemd-247~rc2/src/libsystemd/sd-event/sd-event.c
Examining data/systemd-247~rc2/src/libsystemd/sd-event/test-event.c
Examining data/systemd-247~rc2/src/libsystemd/sd-hwdb/hwdb-internal.h
Examining data/systemd-247~rc2/src/libsystemd/sd-hwdb/hwdb-util.c
Examining data/systemd-247~rc2/src/libsystemd/sd-hwdb/hwdb-util.h
Examining data/systemd-247~rc2/src/libsystemd/sd-hwdb/sd-hwdb.c
Examining data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.c
Examining data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.h
Examining data/systemd-247~rc2/src/libsystemd/sd-id128/sd-id128.c
Examining data/systemd-247~rc2/src/libsystemd/sd-login/sd-login.c
Examining data/systemd-247~rc2/src/libsystemd/sd-login/test-login.c
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/generic-netlink.c
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/generic-netlink.h
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-internal.h
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-message.c
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-slot.c
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-slot.h
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-socket.c
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-types.c
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-types.h
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-util.c
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-util.h
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/rtnl-message.c
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/sd-netlink.c
Examining data/systemd-247~rc2/src/libsystemd/sd-netlink/test-netlink.c
Examining data/systemd-247~rc2/src/libsystemd/sd-network/network-util.c
Examining data/systemd-247~rc2/src/libsystemd/sd-network/network-util.h
Examining data/systemd-247~rc2/src/libsystemd/sd-network/sd-network.c
Examining data/systemd-247~rc2/src/libsystemd/sd-path/sd-path.c
Examining data/systemd-247~rc2/src/libsystemd/sd-resolve/resolve-private.h
Examining data/systemd-247~rc2/src/libsystemd/sd-resolve/sd-resolve.c
Examining data/systemd-247~rc2/src/libsystemd/sd-resolve/test-resolve.c
Examining data/systemd-247~rc2/src/libsystemd/sd-utf8/sd-utf8.c
Examining data/systemd-247~rc2/src/libudev/libudev-device-internal.h
Examining data/systemd-247~rc2/src/libudev/libudev-device.c
Examining data/systemd-247~rc2/src/libudev/libudev-enumerate.c
Examining data/systemd-247~rc2/src/libudev/libudev-hwdb.c
Examining data/systemd-247~rc2/src/libudev/libudev-list-internal.h
Examining data/systemd-247~rc2/src/libudev/libudev-list.c
Examining data/systemd-247~rc2/src/libudev/libudev-monitor.c
Examining data/systemd-247~rc2/src/libudev/libudev-queue.c
Examining data/systemd-247~rc2/src/libudev/libudev-util.c
Examining data/systemd-247~rc2/src/libudev/libudev-util.h
Examining data/systemd-247~rc2/src/libudev/libudev.c
Examining data/systemd-247~rc2/src/libudev/libudev.h
Examining data/systemd-247~rc2/src/locale/keymap-util.h
Examining data/systemd-247~rc2/src/locale/localectl.c
Examining data/systemd-247~rc2/src/locale/localed.c
Examining data/systemd-247~rc2/src/locale/test-keymap-util.c
Examining data/systemd-247~rc2/src/locale/keymap-util.c
Examining data/systemd-247~rc2/src/login/inhibit.c
Examining data/systemd-247~rc2/src/login/loginctl.c
Examining data/systemd-247~rc2/src/login/logind-acl.c
Examining data/systemd-247~rc2/src/login/logind-acl.h
Examining data/systemd-247~rc2/src/login/logind-action.c
Examining data/systemd-247~rc2/src/login/logind-action.h
Examining data/systemd-247~rc2/src/login/logind-brightness.c
Examining data/systemd-247~rc2/src/login/logind-brightness.h
Examining data/systemd-247~rc2/src/login/logind-button.c
Examining data/systemd-247~rc2/src/login/logind-button.h
Examining data/systemd-247~rc2/src/login/logind-core.c
Examining data/systemd-247~rc2/src/login/logind-dbus.c
Examining data/systemd-247~rc2/src/login/logind-dbus.h
Examining data/systemd-247~rc2/src/login/logind-device.c
Examining data/systemd-247~rc2/src/login/logind-device.h
Examining data/systemd-247~rc2/src/login/logind-inhibit.c
Examining data/systemd-247~rc2/src/login/logind-inhibit.h
Examining data/systemd-247~rc2/src/login/logind-seat-dbus.c
Examining data/systemd-247~rc2/src/login/logind-seat-dbus.h
Examining data/systemd-247~rc2/src/login/logind-seat.c
Examining data/systemd-247~rc2/src/login/logind-seat.h
Examining data/systemd-247~rc2/src/login/logind-session-dbus.c
Examining data/systemd-247~rc2/src/login/logind-session-dbus.h
Examining data/systemd-247~rc2/src/login/logind-session-device.c
Examining data/systemd-247~rc2/src/login/logind-session-device.h
Examining data/systemd-247~rc2/src/login/logind-session.c
Examining data/systemd-247~rc2/src/login/logind-session.h
Examining data/systemd-247~rc2/src/login/logind-user-dbus.c
Examining data/systemd-247~rc2/src/login/logind-user-dbus.h
Examining data/systemd-247~rc2/src/login/logind-user.c
Examining data/systemd-247~rc2/src/login/logind-user.h
Examining data/systemd-247~rc2/src/login/logind-utmp.c
Examining data/systemd-247~rc2/src/login/logind.c
Examining data/systemd-247~rc2/src/login/logind.h
Examining data/systemd-247~rc2/src/login/pam_systemd.c
Examining data/systemd-247~rc2/src/login/sysfs-show.c
Examining data/systemd-247~rc2/src/login/sysfs-show.h
Examining data/systemd-247~rc2/src/login/test-inhibit.c
Examining data/systemd-247~rc2/src/login/test-login-shared.c
Examining data/systemd-247~rc2/src/login/test-login-tables.c
Examining data/systemd-247~rc2/src/login/user-runtime-dir.c
Examining data/systemd-247~rc2/src/machine-id-setup/machine-id-setup-main.c
Examining data/systemd-247~rc2/src/machine/image-dbus.c
Examining data/systemd-247~rc2/src/machine/image-dbus.h
Examining data/systemd-247~rc2/src/machine/machine-dbus.c
Examining data/systemd-247~rc2/src/machine/machine-dbus.h
Examining data/systemd-247~rc2/src/machine/machine.c
Examining data/systemd-247~rc2/src/machine/machine.h
Examining data/systemd-247~rc2/src/machine/machinectl.c
Examining data/systemd-247~rc2/src/machine/machined-core.c
Examining data/systemd-247~rc2/src/machine/machined-dbus.c
Examining data/systemd-247~rc2/src/machine/machined-varlink.c
Examining data/systemd-247~rc2/src/machine/machined-varlink.h
Examining data/systemd-247~rc2/src/machine/machined.c
Examining data/systemd-247~rc2/src/machine/machined.h
Examining data/systemd-247~rc2/src/machine/operation.c
Examining data/systemd-247~rc2/src/machine/operation.h
Examining data/systemd-247~rc2/src/machine/test-machine-tables.c
Examining data/systemd-247~rc2/src/modules-load/modules-load.c
Examining data/systemd-247~rc2/src/mount/mount-tool.c
Examining data/systemd-247~rc2/src/network/fuzz-netdev-parser.c
Examining data/systemd-247~rc2/src/network/fuzz-network-parser.c
Examining data/systemd-247~rc2/src/network/generator/main.c
Examining data/systemd-247~rc2/src/network/generator/network-generator.c
Examining data/systemd-247~rc2/src/network/generator/network-generator.h
Examining data/systemd-247~rc2/src/network/generator/test-network-generator.c
Examining data/systemd-247~rc2/src/network/netdev/bareudp.c
Examining data/systemd-247~rc2/src/network/netdev/bareudp.h
Examining data/systemd-247~rc2/src/network/netdev/bond.c
Examining data/systemd-247~rc2/src/network/netdev/bond.h
Examining data/systemd-247~rc2/src/network/netdev/bridge.c
Examining data/systemd-247~rc2/src/network/netdev/bridge.h
Examining data/systemd-247~rc2/src/network/netdev/dummy.c
Examining data/systemd-247~rc2/src/network/netdev/dummy.h
Examining data/systemd-247~rc2/src/network/netdev/fou-tunnel.c
Examining data/systemd-247~rc2/src/network/netdev/fou-tunnel.h
Examining data/systemd-247~rc2/src/network/netdev/geneve.c
Examining data/systemd-247~rc2/src/network/netdev/geneve.h
Examining data/systemd-247~rc2/src/network/netdev/ifb.c
Examining data/systemd-247~rc2/src/network/netdev/ifb.h
Examining data/systemd-247~rc2/src/network/netdev/ipvlan.c
Examining data/systemd-247~rc2/src/network/netdev/ipvlan.h
Examining data/systemd-247~rc2/src/network/netdev/l2tp-tunnel.c
Examining data/systemd-247~rc2/src/network/netdev/l2tp-tunnel.h
Examining data/systemd-247~rc2/src/network/netdev/macsec.c
Examining data/systemd-247~rc2/src/network/netdev/macsec.h
Examining data/systemd-247~rc2/src/network/netdev/macvlan.c
Examining data/systemd-247~rc2/src/network/netdev/macvlan.h
Examining data/systemd-247~rc2/src/network/netdev/netdev.c
Examining data/systemd-247~rc2/src/network/netdev/netdev.h
Examining data/systemd-247~rc2/src/network/netdev/netdevsim.c
Examining data/systemd-247~rc2/src/network/netdev/netdevsim.h
Examining data/systemd-247~rc2/src/network/netdev/nlmon.c
Examining data/systemd-247~rc2/src/network/netdev/nlmon.h
Examining data/systemd-247~rc2/src/network/netdev/tunnel.c
Examining data/systemd-247~rc2/src/network/netdev/tunnel.h
Examining data/systemd-247~rc2/src/network/netdev/tuntap.c
Examining data/systemd-247~rc2/src/network/netdev/tuntap.h
Examining data/systemd-247~rc2/src/network/netdev/vcan.c
Examining data/systemd-247~rc2/src/network/netdev/vcan.h
Examining data/systemd-247~rc2/src/network/netdev/veth.c
Examining data/systemd-247~rc2/src/network/netdev/veth.h
Examining data/systemd-247~rc2/src/network/netdev/vlan.c
Examining data/systemd-247~rc2/src/network/netdev/vlan.h
Examining data/systemd-247~rc2/src/network/netdev/vrf.c
Examining data/systemd-247~rc2/src/network/netdev/vrf.h
Examining data/systemd-247~rc2/src/network/netdev/vxcan.c
Examining data/systemd-247~rc2/src/network/netdev/vxcan.h
Examining data/systemd-247~rc2/src/network/netdev/vxlan.c
Examining data/systemd-247~rc2/src/network/netdev/vxlan.h
Examining data/systemd-247~rc2/src/network/netdev/wireguard.c
Examining data/systemd-247~rc2/src/network/netdev/wireguard.h
Examining data/systemd-247~rc2/src/network/netdev/xfrm.c
Examining data/systemd-247~rc2/src/network/netdev/xfrm.h
Examining data/systemd-247~rc2/src/network/networkctl.c
Examining data/systemd-247~rc2/src/network/networkd-address-label.c
Examining data/systemd-247~rc2/src/network/networkd-address-label.h
Examining data/systemd-247~rc2/src/network/networkd-address-pool.c
Examining data/systemd-247~rc2/src/network/networkd-address-pool.h
Examining data/systemd-247~rc2/src/network/networkd-address.c
Examining data/systemd-247~rc2/src/network/networkd-address.h
Examining data/systemd-247~rc2/src/network/networkd-brvlan.c
Examining data/systemd-247~rc2/src/network/networkd-brvlan.h
Examining data/systemd-247~rc2/src/network/networkd-can.c
Examining data/systemd-247~rc2/src/network/networkd-can.h
Examining data/systemd-247~rc2/src/network/networkd-conf.c
Examining data/systemd-247~rc2/src/network/networkd-conf.h
Examining data/systemd-247~rc2/src/network/networkd-dhcp-common.c
Examining data/systemd-247~rc2/src/network/networkd-dhcp-common.h
Examining data/systemd-247~rc2/src/network/networkd-dhcp-server-bus.c
Examining data/systemd-247~rc2/src/network/networkd-dhcp-server-bus.h
Examining data/systemd-247~rc2/src/network/networkd-dhcp-server.c
Examining data/systemd-247~rc2/src/network/networkd-dhcp-server.h
Examining data/systemd-247~rc2/src/network/networkd-dhcp4.c
Examining data/systemd-247~rc2/src/network/networkd-dhcp4.h
Examining data/systemd-247~rc2/src/network/networkd-dhcp6.c
Examining data/systemd-247~rc2/src/network/networkd-dhcp6.h
Examining data/systemd-247~rc2/src/network/networkd-fdb.c
Examining data/systemd-247~rc2/src/network/networkd-fdb.h
Examining data/systemd-247~rc2/src/network/networkd-ipv4ll.c
Examining data/systemd-247~rc2/src/network/networkd-ipv4ll.h
Examining data/systemd-247~rc2/src/network/networkd-ipv6-proxy-ndp.c
Examining data/systemd-247~rc2/src/network/networkd-ipv6-proxy-ndp.h
Examining data/systemd-247~rc2/src/network/networkd-link-bus.c
Examining data/systemd-247~rc2/src/network/networkd-link-bus.h
Examining data/systemd-247~rc2/src/network/networkd-link.c
Examining data/systemd-247~rc2/src/network/networkd-link.h
Examining data/systemd-247~rc2/src/network/networkd-lldp-rx.c
Examining data/systemd-247~rc2/src/network/networkd-lldp-rx.h
Examining data/systemd-247~rc2/src/network/networkd-lldp-tx.c
Examining data/systemd-247~rc2/src/network/networkd-lldp-tx.h
Examining data/systemd-247~rc2/src/network/networkd-manager-bus.c
Examining data/systemd-247~rc2/src/network/networkd-manager-bus.h
Examining data/systemd-247~rc2/src/network/networkd-manager.c
Examining data/systemd-247~rc2/src/network/networkd-manager.h
Examining data/systemd-247~rc2/src/network/networkd-mdb.c
Examining data/systemd-247~rc2/src/network/networkd-mdb.h
Examining data/systemd-247~rc2/src/network/networkd-ndisc.c
Examining data/systemd-247~rc2/src/network/networkd-ndisc.h
Examining data/systemd-247~rc2/src/network/networkd-neighbor.c
Examining data/systemd-247~rc2/src/network/networkd-neighbor.h
Examining data/systemd-247~rc2/src/network/networkd-network-bus.c
Examining data/systemd-247~rc2/src/network/networkd-network-bus.h
Examining data/systemd-247~rc2/src/network/networkd-network.c
Examining data/systemd-247~rc2/src/network/networkd-network.h
Examining data/systemd-247~rc2/src/network/networkd-nexthop.c
Examining data/systemd-247~rc2/src/network/networkd-nexthop.h
Examining data/systemd-247~rc2/src/network/networkd-radv.c
Examining data/systemd-247~rc2/src/network/networkd-radv.h
Examining data/systemd-247~rc2/src/network/networkd-route.c
Examining data/systemd-247~rc2/src/network/networkd-route.h
Examining data/systemd-247~rc2/src/network/networkd-routing-policy-rule.c
Examining data/systemd-247~rc2/src/network/networkd-routing-policy-rule.h
Examining data/systemd-247~rc2/src/network/networkd-speed-meter.c
Examining data/systemd-247~rc2/src/network/networkd-speed-meter.h
Examining data/systemd-247~rc2/src/network/networkd-sriov.c
Examining data/systemd-247~rc2/src/network/networkd-sriov.h
Examining data/systemd-247~rc2/src/network/networkd-sysctl.c
Examining data/systemd-247~rc2/src/network/networkd-sysctl.h
Examining data/systemd-247~rc2/src/network/networkd-util.c
Examining data/systemd-247~rc2/src/network/networkd-util.h
Examining data/systemd-247~rc2/src/network/networkd-wifi.c
Examining data/systemd-247~rc2/src/network/networkd-wifi.h
Examining data/systemd-247~rc2/src/network/networkd.c
Examining data/systemd-247~rc2/src/network/tc/cake.c
Examining data/systemd-247~rc2/src/network/tc/cake.h
Examining data/systemd-247~rc2/src/network/tc/codel.c
Examining data/systemd-247~rc2/src/network/tc/codel.h
Examining data/systemd-247~rc2/src/network/tc/drr.c
Examining data/systemd-247~rc2/src/network/tc/drr.h
Examining data/systemd-247~rc2/src/network/tc/ets.c
Examining data/systemd-247~rc2/src/network/tc/ets.h
Examining data/systemd-247~rc2/src/network/tc/fifo.c
Examining data/systemd-247~rc2/src/network/tc/fifo.h
Examining data/systemd-247~rc2/src/network/tc/fq-codel.c
Examining data/systemd-247~rc2/src/network/tc/fq-codel.h
Examining data/systemd-247~rc2/src/network/tc/fq-pie.c
Examining data/systemd-247~rc2/src/network/tc/fq-pie.h
Examining data/systemd-247~rc2/src/network/tc/fq.c
Examining data/systemd-247~rc2/src/network/tc/fq.h
Examining data/systemd-247~rc2/src/network/tc/gred.c
Examining data/systemd-247~rc2/src/network/tc/gred.h
Examining data/systemd-247~rc2/src/network/tc/hhf.c
Examining data/systemd-247~rc2/src/network/tc/hhf.h
Examining data/systemd-247~rc2/src/network/tc/htb.c
Examining data/systemd-247~rc2/src/network/tc/htb.h
Examining data/systemd-247~rc2/src/network/tc/netem.c
Examining data/systemd-247~rc2/src/network/tc/netem.h
Examining data/systemd-247~rc2/src/network/tc/pie.c
Examining data/systemd-247~rc2/src/network/tc/pie.h
Examining data/systemd-247~rc2/src/network/tc/qdisc.c
Examining data/systemd-247~rc2/src/network/tc/qdisc.h
Examining data/systemd-247~rc2/src/network/tc/qfq.c
Examining data/systemd-247~rc2/src/network/tc/qfq.h
Examining data/systemd-247~rc2/src/network/tc/sfb.c
Examining data/systemd-247~rc2/src/network/tc/sfb.h
Examining data/systemd-247~rc2/src/network/tc/sfq.c
Examining data/systemd-247~rc2/src/network/tc/sfq.h
Examining data/systemd-247~rc2/src/network/tc/tbf.c
Examining data/systemd-247~rc2/src/network/tc/tbf.h
Examining data/systemd-247~rc2/src/network/tc/tc-util.c
Examining data/systemd-247~rc2/src/network/tc/tc-util.h
Examining data/systemd-247~rc2/src/network/tc/tc.c
Examining data/systemd-247~rc2/src/network/tc/tc.h
Examining data/systemd-247~rc2/src/network/tc/tclass.c
Examining data/systemd-247~rc2/src/network/tc/tclass.h
Examining data/systemd-247~rc2/src/network/tc/teql.c
Examining data/systemd-247~rc2/src/network/tc/teql.h
Examining data/systemd-247~rc2/src/network/test-network-tables.c
Examining data/systemd-247~rc2/src/network/test-network.c
Examining data/systemd-247~rc2/src/network/test-networkd-conf.c
Examining data/systemd-247~rc2/src/network/test-routing-policy-rule.c
Examining data/systemd-247~rc2/src/network/wait-online/link.c
Examining data/systemd-247~rc2/src/network/wait-online/link.h
Examining data/systemd-247~rc2/src/network/wait-online/manager.c
Examining data/systemd-247~rc2/src/network/wait-online/manager.h
Examining data/systemd-247~rc2/src/network/wait-online/wait-online.c
Examining data/systemd-247~rc2/src/notify/notify.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-cgroup.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-cgroup.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-creds.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-creds.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-def.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-expose-ports.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-expose-ports.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-mount.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-mount.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-network.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-network.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-oci.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-oci.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-patch-uid.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-patch-uid.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-register.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-register.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-seccomp.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-seccomp.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-settings.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-settings.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-setuid.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-setuid.h
Examining data/systemd-247~rc2/src/nspawn/nspawn-stub-pid1.c
Examining data/systemd-247~rc2/src/nspawn/nspawn-stub-pid1.h
Examining data/systemd-247~rc2/src/nspawn/nspawn.c
Examining data/systemd-247~rc2/src/nspawn/test-nspawn-tables.c
Examining data/systemd-247~rc2/src/nspawn/test-patch-uid.c
Examining data/systemd-247~rc2/src/nss-myhostname/nss-myhostname.c
Examining data/systemd-247~rc2/src/nss-mymachines/nss-mymachines.c
Examining data/systemd-247~rc2/src/nss-resolve/nss-resolve.c
Examining data/systemd-247~rc2/src/nss-systemd/nss-systemd.c
Examining data/systemd-247~rc2/src/nss-systemd/nss-systemd.h
Examining data/systemd-247~rc2/src/nss-systemd/userdb-glue.c
Examining data/systemd-247~rc2/src/nss-systemd/userdb-glue.h
Examining data/systemd-247~rc2/src/oom/oomctl.c
Examining data/systemd-247~rc2/src/oom/oomd-manager-bus.c
Examining data/systemd-247~rc2/src/oom/oomd-manager-bus.h
Examining data/systemd-247~rc2/src/oom/oomd-manager.c
Examining data/systemd-247~rc2/src/oom/oomd-manager.h
Examining data/systemd-247~rc2/src/oom/oomd-util.c
Examining data/systemd-247~rc2/src/oom/oomd-util.h
Examining data/systemd-247~rc2/src/oom/oomd.c
Examining data/systemd-247~rc2/src/oom/test-oomd-util.c
Examining data/systemd-247~rc2/src/partition/growfs.c
Examining data/systemd-247~rc2/src/partition/makefs.c
Examining data/systemd-247~rc2/src/partition/repart.c
Examining data/systemd-247~rc2/src/path/path.c
Examining data/systemd-247~rc2/src/portable/portable.c
Examining data/systemd-247~rc2/src/portable/portable.h
Examining data/systemd-247~rc2/src/portable/portablectl.c
Examining data/systemd-247~rc2/src/portable/portabled-bus.c
Examining data/systemd-247~rc2/src/portable/portabled-bus.h
Examining data/systemd-247~rc2/src/portable/portabled-image-bus.c
Examining data/systemd-247~rc2/src/portable/portabled-image-bus.h
Examining data/systemd-247~rc2/src/portable/portabled-image.c
Examining data/systemd-247~rc2/src/portable/portabled-image.h
Examining data/systemd-247~rc2/src/portable/portabled-operation.c
Examining data/systemd-247~rc2/src/portable/portabled-operation.h
Examining data/systemd-247~rc2/src/portable/portabled.c
Examining data/systemd-247~rc2/src/portable/portabled.h
Examining data/systemd-247~rc2/src/pstore/pstore.c
Examining data/systemd-247~rc2/src/quotacheck/quotacheck.c
Examining data/systemd-247~rc2/src/random-seed/random-seed.c
Examining data/systemd-247~rc2/src/rc-local-generator/rc-local-generator.c
Examining data/systemd-247~rc2/src/remount-fs/remount-fs.c
Examining data/systemd-247~rc2/src/reply-password/reply-password.c
Examining data/systemd-247~rc2/src/resolve/dns-type.c
Examining data/systemd-247~rc2/src/resolve/dns-type.h
Examining data/systemd-247~rc2/src/resolve/resolvconf-compat.c
Examining data/systemd-247~rc2/src/resolve/resolvconf-compat.h
Examining data/systemd-247~rc2/src/resolve/resolvectl.c
Examining data/systemd-247~rc2/src/resolve/resolvectl.h
Examining data/systemd-247~rc2/src/resolve/resolved-bus.c
Examining data/systemd-247~rc2/src/resolve/resolved-bus.h
Examining data/systemd-247~rc2/src/resolve/resolved-conf.c
Examining data/systemd-247~rc2/src/resolve/resolved-conf.h
Examining data/systemd-247~rc2/src/resolve/resolved-def.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-answer.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-answer.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-cache.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-cache.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-dnssec.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-dnssec.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-packet.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-packet.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-query.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-query.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-question.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-question.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-rr.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-rr.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-scope.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-scope.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-search-domain.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-search-domain.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-server.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-server.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-stream.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-stream.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-stub.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-stub.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-synthesize.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-synthesize.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-transaction.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-transaction.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-trust-anchor.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-trust-anchor.h
Examining data/systemd-247~rc2/src/resolve/resolved-dns-zone.c
Examining data/systemd-247~rc2/src/resolve/resolved-dns-zone.h
Examining data/systemd-247~rc2/src/resolve/resolved-dnssd-bus.c
Examining data/systemd-247~rc2/src/resolve/resolved-dnssd-bus.h
Examining data/systemd-247~rc2/src/resolve/resolved-dnssd.c
Examining data/systemd-247~rc2/src/resolve/resolved-dnssd.h
Examining data/systemd-247~rc2/src/resolve/resolved-dnstls-gnutls.c
Examining data/systemd-247~rc2/src/resolve/resolved-dnstls-gnutls.h
Examining data/systemd-247~rc2/src/resolve/resolved-dnstls-openssl.c
Examining data/systemd-247~rc2/src/resolve/resolved-dnstls-openssl.h
Examining data/systemd-247~rc2/src/resolve/resolved-dnstls.h
Examining data/systemd-247~rc2/src/resolve/resolved-etc-hosts.c
Examining data/systemd-247~rc2/src/resolve/resolved-etc-hosts.h
Examining data/systemd-247~rc2/src/resolve/resolved-link-bus.c
Examining data/systemd-247~rc2/src/resolve/resolved-link-bus.h
Examining data/systemd-247~rc2/src/resolve/resolved-link.c
Examining data/systemd-247~rc2/src/resolve/resolved-link.h
Examining data/systemd-247~rc2/src/resolve/resolved-llmnr.c
Examining data/systemd-247~rc2/src/resolve/resolved-llmnr.h
Examining data/systemd-247~rc2/src/resolve/resolved-manager.c
Examining data/systemd-247~rc2/src/resolve/resolved-manager.h
Examining data/systemd-247~rc2/src/resolve/resolved-mdns.c
Examining data/systemd-247~rc2/src/resolve/resolved-mdns.h
Examining data/systemd-247~rc2/src/resolve/resolved-resolv-conf.c
Examining data/systemd-247~rc2/src/resolve/resolved-resolv-conf.h
Examining data/systemd-247~rc2/src/resolve/resolved-varlink.c
Examining data/systemd-247~rc2/src/resolve/resolved-varlink.h
Examining data/systemd-247~rc2/src/resolve/resolved.c
Examining data/systemd-247~rc2/src/resolve/test-dns-packet.c
Examining data/systemd-247~rc2/src/resolve/test-dnssec-complex.c
Examining data/systemd-247~rc2/src/resolve/test-dnssec.c
Examining data/systemd-247~rc2/src/resolve/test-resolve-tables.c
Examining data/systemd-247~rc2/src/resolve/test-resolved-etc-hosts.c
Examining data/systemd-247~rc2/src/resolve/test-resolved-packet.c
Examining data/systemd-247~rc2/src/rfkill/rfkill.c
Examining data/systemd-247~rc2/src/run-generator/run-generator.c
Examining data/systemd-247~rc2/src/run/run.c
Examining data/systemd-247~rc2/src/shared/acl-util.c
Examining data/systemd-247~rc2/src/shared/acl-util.h
Examining data/systemd-247~rc2/src/shared/acpi-fpdt.c
Examining data/systemd-247~rc2/src/shared/acpi-fpdt.h
Examining data/systemd-247~rc2/src/shared/apparmor-util.c
Examining data/systemd-247~rc2/src/shared/apparmor-util.h
Examining data/systemd-247~rc2/src/shared/ask-password-api.c
Examining data/systemd-247~rc2/src/shared/ask-password-api.h
Examining data/systemd-247~rc2/src/shared/barrier.c
Examining data/systemd-247~rc2/src/shared/barrier.h
Examining data/systemd-247~rc2/src/shared/base-filesystem.c
Examining data/systemd-247~rc2/src/shared/base-filesystem.h
Examining data/systemd-247~rc2/src/shared/binfmt-util.c
Examining data/systemd-247~rc2/src/shared/binfmt-util.h
Examining data/systemd-247~rc2/src/shared/bitmap.c
Examining data/systemd-247~rc2/src/shared/bitmap.h
Examining data/systemd-247~rc2/src/shared/blkid-util.h
Examining data/systemd-247~rc2/src/shared/bond-util.c
Examining data/systemd-247~rc2/src/shared/bond-util.h
Examining data/systemd-247~rc2/src/shared/boot-timestamps.c
Examining data/systemd-247~rc2/src/shared/boot-timestamps.h
Examining data/systemd-247~rc2/src/shared/bootspec.c
Examining data/systemd-247~rc2/src/shared/bootspec.h
Examining data/systemd-247~rc2/src/shared/bpf-program.c
Examining data/systemd-247~rc2/src/shared/bpf-program.h
Examining data/systemd-247~rc2/src/shared/bridge-util.c
Examining data/systemd-247~rc2/src/shared/bridge-util.h
Examining data/systemd-247~rc2/src/shared/bus-get-properties.c
Examining data/systemd-247~rc2/src/shared/bus-get-properties.h
Examining data/systemd-247~rc2/src/shared/bus-locator.c
Examining data/systemd-247~rc2/src/shared/bus-locator.h
Examining data/systemd-247~rc2/src/shared/bus-log-control-api.c
Examining data/systemd-247~rc2/src/shared/bus-log-control-api.h
Examining data/systemd-247~rc2/src/shared/bus-map-properties.c
Examining data/systemd-247~rc2/src/shared/bus-map-properties.h
Examining data/systemd-247~rc2/src/shared/bus-message-util.c
Examining data/systemd-247~rc2/src/shared/bus-message-util.h
Examining data/systemd-247~rc2/src/shared/bus-object.c
Examining data/systemd-247~rc2/src/shared/bus-object.h
Examining data/systemd-247~rc2/src/shared/bus-polkit.c
Examining data/systemd-247~rc2/src/shared/bus-polkit.h
Examining data/systemd-247~rc2/src/shared/bus-print-properties.c
Examining data/systemd-247~rc2/src/shared/bus-print-properties.h
Examining data/systemd-247~rc2/src/shared/bus-unit-procs.c
Examining data/systemd-247~rc2/src/shared/bus-unit-procs.h
Examining data/systemd-247~rc2/src/shared/bus-unit-util.c
Examining data/systemd-247~rc2/src/shared/bus-unit-util.h
Examining data/systemd-247~rc2/src/shared/bus-util.c
Examining data/systemd-247~rc2/src/shared/bus-util.h
Examining data/systemd-247~rc2/src/shared/bus-wait-for-jobs.c
Examining data/systemd-247~rc2/src/shared/bus-wait-for-jobs.h
Examining data/systemd-247~rc2/src/shared/bus-wait-for-units.c
Examining data/systemd-247~rc2/src/shared/bus-wait-for-units.h
Examining data/systemd-247~rc2/src/shared/calendarspec.c
Examining data/systemd-247~rc2/src/shared/calendarspec.h
Examining data/systemd-247~rc2/src/shared/cgroup-setup.c
Examining data/systemd-247~rc2/src/shared/cgroup-setup.h
Examining data/systemd-247~rc2/src/shared/cgroup-show.c
Examining data/systemd-247~rc2/src/shared/cgroup-show.h
Examining data/systemd-247~rc2/src/shared/chown-recursive.c
Examining data/systemd-247~rc2/src/shared/chown-recursive.h
Examining data/systemd-247~rc2/src/shared/clean-ipc.c
Examining data/systemd-247~rc2/src/shared/clean-ipc.h
Examining data/systemd-247~rc2/src/shared/clock-util.c
Examining data/systemd-247~rc2/src/shared/clock-util.h
Examining data/systemd-247~rc2/src/shared/condition.c
Examining data/systemd-247~rc2/src/shared/condition.h
Examining data/systemd-247~rc2/src/shared/conf-parser.c
Examining data/systemd-247~rc2/src/shared/conf-parser.h
Examining data/systemd-247~rc2/src/shared/coredump-util.c
Examining data/systemd-247~rc2/src/shared/coredump-util.h
Examining data/systemd-247~rc2/src/shared/cpu-set-util.c
Examining data/systemd-247~rc2/src/shared/cpu-set-util.h
Examining data/systemd-247~rc2/src/shared/cryptsetup-util.c
Examining data/systemd-247~rc2/src/shared/cryptsetup-util.h
Examining data/systemd-247~rc2/src/shared/daemon-util.h
Examining data/systemd-247~rc2/src/shared/dev-setup.c
Examining data/systemd-247~rc2/src/shared/dev-setup.h
Examining data/systemd-247~rc2/src/shared/dissect-image.c
Examining data/systemd-247~rc2/src/shared/dissect-image.h
Examining data/systemd-247~rc2/src/shared/dm-util.c
Examining data/systemd-247~rc2/src/shared/dm-util.h
Examining data/systemd-247~rc2/src/shared/dns-domain.c
Examining data/systemd-247~rc2/src/shared/dns-domain.h
Examining data/systemd-247~rc2/src/shared/dropin.c
Examining data/systemd-247~rc2/src/shared/dropin.h
Examining data/systemd-247~rc2/src/shared/efi-loader.c
Examining data/systemd-247~rc2/src/shared/efi-loader.h
Examining data/systemd-247~rc2/src/shared/enable-mempool.c
Examining data/systemd-247~rc2/src/shared/env-file-label.c
Examining data/systemd-247~rc2/src/shared/env-file-label.h
Examining data/systemd-247~rc2/src/shared/ethtool-util.c
Examining data/systemd-247~rc2/src/shared/ethtool-util.h
Examining data/systemd-247~rc2/src/shared/exec-util.c
Examining data/systemd-247~rc2/src/shared/exec-util.h
Examining data/systemd-247~rc2/src/shared/exit-status.c
Examining data/systemd-247~rc2/src/shared/exit-status.h
Examining data/systemd-247~rc2/src/shared/fdset.c
Examining data/systemd-247~rc2/src/shared/fdset.h
Examining data/systemd-247~rc2/src/shared/fileio-label.c
Examining data/systemd-247~rc2/src/shared/fileio-label.h
Examining data/systemd-247~rc2/src/shared/firewall-util.c
Examining data/systemd-247~rc2/src/shared/firewall-util.h
Examining data/systemd-247~rc2/src/shared/format-table.c
Examining data/systemd-247~rc2/src/shared/format-table.h
Examining data/systemd-247~rc2/src/shared/fsck-util.h
Examining data/systemd-247~rc2/src/shared/fstab-util.c
Examining data/systemd-247~rc2/src/shared/fstab-util.h
Examining data/systemd-247~rc2/src/shared/generator.c
Examining data/systemd-247~rc2/src/shared/generator.h
Examining data/systemd-247~rc2/src/shared/geneve-util.c
Examining data/systemd-247~rc2/src/shared/geneve-util.h
Examining data/systemd-247~rc2/src/shared/gpt.c
Examining data/systemd-247~rc2/src/shared/gpt.h
Examining data/systemd-247~rc2/src/shared/group-record.c
Examining data/systemd-247~rc2/src/shared/group-record.h
Examining data/systemd-247~rc2/src/shared/id128-print.c
Examining data/systemd-247~rc2/src/shared/id128-print.h
Examining data/systemd-247~rc2/src/shared/idn-util.c
Examining data/systemd-247~rc2/src/shared/idn-util.h
Examining data/systemd-247~rc2/src/shared/ima-util.c
Examining data/systemd-247~rc2/src/shared/ima-util.h
Examining data/systemd-247~rc2/src/shared/import-util.c
Examining data/systemd-247~rc2/src/shared/import-util.h
Examining data/systemd-247~rc2/src/shared/initreq.h
Examining data/systemd-247~rc2/src/shared/install-printf.c
Examining data/systemd-247~rc2/src/shared/install-printf.h
Examining data/systemd-247~rc2/src/shared/install.c
Examining data/systemd-247~rc2/src/shared/install.h
Examining data/systemd-247~rc2/src/shared/ip-protocol-list.c
Examining data/systemd-247~rc2/src/shared/ip-protocol-list.h
Examining data/systemd-247~rc2/src/shared/ipvlan-util.c
Examining data/systemd-247~rc2/src/shared/ipvlan-util.h
Examining data/systemd-247~rc2/src/shared/journal-importer.c
Examining data/systemd-247~rc2/src/shared/journal-importer.h
Examining data/systemd-247~rc2/src/shared/journal-util.c
Examining data/systemd-247~rc2/src/shared/journal-util.h
Examining data/systemd-247~rc2/src/shared/json-internal.h
Examining data/systemd-247~rc2/src/shared/json.c
Examining data/systemd-247~rc2/src/shared/json.h
Examining data/systemd-247~rc2/src/shared/libcrypt-util.c
Examining data/systemd-247~rc2/src/shared/libcrypt-util.h
Examining data/systemd-247~rc2/src/shared/libmount-util.h
Examining data/systemd-247~rc2/src/shared/linux/auto_dev-ioctl.h
Examining data/systemd-247~rc2/src/shared/linux/bpf.h
Examining data/systemd-247~rc2/src/shared/linux/bpf_common.h
Examining data/systemd-247~rc2/src/shared/linux/bpf_insn.h
Examining data/systemd-247~rc2/src/shared/linux/dm-ioctl.h
Examining data/systemd-247~rc2/src/shared/linux/ethtool.h
Examining data/systemd-247~rc2/src/shared/linux/nl80211.h
Examining data/systemd-247~rc2/src/shared/local-addresses.c
Examining data/systemd-247~rc2/src/shared/local-addresses.h
Examining data/systemd-247~rc2/src/shared/lockfile-util.c
Examining data/systemd-247~rc2/src/shared/lockfile-util.h
Examining data/systemd-247~rc2/src/shared/log-link.h
Examining data/systemd-247~rc2/src/shared/logs-show.c
Examining data/systemd-247~rc2/src/shared/logs-show.h
Examining data/systemd-247~rc2/src/shared/loop-util.c
Examining data/systemd-247~rc2/src/shared/loop-util.h
Examining data/systemd-247~rc2/src/shared/machine-image.c
Examining data/systemd-247~rc2/src/shared/machine-image.h
Examining data/systemd-247~rc2/src/shared/machine-pool.c
Examining data/systemd-247~rc2/src/shared/machine-pool.h
Examining data/systemd-247~rc2/src/shared/macvlan-util.c
Examining data/systemd-247~rc2/src/shared/macvlan-util.h
Examining data/systemd-247~rc2/src/shared/main-func.h
Examining data/systemd-247~rc2/src/shared/mkfs-util.c
Examining data/systemd-247~rc2/src/shared/mkfs-util.h
Examining data/systemd-247~rc2/src/shared/module-util.c
Examining data/systemd-247~rc2/src/shared/module-util.h
Examining data/systemd-247~rc2/src/shared/mount-util.c
Examining data/systemd-247~rc2/src/shared/mount-util.h
Examining data/systemd-247~rc2/src/shared/netif-naming-scheme.c
Examining data/systemd-247~rc2/src/shared/netif-naming-scheme.h
Examining data/systemd-247~rc2/src/shared/nscd-flush.c
Examining data/systemd-247~rc2/src/shared/nscd-flush.h
Examining data/systemd-247~rc2/src/shared/nsflags.c
Examining data/systemd-247~rc2/src/shared/nsflags.h
Examining data/systemd-247~rc2/src/shared/numa-util.c
Examining data/systemd-247~rc2/src/shared/numa-util.h
Examining data/systemd-247~rc2/src/shared/offline-passwd.c
Examining data/systemd-247~rc2/src/shared/offline-passwd.h
Examining data/systemd-247~rc2/src/shared/openssl-util.h
Examining data/systemd-247~rc2/src/shared/os-util.c
Examining data/systemd-247~rc2/src/shared/os-util.h
Examining data/systemd-247~rc2/src/shared/output-mode.c
Examining data/systemd-247~rc2/src/shared/output-mode.h
Examining data/systemd-247~rc2/src/shared/pager.c
Examining data/systemd-247~rc2/src/shared/pager.h
Examining data/systemd-247~rc2/src/shared/pam-util.c
Examining data/systemd-247~rc2/src/shared/pam-util.h
Examining data/systemd-247~rc2/src/shared/pe-header.h
Examining data/systemd-247~rc2/src/shared/pkcs11-util.c
Examining data/systemd-247~rc2/src/shared/pkcs11-util.h
Examining data/systemd-247~rc2/src/shared/pretty-print.c
Examining data/systemd-247~rc2/src/shared/pretty-print.h
Examining data/systemd-247~rc2/src/shared/psi-util.c
Examining data/systemd-247~rc2/src/shared/psi-util.h
Examining data/systemd-247~rc2/src/shared/ptyfwd.c
Examining data/systemd-247~rc2/src/shared/ptyfwd.h
Examining data/systemd-247~rc2/src/shared/pwquality-util.c
Examining data/systemd-247~rc2/src/shared/pwquality-util.h
Examining data/systemd-247~rc2/src/shared/qrcode-util.c
Examining data/systemd-247~rc2/src/shared/qrcode-util.h
Examining data/systemd-247~rc2/src/shared/reboot-util.c
Examining data/systemd-247~rc2/src/shared/reboot-util.h
Examining data/systemd-247~rc2/src/shared/resize-fs.c
Examining data/systemd-247~rc2/src/shared/resize-fs.h
Examining data/systemd-247~rc2/src/shared/resolve-util.c
Examining data/systemd-247~rc2/src/shared/resolve-util.h
Examining data/systemd-247~rc2/src/shared/seccomp-util.c
Examining data/systemd-247~rc2/src/shared/seccomp-util.h
Examining data/systemd-247~rc2/src/shared/securebits-util.c
Examining data/systemd-247~rc2/src/shared/securebits-util.h
Examining data/systemd-247~rc2/src/shared/serialize.c
Examining data/systemd-247~rc2/src/shared/serialize.h
Examining data/systemd-247~rc2/src/shared/service-util.c
Examining data/systemd-247~rc2/src/shared/service-util.h
Examining data/systemd-247~rc2/src/shared/sleep-config.h
Examining data/systemd-247~rc2/src/shared/socket-netlink.c
Examining data/systemd-247~rc2/src/shared/socket-netlink.h
Examining data/systemd-247~rc2/src/shared/spawn-ask-password-agent.c
Examining data/systemd-247~rc2/src/shared/spawn-ask-password-agent.h
Examining data/systemd-247~rc2/src/shared/spawn-polkit-agent.c
Examining data/systemd-247~rc2/src/shared/spawn-polkit-agent.h
Examining data/systemd-247~rc2/src/shared/specifier.c
Examining data/systemd-247~rc2/src/shared/specifier.h
Examining data/systemd-247~rc2/src/shared/switch-root.c
Examining data/systemd-247~rc2/src/shared/switch-root.h
Examining data/systemd-247~rc2/src/shared/sysctl-util.c
Examining data/systemd-247~rc2/src/shared/sysctl-util.h
Examining data/systemd-247~rc2/src/shared/test-tables.h
Examining data/systemd-247~rc2/src/shared/tests.c
Examining data/systemd-247~rc2/src/shared/tests.h
Examining data/systemd-247~rc2/src/shared/tmpfile-util-label.c
Examining data/systemd-247~rc2/src/shared/tmpfile-util-label.h
Examining data/systemd-247~rc2/src/shared/tomoyo-util.c
Examining data/systemd-247~rc2/src/shared/tomoyo-util.h
Examining data/systemd-247~rc2/src/shared/udev-util.c
Examining data/systemd-247~rc2/src/shared/udev-util.h
Examining data/systemd-247~rc2/src/shared/uid-range.c
Examining data/systemd-247~rc2/src/shared/uid-range.h
Examining data/systemd-247~rc2/src/shared/unit-file.c
Examining data/systemd-247~rc2/src/shared/unit-file.h
Examining data/systemd-247~rc2/src/shared/user-record-nss.c
Examining data/systemd-247~rc2/src/shared/user-record-nss.h
Examining data/systemd-247~rc2/src/shared/user-record-show.c
Examining data/systemd-247~rc2/src/shared/user-record-show.h
Examining data/systemd-247~rc2/src/shared/user-record.c
Examining data/systemd-247~rc2/src/shared/user-record.h
Examining data/systemd-247~rc2/src/shared/userdb.c
Examining data/systemd-247~rc2/src/shared/userdb.h
Examining data/systemd-247~rc2/src/shared/utmp-wtmp.c
Examining data/systemd-247~rc2/src/shared/utmp-wtmp.h
Examining data/systemd-247~rc2/src/shared/varlink.c
Examining data/systemd-247~rc2/src/shared/varlink.h
Examining data/systemd-247~rc2/src/shared/verbs.c
Examining data/systemd-247~rc2/src/shared/verbs.h
Examining data/systemd-247~rc2/src/shared/vlan-util.c
Examining data/systemd-247~rc2/src/shared/vlan-util.h
Examining data/systemd-247~rc2/src/shared/volatile-util.c
Examining data/systemd-247~rc2/src/shared/volatile-util.h
Examining data/systemd-247~rc2/src/shared/watchdog.c
Examining data/systemd-247~rc2/src/shared/watchdog.h
Examining data/systemd-247~rc2/src/shared/web-util.c
Examining data/systemd-247~rc2/src/shared/web-util.h
Examining data/systemd-247~rc2/src/shared/wifi-util.c
Examining data/systemd-247~rc2/src/shared/wifi-util.h
Examining data/systemd-247~rc2/src/shared/xml.c
Examining data/systemd-247~rc2/src/shared/xml.h
Examining data/systemd-247~rc2/src/shared/sleep-config.c
Examining data/systemd-247~rc2/src/shutdown/shutdown.c
Examining data/systemd-247~rc2/src/shutdown/umount.c
Examining data/systemd-247~rc2/src/shutdown/umount.h
Examining data/systemd-247~rc2/src/sleep/sleep.c
Examining data/systemd-247~rc2/src/socket-proxy/socket-proxyd.c
Examining data/systemd-247~rc2/src/stdio-bridge/stdio-bridge.c
Examining data/systemd-247~rc2/src/sulogin-shell/sulogin-shell.c
Examining data/systemd-247~rc2/src/sysctl/sysctl.c
Examining data/systemd-247~rc2/src/system-update-generator/system-update-generator.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-add-dependency.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-add-dependency.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-cancel-job.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-cancel-job.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-clean-or-freeze.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-clean-or-freeze.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-compat-halt.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-compat-halt.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-compat-runlevel.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-compat-runlevel.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-compat-shutdown.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-compat-shutdown.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-compat-telinit.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-compat-telinit.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-daemon-reload.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-daemon-reload.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-edit.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-edit.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-enable.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-enable.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-is-active.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-is-active.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-is-enabled.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-is-enabled.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-is-system-running.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-is-system-running.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-kill.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-kill.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-list-dependencies.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-list-dependencies.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-list-jobs.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-list-jobs.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-list-machines.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-list-machines.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-list-unit-files.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-list-unit-files.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-list-units.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-list-units.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-log-setting.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-log-setting.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-logind.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-logind.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-preset-all.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-preset-all.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-reset-failed.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-reset-failed.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-service-watchdogs.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-service-watchdogs.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-set-default.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-set-default.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-set-environment.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-set-environment.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-set-property.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-set-property.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-show.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-show.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-start-special.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-start-special.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-start-unit.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-start-unit.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-switch-root.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-switch-root.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-sysv-compat.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-sysv-compat.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-trivial-method.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-trivial-method.h
Examining data/systemd-247~rc2/src/systemctl/systemctl-util.c
Examining data/systemd-247~rc2/src/systemctl/systemctl-util.h
Examining data/systemd-247~rc2/src/systemctl/systemctl.c
Examining data/systemd-247~rc2/src/systemctl/systemctl.h
Examining data/systemd-247~rc2/src/systemd/_sd-common.h
Examining data/systemd-247~rc2/src/systemd/sd-bus-protocol.h
Examining data/systemd-247~rc2/src/systemd/sd-bus-vtable.h
Examining data/systemd-247~rc2/src/systemd/sd-bus.h
Examining data/systemd-247~rc2/src/systemd/sd-daemon.h
Examining data/systemd-247~rc2/src/systemd/sd-device.h
Examining data/systemd-247~rc2/src/systemd/sd-dhcp-client.h
Examining data/systemd-247~rc2/src/systemd/sd-dhcp-lease.h
Examining data/systemd-247~rc2/src/systemd/sd-dhcp-option.h
Examining data/systemd-247~rc2/src/systemd/sd-dhcp-server.h
Examining data/systemd-247~rc2/src/systemd/sd-dhcp6-client.h
Examining data/systemd-247~rc2/src/systemd/sd-dhcp6-lease.h
Examining data/systemd-247~rc2/src/systemd/sd-dhcp6-option.h
Examining data/systemd-247~rc2/src/systemd/sd-event.h
Examining data/systemd-247~rc2/src/systemd/sd-hwdb.h
Examining data/systemd-247~rc2/src/systemd/sd-id128.h
Examining data/systemd-247~rc2/src/systemd/sd-ipv4acd.h
Examining data/systemd-247~rc2/src/systemd/sd-ipv4ll.h
Examining data/systemd-247~rc2/src/systemd/sd-journal.h
Examining data/systemd-247~rc2/src/systemd/sd-lldp.h
Examining data/systemd-247~rc2/src/systemd/sd-login.h
Examining data/systemd-247~rc2/src/systemd/sd-messages.h
Examining data/systemd-247~rc2/src/systemd/sd-ndisc.h
Examining data/systemd-247~rc2/src/systemd/sd-netlink.h
Examining data/systemd-247~rc2/src/systemd/sd-network.h
Examining data/systemd-247~rc2/src/systemd/sd-path.h
Examining data/systemd-247~rc2/src/systemd/sd-radv.h
Examining data/systemd-247~rc2/src/systemd/sd-resolve.h
Examining data/systemd-247~rc2/src/systemd/sd-utf8.h
Examining data/systemd-247~rc2/src/sysusers/sysusers.c
Examining data/systemd-247~rc2/src/sysv-generator/sysv-generator.c
Examining data/systemd-247~rc2/src/test/test-acl-util.c
Examining data/systemd-247~rc2/src/test/test-af-list.c
Examining data/systemd-247~rc2/src/test/test-alloc-util.c
Examining data/systemd-247~rc2/src/test/test-architecture.c
Examining data/systemd-247~rc2/src/test/test-arphrd-list.c
Examining data/systemd-247~rc2/src/test/test-ask-password-api.c
Examining data/systemd-247~rc2/src/test/test-async.c
Examining data/systemd-247~rc2/src/test/test-barrier.c
Examining data/systemd-247~rc2/src/test/test-bitmap.c
Examining data/systemd-247~rc2/src/test/test-boot-timestamps.c
Examining data/systemd-247~rc2/src/test/test-bpf-devices.c
Examining data/systemd-247~rc2/src/test/test-bpf-firewall.c
Examining data/systemd-247~rc2/src/test/test-btrfs.c
Examining data/systemd-247~rc2/src/test/test-bus-util.c
Examining data/systemd-247~rc2/src/test/test-calendarspec.c
Examining data/systemd-247~rc2/src/test/test-cap-list.c
Examining data/systemd-247~rc2/src/test/test-capability.c
Examining data/systemd-247~rc2/src/test/test-cgroup-cpu.c
Examining data/systemd-247~rc2/src/test/test-cgroup-mask.c
Examining data/systemd-247~rc2/src/test/test-cgroup-setup.c
Examining data/systemd-247~rc2/src/test/test-cgroup-unit-default.c
Examining data/systemd-247~rc2/src/test/test-cgroup-util.c
Examining data/systemd-247~rc2/src/test/test-cgroup.c
Examining data/systemd-247~rc2/src/test/test-chase-symlinks.c
Examining data/systemd-247~rc2/src/test/test-chown-rec.c
Examining data/systemd-247~rc2/src/test/test-clock.c
Examining data/systemd-247~rc2/src/test/test-condition.c
Examining data/systemd-247~rc2/src/test/test-conf-files.c
Examining data/systemd-247~rc2/src/test/test-conf-parser.c
Examining data/systemd-247~rc2/src/test/test-copy.c
Examining data/systemd-247~rc2/src/test/test-coredump-util.c
Examining data/systemd-247~rc2/src/test/test-cpu-set-util.c
Examining data/systemd-247~rc2/src/test/test-daemon.c
Examining data/systemd-247~rc2/src/test/test-date.c
Examining data/systemd-247~rc2/src/test/test-dev-setup.c
Examining data/systemd-247~rc2/src/test/test-device-nodes.c
Examining data/systemd-247~rc2/src/test/test-dlopen.c
Examining data/systemd-247~rc2/src/test/test-dns-domain.c
Examining data/systemd-247~rc2/src/test/test-ellipsize.c
Examining data/systemd-247~rc2/src/test/test-emergency-action.c
Examining data/systemd-247~rc2/src/test/test-engine.c
Examining data/systemd-247~rc2/src/test/test-env-file.c
Examining data/systemd-247~rc2/src/test/test-env-util.c
Examining data/systemd-247~rc2/src/test/test-escape.c
Examining data/systemd-247~rc2/src/test/test-exec-util.c
Examining data/systemd-247~rc2/src/test/test-execute.c
Examining data/systemd-247~rc2/src/test/test-exit-status.c
Examining data/systemd-247~rc2/src/test/test-extract-word.c
Examining data/systemd-247~rc2/src/test/test-fd-util.c
Examining data/systemd-247~rc2/src/test/test-fdset.c
Examining data/systemd-247~rc2/src/test/test-fileio.c
Examining data/systemd-247~rc2/src/test/test-firewall-util.c
Examining data/systemd-247~rc2/src/test/test-format-table.c
Examining data/systemd-247~rc2/src/test/test-format-util.c
Examining data/systemd-247~rc2/src/test/test-fstab-util.c
Examining data/systemd-247~rc2/src/test/test-gcrypt-util.c
Examining data/systemd-247~rc2/src/test/test-glob-util.c
Examining data/systemd-247~rc2/src/test/test-hash.c
Examining data/systemd-247~rc2/src/test/test-hashmap-plain.c
Examining data/systemd-247~rc2/src/test/test-hashmap.c
Examining data/systemd-247~rc2/src/test/test-hexdecoct.c
Examining data/systemd-247~rc2/src/test/test-hostname-util.c
Examining data/systemd-247~rc2/src/test/test-hostname.c
Examining data/systemd-247~rc2/src/test/test-id128.c
Examining data/systemd-247~rc2/src/test/test-in-addr-util.c
Examining data/systemd-247~rc2/src/test/test-install-root.c
Examining data/systemd-247~rc2/src/test/test-install.c
Examining data/systemd-247~rc2/src/test/test-io-util.c
Examining data/systemd-247~rc2/src/test/test-ip-protocol-list.c
Examining data/systemd-247~rc2/src/test/test-ipcrm.c
Examining data/systemd-247~rc2/src/test/test-job-type.c
Examining data/systemd-247~rc2/src/test/test-journal-importer.c
Examining data/systemd-247~rc2/src/test/test-json.c
Examining data/systemd-247~rc2/src/test/test-libcrypt-util.c
Examining data/systemd-247~rc2/src/test/test-libmount.c
Examining data/systemd-247~rc2/src/test/test-libudev.c
Examining data/systemd-247~rc2/src/test/test-list.c
Examining data/systemd-247~rc2/src/test/test-load-fragment.c
Examining data/systemd-247~rc2/src/test/test-local-addresses.c
Examining data/systemd-247~rc2/src/test/test-locale-util.c
Examining data/systemd-247~rc2/src/test/test-log.c
Examining data/systemd-247~rc2/src/test/test-loop-block.c
Examining data/systemd-247~rc2/src/test/test-loopback.c
Examining data/systemd-247~rc2/src/test/test-mount-util.c
Examining data/systemd-247~rc2/src/test/test-mountpoint-util.c
Examining data/systemd-247~rc2/src/test/test-namespace.c
Examining data/systemd-247~rc2/src/test/test-netlink-manual.c
Examining data/systemd-247~rc2/src/test/test-ns.c
Examining data/systemd-247~rc2/src/test/test-nscd-flush.c
Examining data/systemd-247~rc2/src/test/test-nss.c
Examining data/systemd-247~rc2/src/test/test-offline-passwd.c
Examining data/systemd-247~rc2/src/test/test-ordered-set.c
Examining data/systemd-247~rc2/src/test/test-os-util.c
Examining data/systemd-247~rc2/src/test/test-parse-util.c
Examining data/systemd-247~rc2/src/test/test-path-lookup.c
Examining data/systemd-247~rc2/src/test/test-path-util.c
Examining data/systemd-247~rc2/src/test/test-path.c
Examining data/systemd-247~rc2/src/test/test-pretty-print.c
Examining data/systemd-247~rc2/src/test/test-prioq.c
Examining data/systemd-247~rc2/src/test/test-proc-cmdline.c
Examining data/systemd-247~rc2/src/test/test-process-util.c
Examining data/systemd-247~rc2/src/test/test-procfs-util.c
Examining data/systemd-247~rc2/src/test/test-psi-util.c
Examining data/systemd-247~rc2/src/test/test-qrcode-util.c
Examining data/systemd-247~rc2/src/test/test-random-util.c
Examining data/systemd-247~rc2/src/test/test-ratelimit.c
Examining data/systemd-247~rc2/src/test/test-replace-var.c
Examining data/systemd-247~rc2/src/test/test-rlimit-util.c
Examining data/systemd-247~rc2/src/test/test-rm-rf.c
Examining data/systemd-247~rc2/src/test/test-sched-prio.c
Examining data/systemd-247~rc2/src/test/test-sd-hwdb.c
Examining data/systemd-247~rc2/src/test/test-sd-path.c
Examining data/systemd-247~rc2/src/test/test-seccomp.c
Examining data/systemd-247~rc2/src/test/test-selinux.c
Examining data/systemd-247~rc2/src/test/test-serialize.c
Examining data/systemd-247~rc2/src/test/test-set-disable-mempool.c
Examining data/systemd-247~rc2/src/test/test-set.c
Examining data/systemd-247~rc2/src/test/test-sigbus.c
Examining data/systemd-247~rc2/src/test/test-signal-util.c
Examining data/systemd-247~rc2/src/test/test-siphash24.c
Examining data/systemd-247~rc2/src/test/test-sizeof.c
Examining data/systemd-247~rc2/src/test/test-sleep.c
Examining data/systemd-247~rc2/src/test/test-socket-netlink.c
Examining data/systemd-247~rc2/src/test/test-socket-util.c
Examining data/systemd-247~rc2/src/test/test-specifier.c
Examining data/systemd-247~rc2/src/test/test-stat-util.c
Examining data/systemd-247~rc2/src/test/test-static-destruct.c
Examining data/systemd-247~rc2/src/test/test-strbuf.c
Examining data/systemd-247~rc2/src/test/test-string-util.c
Examining data/systemd-247~rc2/src/test/test-strip-tab-ansi.c
Examining data/systemd-247~rc2/src/test/test-strv.c
Examining data/systemd-247~rc2/src/test/test-strxcpyx.c
Examining data/systemd-247~rc2/src/test/test-sysctl-util.c
Examining data/systemd-247~rc2/src/test/test-tables.c
Examining data/systemd-247~rc2/src/test/test-terminal-util.c
Examining data/systemd-247~rc2/src/test/test-time-util.c
Examining data/systemd-247~rc2/src/test/test-tmpfiles.c
Examining data/systemd-247~rc2/src/test/test-udev-util.c
Examining data/systemd-247~rc2/src/test/test-udev.c
Examining data/systemd-247~rc2/src/test/test-uid-range.c
Examining data/systemd-247~rc2/src/test/test-umask-util.c
Examining data/systemd-247~rc2/src/test/test-umount.c
Examining data/systemd-247~rc2/src/test/test-unaligned.c
Examining data/systemd-247~rc2/src/test/test-unit-file.c
Examining data/systemd-247~rc2/src/test/test-unit-name.c
Examining data/systemd-247~rc2/src/test/test-user-record.c
Examining data/systemd-247~rc2/src/test/test-user-util.c
Examining data/systemd-247~rc2/src/test/test-utf8.c
Examining data/systemd-247~rc2/src/test/test-util.c
Examining data/systemd-247~rc2/src/test/test-varlink.c
Examining data/systemd-247~rc2/src/test/test-verbs.c
Examining data/systemd-247~rc2/src/test/test-watch-pid.c
Examining data/systemd-247~rc2/src/test/test-watchdog.c
Examining data/systemd-247~rc2/src/test/test-web-util.c
Examining data/systemd-247~rc2/src/test/test-xattr-util.c
Examining data/systemd-247~rc2/src/test/test-xdg-autostart.c
Examining data/systemd-247~rc2/src/test/test-xml.c
Examining data/systemd-247~rc2/src/test/test-fs-util.c
Examining data/systemd-247~rc2/src/time-wait-sync/time-wait-sync.c
Examining data/systemd-247~rc2/src/timedate/timedatectl.c
Examining data/systemd-247~rc2/src/timedate/timedated.c
Examining data/systemd-247~rc2/src/timesync/test-timesync.c
Examining data/systemd-247~rc2/src/timesync/timesyncd-bus.c
Examining data/systemd-247~rc2/src/timesync/timesyncd-bus.h
Examining data/systemd-247~rc2/src/timesync/timesyncd-conf.c
Examining data/systemd-247~rc2/src/timesync/timesyncd-conf.h
Examining data/systemd-247~rc2/src/timesync/timesyncd-manager.c
Examining data/systemd-247~rc2/src/timesync/timesyncd-manager.h
Examining data/systemd-247~rc2/src/timesync/timesyncd-ntp-message.h
Examining data/systemd-247~rc2/src/timesync/timesyncd-server.c
Examining data/systemd-247~rc2/src/timesync/timesyncd-server.h
Examining data/systemd-247~rc2/src/timesync/timesyncd.c
Examining data/systemd-247~rc2/src/tmpfiles/tmpfiles.c
Examining data/systemd-247~rc2/src/tty-ask-password-agent/tty-ask-password-agent.c
Examining data/systemd-247~rc2/src/udev/ata_id/ata_id.c
Examining data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c
Examining data/systemd-247~rc2/src/udev/fido_id/fido_id.c
Examining data/systemd-247~rc2/src/udev/fido_id/fido_id_desc.c
Examining data/systemd-247~rc2/src/udev/fido_id/fido_id_desc.h
Examining data/systemd-247~rc2/src/udev/fido_id/fuzz-fido-id-desc.c
Examining data/systemd-247~rc2/src/udev/fido_id/test-fido-id-desc.c
Examining data/systemd-247~rc2/src/udev/mtd_probe/mtd_probe.c
Examining data/systemd-247~rc2/src/udev/mtd_probe/mtd_probe.h
Examining data/systemd-247~rc2/src/udev/mtd_probe/probe_smartmedia.c
Examining data/systemd-247~rc2/src/udev/net/fuzz-link-parser.c
Examining data/systemd-247~rc2/src/udev/net/link-config.c
Examining data/systemd-247~rc2/src/udev/net/link-config.h
Examining data/systemd-247~rc2/src/udev/scsi_id/scsi.h
Examining data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c
Examining data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h
Examining data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-blkid.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-btrfs.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-hwdb.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-input_id.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-keyboard.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-kmod.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-net_id.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-net_setup_link.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-path_id.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-uaccess.c
Examining data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c
Examining data/systemd-247~rc2/src/udev/udev-builtin.c
Examining data/systemd-247~rc2/src/udev/udev-builtin.h
Examining data/systemd-247~rc2/src/udev/udev-ctrl.c
Examining data/systemd-247~rc2/src/udev/udev-ctrl.h
Examining data/systemd-247~rc2/src/udev/udev-event.c
Examining data/systemd-247~rc2/src/udev/udev-event.h
Examining data/systemd-247~rc2/src/udev/udev-node.c
Examining data/systemd-247~rc2/src/udev/udev-node.h
Examining data/systemd-247~rc2/src/udev/udev-rules.c
Examining data/systemd-247~rc2/src/udev/udev-rules.h
Examining data/systemd-247~rc2/src/udev/udev-watch.c
Examining data/systemd-247~rc2/src/udev/udev-watch.h
Examining data/systemd-247~rc2/src/udev/udevadm-control.c
Examining data/systemd-247~rc2/src/udev/udevadm-hwdb.c
Examining data/systemd-247~rc2/src/udev/udevadm-info.c
Examining data/systemd-247~rc2/src/udev/udevadm-monitor.c
Examining data/systemd-247~rc2/src/udev/udevadm-settle.c
Examining data/systemd-247~rc2/src/udev/udevadm-test-builtin.c
Examining data/systemd-247~rc2/src/udev/udevadm-test.c
Examining data/systemd-247~rc2/src/udev/udevadm-trigger.c
Examining data/systemd-247~rc2/src/udev/udevadm-util.c
Examining data/systemd-247~rc2/src/udev/udevadm-util.h
Examining data/systemd-247~rc2/src/udev/udevadm.c
Examining data/systemd-247~rc2/src/udev/udevadm.h
Examining data/systemd-247~rc2/src/udev/udevd.c
Examining data/systemd-247~rc2/src/udev/udevd.h
Examining data/systemd-247~rc2/src/udev/v4l_id/v4l_id.c
Examining data/systemd-247~rc2/src/update-done/update-done.c
Examining data/systemd-247~rc2/src/update-utmp/update-utmp.c
Examining data/systemd-247~rc2/src/user-sessions/user-sessions.c
Examining data/systemd-247~rc2/src/userdb/userdbctl.c
Examining data/systemd-247~rc2/src/userdb/userdbd-manager.c
Examining data/systemd-247~rc2/src/userdb/userdbd-manager.h
Examining data/systemd-247~rc2/src/userdb/userdbd.c
Examining data/systemd-247~rc2/src/userdb/userwork.c
Examining data/systemd-247~rc2/src/vconsole/vconsole-setup.c
Examining data/systemd-247~rc2/src/veritysetup/veritysetup-generator.c
Examining data/systemd-247~rc2/src/veritysetup/veritysetup.c
Examining data/systemd-247~rc2/src/volatile-root/volatile-root.c
Examining data/systemd-247~rc2/src/xdg-autostart-generator/xdg-autostart-condition.c
Examining data/systemd-247~rc2/src/xdg-autostart-generator/xdg-autostart-generator.c
Examining data/systemd-247~rc2/src/xdg-autostart-generator/xdg-autostart-service.c
Examining data/systemd-247~rc2/src/xdg-autostart-generator/xdg-autostart-service.h
Examining data/systemd-247~rc2/src/fsckd/fsckd.c

FINAL RESULTS:

data/systemd-247~rc2/src/basic/fs-util.c:302:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        if (chmod(procfs_path, m) < 0) {
data/systemd-247~rc2/src/core/efi-random.c:39:21:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                if (chmod(p, 0600) < 0)
data/systemd-247~rc2/src/core/execute.c:2763:21:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                if (chmod(parent, 0755) < 0)
data/systemd-247~rc2/src/core/namespace.c:2099:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        if (chmod(t, 01777) < 0) {
data/systemd-247~rc2/src/core/socket.c:2036:29:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
                        if (chown(path, uid, gid) < 0) {
data/systemd-247~rc2/src/journal/journald-native.c:478:24:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                (void) chmod(sa.un.sun_path, 0666);
data/systemd-247~rc2/src/journal/journald-stream.c:900:24:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                (void) chmod(sa.un.sun_path, 0666);
data/systemd-247~rc2/src/journal/journald-syslog.c:478:24:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                (void) chmod(sa.un.sun_path, 0666);
data/systemd-247~rc2/src/nspawn/nspawn.c:2392:13:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        if (chmod(q, 0500) < 0)
data/systemd-247~rc2/src/shared/machine-image.c:949:21:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                if (chmod(i->path, (st.st_mode & 0444) | (b ? 0000 : 0200)) < 0)
data/systemd-247~rc2/src/shared/seccomp-util.c:1965:34:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                        SCMP_SYS(chmod),
data/systemd-247~rc2/src/test/test-exec-util.c:109:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:110:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name2, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:111:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(overridden, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:112:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(override, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:113:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(masked, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:114:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(masked2, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:115:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(masked2e, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:116:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(mask2e, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:182:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:183:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name2, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:184:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name3, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:185:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(overridden, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:186:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(override, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:187:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(masked, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:270:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:271:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name2, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:272:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name3, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:330:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:331:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name2, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:332:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name3, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:403:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:404:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name2, 0755) == 0);
data/systemd-247~rc2/src/test/test-exec-util.c:405:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(name3, 0755) == 0);
data/systemd-247~rc2/src/test/test-fs-util.c:164:27:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
                assert_se(chown(p, UID_NOBODY, GID_NOBODY) >= 0);
data/systemd-247~rc2/src/test/test-fs-util.c:270:27:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
                assert_se(chown(q, UID_NOBODY, GID_NOBODY) >= 0);
data/systemd-247~rc2/src/test/test-fs-util.c:273:27:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
                assert_se(chown(p, UID_NOBODY, GID_NOBODY) >= 0);
data/systemd-247~rc2/src/test/test-fs-util.c:276:27:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
                assert_se(chown(q, 0, 0) >= 0);
data/systemd-247~rc2/src/test/test-fs-util.c:283:27:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
                assert_se(chown(p, 0, 0) >= 0);
data/systemd-247~rc2/src/test/test-rm-rf.c:25:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(y, 0400) >= 0);
data/systemd-247~rc2/src/test/test-rm-rf.c:26:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(x, 0500) >= 0);
data/systemd-247~rc2/src/test/test-rm-rf.c:27:19:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
        assert_se(chmod(d, 0500) >= 0);
data/systemd-247~rc2/src/test/test-seccomp.c:860:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                assert_se(chmod(path, 0755 | S_ISUID) >= 0);
data/systemd-247~rc2/src/test/test-seccomp.c:861:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                assert_se(chmod(path, 0755 | S_ISGID) >= 0);
data/systemd-247~rc2/src/test/test-seccomp.c:862:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                assert_se(chmod(path, 0755 | S_ISGID | S_ISUID) >= 0);
data/systemd-247~rc2/src/test/test-seccomp.c:863:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                assert_se(chmod(path, 0755) >= 0);
data/systemd-247~rc2/src/test/test-seccomp.c:961:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                assert_se(chmod(path, 0775 | S_ISUID) < 0 && errno == EPERM);
data/systemd-247~rc2/src/test/test-seccomp.c:962:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                assert_se(chmod(path, 0775 | S_ISGID) < 0  && errno == EPERM);
data/systemd-247~rc2/src/test/test-seccomp.c:963:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                assert_se(chmod(path, 0775 | S_ISGID | S_ISUID) < 0  && errno == EPERM);
data/systemd-247~rc2/src/test/test-seccomp.c:964:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                assert_se(chmod(path, 0775) >= 0);
data/systemd-247~rc2/coccinelle/macros.h:10:50:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define _printf_(a, b) __attribute__((__format__(printf, a, b)))
data/systemd-247~rc2/man/vtable-example.c:68:3:  [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(#x ": %m\n");                          \
data/systemd-247~rc2/src/analyze/analyze-verify.c:124: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.
        if (access(exec->path, X_OK) < 0)
data/systemd-247~rc2/src/analyze/analyze.c:59:18:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define svg(...) printf(__VA_ARGS__)
data/systemd-247~rc2/src/basic/blockdev-util.c:29: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.
        if (access(p, F_OK) >= 0) {
data/systemd-247~rc2/src/basic/blockdev-util.c:38: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.
        if (access(p, F_OK) < 0)
data/systemd-247~rc2/src/basic/blockdev-util.c:53: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.
        if (access(p, F_OK) < 0)
data/systemd-247~rc2/src/basic/capability-util.c:274:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        k = sscanf(p, "%" PRIu32 " %" PRIu32, &lo, &hi);
data/systemd-247~rc2/src/basic/cgroup-util.c:142: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.
        if (access("/proc/self/ns/cgroup", F_OK) < 0) {
data/systemd-247~rc2/src/basic/cgroup-util.c:158:45:  [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.
        supported = cg_all_unified() > 0 && access("/sys/fs/cgroup/init.scope/cgroup.freeze", F_OK) == 0;
data/systemd-247~rc2/src/basic/efivars.c:79:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(p, R_OK) < 0)
data/systemd-247~rc2/src/basic/efivars.c:294: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.
                        cache = access("/sys/firmware/efi/", F_OK) >= 0;
data/systemd-247~rc2/src/basic/efivars.c:359:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(k, F_OK) < 0)
data/systemd-247~rc2/src/basic/ether-addr-util.c:19:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(&buffer[3*i], "%02"PRIx8, addr->addr.bytes[i]);
data/systemd-247~rc2/src/basic/fs-util.c:685:39:  [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 (errno != EROFS || access(filename, F_OK) >= 0)
data/systemd-247~rc2/src/basic/fs-util.c:1278: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.
        if (access(p, mode) < 0) {
data/systemd-247~rc2/src/basic/khash.c:123:9:  [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((char*) sa.alg.salg_name, algorithm);
data/systemd-247~rc2/src/basic/log.c:750:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        (void) vsnprintf(buffer, sizeof buffer, format, ap);
data/systemd-247~rc2/src/basic/log.c:805:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        (void) vsnprintf(b, LINE_MAX, format, ap);
data/systemd-247~rc2/src/basic/log.c:848:16:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        (void) snprintf(buffer, sizeof buffer, format, text, file, line, func);
data/systemd-247~rc2/src/basic/log.c:1013:24:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                (void) vsnprintf(buf, sizeof buf, format, aq);
data/systemd-247~rc2/src/basic/log.c:1359:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        (void) vsnprintf(buffer, sizeof buffer, format, ap);
data/systemd-247~rc2/src/basic/login-util.h:10: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.
        return access("/run/systemd/seats/", F_OK) >= 0;
data/systemd-247~rc2/src/basic/macro.h:12:50:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define _printf_(a, b) __attribute__((__format__(printf, a, b)))
data/systemd-247~rc2/src/basic/path-util.c:191:17:  [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(p, t);
data/systemd-247~rc2/src/basic/path-util.c:595:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(name, X_OK) < 0)
data/systemd-247~rc2/src/basic/path-util.c:632:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(j, X_OK) >= 0) {
data/systemd-247~rc2/src/basic/path-util.c:640:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        if (access(with_dash, X_OK) >= 0)
data/systemd-247~rc2/src/basic/path-util.h:105:47:  [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).
                                path_simplify(strcpy(prefix, path), false); \
data/systemd-247~rc2/src/basic/path-util.h:114:47:  [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).
                                path_simplify(strcpy(prefix, path), false); \
data/systemd-247~rc2/src/basic/path-util.h:141:25:  [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(_p, _path);                              \
data/systemd-247~rc2/src/basic/process-util.c:1522:9:  [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(path, l);
data/systemd-247~rc2/src/basic/process-util.h:27:25:  [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(stpcpy(_r_, "/proc/self/"), _field_);    \
data/systemd-247~rc2/src/basic/process-util.h:30:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                        sprintf(_r_, "/proc/" PID_FMT "/%s", _pid_, _field_); \
data/systemd-247~rc2/src/basic/procfs-util.c:87:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buffer, "%" PRIu64, limit+1); /* Add one, since PID 0 is not a valid PID */
data/systemd-247~rc2/src/basic/procfs-util.c:93:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(buffer, "%" PRIu64, limit);
data/systemd-247~rc2/src/basic/smack-util.c:31:30:  [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.
                cached_use = access("/sys/fs/smackfs/", F_OK) >= 0;
data/systemd-247~rc2/src/basic/socket-util.c:283: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.
        if (access("/proc/net/if_inet6", F_OK) != 0)
data/systemd-247~rc2/src/basic/stat-util.c:147: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.
        if (access(path, W_OK) < 0 && errno == EROFS)
data/systemd-247~rc2/src/basic/stdio-util.h:13:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        ((size_t) snprintf(buf, len, fmt, __VA_ARGS__) < (len))
data/systemd-247~rc2/src/basic/strxcpyx.c:58:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        i = vsnprintf(*dest, size, src, va);
data/systemd-247~rc2/src/basic/terminal-util.c:173:17:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                vprintf(fmt, ap);
data/systemd-247~rc2/src/basic/terminal-util.c:220:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(text, ap);
data/systemd-247~rc2/src/basic/terminal-util.c:736:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(path, F_OK) < 0) {
data/systemd-247~rc2/src/basic/time-util.c:380:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(buf + n, ".%06"PRI_USEC, t % USEC_PER_SEC);
data/systemd-247~rc2/src/basic/time-util.c:410:25:  [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(buf + n, tm.tm_zone);
data/systemd-247~rc2/src/basic/time-util.c:434:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT " years " USEC_FMT " months %s",
data/systemd-247~rc2/src/basic/time-util.c:438:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT " months " USEC_FMT " days %s",
data/systemd-247~rc2/src/basic/time-util.c:442:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT " weeks " USEC_FMT " days %s",
data/systemd-247~rc2/src/basic/time-util.c:446:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT " days %s", d / USEC_PER_DAY, s);
data/systemd-247~rc2/src/basic/time-util.c:451:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT "h %s",
data/systemd-247~rc2/src/basic/time-util.c:454:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT "h " USEC_FMT "min %s",
data/systemd-247~rc2/src/basic/time-util.c:458:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT "min %s",
data/systemd-247~rc2/src/basic/time-util.c:461:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT "min " USEC_FMT "s %s",
data/systemd-247~rc2/src/basic/time-util.c:465:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT "s %s",
data/systemd-247~rc2/src/basic/time-util.c:468:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT "ms %s",
data/systemd-247~rc2/src/basic/time-util.c:471:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, USEC_FMT"us %s",
data/systemd-247~rc2/src/basic/unit-name.c:233:9:  [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(mempcpy(s, n, a), suffix);
data/systemd-247~rc2/src/basic/unit-name.c:476:9:  [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(mempcpy(mempcpy(s, f, a + 1), i, b), e);
data/systemd-247~rc2/src/basic/unit-name.c:506:9:  [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(mempcpy(s, f, a + 1), e);
data/systemd-247~rc2/src/basic/unit-name.c:677:17:  [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(s, suffix);
data/systemd-247~rc2/src/basic/user-util.c:963:25:  [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.
                cache = access("/etc/systemd/dont-synthesize-nobody", F_OK) < 0;
data/systemd-247~rc2/src/basic/user-util.h:73: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.
        return access("/proc/self/uid_map", F_OK) >= 0;
data/systemd-247~rc2/src/basic/util.c:78:35:  [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.
                saved_in_initrd = access("/etc/initrd-release", F_OK) >= 0 &&
data/systemd-247~rc2/src/basic/virt.c:96:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access("/proc/device-tree/ibm,partition-name", F_OK) == 0 &&
data/systemd-247~rc2/src/basic/virt.c:97:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    access("/proc/device-tree/hmc-managed?", F_OK) == 0 &&
data/systemd-247~rc2/src/basic/virt.c:98:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                    access("/proc/device-tree/chosen/qemu,graphic-width", F_OK) != 0)
data/systemd-247~rc2/src/basic/virt.c:194: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.
        if (access("/proc/xen", F_OK) < 0) {
data/systemd-247~rc2/src/basic/virt.c:467: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.
        if (access("/proc/vz", F_OK) >= 0 &&
data/systemd-247~rc2/src/basic/virt.c:468: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.
            access("/proc/bc", F_OK) < 0) {
data/systemd-247~rc2/src/basic/virt.c:613:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        r = sscanf(buf, "%"PRIu32" %"PRIu32" %"PRIu32, &a, &b, &c);
data/systemd-247~rc2/src/boot/bless-boot-generator.c:50: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.
        if (access("/sys/firmware/efi/efivars/LoaderBootCountPath-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f", F_OK) < 0) {
data/systemd-247~rc2/src/boot/bootctl.c:321: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.
        if (access(path, F_OK) < 0)
data/systemd-247~rc2/src/boot/bootctl.c:786: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.
        if (access(p, F_OK) < 0) {
data/systemd-247~rc2/src/boot/bootctl.c:981: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.
        if (access(p, F_OK) >= 0) /* Silently skip creation if the file already exists (early check) */
data/systemd-247~rc2/src/boot/bootctl.c:1273:54:  [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.
                printf(" Passed to OS: %s\n", yes_no(access("/sys/firmware/efi/efivars/LoaderRandomSeed-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f", F_OK) >= 0));
data/systemd-247~rc2/src/boot/bootctl.c:1274:47:  [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.
                printf(" System Token: %s\n", access("/sys/firmware/efi/efivars/LoaderSystemToken-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f", F_OK) >= 0 ? "set" : "not set");
data/systemd-247~rc2/src/boot/bootctl.c:1283:62:  [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.
                        printf("       Exists: %s\n", yes_no(access(p, F_OK) >= 0));
data/systemd-247~rc2/src/boot/bootctl.c:1697: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.
        if (access("/sys/firmware/efi/efivars/LoaderInfo-4a67b082-0a4c-41cf-b6c7-440b29bb8c4f", F_OK) < 0) {
data/systemd-247~rc2/src/boot/efi/boot.c:108:9:  [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(line, line_in);
data/systemd-247~rc2/src/boot/efi/boot.c:1282:9:  [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(file_info->FileName, entry->next_name);
data/systemd-247~rc2/src/busctl/busctl.c:710:25:  [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(f, "%" PRIi64, basic.s64);
data/systemd-247~rc2/src/busctl/busctl.c:714:25:  [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(f, "%" PRIu64, basic.u64);
data/systemd-247~rc2/src/cgtop/cgtop.c:97:16:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
               snprintf(buf, l, USEC_FMT, t);
data/systemd-247~rc2/src/cgtop/cgtop.c:107:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                snprintf(buf, l, "%" PRIu64, t);
data/systemd-247~rc2/src/cgtop/cgtop.c:300:45:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
                                        if (sscanf(l, "rbytes=%" SCNu64, &k))
data/systemd-247~rc2/src/cgtop/cgtop.c:302:50:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
                                        else if (sscanf(l, "wbytes=%" SCNu64, &k))
data/systemd-247~rc2/src/cgtop/cgtop.c:676:25:  [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(" %7" PRIu64, g->n_tasks);
data/systemd-247~rc2/src/core/automount.c:379:9:  [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(param->path, where);
data/systemd-247~rc2/src/core/automount.c:1069:29:  [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.
                supported = access("/dev/autofs", F_OK) >= 0;
data/systemd-247~rc2/src/core/bpf-devices.c:48: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.
        int r, access;
data/systemd-247~rc2/src/core/bpf-devices.c:56: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.
        if (access <= 0)
data/systemd-247~rc2/src/core/bpf-devices.c:64:51:  [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_ALU32_IMM(BPF_AND, BPF_REG_1, access),
data/systemd-247~rc2/src/core/bpf-devices.c:73:23:  [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 (FLAGS_SET(access, BPF_DEVCG_ACC_READ | BPF_DEVCG_ACC_WRITE | BPF_DEVCG_ACC_MKNOD))
data/systemd-247~rc2/src/core/bpf-devices.c:89: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.
        int r, access;
data/systemd-247~rc2/src/core/bpf-devices.c:97: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.
        if (access <= 0)
data/systemd-247~rc2/src/core/bpf-devices.c:105:51:  [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_ALU32_IMM(BPF_AND, BPF_REG_1, access),
data/systemd-247~rc2/src/core/bpf-devices.c:113:23:  [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 (FLAGS_SET(access, BPF_DEVCG_ACC_READ | BPF_DEVCG_ACC_WRITE | BPF_DEVCG_ACC_MKNOD))
data/systemd-247~rc2/src/core/bpf-devices.c:128: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.
        int r, access;
data/systemd-247~rc2/src/core/bpf-devices.c:136: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.
        if (access <= 0)
data/systemd-247~rc2/src/core/bpf-devices.c:144:51:  [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_ALU32_IMM(BPF_AND, BPF_REG_1, access),
data/systemd-247~rc2/src/core/bpf-devices.c:151:23:  [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 (FLAGS_SET(access, BPF_DEVCG_ACC_READ | BPF_DEVCG_ACC_WRITE | BPF_DEVCG_ACC_MKNOD))
data/systemd-247~rc2/src/core/cgroup.c:501:17:  [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(f,
data/systemd-247~rc2/src/core/dbus-unit.c:1887:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        bool system;
data/systemd-247~rc2/src/core/dbus-unit.c:1896:39:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        r = parse_emergency_action(s, system, &v);
data/systemd-247~rc2/src/core/dynamic-user.c:57:9:  [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(d->name, name);
data/systemd-247~rc2/src/core/efi-random.c:53: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.
        if (access("/run/systemd/efi-random-seed-taken", F_OK) < 0) {
data/systemd-247~rc2/src/core/emergency-action.c:157:22:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                bool system,
data/systemd-247~rc2/src/core/emergency-action.c:166:14:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        if (!system && x != EMERGENCY_ACTION_NONE && x < _EMERGENCY_ACTION_FIRST_USER_ACTION)
data/systemd-247~rc2/src/core/emergency-action.h:34:52:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
int parse_emergency_action(const char *value, bool system, EmergencyAction *ret);
data/systemd-247~rc2/src/core/ima-setup.c:30: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.
        if (access(IMA_SECFS_DIR, F_OK) < 0) {
data/systemd-247~rc2/src/core/ima-setup.c:35: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.
        if (access(IMA_SECFS_POLICY, W_OK) < 0) {
data/systemd-247~rc2/src/core/ima-setup.c:40: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.
        if (access(IMA_POLICY_PATH, F_OK) < 0) {
data/systemd-247~rc2/src/core/job.c:572:16:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        (void) snprintf(buf, sizeof buf, format, unit_status_string(u));
data/systemd-247~rc2/src/core/job.c:908:16:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        (void) snprintf(buf, sizeof(buf), format, unit_status_string(u));
data/systemd-247~rc2/src/core/kmod-setup.c:102:43:  [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 (kmod_table[i].path && access(kmod_table[i].path, F_OK) >= 0)
data/systemd-247~rc2/src/core/main.c:274:32:  [4] (shell) execle:
  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.
                        (void) execle("/bin/sh", "/bin/sh", NULL, environ);
data/systemd-247~rc2/src/core/main.c:1438:9:  [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(SYSTEMCTL_BINARY_PATH, argv);
data/systemd-247~rc2/src/core/main.c:1783:24:  [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.
                (void) execv(args[0], (char* const*) args);
data/systemd-247~rc2/src/core/main.c:1814:16:  [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.
        (void) execv(args[0], (char* const*) args);
data/systemd-247~rc2/src/core/manager.c:183:25:  [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(p, ANSI_NORMAL);
data/systemd-247~rc2/src/core/manager.c:4050:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(*path, F_OK) == 0)
data/systemd-247~rc2/src/core/manager.c:4444: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.
        return access("/run/systemd/confirm_spawn_disabled", F_OK) >= 0;
data/systemd-247~rc2/src/core/manager.c:4493:9:  [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(p, path);
data/systemd-247~rc2/src/core/manager.c:4806: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.
        if (access("/proc/cgroups", F_OK) < 0)
data/systemd-247~rc2/src/core/mount-setup.c:207:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(p->where, W_OK) < 0) {
data/systemd-247~rc2/src/core/mount-setup.c:554: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.
        if (access("/run/host/inaccessible/", F_OK) < 0) {
data/systemd-247~rc2/src/core/namespace.c:2082: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.
        r = access(prefix, F_OK);
data/systemd-247~rc2/src/core/namespace.c:2332: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.
        return access(ns_proc, F_OK) == 0;
data/systemd-247~rc2/src/core/path.c:183: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.
                good = access(s->path, F_OK) >= 0;
data/systemd-247~rc2/src/core/path.c:200:21:  [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.
                b = access(s->path, F_OK) >= 0;
data/systemd-247~rc2/src/core/selinux-setup.c:48:28:  [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 (in_initrd() && access(selinux_path(), F_OK) < 0)
data/systemd-247~rc2/src/core/swap.c:1535:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        access("/proc/swaps", F_OK) >= 0 &&
data/systemd-247~rc2/src/core/transaction.c:340:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(ans + size, "%s%s", unit_log_field, *unit_id);
data/systemd-247~rc2/src/coredump/coredumpctl.c:421:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(filename, R_OK) == 0)
data/systemd-247~rc2/src/coredump/coredumpctl.c:605:25:  [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.
                inacc = access(filename, R_OK) < 0;
data/systemd-247~rc2/src/coredump/coredumpctl.c:765:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(filename, R_OK) < 0)
data/systemd-247~rc2/src/coredump/coredumpctl.c:993:17:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execlp(debugger, debugger, exe, "-c", path, NULL);
data/systemd-247~rc2/src/delta/delta.c:175:17:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execlp("diff", "diff", "-us", "--", bottom, top, NULL);
data/systemd-247~rc2/src/fsck/fsck.c:126: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.
        if (access("/fastboot", F_OK) >= 0) {
data/systemd-247~rc2/src/fsck/fsck.c:131: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.
        if (access("/forcefsck", F_OK) >= 0) {
data/systemd-247~rc2/src/fsck/fsck.c:137:29:  [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.
        arg_show_progress = access("/run/systemd/show-status", F_OK) >= 0;
data/systemd-247~rc2/src/fsck/fsck.c:397:17:  [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(cmdline[0], (char**) cmdline);
data/systemd-247~rc2/src/fsckd/fsckd.c:113: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.
        return access("/run/plymouth/pid", F_OK) >= 0;
data/systemd-247~rc2/src/fsckd/fsckd.c:554: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.
        if (access("/run/systemd/show-status", F_OK) >= 0)
data/systemd-247~rc2/src/fstab-generator/fstab-generator.c:108: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.
        if (access("/proc/swaps", F_OK) < 0) {
data/systemd-247~rc2/src/fstab-generator/fstab-generator.c:268:17:  [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(f, format, res);
data/systemd-247~rc2/src/getty-generator/getty-generator.c:193:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(p, F_OK) < 0)
data/systemd-247~rc2/src/gpt-auto-generator/gpt-auto-generator.c:500: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.
        if (access("/efi", F_OK) < 0) {
data/systemd-247~rc2/src/home/homectl.c:1796:17:  [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(cmdline[0], cmdline);
data/systemd-247~rc2/src/home/homed-home.c:1053:17:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execl(homework, homework, verb, NULL);
data/systemd-247~rc2/src/home/homework-cifs.c:70:33:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                                execl("/bin/mount", "/bin/mount", "-n", "-t", "cifs",
data/systemd-247~rc2/src/home/homework-cifs.c:155: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.
        if (access("/sbin/mount.cifs", F_OK) < 0) {
data/systemd-247~rc2/src/home/homework-luks.c:207:17:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execl("/sbin/fsck", "/sbin/fsck", "-aTl", node, NULL);
data/systemd-247~rc2/src/home/homework-luks.c:1107:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        if (access(sysfs, F_OK) < 0) {
data/systemd-247~rc2/src/home/homework-luks.c:1308: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.
        r = access(setup.dm_node, F_OK);
data/systemd-247~rc2/src/home/homework-luks.c:1933: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.
        r = access(dm_node, F_OK);
data/systemd-247~rc2/src/home/homework-luks.c:1958:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(sysfs, F_OK) < 0) {
data/systemd-247~rc2/src/home/homework-luks.c:2265: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.
        r = access(dm_node, F_OK);
data/systemd-247~rc2/src/home/homework-luks.c:2359:17:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execlp("e2fsck" ,"e2fsck", "-fp", setup->dm_node, NULL);
data/systemd-247~rc2/src/home/homework-luks.c:2388:17:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execlp("resize2fs" ,"resize2fs", setup->dm_node, size_str, NULL);
data/systemd-247~rc2/src/import/import-common.c:125:17:  [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("gtar", (char* const*) cmdline);
data/systemd-247~rc2/src/import/import-common.c:126:17:  [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("tar", (char* const*) cmdline);
data/systemd-247~rc2/src/import/import-common.c:185:17:  [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("gtar", (char* const*) cmdline);
data/systemd-247~rc2/src/import/import-common.c:186:17:  [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("tar", (char* const*) cmdline);
data/systemd-247~rc2/src/import/importd.c:483:17:  [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(cmd[0], (char * const *) cmd);
data/systemd-247~rc2/src/import/pull-common.c:479:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(USER_KEYRING_PATH, F_OK) >= 0)
data/systemd-247~rc2/src/import/pull-common.c:491:17:  [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("gpg2", (char * const *) cmd);
data/systemd-247~rc2/src/import/pull-common.c:492:17:  [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("gpg", (char * const *) cmd);
data/systemd-247~rc2/src/journal-remote/journal-remote-main.c:94:17:  [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(child, argv);
data/systemd-247~rc2/src/journal/cat.c:157:24:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                (void) execl("/bin/cat", "/bin/cat", NULL);
data/systemd-247~rc2/src/journal/cat.c:159:24:  [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.
                (void) execvp(argv[optind], argv + optind);
data/systemd-247~rc2/src/journal/catalog.c:164:17:  [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(i->language, language);
data/systemd-247~rc2/src/journal/catalog.c:667:17:  [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(f, SD_ID128_FORMAT_STR " %s: %s\n",
data/systemd-247~rc2/src/journal/journal-send.c:91:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        len = vsnprintf(buffer + 8, LINE_MAX, format, aq);
data/systemd-247~rc2/src/journal/journal-send.c:101:27:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                assert_se(vsnprintf(buffer + 8, len + 1, format, ap) == len);
data/systemd-247~rc2/src/journal/journal-send.c:467:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        len = vsnprintf(buffer + 8, LINE_MAX, format, aq);
data/systemd-247~rc2/src/journal/journal-send.c:477:27:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                assert_se(vsnprintf(buffer + 8, len + 1, format, ap) == len);
data/systemd-247~rc2/src/journal/journalctl.c:1813: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(f, "/%"PRIx64"-%"PRIx64, start, interval);
data/systemd-247~rc2/src/journal/journalctl.c:1816:17:  [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(f, "?machine=" SD_ID128_FORMAT_STR, SD_ID128_FORMAT_VAL(machine));
data/systemd-247~rc2/src/journal/journalctl.c:1869:20:  [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.
        } else if (access(p, F_OK) >= 0)
data/systemd-247~rc2/src/journal/journald-audit.c:371:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(source_time_field, "_SOURCE_REALTIME_TIMESTAMP=%" PRIu64,
data/systemd-247~rc2/src/journal/journald-audit.c:378:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(id_field, "_AUDIT_ID=%" PRIu64, id);
data/systemd-247~rc2/src/journal/journald-server.c:310: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.
        return access(fn, F_OK) >= 0;
data/systemd-247~rc2/src/journal/journald-server.c:870:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(k, field "=" format, value);                    \
data/systemd-247~rc2/src/journal/journald-server.c:985:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(source_time, "_SOURCE_REALTIME_TIMESTAMP=" USEC_FMT, timeval_load(tv));
data/systemd-247~rc2/src/journal/test-catalog.c:210:19:  [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.
        assert_se(access(catalog_dirs[0], F_OK) >= 0);
data/systemd-247~rc2/src/journal/test-compress.c:199:27:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                assert_se(system(cmd) == 0);
data/systemd-247~rc2/src/journal/test-compress.c:213:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        assert_se(system(cmd2) == 0);
data/systemd-247~rc2/src/journal/test-journal-interleaving.c:285: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.
        if (access("/etc/machine-id", F_OK) != 0)
data/systemd-247~rc2/src/journal/test-journal-stream.c:178: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.
        if (access("/etc/machine-id", F_OK) != 0)
data/systemd-247~rc2/src/journal/test-journal-verify.c:67: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.
        if (access("/etc/machine-id", F_OK) != 0)
data/systemd-247~rc2/src/journal/test-journal.c:249: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.
        if (access("/etc/machine-id", F_OK) != 0)
data/systemd-247~rc2/src/libsystemd-network/network-internal.c:797:17:  [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(f, "%s/%" PRIu8, inet_ntop(AF_INET, &dest, sbuf, sizeof sbuf), length);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-dump.c:79:25:  [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(f, " Cookie=%" PRIu64, BUS_MESSAGE_COOKIE(m));
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-dump.c:82:25:  [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(f, "  ReplyCookie=%" PRIu64, m->reply_cookie);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-dump.c:108:25:  [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(f, "  Monotonic="USEC_FMT, m->monotonic);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-dump.c:110:25:  [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(f, "  Realtime="USEC_FMT, m->realtime);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-dump.c:112:25:  [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(f, "  SequenceNumber=%"PRIu64, m->seqnum);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-dump.c:304:33:  [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(f, terse ? "\n          " : "\n        ");
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-dump.c:391:25:  [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(f, "%s" GID_FMT, i > 0 ? " " : "", c->supplementary_gids[i]);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-internal.h:392:32:  [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).
        for (char *_slash = ({ strcpy((prefix), (path)); streq((prefix), "/") ? NULL : strrchr((prefix), '/'); }) ; \
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:987:25:  [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(b->exec_path, b->exec_argv);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:990:25:  [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(b->exec_path, (char**) argv);
data/systemd-247~rc2/src/libsystemd/sd-device/device-enumerator.c:436:24:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                (void) sprintf(syspath, "%s%s", path, dent->d_name);
data/systemd-247~rc2/src/libsystemd/sd-device/device-enumerator.c:737: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.
        if (access("/sys/subsystem", F_OK) >= 0) {
data/systemd-247~rc2/src/libsystemd/sd-device/device-enumerator.c:879: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.
        if (access("/sys/subsystem", F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/device-monitor.c:121: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.
            access("/run/udev/control", F_OK) < 0 &&
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:180:29:  [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.
                        r = access(path, F_OK);
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:258:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(syspath, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:262:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(syspath, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:266:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(syspath, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:270:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(syspath, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:283:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        if (access(syspath, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:287:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        if (access(syspath, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:302: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.
        if (access(syspath, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:306: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.
        if (access(syspath, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:310: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.
        if (access(syspath, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:314: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.
        if (access(syspath, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:1663:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(p, F_OK) >= 0)
data/systemd-247~rc2/src/libsystemd/sd-login/test-login.c:24:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(*buf + pos, "%s"UID_FMT"%n", k > 0 ? " " : "", uids[k], &inc);
data/systemd-247~rc2/src/libudev/libudev-queue.c:135: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.
        return access("/run/udev/control", F_OK) >= 0;
data/systemd-247~rc2/src/libudev/libudev-queue.c:147: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.
        return access("/run/udev/queue", F_OK) < 0;
data/systemd-247~rc2/src/locale/keymap-util.c:601:32:  [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.
                uncompressed = access(p, F_OK) == 0;
data/systemd-247~rc2/src/locale/keymap-util.c:602:37:  [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 (uncompressed || access(pz, F_OK) == 0) {
data/systemd-247~rc2/src/login/inhibit.c:323:25:  [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(arguments[0], arguments);
data/systemd-247~rc2/src/login/loginctl.c:486:17:  [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("\t  Leader: %"PRIu32, i.leader);
data/systemd-247~rc2/src/login/logind-action.c:113:29:  [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.
                supported = access(KEXEC, X_OK) >= 0;
data/systemd-247~rc2/src/login/logind-dbus.c:2610:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access("/run/systemd/reboot-to-firmware-setup", F_OK) < 0) {
data/systemd-247~rc2/src/login/logind-seat.c:137:25:  [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(f,
data/systemd-247~rc2/src/login/logind-user.c:616: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.
        if (access(p, F_OK) < 0) {
data/systemd-247~rc2/src/login/logind.c:759: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.
        if (access("/dev/tty0", F_OK) < 0)
data/systemd-247~rc2/src/login/pam_systemd.c:307: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.
        if (access(s, F_OK) < 0)
data/systemd-247~rc2/src/machine/machine.c:691:13:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        k = fscanf(f, UID_FMT " " UID_FMT " " UID_FMT "\n", &uid_base, &uid_shift, &uid_range);
data/systemd-247~rc2/src/machine/machine.c:722:13:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        k = fscanf(f, GID_FMT " " GID_FMT " " GID_FMT "\n", &gid_base, &gid_shift, &gid_range);
data/systemd-247~rc2/src/machine/machine.c:781:21:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
                k = fscanf(f, UID_FMT " " UID_FMT " " UID_FMT, &uid_base, &uid_shift, &uid_range);
data/systemd-247~rc2/src/machine/machine.c:853:21:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
                k = fscanf(f, UID_FMT " " UID_FMT " " UID_FMT, &uid_base, &uid_shift, &uid_range);
data/systemd-247~rc2/src/network/networkctl.c:2810: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.
        if (access("/run/systemd/netif/state", F_OK) >= 0)
data/systemd-247~rc2/src/network/networkd-ndisc.c:1029:17:  [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(NDISC_DNSSL_DOMAIN(s), *j);
data/systemd-247~rc2/src/network/networkd-route.c:1615:17:  [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(f, "%s%s/%hhu/%hhu/%"PRIu32"/%"PRIu32"/"USEC_FMT,
data/systemd-247~rc2/src/network/networkd-route.c:1652:21:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
                r = sscanf(prefixlen_str,
data/systemd-247~rc2/src/network/networkd-routing-policy-rule.c:1539:25:  [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(f, "%spriority=%"PRIu32,
data/systemd-247~rc2/src/network/networkd-routing-policy-rule.c:1546:25:  [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(f, "%sfwmark=%"PRIu32,
data/systemd-247~rc2/src/network/networkd-routing-policy-rule.c:1550:33:  [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(f, "/%"PRIu32, rule->fwmask);
data/systemd-247~rc2/src/network/networkd-routing-policy-rule.c:1576:25:  [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(f, "%ssourcesport=%"PRIu16"-%"PRIu16,
data/systemd-247~rc2/src/network/networkd-routing-policy-rule.c:1583:25:  [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(f, "%sdestinationport=%"PRIu16"-%"PRIu16,
data/systemd-247~rc2/src/network/networkd-routing-policy-rule.c:1591:25:  [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(f, "%suidrange="UID_FMT"-"UID_FMT,
data/systemd-247~rc2/src/network/networkd-util.c:143:9:  [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(cs->filename, filename);
data/systemd-247~rc2/src/network/test-routing-policy-rule.c:49:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        assert_se(system(cmd) == 0);
data/systemd-247~rc2/src/nspawn/nspawn-cgroup.c:126:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(pid_string, PID_FMT, pid);
data/systemd-247~rc2/src/nspawn/nspawn-cgroup.c:521:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(p, F_OK) >= 0)
data/systemd-247~rc2/src/nspawn/nspawn-network.c:242:9:  [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(ifname, new_ifname);
data/systemd-247~rc2/src/nspawn/nspawn-network.c:289:9:  [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(iface_name, n);
data/systemd-247~rc2/src/nspawn/nspawn-oci.c:1100:22:  [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[4];
data/systemd-247~rc2/src/nspawn/nspawn-oci.c:1131:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        access[n++] = 'r';
data/systemd-247~rc2/src/nspawn/nspawn-oci.c:1133:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        access[n++] = 'w';
data/systemd-247~rc2/src/nspawn/nspawn-oci.c:1135:25:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        access[n++] = 'm';
data/systemd-247~rc2/src/nspawn/nspawn-oci.c:1136: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.
                access[n] = 0;
data/systemd-247~rc2/src/nspawn/nspawn-oci.c:1140:75:  [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.
                r = sd_bus_message_append(s->properties, "(ss)", pattern, access);
data/systemd-247~rc2/src/nspawn/nspawn-setuid.c:50:17:  [4] (shell) execle:
  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.
                execle("/usr/bin/getent", "getent", database, key, NULL, &empty_env);
data/systemd-247~rc2/src/nspawn/nspawn-setuid.c:51:17:  [4] (shell) execle:
  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.
                execle("/bin/getent", "getent", database, key, NULL, &empty_env);
data/systemd-247~rc2/src/nspawn/nspawn.c:1954: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.
        if (access(path, F_OK) < 0) {
data/systemd-247~rc2/src/nspawn/nspawn.c:2588:20:  [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.
        } else if (access(p, F_OK) < 0)
data/systemd-247~rc2/src/nspawn/nspawn.c:3455:17:  [4] (shell) execle:
  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.
                execle("/bin/bash", "-bash", NULL, env_use);
data/systemd-247~rc2/src/nspawn/nspawn.c:3456:17:  [4] (shell) execle:
  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.
                execle("/bin/sh", "-sh", NULL, env_use);
data/systemd-247~rc2/src/nss-systemd/userdb-glue.c:61:9:  [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(pwd->pw_shell, shell);
data/systemd-247~rc2/src/nss-systemd/userdb-glue.c:185:28:  [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).
                .gr_name = strcpy(p, g->group_name),
data/systemd-247~rc2/src/portable/portable.c:83:9:  [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(m->name, name);
data/systemd-247~rc2/src/portable/portable.c:699:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access("/etc/os-release", F_OK) < 0) {
data/systemd-247~rc2/src/pstore/pstore.c:312:31:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                dmesg_size += sprintf(dmesg + dmesg_size, "%s:\n", pe->dirent.d_name);
data/systemd-247~rc2/src/quotacheck/quotacheck.c:51: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.
        if (access("/forcequotacheck", F_OK) >= 0) {
data/systemd-247~rc2/src/quotacheck/quotacheck.c:79:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access("/run/systemd/quotacheck", F_OK) < 0)
data/systemd-247~rc2/src/quotacheck/quotacheck.c:95:17:  [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(cmdline[0], (char**) cmdline);
data/systemd-247~rc2/src/random-seed/random-seed.c:88: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.
        if (access("/run/systemd/first-boot", F_OK) < 0) {
data/systemd-247~rc2/src/rc-local-generator/rc-local-generator.c:45: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.
        if (access(path, X_OK) < 0) {
data/systemd-247~rc2/src/remount-fs/remount-fs.c:62:17:  [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(MOUNT_PATH,
data/systemd-247~rc2/src/resolve/resolved-dns-rr.c:34:9:  [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((char*) k + sizeof(DnsResourceKey), name);
data/systemd-247~rc2/src/shared/ask-password-api.c:294:34:  [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 (flag_file && access(flag_file, F_OK) < 0) {
data/systemd-247~rc2/src/shared/ask-password-api.c:536:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        if (access(flag_file, F_OK) < 0) {
data/systemd-247~rc2/src/shared/bootspec.c:719:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access("/run/boot-loader-entries/", F_OK) >= 0)
data/systemd-247~rc2/src/shared/bootspec.c:1024: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.
        (void) access(trigger, F_OK);
data/systemd-247~rc2/src/shared/bus-print-properties.c:59:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(fmt, ap);
data/systemd-247~rc2/src/shared/cgroup-setup.c:794:25:  [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(s + 1, n);
data/systemd-247~rc2/src/shared/clean-ipc.c:70:21:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
                if (sscanf(line, "%*i %i %*o %*u " PID_FMT " " PID_FMT " %u " UID_FMT " " GID_FMT " " UID_FMT " " GID_FMT,
data/systemd-247~rc2/src/shared/clean-ipc.c:132:21:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
                if (sscanf(line, "%*i %i %*o %*u " UID_FMT " " GID_FMT " " UID_FMT " " GID_FMT,
data/systemd-247~rc2/src/shared/clean-ipc.c:192:21:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
                if (sscanf(line, "%*i %i %*o %*u %*u " PID_FMT " " PID_FMT " " UID_FMT " " GID_FMT " " UID_FMT " " GID_FMT,
data/systemd-247~rc2/src/shared/clean-ipc.c:353:17:  [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(fn+1, de->d_name);
data/systemd-247~rc2/src/shared/condition.c:647: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.
        q = access("/run/systemd/first-boot", F_OK);
data/systemd-247~rc2/src/shared/condition.c:688: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.
        return access(c->parameter, F_OK) >= 0;
data/systemd-247~rc2/src/shared/coredump-util.c:70:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(t, "0x%"PRIx64, value);
data/systemd-247~rc2/src/shared/cpu-set-util.c:35:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                r = sprintf(str + len, len > 0 ? " %d" : "%d", i);
data/systemd-247~rc2/src/shared/cpu-set-util.c:65:37:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                r = sprintf(str + len, len > 0 ? " %d-%d" : "%d-%d", range_start, range_end);
data/systemd-247~rc2/src/shared/cpu-set-util.c:67:37:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                                r = sprintf(str + len, len > 0 ? " %d" : "%d", range_start);
data/systemd-247~rc2/src/shared/cpu-set-util.c:77:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        r = sprintf(str + len, len > 0 ? " %d-%d" : "%d-%d", range_start, range_end);
data/systemd-247~rc2/src/shared/cpu-set-util.c:79:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                        r = sprintf(str + len, len > 0 ? " %d" : "%d", range_start);
data/systemd-247~rc2/src/shared/dev-setup.c:34:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        if (access(j, F_OK) < 0)
data/systemd-247~rc2/src/shared/dissect-image.c:1210: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.
        if (access(s, F_OK) < 0) {
data/systemd-247~rc2/src/shared/dissect-image.c:1216:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(s, F_OK) < 0)
data/systemd-247~rc2/src/shared/dissect-image.c:1245:17:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execl("/sbin/fsck", "/sbin/fsck", "-aT", node, NULL);
data/systemd-247~rc2/src/shared/dissect-image.c:2001:9:  [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(mempcpy(n, image, e - image), suffix);
data/systemd-247~rc2/src/shared/dissect-image.c:2167:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(p, F_OK) < 0) {
data/systemd-247~rc2/src/shared/efi-loader.c:597:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (sscanf(p, SD_ID128_UUID_FORMAT_STR,
data/systemd-247~rc2/src/shared/exec-util.c:66:17:  [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(path, argv);
data/systemd-247~rc2/src/shared/firewall-util.c:57:17:  [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(entry->ip.iniface, in_interface);
data/systemd-247~rc2/src/shared/firewall-util.c:70:17:  [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(entry->ip.outiface, out_interface);
data/systemd-247~rc2/src/shared/format-table.c:1457:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(p, "%" PRIi8, d->int8);
data/systemd-247~rc2/src/shared/format-table.c:1469:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(p, "%" PRIi16, d->int16);
data/systemd-247~rc2/src/shared/format-table.c:1481:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(p, "%" PRIi32, d->int32);
data/systemd-247~rc2/src/shared/format-table.c:1493:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(p, "%" PRIi64, d->int64);
data/systemd-247~rc2/src/shared/format-table.c:1517:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(p, "%" PRIu8, d->uint8);
data/systemd-247~rc2/src/shared/format-table.c:1529:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(p, "%" PRIu16, d->uint16);
data/systemd-247~rc2/src/shared/format-table.c:1541:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(p, "%" PRIu32, d->uint32);
data/systemd-247~rc2/src/shared/format-table.c:1553:17:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                sprintf(p, "%" PRIu64, d->uint64);
data/systemd-247~rc2/src/shared/id128-print.c:56:17:  [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(SD_ID128_FORMAT_STR "\n",
data/systemd-247~rc2/src/shared/id128-print.c:60:17:  [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(SD_ID128_UUID_FORMAT_STR "\n",
data/systemd-247~rc2/src/shared/ima-util.c:12:34:  [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.
                use_ima_cached = access("/sys/kernel/security/ima/", F_OK) >= 0;
data/systemd-247~rc2/src/shared/import-util.c:63:9:  [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(mempcpy(s, url, e - url), suffix);
data/systemd-247~rc2/src/shared/json.c:141:9:  [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(s->name, name);
data/systemd-247~rc2/src/shared/json.c:477:25:  [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(a->string, s);
data/systemd-247~rc2/src/shared/json.c:1575:17:  [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(f, "%" PRIdMAX, json_variant_integer(v));
data/systemd-247~rc2/src/shared/json.c:1585:17:  [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(f, "%" PRIuMAX, json_variant_unsigned(v));
data/systemd-247~rc2/src/shared/json.c:3833:16:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        (void) vsnprintf(buffer, sizeof buffer, format, ap);
data/systemd-247~rc2/src/shared/libcrypt-util.c:124:19:  [4] (crypto) crypt_r:
  The crypt functions use a poor one-way hashing algorithm; since they only
  accept passwords of 8 characters or fewer and only a two-byte salt, they
  are excessively vulnerable to dictionary attacks given today's faster
  computing equipment (CWE-327). Use a different algorithm, such as SHA-256,
  with a larger, non-repeating salt.
        char *t = crypt_r(phrase, setting, *data);
data/systemd-247~rc2/src/shared/logs-show.c:79:17:  [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(f, ANSI_GREY "%s" ANSI_NORMAL " " ANSI_GREEN, prefix);
data/systemd-247~rc2/src/shared/logs-show.c:418:37:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
                                r = snprintf(buf + strlen(buf), k, ".%06"PRIu64, x % USEC_PER_SEC);
data/systemd-247~rc2/src/shared/logs-show.c:1472:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
        sprintf(muid, "_UID="UID_FMT, uid);
data/systemd-247~rc2/src/shared/mkfs-util.c:74:32:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                        (void) execlp(mkfs, mkfs,
data/systemd-247~rc2/src/shared/mkfs-util.c:85:40:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                                (void) execlp(mkfs, mkfs, "-L", label, "-U", suuid, node, NULL);
data/systemd-247~rc2/src/shared/mkfs-util.c:87:40:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                                (void) execlp(mkfs, mkfs, "-L", label, "-U", suuid, "--nodiscard", node, NULL);
data/systemd-247~rc2/src/shared/mkfs-util.c:94:40:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                                (void) execlp(mkfs, mkfs, "-L", label, "-m", j, "-m", "reflink=1", node, NULL);
data/systemd-247~rc2/src/shared/mkfs-util.c:96:40:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                                (void) execlp(mkfs, mkfs, "-L", label, "-m", j, "-m", "reflink=1", "-K", node, NULL);
data/systemd-247~rc2/src/shared/mkfs-util.c:112:32:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                        (void) execlp(mkfs, mkfs,
data/systemd-247~rc2/src/shared/mkfs-util.c:120:32:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                        (void) execlp(mkfs, mkfs,
data/systemd-247~rc2/src/shared/mkfs-util.c:127:32:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                        (void) execlp(mkfs, mkfs, node, NULL);
data/systemd-247~rc2/src/shared/mount-util.c:527: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.
            access(d, F_OK) < 0 && errno == ENOENT) {
data/systemd-247~rc2/src/shared/mount-util.c:535: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.
            access(d, F_OK) < 0 && errno == ENOENT) {
data/systemd-247~rc2/src/shared/nscd-flush.c:45:9:  [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(req->dbname, database);
data/systemd-247~rc2/src/shared/pager.c:209:25:  [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(pager_args[0], pager_args);
data/systemd-247~rc2/src/shared/pager.c:227:25:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                        execlp(exe, exe, NULL);
data/systemd-247~rc2/src/shared/pager.c:325:17:  [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], (char**) args);
data/systemd-247~rc2/src/shared/psi-util.c:111:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(p, F_OK) < 0) {
data/systemd-247~rc2/src/shared/pwquality-util.c:82: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.
        if (access(path, F_OK) >= 0)
data/systemd-247~rc2/src/shared/seccomp-util.c:1363:42:  [4] (format) syslog:
  If syslog's format strings can be influenced by an attacker, they can be
  exploited (CWE-134). Use a constant format string for syslog.
                                SCMP_SYS(syslog),
data/systemd-247~rc2/src/shared/serialize.c:65:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        k = vsnprintf(buf, sizeof(buf), format, ap);
data/systemd-247~rc2/src/shared/sleep-config.c:110: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.
        if (access("/sys/power/state", W_OK) < 0) {
data/systemd-247~rc2/src/shared/sleep-config.c:142: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.
        if (access("/sys/power/disk", W_OK) < 0) {
data/systemd-247~rc2/src/shared/sleep-config.c:477: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.
        if (access("/sys/power/tuxonice", F_OK) == 0)
data/systemd-247~rc2/src/shared/tests.c:79: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.
        if (access(dir, F_OK) < 0)
data/systemd-247~rc2/src/shared/tests.c:99: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.
        if (access(env, F_OK) < 0) {
data/systemd-247~rc2/src/shared/tomoyo-util.c:11:31:  [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.
                cached_use = (access("/sys/kernel/security/tomoyo/version",
data/systemd-247~rc2/src/shared/user-record-show.c:232:25:  [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(i == hr->environment ?
data/systemd-247~rc2/src/shared/user-record-show.c:478:25:  [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(i == hr->pkcs11_token_uri ?
data/systemd-247~rc2/src/shutdown/shutdown.c:403:55:  [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.
        can_initrd = !in_container && !in_initrd() && access("/run/initramfs/shutdown", X_OK) == 0;
data/systemd-247~rc2/src/shutdown/shutdown.c:537:25:  [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("/shutdown", argv);
data/systemd-247~rc2/src/shutdown/shutdown.c:581:33:  [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(args[0], (char * const *) args);
data/systemd-247~rc2/src/sleep/sleep.c:67:47:  [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 (hibernate_location->offset > 0 && access("/sys/power/resume_offset", W_OK) < 0) {
data/systemd-247~rc2/src/sulogin-shell/sulogin-shell.c:79:17:  [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(cmdline[0], (char**) cmdline);
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:168:17:  [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(f,
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:229:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(path, F_OK) >= 0)
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:291:53:  [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 (!path_equal(fragment_path, new_path) && access(new_path, F_OK) >= 0) {
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:358:25:  [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], (char* const*) args);
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:362:25:  [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(p, (char* const*) args);
data/systemd-247~rc2/src/systemctl/systemctl-show.c:371:33:  [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(dir ? "             " :
data/systemd-247~rc2/src/systemctl/systemctl-show.c:594:25:  [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("   Main PID: "PID_FMT, i->main_pid);
data/systemd-247~rc2/src/systemctl/systemctl-show.c:633:25:  [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(PID_FMT, i->control_pid);
data/systemd-247~rc2/src/systemctl/systemctl-show.c:667:17:  [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("      Tasks: %" PRIu64, i->tasks_current);
data/systemd-247~rc2/src/systemctl/systemctl-show.c:1139:41:  [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("%"PRIi32, status[i]);
data/systemd-247~rc2/src/systemctl/systemctl-show.c:1155:49:  [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("%"PRIi32, status[i]);
data/systemd-247~rc2/src/systemctl/systemctl-start-special.c:30: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.
        if (access(KEXEC, X_OK) < 0)
data/systemd-247~rc2/src/systemctl/systemctl-start-special.c:94:17:  [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(args[0], (char * const *) args);
data/systemd-247~rc2/src/systemctl/systemctl-sysv-compat.c:177:30:  [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.
                found_sysv = access(p, F_OK) >= 0;
data/systemd-247~rc2/src/systemctl/systemctl-sysv-compat.c:218:25:  [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(argv[0], (char**) argv);
data/systemd-247~rc2/src/systemctl/systemctl.c:939:33:  [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(TELINIT, argv);
data/systemd-247~rc2/src/systemd/_sd-common.h:30:56:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#    define _sd_printf_(a,b) __attribute__((__format__(printf, a, b)))
data/systemd-247~rc2/src/test/test-acl-util.c:33:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        assert_se(system(cmd) == 0);
data/systemd-247~rc2/src/test/test-acl-util.c:36:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        assert_se(system(cmd) == 0);
data/systemd-247~rc2/src/test/test-acl-util.c:54:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        assert_se(system(cmd) == 0);
data/systemd-247~rc2/src/test/test-acl-util.c:57:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        assert_se(system(cmd) == 0);
data/systemd-247~rc2/src/test/test-acl-util.c:65:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        assert_se(system(cmd) == 0);
data/systemd-247~rc2/src/test/test-acl-util.c:68:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        assert_se(system(cmd) == 0);
data/systemd-247~rc2/src/test/test-cgroup-setup.c:22:24:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                (void) system("findmnt -n /sys/fs/cgroup");
data/systemd-247~rc2/src/test/test-cgroup-setup.c:65: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.
        if (access("/proc/cmdline", R_OK) < 0 && ERRNO_IS_PRIVILEGE(errno))
data/systemd-247~rc2/src/test/test-cgroup-util.c:200:17:  [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(PID_FMT"\t%s\t%s\t"UID_FMT"\t%s\t%s\t%s\t%s\t%s\n",
data/systemd-247~rc2/src/test/test-cgroup-util.c:229: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.
        if (access("/sys/fs/cgroup/cpu", F_OK) == 0)
data/systemd-247~rc2/src/test/test-cgroup-util.c:381: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.
        if (access("/sys/fs/cgroup/init.scope/cpu.stat", R_OK) < 0) {
data/systemd-247~rc2/src/test/test-clock.c:63: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.
        if (access("/etc/adjtime", R_OK) == 0) {
data/systemd-247~rc2/src/test/test-copy.c:147:27:  [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.
                assert_se(access(f, F_OK) == 0);
data/systemd-247~rc2/src/test/test-env-file.c:163:31:  [4] (shell) popen:
  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.
                assert_se(f = popen(cmd, "re"));
data/systemd-247~rc2/src/test/test-exec-util.c:118: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.
        if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno))
data/systemd-247~rc2/src/test/test-exec-util.c:127:19:  [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.
        assert_se(access("it_works", F_OK) >= 0);
data/systemd-247~rc2/src/test/test-exec-util.c:128:19:  [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.
        assert_se(access("failed", F_OK) < 0);
data/systemd-247~rc2/src/test/test-exec-util.c:131:19:  [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.
        assert_se(access("it_works2", F_OK) >= 0);
data/systemd-247~rc2/src/test/test-exec-util.c:132:19:  [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.
        assert_se(access("failed", F_OK) < 0);
data/systemd-247~rc2/src/test/test-exec-util.c:189: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.
        if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno))
data/systemd-247~rc2/src/test/test-exec-util.c:274: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.
        if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno))
data/systemd-247~rc2/src/test/test-exec-util.c:343: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.
        if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno))
data/systemd-247~rc2/src/test/test-exec-util.c:407: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.
        if (access(name, X_OK) < 0 && ERRNO_IS_PRIVILEGE(errno))
data/systemd-247~rc2/src/test/test-execute.c:193:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(p, F_OK) < 0)
data/systemd-247~rc2/src/test/test-fileio.c:161:23:  [4] (shell) popen:
  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.
        assert_se(f = popen(cmd, "re"));
data/systemd-247~rc2/src/test/test-fs-util.c:737:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(x, F_OK) < 0) {
data/systemd-247~rc2/src/test/test-fs-util.c:748:29:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                        if (access(w, F_OK) < 0) {
data/systemd-247~rc2/src/test/test-load-fragment.c:523:17:  [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(i.name, d1);                                     \
data/systemd-247~rc2/src/test/test-load-fragment.c:524:17:  [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(i.path, d2);                                     \
data/systemd-247~rc2/src/test/test-loop-block.c:169:28:  [4] (shell) popen:
  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.
        assert_se(sfdisk = popen(cmd, "we"));
data/systemd-247~rc2/src/test/test-loop-block.c:179: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(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(GPT_ROOT_NATIVE));
data/systemd-247~rc2/src/test/test-loop-block.c:181: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(sfdisk, SD_ID128_UUID_FORMAT_STR, SD_ID128_FORMAT_VAL(GPT_ROOT_X86_64));
data/systemd-247~rc2/src/test/test-ns.c:102:9:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execl("/bin/sh", "/bin/sh", NULL);
data/systemd-247~rc2/src/test/test-nss.c:63:22:  [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 (!path || access(path, F_OK) < 0)
data/systemd-247~rc2/src/test/test-path.c:321:19:  [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.
        assert_se(access(test_path, F_OK) < 0);
data/systemd-247~rc2/src/test/test-path.c:328:19:  [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.
        assert_se(access(test_path, F_OK) < 0);
data/systemd-247~rc2/src/test/test-path.c:357:19:  [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.
        assert_se(access(test_path, F_OK) < 0);
data/systemd-247~rc2/src/test/test-path.c:362:19:  [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.
        assert_se(access(test_path, F_OK) >= 0);
data/systemd-247~rc2/src/test/test-pretty-print.c:30: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.
        if (access("/etc/fstab", R_OK) >= 0)
data/systemd-247~rc2/src/test/test-proc-cmdline.c:254: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.
        if (access("/proc/cmdline", R_OK) < 0 && ERRNO_IS_PRIVILEGE(errno))
data/systemd-247~rc2/src/test/test-rm-rf.c:31:19:  [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.
        assert_se(access(d, F_OK) >= 0);
data/systemd-247~rc2/src/test/test-rm-rf.c:32:19:  [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.
        assert_se(access(x, F_OK) >= 0);
data/systemd-247~rc2/src/test/test-rm-rf.c:33:19:  [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.
        assert_se(access(y, F_OK) >= 0);
data/systemd-247~rc2/src/test/test-rm-rf.c:38:19:  [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.
        assert_se(access(d, F_OK) < 0 && errno == ENOENT);
data/systemd-247~rc2/src/test/test-seccomp.c:650:27:  [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.
                assert_se(access("/", F_OK) >= 0);
data/systemd-247~rc2/src/test/test-seccomp.c:659:27:  [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.
                assert_se(access("/", F_OK) >= 0);
data/systemd-247~rc2/src/test/test-seccomp.c:662:27:  [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.
                assert_se(access("/", F_OK) >= 0);
data/systemd-247~rc2/src/test/test-seccomp.c:690:27:  [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.
                assert_se(access("/", F_OK) >= 0);
data/systemd-247~rc2/src/test/test-seccomp.c:694:27:  [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.
                assert_se(access("/", F_OK) >= 0);
data/systemd-247~rc2/src/test/test-seccomp.c:706:27:  [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.
                assert_se(access("/", F_OK) < 0);
data/systemd-247~rc2/src/test/test-seccomp.c:722:27:  [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.
                assert_se(access("/", F_OK) < 0);
data/systemd-247~rc2/src/test/test-seccomp.c:738:27:  [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.
                assert_se(access("/", F_OK) < 0);
data/systemd-247~rc2/src/test/test-seccomp.c:755:27:  [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.
                assert_se(access("/", F_OK) < 0);
data/systemd-247~rc2/src/test/test-tmpfiles.c:34:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        (void) system(cmd);
data/systemd-247~rc2/src/test/test-tmpfiles.c:44:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        (void) system(cmd2);
data/systemd-247~rc2/src/time-wait-sync/time-wait-sync.c:157:29:  [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.
        sp->has_watchfile = access("/run/systemd/timesync/synchronized", F_OK) >= 0;
data/systemd-247~rc2/src/timedate/timedated.c:298:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access("/usr/share/zoneinfo/UTC", F_OK) < 0) {
data/systemd-247~rc2/src/tty-ask-password-agent/tty-ask-password-agent.c:233:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
                if (access(socket_name, W_OK) < 0) {
data/systemd-247~rc2/src/tty-ask-password-agent/tty-ask-password-agent.c:575:17:  [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(SYSTEMD_TTY_ASK_PASSWORD_AGENT_BINARY_PATH, arguments);
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:263:25:  [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(buffer, options_in);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:519:9:  [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(serial_short, serial + s);
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:481:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
        if (sscanf(syspath, pattern, vendor, &model, &instance, &ethid) != 4)
data/systemd-247~rc2/src/udev/udev-rules.c:1509:17:  [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(attr, buf);
data/systemd-247~rc2/src/udev/udevadm-settle.c:206:35:  [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 (arg_exists && access(arg_exists, F_OK) >= 0)
data/systemd-247~rc2/src/userdb/userdbd-manager.c:209:17:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
                execl(SYSTEMD_USERWORK_PATH, "systemd-userwork", "xxxxxxxxxxxxxxxx", NULL); /* With some extra space rename_process() can make use of */
data/systemd-247~rc2/src/vconsole/vconsole-setup.c:57: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.
        if (access(vcname, F_OK) < 0)
data/systemd-247~rc2/src/vconsole/vconsole-setup.c:159:17:  [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(args[0], (char **) args);
data/systemd-247~rc2/src/vconsole/vconsole-setup.c:202:17:  [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(args[0], (char **) args);
data/systemd-247~rc2/src/ac-power/ac-power.c:37:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hv", options, NULL)) >= 0)
data/systemd-247~rc2/src/activate/activate.c:381:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "+hl:aE:d", options, NULL)) >= 0)
data/systemd-247~rc2/src/analyze/analyze-verify.c:79:15:  [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.
        old = getenv("SYSTEMD_UNIT_PATH");
data/systemd-247~rc2/src/analyze/analyze.c:2286:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hH:M:", options, NULL)) >= 0)
data/systemd-247~rc2/src/ask-password/ask-password.c:90:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/basic/env-util.c:451: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.
                return getenv(t);
data/systemd-247~rc2/src/basic/env-util.c:734:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv(p);
data/systemd-247~rc2/src/basic/locale-util.c:315:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                !getenv("LC_ALL") &&
data/systemd-247~rc2/src/basic/locale-util.c:316:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                !getenv("LC_CTYPE") &&
data/systemd-247~rc2/src/basic/locale-util.c:317:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                !getenv("LANG");
data/systemd-247~rc2/src/basic/locale-util.c:333:48:  [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.
                                !STRPTR_IN_SET(getenv("TERM"), "dumb", "linux");
data/systemd-247~rc2/src/basic/log.c:231:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("JOURNAL_STREAM");
data/systemd-247~rc2/src/basic/log.c:1187:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_LOG_TARGET");
data/systemd-247~rc2/src/basic/log.c:1191:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_LOG_LEVEL");
data/systemd-247~rc2/src/basic/log.c:1195:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_LOG_COLOR");
data/systemd-247~rc2/src/basic/log.c:1199:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_LOG_LOCATION");
data/systemd-247~rc2/src/basic/log.c:1203:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_LOG_TIME");
data/systemd-247~rc2/src/basic/log.c:1207:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_LOG_TID");
data/systemd-247~rc2/src/basic/namespace-util.c:121:21:  [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.
                if (chroot(".") < 0)
data/systemd-247~rc2/src/basic/path-lookup.c:26:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("XDG_RUNTIME_DIR");
data/systemd-247~rc2/src/basic/path-lookup.c:45:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("XDG_CONFIG_HOME");
data/systemd-247~rc2/src/basic/path-lookup.c:77:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("XDG_DATA_HOME");
data/systemd-247~rc2/src/basic/path-lookup.c:123:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("XDG_CONFIG_DIRS");
data/systemd-247~rc2/src/basic/path-lookup.c:131:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("XDG_DATA_DIRS");
data/systemd-247~rc2/src/basic/path-lookup.c:262:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                e = getenv("XDG_RUNTIME_DIR");
data/systemd-247~rc2/src/basic/path-lookup.c:489:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv(var);
data/systemd-247~rc2/src/basic/path-util.c:610:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                p = getenv("PATH");
data/systemd-247~rc2/src/basic/process-util.c:851:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                e = getenv(field);
data/systemd-247~rc2/src/basic/random-util.c:344:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(x);
data/systemd-247~rc2/src/basic/terminal-util.c:809:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("COLUMNS");
data/systemd-247~rc2/src/basic/terminal-util.c:846:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("LINES");
data/systemd-247~rc2/src/basic/terminal-util.c:1195:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("TERM");
data/systemd-247~rc2/src/basic/terminal-util.c:1224:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                else if (getenv("NO_COLOR"))
data/systemd-247~rc2/src/basic/terminal-util.c:1253:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (getenv("NO_COLOR"))
data/systemd-247~rc2/src/basic/terminal-util.c:1269:63:  [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.
                        cached_underline_enabled = !streq_ptr(getenv("TERM"), "linux");
data/systemd-247~rc2/src/basic/virt.c:516:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                e = getenv("container");
data/systemd-247~rc2/src/binfmt/binfmt.c:151:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/boot/bless-boot.c:73:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/boot/boot-check-no-failures.c:57:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/boot/bootctl.c:1086:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hpx", options, NULL)) >= 0)
data/systemd-247~rc2/src/busctl/busctl.c:2396:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hH:M:qjl", options, NULL)) >= 0)
data/systemd-247~rc2/src/cgls/cgls.c:93:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "-hkalM:u::", options, NULL)) >= 0)
data/systemd-247~rc2/src/cgtop/cgtop.c:763:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hptcmin:brd:kPM:1", options, NULL)) >= 0)
data/systemd-247~rc2/src/core/execute.c:1887:32:  [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.
                        term = getenv("TERM");
data/systemd-247~rc2/src/core/execute.c:1968:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                v = getenv(*i);
data/systemd-247~rc2/src/core/execute.c:3287:29:  [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.
                        if (chroot(context->root_directory) < 0) {
data/systemd-247~rc2/src/core/main.c:830:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hDbsz:", options, NULL)) >= 0)
data/systemd-247~rc2/src/core/main.c:1353:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        c = getenv("container");
data/systemd-247~rc2/src/core/main.c:1421:28:  [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 (path_equal_ptr(getenv("HOME"), "/"))
data/systemd-247~rc2/src/core/main.c:2416: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.
            !getenv("XDG_RUNTIME_DIR"))
data/systemd-247~rc2/src/core/timer.c:151:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                e = getenv("XDG_DATA_HOME");
data/systemd-247~rc2/src/coredump/coredumpctl.c:219:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "ho:F:1D:rS:U:q", options, NULL)) >= 0)
data/systemd-247~rc2/src/coredump/coredumpctl.c:934:32:  [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.
                env_debugger = getenv("SYSTEMD_DEBUGGER");
data/systemd-247~rc2/src/cryptsetup/cryptsetup-generator.c:892: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.
        arg_crypttab = getenv("SYSTEMD_CRYPTTAB") ?: "/etc/crypttab";
data/systemd-247~rc2/src/cryptsetup/cryptsetup-generator.c:893: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.
        arg_runtime_directory = getenv("RUNTIME_DIRECTORY") ?: "/run/systemd/cryptsetup";
data/systemd-247~rc2/src/delta/delta.c:595:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "ht:", options, NULL)) >= 0)
data/systemd-247~rc2/src/detect-virt/detect-virt.c:75:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hqcvr", options, NULL)) >= 0)
data/systemd-247~rc2/src/dissect/dissect.c:131:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hmrMxa", options, NULL)) >= 0) {
data/systemd-247~rc2/src/escape/escape.c:76:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hump", options, NULL)) >= 0)
data/systemd-247~rc2/src/firstboot/firstboot.c:1042:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/fsckd/fsckd.c:628:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hv", options, NULL)) >= 0)
data/systemd-247~rc2/src/fuzz/fuzz-bus-message.c:22: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-calendarspec.c:12: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-catalog.c:14: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-compress.c:45: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-env-file.c:24: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-hostname-util.c:21: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-journal-remote.c:32: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-journald-native-fd.c:21: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-journald-stream.c:22: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-nspawn-oci.c:21: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-nspawn-settings.c:21: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-time-util.c:13: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-udev-database.c:15: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-udev-rules.c:18: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.
        if (!getenv("SYSTEMD_LOG_LEVEL")) {
data/systemd-247~rc2/src/fuzz/fuzz-unit-file.c:65: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/fuzz/fuzz-xdg-desktop.c:22: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/home/homectl.c:207:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("PASSWORD");
data/systemd-247~rc2/src/home/homectl.c:249:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("PIN");
data/systemd-247~rc2/src/home/homectl.c:979:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("NEWPASSWORD");
data/systemd-247~rc2/src/home/homectl.c:2201:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                c = getopt_long(argc, argv, "hH:M:I:c:d:u:k:s:e:G:jPE", options, NULL);
data/systemd-247~rc2/src/home/homectl.c:3323:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        suffix = getenv("SYSTEMD_HOME_DEBUG_SUFFIX");
data/systemd-247~rc2/src/home/homed-home.c:1018:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                suffix = getenv("SYSTEMD_HOME_DEBUG_SUFFIX");
data/systemd-247~rc2/src/home/homed-home.c:1051:28:  [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.
                homework = getenv("SYSTEMD_HOMEWORK_PATH") ?: SYSTEMD_HOMEWORK_PATH;
data/systemd-247~rc2/src/home/homed-manager.c:933:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        suffix = getenv("SYSTEMD_HOME_DEBUG_SUFFIX");
data/systemd-247~rc2/src/home/homed-manager.c:977:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        suffix = getenv("SYSTEMD_HOME_DEBUG_SUFFIX");
data/systemd-247~rc2/src/home/homed-manager.c:1126:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        suffix = getenv("SYSTEMD_HOME_DEBUG_SUFFIX");
data/systemd-247~rc2/src/home/homework.c:1066:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_HOME_DEFAULT_STORAGE");
data/systemd-247~rc2/src/home/homework.c:1149:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                new_fs = getenv("SYSTEMD_HOME_DEFAULT_FILE_SYSTEM_TYPE");
data/systemd-247~rc2/src/hostname/hostnamectl.c:371:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hH:M:", options, NULL)) >= 0)
data/systemd-247~rc2/src/hwdb/hwdb.c:77:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "ust:r:h", options, NULL)) >= 0)
data/systemd-247~rc2/src/id128/id128.c:202:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hpa:u", options, NULL)) >= 0)
data/systemd-247~rc2/src/import/export.c:236:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/import/import-fs.c:269:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/import/import.c:262:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/import/pull.c:253:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/journal-remote/journal-gatewayd.c:885:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hD:", options, NULL)) >= 0)
data/systemd-247~rc2/src/journal-remote/journal-remote-main.c:855:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "ho:", options, NULL)) >= 0)
data/systemd-247~rc2/src/journal-remote/journal-upload.c:659:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hu:mM:D:", options, NULL)) >= 0)
data/systemd-247~rc2/src/journal/cat.c:75:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "+ht:p:", options, NULL)) >= 0)
data/systemd-247~rc2/src/journal/journalctl.c:533:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hefo:aln::qmb::kD:p:g:c:S:U:t:u:NF:xrM:", options, NULL)) >= 0)
data/systemd-247~rc2/src/journal/journald-server.c:1855:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("NOTIFY_SOCKET");
data/systemd-247~rc2/src/journal/journald-server.c:2244:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("RUNTIME_DIRECTORY");
data/systemd-247~rc2/src/journal/journald-server.c:2410:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("LOGS_DIRECTORY");
data/systemd-247~rc2/src/journal/test-journal-send.c:76:46:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                                  "HOME=%s", getenv("HOME"),
data/systemd-247~rc2/src/journal/test-journal-send.c:77:46:  [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.
                                  "TERM=%s", getenv("TERM"),
data/systemd-247~rc2/src/journal/test-journal-verify.c:87:57:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
                assert_se(asprintf(&test, "RANDOM=%lu", random() % RANDOM_RANGE));
data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c:46:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("LISTEN_PID");
data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c:62:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("LISTEN_FDS");
data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c:101:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("LISTEN_FDNAMES");
data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c:470:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("NOTIFY_SOCKET");
data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c:640:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        s = getenv("WATCHDOG_USEC");
data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c:652:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        p = getenv("WATCHDOG_PID");
data/systemd-247~rc2/src/libsystemd/sd-id128/sd-id128.c:91:32:  [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.
                r = id128_read(getenv("SYSTEMD_MACHINE_ID_PATH") ?: "/etc/machine-id", ID128_PLAIN, &saved_machine_id);
data/systemd-247~rc2/src/locale/keymap-util.c:36:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        s = getenv("SYSTEMD_KBD_MODEL_MAP");
data/systemd-247~rc2/src/locale/keymap-util.c:46:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        s = getenv("SYSTEMD_LANGUAGE_FALLBACK_MAP");
data/systemd-247~rc2/src/locale/keymap-util.c:155:74:  [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.
                        r = free_and_strdup(&c->locale[p], empty_to_null(getenv(name)));
data/systemd-247~rc2/src/locale/localectl.c:439:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hH:M:", options, NULL)) >= 0)
data/systemd-247~rc2/src/login/inhibit.c:216:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "+h", options, NULL)) >= 0)
data/systemd-247~rc2/src/login/loginctl.c:1323:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hp:P:als:H:M:n:o:", options, NULL)) >= 0)
data/systemd-247~rc2/src/machine-id-setup/machine-id-setup-main.c:69:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/machine/machinectl.c:2601:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                c = getopt_long(argc, argv, option_string + reorder, options, NULL);
data/systemd-247~rc2/src/machine/machinectl.c:2647:40:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                                (void) getopt_long(argc, argv, option_string + reorder, options, NULL);
data/systemd-247~rc2/src/modules-load/modules-load.c:142:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/mount/mount-tool.c:188:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hqH:M:t:o:p:AuGl", options, NULL)) >= 0)
data/systemd-247~rc2/src/network/fuzz-netdev-parser.c:14: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/network/fuzz-network-parser.c:17: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/network/generator/main.c:143:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/network/networkctl.c:2742:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hasln:", options, NULL)) >= 0) {
data/systemd-247~rc2/src/network/wait-online/wait-online.c:127:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hi:qo:", options, NULL)) >= 0)
data/systemd-247~rc2/src/notify/notify.c:67:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("MANAGERPID");
data/systemd-247~rc2/src/notify/notify.c:109:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0) {
data/systemd-247~rc2/src/nspawn/nspawn.c:462:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv(var);
data/systemd-247~rc2/src/nspawn/nspawn.c:466:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                e = getenv(var);
data/systemd-247~rc2/src/nspawn/nspawn.c:583:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_NSPAWN_API_VFS_WRITABLE");
data/systemd-247~rc2/src/nspawn/nspawn.c:637:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_NSPAWN_CONTAINER_SERVICE");
data/systemd-247~rc2/src/nspawn/nspawn.c:776:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "+hD:u:abL:M:jS:Z:qi:xp:nUE:P", options, NULL)) >= 0)
data/systemd-247~rc2/src/nspawn/nspawn.c:1583:37:  [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.
                                e = getenv("CREDENTIALS_DIRECTORY");
data/systemd-247~rc2/src/nss-mymachines/nss-mymachines.c:75:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        return streq_ptr(getenv("SYSTEMD_ACTIVATION_UNIT"), "systemd-machined.service") &&
data/systemd-247~rc2/src/nss-mymachines/nss-mymachines.c:76:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
               streq_ptr(getenv("SYSTEMD_ACTIVATION_SCOPE"), "system");
data/systemd-247~rc2/src/oom/oomctl.c:94:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/oom/oomd.c:82:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/partition/growfs.c:168:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hn", options, NULL)) >= 0)
data/systemd-247~rc2/src/partition/repart.c:3486:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/path/path.c:171:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/portable/portablectl.c:1001:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                c = getopt_long(argc, argv, "hH:M:qp:", options, NULL);
data/systemd-247~rc2/src/random-seed/random-seed.c:44:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_RANDOM_SEED_CREDIT");
data/systemd-247~rc2/src/resolve/resolvconf-compat.c:132:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (getenv("IF_EXCLUSIVE"))
data/systemd-247~rc2/src/resolve/resolvconf-compat.c:134:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (getenv("IF_PRIVATE"))
data/systemd-247~rc2/src/resolve/resolvconf-compat.c:139:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hadxpfm:uIi:l:Rr:vV", options, NULL)) >= 0)
data/systemd-247~rc2/src/resolve/resolvectl.c:2713:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h46i:t:c:p:", options, NULL)) >= 0)
data/systemd-247~rc2/src/resolve/resolvectl.c:3000:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h46i:t:c:p:", options, NULL)) >= 0)
data/systemd-247~rc2/src/run/run.c:243:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "+hrH:M:E:p:tPqGdSu:", options, NULL)) >= 0)
data/systemd-247~rc2/src/run/run.c:796:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                e = getenv("TERM");
data/systemd-247~rc2/src/shared/bootspec.c:1172:16:  [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.
        path = getenv("SYSTEMD_ESP_PATH");
data/systemd-247~rc2/src/shared/bootspec.c:1400:16:  [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.
        path = getenv("SYSTEMD_XBOOTLDR_PATH");
data/systemd-247~rc2/src/shared/mount-util.c:432: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.
        if (chroot(".") < 0)
data/systemd-247~rc2/src/shared/netif-naming-scheme.c:44:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("NET_NAMING_SCHEME");
data/systemd-247~rc2/src/shared/pager.c:104: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.
        pager = getenv("SYSTEMD_PAGER");
data/systemd-247~rc2/src/shared/pager.c:106:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                pager = getenv("PAGER");
data/systemd-247~rc2/src/shared/pager.c:131:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        less_opts = getenv("SYSTEMD_LESS");
data/systemd-247~rc2/src/shared/pager.c:160:32:  [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.
                less_charset = getenv("SYSTEMD_LESSCHARSET");
data/systemd-247~rc2/src/shared/pkcs11-util.c:239:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                e = getenv("PIN");
data/systemd-247~rc2/src/shared/service-util.c:60:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/shared/switch-root.c:111: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.
        if (chroot(".") < 0)
data/systemd-247~rc2/src/shared/tests.c:76:15:  [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.
        dir = getenv("SYSTEMD_TEST_DATA");
data/systemd-247~rc2/src/shared/tests.c:96:15:  [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.
        env = getenv("SYSTEMD_CATALOG_DIR");
data/systemd-247~rc2/src/shared/tests.c:317:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        p = getenv("CITYPE");
data/systemd-247~rc2/src/shared/tests.c:327:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (getenv("AUTOPKGTEST_ARTIFACTS") || getenv("AUTOPKGTEST_TMP"))
data/systemd-247~rc2/src/shared/tests.c:327:48:  [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("AUTOPKGTEST_ARTIFACTS") || getenv("AUTOPKGTEST_TMP"))
data/systemd-247~rc2/src/shared/userdb.c:403:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_BYPASS_USERDB");
data/systemd-247~rc2/src/shared/userdb.c:415:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_ONLY_USERDB");
data/systemd-247~rc2/src/shared/utmp-wtmp.c:40:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("RUNLEVEL");
data/systemd-247~rc2/src/shared/utmp-wtmp.c:47:29:  [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.
                        e = getenv("PREVLEVEL");
data/systemd-247~rc2/src/shutdown/shutdown.c:78:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "-", options, NULL)) >= 0)
data/systemd-247~rc2/src/shutdown/shutdown.c:370: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.
        use_watchdog = getenv("WATCHDOG_USEC");
data/systemd-247~rc2/src/shutdown/shutdown.c:371:27:  [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.
        watchdog_device = getenv("WATCHDOG_DEVICE");
data/systemd-247~rc2/src/sleep/sleep.c:331:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/socket-proxy/socket-proxyd.c:628:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "c:h", options, NULL)) >= 0)
data/systemd-247~rc2/src/stdio-bridge/stdio-bridge.c:60:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hp:M:", options, NULL)) >= 0) {
data/systemd-247~rc2/src/sysctl/sysctl.c:328:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/systemctl/systemctl-compat-halt.c:83:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "pfwdnih", options, NULL)) >= 0)
data/systemd-247~rc2/src/systemctl/systemctl-compat-runlevel.c:48:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "", options, NULL)) >= 0)
data/systemd-247~rc2/src/systemctl/systemctl-compat-shutdown.c:62:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "HPrhkKat:fFc", options, NULL)) >= 0)
data/systemd-247~rc2/src/systemctl/systemctl-compat-telinit.c:80:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "", options, NULL)) >= 0)
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:329:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
                editor = getenv("SYSTEMD_EDITOR");
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:331:34:  [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.
                        editor = getenv("EDITOR");
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:333:34:  [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.
                        editor = getenv("VISUAL");
data/systemd-247~rc2/src/systemctl/systemctl.c:466:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "ht:p:P:alqfs:H:M:n:o:iTr.::", options, NULL)) >= 0)
data/systemd-247~rc2/src/sysusers/sysusers.c:1807:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/sysv-generator/sysv-generator.c:709:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv(envvar);
data/systemd-247~rc2/src/test/test-calendarspec.c:42:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        old_tz = getenv("TZ");
data/systemd-247~rc2/src/test/test-chase-symlinks.c:40:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "", options, NULL)) >= 0)
data/systemd-247~rc2/src/test/test-env-util.c:134:29:  [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.
                            getenv("PATH")));
data/systemd-247~rc2/src/test/test-env-util.c:136:29:  [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.
                            getenv("PATH")));
data/systemd-247~rc2/src/test/test-exec-util.c:339:15:  [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.
        old = getenv("PATH");
data/systemd-247~rc2/src/test/test-fs-util.c:462:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        t = getenv("TMPDIR");
data/systemd-247~rc2/src/test/test-fs-util.c:468:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        t = getenv("TEMP");
data/systemd-247~rc2/src/test/test-fs-util.c:474:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        t = getenv("TMP");
data/systemd-247~rc2/src/test/test-fs-util.c:488:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        assert_se(streq(getenv("TMPDIR"), "/tmp"));
data/systemd-247~rc2/src/test/test-fs-util.c:494:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        assert_se(streq(getenv("TMPDIR"), "/88_does_not_exist_88"));
data/systemd-247~rc2/src/test/test-fs-util.c:501: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.
                assert_se(streq(getenv("TMPDIR"), tmpdir_backup));
data/systemd-247~rc2/src/test/test-fs-util.c:506: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.
                assert_se(streq(getenv("TEMP"), temp_backup));
data/systemd-247~rc2/src/test/test-fs-util.c:511: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.
                assert_se(streq(getenv("TMP"), tmp_backup));
data/systemd-247~rc2/src/test/test-libudev.c:504:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "p:s:dhVm", options, NULL)) >= 0)
data/systemd-247~rc2/src/test/test-ns.c:54:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        root_directory = getenv("TEST_NS_CHROOT");
data/systemd-247~rc2/src/test/test-ns.c:55:30:  [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.
        projects_directory = getenv("TEST_NS_PROJECTS");
data/systemd-247~rc2/src/test/test-offline-passwd.c:53:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "r:", options, NULL)) >= 0)
data/systemd-247~rc2/src/test/test-path-util.c:183:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        p = getenv("PATH");
data/systemd-247~rc2/src/test/test-prioq.c:21:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(0);
data/systemd-247~rc2/src/test/test-prioq.c:67:9:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
        srand(0);
data/systemd-247~rc2/src/timedate/timedatectl.c:79: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.
        tz = getenv("TZ");
data/systemd-247~rc2/src/timedate/timedatectl.c:964:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hH:M:p:a", options, NULL)) >= 0)
data/systemd-247~rc2/src/timedate/timedated.c:154:15:  [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.
        env = getenv("SYSTEMD_TIMEDATED_NTP_SERVICES");
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:3062:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "hE", options, NULL)) >= 0)
data/systemd-247~rc2/src/tty-ask-password-agent/tty-ask-password-agent.c:464:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/udev/ata_id/ata_id.c:419:26:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                option = getopt_long(argc, argv, "xh", options, NULL);
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:810:26:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                option = getopt_long(argc, argv, "deluh", options, NULL);
data/systemd-247~rc2/src/udev/fido_id/fuzz-fido-id-desc.c:15: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/udev/net/fuzz-link-parser.c:17: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.
        if (!getenv("SYSTEMD_LOG_LEVEL"))
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:317:26:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((option = getopt_long(argc, argv, "d:f:gp:uvVxhbs:", options, NULL)) >= 0)
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:407:26:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                option = getopt_long(newargc, newargv, "bgp:", options, NULL);
data/systemd-247~rc2/src/udev/udev-builtin-blkid.c:232:26:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                option = getopt_long(argc, argv, "o:R", options, NULL);
data/systemd-247~rc2/src/udev/udev-builtin-hwdb.c:142:26:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                option = getopt_long(argc, argv, "f:d:s:p:", options, NULL);
data/systemd-247~rc2/src/udev/udevadm-control.c:90:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "el:sSRp:m:t:Vh", options, NULL)) >= 0)
data/systemd-247~rc2/src/udev/udevadm-hwdb.c:50:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "ust:r:Vh", options, NULL)) >= 0)
data/systemd-247~rc2/src/udev/udevadm-info.c:390:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "aced:n:p:q:rxP:w::Vh", options, NULL)) >= 0)
data/systemd-247~rc2/src/udev/udevadm-monitor.c:131:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "pekus:t:Vh", options, NULL)) >= 0)
data/systemd-247~rc2/src/udev/udevadm-settle.c:60:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "t:E:Vhs:e:q", options, NULL)) >= 0) {
data/systemd-247~rc2/src/udev/udevadm-test-builtin.c:39:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "Vh", options, NULL)) >= 0)
data/systemd-247~rc2/src/udev/udevadm-test.c:55:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "a:N:Vh", options, NULL)) >= 0)
data/systemd-247~rc2/src/udev/udevadm-trigger.c:194:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "vnt:c:s:S:a:A:p:g:y:b:wVh", options, NULL)) >= 0) {
data/systemd-247~rc2/src/udev/udevadm.c:62:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "+dhV", options, NULL)) >= 0)
data/systemd-247~rc2/src/udev/udevd.c:1639:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "c:de:Dt:N:hV", options, NULL)) >= 0) {
data/systemd-247~rc2/src/udev/v4l_id/v4l_id.c:42:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        while ((c = getopt_long(argc, argv, "h", options, NULL)) >= 0)
data/systemd-247~rc2/src/userdb/userdbctl.c:642:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        e = getenv("SYSTEMD_ONLY_USERDB");
data/systemd-247~rc2/src/userdb/userdbctl.c:657:21:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
                c = getopt_long(argc, argv, "hjs:N", options, NULL);
data/systemd-247~rc2/src/xdg-autostart-generator/xdg-autostart-condition.c:22:31:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        xdg_current_desktop = getenv("XDG_CURRENT_DESKTOP");
data/systemd-247~rc2/man/hwdb-usb-device.c:6: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 match[15];
data/systemd-247~rc2/src/analyze/analyze-security.c:1613:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[DECIMAL_STR_MAX(uint64_t) + 1 + DECIMAL_STR_MAX(uint64_t) + 1];
data/systemd-247~rc2/src/analyze/analyze-security.c:1678:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[DECIMAL_STR_MAX(uint64_t) + 1 + DECIMAL_STR_MAX(uint64_t) + 1];
data/systemd-247~rc2/src/analyze/analyze-security.c:1864:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(&u.in, data, size);
data/systemd-247~rc2/src/analyze/analyze-security.c:1866:33:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                                memcpy(&u.in6, data, size);
data/systemd-247~rc2/src/analyze/analyze.c:484: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.
        char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/analyze/analyze.c:486:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buf[4096];
data/systemd-247~rc2/src/analyze/analyze.c:598: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.
        char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/analyze/analyze.c:844: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.
        char ts[FORMAT_TIMESPAN_MAX], ts2[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/analyze/analyze.c:972: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.
        char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/analyze/analyze.c:1650: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).
        f = fopen("/sys/kernel/tracing/available_events", "re");
data/systemd-247~rc2/src/analyze/analyze.c:1654:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen("/sys/kernel/debug/tracing/available_events", "re");
data/systemd-247~rc2/src/basic/alloc-util.c:20:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret, p, l);
data/systemd-247~rc2/src/basic/alloc-util.h:69:17:  [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(_q_, p, _l_);            \
data/systemd-247~rc2/src/basic/alloc-util.h:79:17:  [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(_q_, p, _l_);            \
data/systemd-247~rc2/src/basic/architecture.c:143:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const architecture_table[_ARCHITECTURE_MAX] = {
data/systemd-247~rc2/src/basic/blockdev-util.c:17: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.
        char p[SYS_BLOCK_PATH_MAX("/partition")];
data/systemd-247~rc2/src/basic/blockdev-util.c:71: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 = open(path, O_NOFOLLOW|O_CLOEXEC);
data/systemd-247~rc2/src/basic/blockdev-util.c:96: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.
        char p[SYS_BLOCK_PATH_MAX("/slaves")];
data/systemd-247~rc2/src/basic/blockdev-util.c:208: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).
        lock_fd = open(whole_node, O_RDONLY|O_CLOEXEC|O_NONBLOCK);
data/systemd-247~rc2/src/basic/btrfs-util.c:105: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 = open(path, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/basic/btrfs-util.c:216: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 = open(path, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/basic/btrfs-util.c:349: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 = open(path, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/btrfs-util.c:666: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 = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
data/systemd-247~rc2/src/basic/btrfs-util.c:759: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 = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
data/systemd-247~rc2/src/basic/btrfs-util.c:784: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 = open(p, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
data/systemd-247~rc2/src/basic/btrfs-util.c:814: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 = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
data/systemd-247~rc2/src/basic/btrfs-util.c:866: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 = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
data/systemd-247~rc2/src/basic/btrfs-util.c:889: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 = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
data/systemd-247~rc2/src/basic/btrfs-util.c:1709: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).
        old_fd = open(old_path, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/basic/btrfs-util.c:1954: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 = open(path, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/basic/cap-list.c:66:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[2 + 16 + 1];
data/systemd-247~rc2/src/basic/cgroup-util.c:53: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).
        f = fopen(fs, "re");
data/systemd-247~rc2/src/basic/cgroup-util.c:1102:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[n+1], *c;
data/systemd-247~rc2/src/basic/cgroup-util.c:1104:17:  [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, p, n);
data/systemd-247~rc2/src/basic/cgroup-util.c:1186:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[n - 8 - 6 + 1];
data/systemd-247~rc2/src/basic/cgroup-util.c:1188:17:  [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, p + 8, n - 8 - 6);
data/systemd-247~rc2/src/basic/cgroup-util.c:1223:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[n - 5 - 8 + 1];
data/systemd-247~rc2/src/basic/cgroup-util.c:1225:17:  [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, p + 5, n - 5 - 8);
data/systemd-247~rc2/src/basic/cgroup-util.c:1600:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char n[dash - p + sizeof(".slice")];
data/systemd-247~rc2/src/basic/cgroup-util.c:1614:17:  [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(stpncpy(n, p, dash - p), ".slice");
data/systemd-247~rc2/src/basic/cgroup-util.c:1787:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret_values, v, sizeof(char*) * n);
data/systemd-247~rc2/src/basic/cgroup-util.c:1822:17:  [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 + n + space, k, l);
data/systemd-247~rc2/src/basic/cgroup-util.c:2119:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const cgroup_controller_table[_CGROUP_CONTROLLER_MAX] = {
data/systemd-247~rc2/src/basic/chattr-util.c:61: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 = open(p, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
data/systemd-247~rc2/src/basic/chattr-util.c:91: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 = open(p, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
data/systemd-247~rc2/src/basic/copy.c:524: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.
        char dev_ino[DECIMAL_STR_MAX(dev_t)*2 + DECIMAL_STR_MAX(uint64_t) + 4];
data/systemd-247~rc2/src/basic/copy.c:555: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.
        char dev_ino[DECIMAL_STR_MAX(dev_t)*2 + DECIMAL_STR_MAX(uint64_t) + 4];
data/systemd-247~rc2/src/basic/copy.c:1027:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fdf = open(from, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/basic/copy.c:1061: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).
                fdt = open(to, flags|O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, mode);
data/systemd-247~rc2/src/basic/copy.c:1124: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).
                fdt = open(t, O_CREAT|O_EXCL|O_NOFOLLOW|O_NOCTTY|O_WRONLY|O_CLOEXEC, 0600);
data/systemd-247~rc2/src/basic/device-nodes.c:37:25:  [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(&str_enc[j], &str[i], seqlen);
data/systemd-247~rc2/src/basic/device-nodes.c:46:25:  [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(&str_enc[j], "\\x%02x", (unsigned char) str[i]);
data/systemd-247~rc2/src/basic/efivars.c:90: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 = open(p, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/efivars.c:148:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/basic/efivars.c:232: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 = open(p, O_WRONLY|O_CREAT|O_NOCTTY|O_CLOEXEC, 0644);
data/systemd-247~rc2/src/basic/efivars.c:245:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf->buf, value, size);
data/systemd-247~rc2/src/basic/env-util.c:710:33:  [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(ret + k, m, q * sizeof(char*));
data/systemd-247~rc2/src/basic/escape.c:308:17:  [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(r, prefix, pl);
data/systemd-247~rc2/src/basic/escape.c:425:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ans + off, "...", c);
data/systemd-247~rc2/src/basic/ether-addr-util.c:13:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char* hw_addr_to_string(const hw_addr_data *addr, char buffer[HW_ADDR_TO_STRING_MAX]) {
data/systemd-247~rc2/src/basic/ether-addr-util.c:27:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char* ether_addr_to_string(const struct ether_addr *addr, char buffer[ETHER_ADDR_TO_STRING_MAX]) {
data/systemd-247~rc2/src/basic/ether-addr-util.c:35: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(buffer, "%02x:%02x:%02x:%02x:%02x:%02x",
data/systemd-247~rc2/src/basic/ether-addr-util.h:26:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char* hw_addr_to_string(const hw_addr_data *addr, char buffer[HW_ADDR_TO_STRING_MAX]);
data/systemd-247~rc2/src/basic/ether-addr-util.h:37:59:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char* ether_addr_to_string(const struct ether_addr *addr, char buffer[ETHER_ADDR_TO_STRING_MAX]);
data/systemd-247~rc2/src/basic/fd-util.c:259:33:  [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(sorted, except, n_except * sizeof(int));
data/systemd-247~rc2/src/basic/fd-util.c:469: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/fd-util.c:563: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).
                r = open("/dev/null", O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/basic/fd-util.c:631: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).
                fd = open("/dev/shm", O_RDWR|O_TMPFILE|O_CLOEXEC, 0500);
data/systemd-247~rc2/src/basic/fd-util.c:662: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).
                r = open(pattern, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/fd-util.c:938: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).
                null_fd = open("/dev/null", (null_readable && null_writable ? O_RDWR :
data/systemd-247~rc2/src/basic/fd-util.c:1020: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/fd-util.c:1031: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).
        new_fd = open(procfs_path, flags);
data/systemd-247~rc2/src/basic/fileio.c:35:19:  [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, options);
data/systemd-247~rc2/src/basic/fileio.c:253: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 = open(fn, O_WRONLY|O_CLOEXEC|O_NOCTTY |
data/systemd-247~rc2/src/basic/fileio.c:384: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 = open(filename, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/fileio.c:634:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/fileio.c:860:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(path, mode);
data/systemd-247~rc2/src/basic/fileio.c:903:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(p, mode);
data/systemd-247~rc2/src/basic/fileio.c:926:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(path, mode);
data/systemd-247~rc2/src/basic/fileio.c:948:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(path, mode);
data/systemd-247~rc2/src/basic/fileio.c:1038: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.
        char ln[DECIMAL_STR_MAX(n)+2];
data/systemd-247~rc2/src/basic/format-util.c:8:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *format_ifname_full(int ifindex, char buf[static IF_NAMESIZE + 1], FormatIfnameFlag flag) {
data/systemd-247~rc2/src/basic/format-util.c:8:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *format_ifname_full(int ifindex, char buf[static IF_NAMESIZE + 1], FormatIfnameFlag flag) {
data/systemd-247~rc2/src/basic/format-util.h:64:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *format_ifname_full(int ifindex, char buf[static IF_NAMESIZE + 1], FormatIfnameFlag flag);
data/systemd-247~rc2/src/basic/format-util.h:64:39:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *format_ifname_full(int ifindex, char buf[static IF_NAMESIZE + 1], FormatIfnameFlag flag);
data/systemd-247~rc2/src/basic/format-util.h:65: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.
static inline char *format_ifname(int ifindex, char buf[static IF_NAMESIZE + 1]) {
data/systemd-247~rc2/src/basic/format-util.h:65:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline char *format_ifname(int ifindex, char buf[static IF_NAMESIZE + 1]) {
data/systemd-247~rc2/src/basic/fs-util.c:221: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 = open(path, O_PATH|O_CLOEXEC|O_NOFOLLOW); /* Let's acquire an O_PATH fd, as precaution to change
data/systemd-247~rc2/src/basic/fs-util.c:295: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/fs-util.c:316: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/fs-util.c:367: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.
        char fdpath[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/fs-util.c:384: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 = open(path, O_PATH|O_CLOEXEC|O_NOFOLLOW);
data/systemd-247~rc2/src/basic/fs-util.c:391: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).
                fd = open(path, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, IN_SET(mode, 0, MODE_INVALID) ? 0644 : mode);
data/systemd-247~rc2/src/basic/fs-util.c:692: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.
        char path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/basic/fs-util.c:833: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).
                r = open(path, O_PATH|O_CLOEXEC|((flags & CHASE_NOFOLLOW) ? O_NOFOLLOW : 0));
data/systemd-247~rc2/src/basic/fs-util.c:867: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 = open(root ?: "/", O_CLOEXEC|O_DIRECTORY|O_PATH);
data/systemd-247~rc2/src/basic/fs-util.c:1051:38:  [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(root ?: "/", O_CLOEXEC|O_DIRECTORY|O_PATH);
data/systemd-247~rc2/src/basic/fs-util.c:1163: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).
                r = open(path, open_flags);
data/systemd-247~rc2/src/basic/fs-util.c:1192: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/fs-util.c:1273: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.
        char p[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(fd) + 1];
data/systemd-247~rc2/src/basic/fs-util.c:1359:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 * 1024];
data/systemd-247~rc2/src/basic/fs-util.c:1467: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).
                        opened_fd = open(".", O_RDONLY|O_DIRECTORY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/fs-util.c:1525: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 = open(parent, flags, mode);
data/systemd-247~rc2/src/basic/fs-util.c:1602: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.
        char p[SYS_BLOCK_PATH_MAX(NULL)];
data/systemd-247~rc2/src/basic/gunicode.c:102:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char utf8_skip_data[256] = {
data/systemd-247~rc2/src/basic/gunicode.h:15:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char utf8_skip_data[256];
data/systemd-247~rc2/src/basic/hashmap.c:370:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(hash_key, current, sizeof(current));
data/systemd-247~rc2/src/basic/hashmap.c:470:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(e_to, e_from, hashmap_type_info[h->type].entry_size);
data/systemd-247~rc2/src/basic/hashmap.c:1106:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(new_storage, h->direct.storage,
data/systemd-247~rc2/src/basic/hexdecoct.c:39:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 table[16] = "0123456789abcdef";
data/systemd-247~rc2/src/basic/hexdecoct.c:172:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 table[32] = "0123456789"
data/systemd-247~rc2/src/basic/hexdecoct.c:523:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 table[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
data/systemd-247~rc2/src/basic/hexdecoct.c:634:17:  [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, x + width * line, act);
data/systemd-247~rc2/src/basic/hostname-util.c:230: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.
        char buf[HOST_NAME_MAX + 1] = {};
data/systemd-247~rc2/src/basic/hostname-util.c:323: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).
        f = fopen(path, "re");
data/systemd-247~rc2/src/basic/io-util.c:22:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LINE_MAX];
data/systemd-247~rc2/src/basic/linux/btrfs.h:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[BTRFS_PATH_NAME_MAX + 1];
data/systemd-247~rc2/src/basic/linux/btrfs.h:140:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char name[BTRFS_SUBVOL_NAME_MAX + 1];
data/systemd-247~rc2/src/basic/linux/btrfs.h:460:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[BTRFS_INO_LOOKUP_PATH_MAX];
data/systemd-247~rc2/src/basic/linux/btrfs.h:470:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[BTRFS_VOL_NAME_MAX + 1];
data/systemd-247~rc2/src/basic/linux/btrfs.h:475:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[BTRFS_INO_LOOKUP_USER_PATH_MAX];
data/systemd-247~rc2/src/basic/linux/btrfs.h:553: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[BTRFS_SEARCH_ARGS_BUFSIZE];
data/systemd-247~rc2/src/basic/linux/btrfs.h:743:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	uuid[BTRFS_UUID_SIZE];	/* in */
data/systemd-247~rc2/src/basic/linux/btrfs.h:796:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[BTRFS_VOL_NAME_MAX + 1];
data/systemd-247~rc2/src/basic/linux/can/netlink.h:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[16];		/* Name of the CAN controller hardware */
data/systemd-247~rc2/src/basic/linux/hdlc/ioctl.h:74: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 master[IFNAMSIZ];	/* Name of master FRAD device */
data/systemd-247~rc2/src/basic/linux/if.h:237: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	ifrn_name[IFNAMSIZ];		/* if name, e.g. "en0" */
data/systemd-247~rc2/src/basic/linux/if.h:250: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	ifru_slave[IFNAMSIZ];	/* Just fits the size */
data/systemd-247~rc2/src/basic/linux/if.h:251: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	ifru_newname[IFNAMSIZ];
data/systemd-247~rc2/src/basic/linux/if_arp.h:121: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		arp_dev[IFNAMSIZ];
data/systemd-247~rc2/src/basic/linux/if_arp.h:155:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		ar_sha[ETH_ALEN];	/* sender hardware address	*/
data/systemd-247~rc2/src/basic/linux/if_arp.h:156:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		ar_sip[4];		/* sender IP address		*/
data/systemd-247~rc2/src/basic/linux/if_arp.h:157:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		ar_tha[ETH_ALEN];	/* target hardware address	*/
data/systemd-247~rc2/src/basic/linux/if_arp.h:158:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char		ar_tip[4];		/* target IP address		*/
data/systemd-247~rc2/src/basic/linux/if_bonding.h:116: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 slave_name[IFNAMSIZ];
data/systemd-247~rc2/src/basic/linux/if_ether.h:165:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	h_dest[ETH_ALEN];	/* destination eth addr	*/
data/systemd-247~rc2/src/basic/linux/if_ether.h:166:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	h_source[ETH_ALEN];	/* source ether addr	*/
data/systemd-247~rc2/src/basic/linux/if_tunnel.h:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			name[IFNAMSIZ];
data/systemd-247~rc2/src/basic/linux/in.h:243:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char		__pad[__SOCK_SIZE__ - sizeof(short int) -
data/systemd-247~rc2/src/basic/linux/l2tp.h:34:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	__pad[__SOCK_SIZE__ -
data/systemd-247~rc2/src/basic/locale-util.c:104: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 = open("/usr/lib/locale/locale-archive", O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/locale-util.c:430:28:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void locale_variables_free(char *l[_VARIABLE_LC_MAX]) {
data/systemd-247~rc2/src/basic/locale-util.c:440:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const locale_variable_table[_VARIABLE_LC_MAX] = {
data/systemd-247~rc2/src/basic/log.c:111: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).
        kmsg_fd = open("/dev/kmsg", O_WRONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/log.c:374: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.
        char location[256],
data/systemd-247~rc2/src/basic/log.c:452: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.
        char header_priority[2 + DECIMAL_STR_MAX(int) + 1],
data/systemd-247~rc2/src/basic/log.c:521: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.
        char header_priority[2 + DECIMAL_STR_MAX(int) + 1],
data/systemd-247~rc2/src/basic/log.c:608: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.
        char header[LINE_MAX];
data/systemd-247~rc2/src/basic/log.c:741: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.
        char buffer[LINE_MAX];
data/systemd-247~rc2/src/basic/log.c:841:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static char buffer[LINE_MAX];
data/systemd-247~rc2/src/basic/log.c:947: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.
        char buf[LINE_MAX];
data/systemd-247~rc2/src/basic/log.c:968:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char header[LINE_MAX];
data/systemd-247~rc2/src/basic/log.c:1064:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char header[LINE_MAX];
data/systemd-247~rc2/src/basic/log.c:1304:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const log_target_table[_LOG_TARGET_MAX] = {
data/systemd-247~rc2/src/basic/log.c:1348: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.
        char buffer[LINE_MAX];
data/systemd-247~rc2/src/basic/macro.h:419:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char x[(expr) ? 0 : -1];                                \
data/systemd-247~rc2/src/basic/memfd-util.c:27:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char pr[17] = {};
data/systemd-247~rc2/src/basic/memory-util.h:23:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dst, src, n);
data/systemd-247~rc2/src/basic/missing_socket.h:15:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char svm_zero[sizeof(struct sockaddr) -
data/systemd-247~rc2/src/basic/missing_syscall.h:229:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char f_handle[0];
data/systemd-247~rc2/src/basic/missing_xfs.h:23:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char uuid[16];
data/systemd-247~rc2/src/basic/mkdir.c:67:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char u[DECIMAL_STR_MAX(uid_t)] = "-", g[DECIMAL_STR_MAX(gid_t)] = "-";
data/systemd-247~rc2/src/basic/mkdir.c:125:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char t[strlen(path) + 1];
data/systemd-247~rc2/src/basic/mkdir.c:134:17:  [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(t, path, e - path);
data/systemd-247~rc2/src/basic/mountpoint-util.c:95: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.
        char path[STRLEN("/proc/self/fdinfo/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/namespace-util.c:25: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).
                mntnsfd = open(mntns, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/namespace-util.c:34: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).
                pidnsfd = open(pidns, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/namespace-util.c:43: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).
                netnsfd = open(netns, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/namespace-util.c:52: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).
                usernsfd = open(userns, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/namespace-util.c:61: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).
                rfd = open(root, O_RDONLY|O_NOCTTY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/basic/path-util.c:930:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(mempcpy(ret, path, e + 1 - path), filename, k + 1);
data/systemd-247~rc2/src/basic/process-util.c:1486: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).
                fd = open("/dev/tty", O_WRONLY);
data/systemd-247~rc2/src/basic/process-util.c:1527: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.
        char t[DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/process-util.c:1529: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(t, "%i", value);
data/systemd-247~rc2/src/basic/process-util.c:1536: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.
        char path[STRLEN("/proc/self/fdinfo/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/procfs-util.c:61: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.
        char buffer[DECIMAL_STR_MAX(uint64_t)+1];
data/systemd-247~rc2/src/basic/procfs-util.c:209: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).
        f = fopen("/proc/meminfo", "re");
data/systemd-247~rc2/src/basic/random-util.c:208:25:  [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, &u, m);
data/systemd-247~rc2/src/basic/random-util.c:298: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 = open("/dev/urandom", O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/basic/random-util.c:474:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(info->buf, seed, size);
data/systemd-247~rc2/src/basic/rm-rf.c:222: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 = open(path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW|O_NOATIME);
data/systemd-247~rc2/src/basic/selinux-util.c:101: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.
        char timespan[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/basic/selinux-util.c:241: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 = open(path, O_NOFOLLOW|O_CLOEXEC|O_PATH);
data/systemd-247~rc2/src/basic/selinux-util.c:261: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/signal-util.c:201:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static thread_local char buf[STRLEN("RTMIN+") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/basic/siphash24.h:47:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static inline uint64_t siphash24_string(const char *s, const uint8_t k[static 16]) {
data/systemd-247~rc2/src/basic/smack-util.c:125: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/basic/smack-util.c:223: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 = open(abspath, O_NOFOLLOW|O_CLOEXEC|O_PATH);
data/systemd-247~rc2/src/basic/socket-util.c:403:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char a[INET6_ADDRSTRLEN], ifname[IF_NAMESIZE + 1];
data/systemd-247~rc2/src/basic/socket-util.c:540: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.
        char host[NI_MAXHOST], *ret;
data/systemd-247~rc2/src/basic/socket-util.c:886:17:  [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(CMSG_DATA(cmsg), &fd, sizeof(int));
data/systemd-247~rc2/src/basic/socket-util.c:1142:17:  [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(ret->sun_path + 1, path + 1, l); /* copy *with* trailing NUL byte */
data/systemd-247~rc2/src/basic/socket-util.c:1149:17:  [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(ret->sun_path, path, l + 1); /* copy *with* trailing NUL byte */
data/systemd-247~rc2/src/basic/socket-util.c:1166: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.
        char ifname[IF_NAMESIZE + 1];
data/systemd-247~rc2/src/basic/stat-util.c:231: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 = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_PATH);
data/systemd-247~rc2/src/basic/strbuf.c:157:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(str->buf + off, s, len);
data/systemd-247~rc2/src/basic/string-util.c:139:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r, s, a);
data/systemd-247~rc2/src/basic/string-util.c:140:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r+a, suffix, b);
data/systemd-247~rc2/src/basic/string-util.c:409:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(t, s, x);
data/systemd-247~rc2/src/basic/string-util.c:412:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(t + x + 3, s + old_length - suffix_len, suffix_len);
data/systemd-247~rc2/src/basic/string-util.c:508:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(e, s, len);
data/systemd-247~rc2/src/basic/string-util.c:510:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(e + len + 3, j, len2);
data/systemd-247~rc2/src/basic/string-util.c:534:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char four[4];
data/systemd-247~rc2/src/basic/string-util.c:546:17:  [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 + i, four, w);
data/systemd-247~rc2/src/basic/string-util.c:657:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *strip_tab_ansi(char **ibuf, size_t *_isz, size_t highlight[2]) {
data/systemd-247~rc2/src/basic/string-util.c:657:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *strip_tab_ansi(char **ibuf, size_t *_isz, size_t highlight[2]) {
data/systemd-247~rc2/src/basic/string-util.h:190:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *strip_tab_ansi(char **ibuf, size_t *_isz, size_t highlight[2]);
data/systemd-247~rc2/src/basic/string-util.h:190:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *strip_tab_ansi(char **ibuf, size_t *_isz, size_t highlight[2]);
data/systemd-247~rc2/src/basic/string-util.h:252:37:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                if (ascii_tolower(((char *)p)[i]) != ascii_tolower(token[i]))
data/systemd-247~rc2/src/basic/strv.c:725:17:  [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(m + n, *i, z + 1);
data/systemd-247~rc2/src/basic/syslog-util.c:59:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const log_facility_unshifted_table[LOG_NFACILITIES] = {
data/systemd-247~rc2/src/basic/terminal-util.c:333: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).
                fd = open(name, mode, 0);
data/systemd-247~rc2/src/basic/terminal-util.c:495: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 = open("/dev/tty", O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK);
data/systemd-247~rc2/src/basic/terminal-util.c:892: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.
        char path[PATH_MAX], *c; /* PATH_MAX is counted *with* the trailing NUL byte */
data/systemd-247~rc2/src/basic/time-util.c:357:17:  [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(buf, "--- XXXX-XX-XX XX:XX:XX");
data/systemd-247~rc2/src/basic/time-util.c:368:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, weekdays[tm.tm_wday], 4);
data/systemd-247~rc2/src/basic/time-util.c:391:17:  [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(buf + n, " UTC");
data/systemd-247~rc2/src/basic/time-util.c:1280: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).
        f = fopen("/usr/share/zoneinfo/zone1970.tab", "re");
data/systemd-247~rc2/src/basic/time-util.c:1339: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.
        char buf[4];
data/systemd-247~rc2/src/basic/time-util.c:1377: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 = open(t, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/basic/tmpfile-util.c:125:9:  [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(stpcpy(stpcpy(stpcpy(mempcpy(t, p, fn - p), ".#"), extra), fn), "XXXXXX");
data/systemd-247~rc2/src/basic/tmpfile-util.c:233: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 = open(directory, flags|O_TMPFILE|O_EXCL, S_IRUSR|S_IWUSR);
data/systemd-247~rc2/src/basic/tmpfile-util.c:275: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 = open(tmp, O_CREAT|O_EXCL|O_NOFOLLOW|O_NOCTTY|flags, 0640);
data/systemd-247~rc2/src/basic/tmpfile-util.c:302:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char proc_fd_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(fd) + 1];
data/systemd-247~rc2/src/basic/unit-def.c:39:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char *const table[_UNIT_TYPE_MAX] = {
data/systemd-247~rc2/src/basic/unit-name.c:718:17:  [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(dash, ".slice");
data/systemd-247~rc2/src/basic/user-util.c:716: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 = open(path, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW, 0600);
data/systemd-247~rc2/src/basic/util.c:100:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char contents[6];
data/systemd-247~rc2/src/basic/virt.c:24:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const vm_table[_VIRTUALIZATION_MAX] = {
data/systemd-247~rc2/src/basic/virt.c:61:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char text[13];
data/systemd-247~rc2/src/basic/virt.c:279: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).
        f = fopen("/proc/cpuinfo", "re");
data/systemd-247~rc2/src/basic/virt.c:441:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const container_table[_VIRTUALIZATION_MAX] = {
data/systemd-247~rc2/src/basic/virt.c:597: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).
        f = fopen(name, "re");
data/systemd-247~rc2/src/basic/virt.c:672:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const virtualization_table[_VIRTUALIZATION_MAX] = {
data/systemd-247~rc2/src/basic/xattr-util.c:114: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.
        char fn[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/boot/bless-boot.c:360: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).
                fd = open(*p, O_DIRECTORY|O_CLOEXEC|O_RDONLY);
data/systemd-247~rc2/src/boot/bless-boot.c:440: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).
                fd = open(*p, O_DIRECTORY|O_CLOEXEC|O_RDONLY);
data/systemd-247~rc2/src/boot/bootctl.c:513: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).
        fd_from = open(from, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/boot/bootctl.c:518: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).
                fd_to = open(to, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/boot/bootctl.c:539: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).
                fd_to = open(t, O_WRONLY|O_CREAT|O_CLOEXEC|O_EXCL|O_NOFOLLOW, 0644);
data/systemd-247~rc2/src/boot/bootctl.c:1402: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 = open(tmp, O_CREAT|O_EXCL|O_NOFOLLOW|O_NOCTTY|O_WRONLY|O_CLOEXEC, 0600);
data/systemd-247~rc2/src/busctl/busctl.c:350:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char m[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/busctl/busctl.c:1195: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.
        char e[2];
data/systemd-247~rc2/src/busctl/busctl.c:1575:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char s[k + 1];
data/systemd-247~rc2/src/busctl/busctl.c:1576:33:  [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, signature, k);
data/systemd-247~rc2/src/busctl/busctl.c:1620:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char s[k-1];
data/systemd-247~rc2/src/busctl/busctl.c:1621:33:  [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, signature + 1, k - 2);
data/systemd-247~rc2/src/cgtop/cgtop.c:275:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(p, "re");
data/systemd-247~rc2/src/cgtop/cgtop.c:598: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.
        char buffer[MAX4(21U, FORMAT_BYTES_MAX, FORMAT_TIMESPAN_MAX, DECIMAL_STR_MAX(usec_t))];
data/systemd-247~rc2/src/cgtop/cgtop.c:953:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char h[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/automount.c:312: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.
        char time_string[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/automount.c:350: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).
        m->dev_autofs_fd = open("/dev/autofs", O_CLOEXEC|O_RDONLY);
data/systemd-247~rc2/src/core/automount.c:565: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.
        char name[STRLEN("systemd-") + DECIMAL_STR_MAX(pid_t) + 1];
data/systemd-247~rc2/src/core/automount.c:566: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.
        char options[STRLEN("fd=,pgrp=,minproto=5,maxproto=5,direct")
data/systemd-247~rc2/src/core/bpf-devices.c:350:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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+DECIMAL_STR_MAX(unsigned)*2+2+4];
data/systemd-247~rc2/src/core/bpf-devices.c:437: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).
        f = fopen("/proc/devices", "re");
data/systemd-247~rc2/src/core/bpf-firewall.c:382:25:  [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(key_ipv4->data, &a->address, sizeof(uint32_t));
data/systemd-247~rc2/src/core/bpf-firewall.c:392:25:  [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(key_ipv6->data, &a->address, 4 * sizeof(uint32_t));
data/systemd-247~rc2/src/core/cgroup.c:365: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.
        char q[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/cgroup.c:366: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.
        char v[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/cgroup.c:368: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.
        char cda[FORMAT_CGROUP_DIFF_MAX];
data/systemd-247~rc2/src/core/cgroup.c:369: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.
        char cdb[FORMAT_CGROUP_DIFF_MAX];
data/systemd-247~rc2/src/core/cgroup.c:370: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.
        char cdc[FORMAT_CGROUP_DIFF_MAX];
data/systemd-247~rc2/src/core/cgroup.c:371: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.
        char cdd[FORMAT_CGROUP_DIFF_MAX];
data/systemd-247~rc2/src/core/cgroup.c:372: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.
        char cde[FORMAT_CGROUP_DIFF_MAX];
data/systemd-247~rc2/src/core/cgroup.c:487:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/core/cgroup.c:508:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/core/cgroup.c:604: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.
        char ids[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/core/cgroup.c:735:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char v[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/cgroup.c:746: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.
        char buf[DECIMAL_STR_MAX(uint64_t) + 2];
data/systemd-247~rc2/src/core/cgroup.c:753: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.
        char buf[(DECIMAL_STR_MAX(usec_t) + 1) * 2 + 1];
data/systemd-247~rc2/src/core/cgroup.c:765: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.
        char buf[DECIMAL_STR_MAX(uint64_t) + 2];
data/systemd-247~rc2/src/core/cgroup.c:772: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.
        char buf[DECIMAL_STR_MAX(usec_t) + 2];
data/systemd-247~rc2/src/core/cgroup.c:856: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.
        char buf[DECIMAL_STR_MAX(dev_t)*2+2+DECIMAL_STR_MAX(uint64_t)+1];
data/systemd-247~rc2/src/core/cgroup.c:869: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.
        char buf[DECIMAL_STR_MAX(dev_t)*2+2+DECIMAL_STR_MAX(uint64_t)+1];
data/systemd-247~rc2/src/core/cgroup.c:882: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.
        char buf[DECIMAL_STR_MAX(dev_t)*2+2+7+DECIMAL_STR_MAX(uint64_t)+1];
data/systemd-247~rc2/src/core/cgroup.c:899: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.
        char limit_bufs[_CGROUP_IO_LIMIT_TYPE_MAX][DECIMAL_STR_MAX(uint64_t)];
data/systemd-247~rc2/src/core/cgroup.c:900: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.
        char buf[DECIMAL_STR_MAX(dev_t)*2+2+(6+DECIMAL_STR_MAX(uint64_t)+1)*4];
data/systemd-247~rc2/src/core/cgroup.c:922: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.
        char buf[DECIMAL_STR_MAX(dev_t)*2+2+DECIMAL_STR_MAX(uint64_t)+1];
data/systemd-247~rc2/src/core/cgroup.c:930: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(buf, "%u:%u %" PRIu64 "\n", major(dev), minor(dev), rbps);
data/systemd-247~rc2/src/core/cgroup.c:933: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(buf, "%u:%u %" PRIu64 "\n", major(dev), minor(dev), wbps);
data/systemd-247~rc2/src/core/cgroup.c:951: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.
        char buf[DECIMAL_STR_MAX(uint64_t) + 1] = "max\n";
data/systemd-247~rc2/src/core/cgroup.c:1009:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char acc[4], *val;
data/systemd-247~rc2/src/core/cgroup.c:1146:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[8+DECIMAL_STR_MAX(uint64_t)+1];
data/systemd-247~rc2/src/core/cgroup.c:1228:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[DECIMAL_STR_MAX(uint64_t)+1];
data/systemd-247~rc2/src/core/cgroup.c:1315:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[DECIMAL_STR_MAX(uint64_t) + 1];
data/systemd-247~rc2/src/core/cgroup.c:1371:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buf[DECIMAL_STR_MAX(uint64_t) + 1];
data/systemd-247~rc2/src/core/cgroup.c:2850: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.
        char *values[2] = {};
data/systemd-247~rc2/src/core/cgroup.c:3075:38:  [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).
                m->pin_cgroupfs_fd = open(path, O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/core/cgroup.c:3380:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char *const field_names[_CGROUP_IO_ACCOUNTING_METRIC_MAX] = {
data/systemd-247~rc2/src/core/cgroup.c:3412: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).
        f = fopen(path, "re");
data/systemd-247~rc2/src/core/cgroup.c:3458:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret, acc, sizeof(acc));
data/systemd-247~rc2/src/core/dbus-cgroup.c:288:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char rwm[4];
data/systemd-247~rc2/src/core/dbus-cgroup.c:978:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char v[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/dbus-cgroup.c:1237:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/dbus-cgroup.c:1620:33:  [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(&item->address, ap, an);
data/systemd-247~rc2/src/core/dbus-cgroup.c:1656:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buffer[CONST_MAX(INET_ADDRSTRLEN, INET6_ADDRSTRLEN)];
data/systemd-247~rc2/src/core/dbus-execute.c:2171:25:  [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, p, sz);
data/systemd-247~rc2/src/core/dbus-execute.c:2820:33:  [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((uint8_t*) q + c->stdin_data_size, p, sz);
data/systemd-247~rc2/src/core/dbus-manager.c:504:17:  [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(&id, a, sz);
data/systemd-247~rc2/src/core/dbus-manager.c:1306:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char fb_available[FORMAT_BYTES_MAX], fb_need[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/core/dbus-manager.c:1508:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char fb_available[FORMAT_BYTES_MAX], fb_need[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/core/dbus-timer.c:51:17:  [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, s, l-3);
data/systemd-247~rc2/src/core/dbus-timer.c:52:17:  [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+l-3, "USec", 5);
data/systemd-247~rc2/src/core/dbus-timer.c:150:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/dbus-unit.c:335: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.
        const char *details[9] = {
data/systemd-247~rc2/src/core/dbus-unit.c:358:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const polkit_message_for_job[_JOB_TYPE_MAX] = {
data/systemd-247~rc2/src/core/dbus-unit.c:1360:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char *const table[_CGROUP_IP_ACCOUNTING_METRIC_MAX] = {
data/systemd-247~rc2/src/core/dbus-unit.c:1390:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char *const table[_CGROUP_IO_ACCOUNTING_METRIC_MAX] = {
data/systemd-247~rc2/src/core/dbus-util.c:142:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char *n, ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/dynamic-user.c:41:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int dynamic_user_add(Manager *m, const char *name, int storage_socket[static 2], DynamicUser **ret) {
data/systemd-247~rc2/src/core/dynamic-user.c:142: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.
        char path1[STRLEN("/run/systemd/dynamic-uid/direct:") + DECIMAL_STR_MAX(uid_t) + 1];
data/systemd-247~rc2/src/core/dynamic-user.c:213:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char lock_path[STRLEN("/run/systemd/dynamic-uid/") + DECIMAL_STR_MAX(uid_t) + 1];
data/systemd-247~rc2/src/core/dynamic-user.c:268:35:  [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).
                        lock_fd = open(lock_path, O_CREAT|O_RDWR|O_NOFOLLOW|O_CLOEXEC|O_NOCTTY, 0600);
data/systemd-247~rc2/src/core/dynamic-user.c:354: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.
        char lock_path[STRLEN("/run/systemd/dynamic-uid/") + DECIMAL_STR_MAX(uid_t) + 1];
data/systemd-247~rc2/src/core/dynamic-user.c:698: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.
        char lock_path[STRLEN("/run/systemd/dynamic-uid/") + DECIMAL_STR_MAX(uid_t) + 1];
data/systemd-247~rc2/src/core/efi-random.c:80: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).
        random_fd = open("/dev/urandom", O_WRONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/core/execute.c:257: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 = open("/dev/null", flags|O_NOCTTY);
data/systemd-247~rc2/src/core/execute.c:392: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 = open(path, flags|O_NOCTTY, mode);
data/systemd-247~rc2/src/core/execute.c:1368: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.
        char process_name[11];
data/systemd-247~rc2/src/core/execute.c:1391:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(process_name+1, p, l);
data/systemd-247~rc2/src/core/execute.c:2135: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).
                fd = open(a, O_WRONLY|O_CLOEXEC);
data/systemd-247~rc2/src/core/execute.c:2154: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).
                fd = open(a, O_WRONLY|O_CLOEXEC);
data/systemd-247~rc2/src/core/execute.c:2167: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).
                fd = open(a, O_WRONLY|O_CLOEXEC);
data/systemd-247~rc2/src/core/execute.c:2527:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        dfd = open(p, O_DIRECTORY|O_CLOEXEC);
data/systemd-247~rc2/src/core/execute.c:3442:17:  [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(dont_close + n_dont_close, fds, sizeof(int) * n_fds);
data/systemd-247~rc2/src/core/execute.c:5150: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.
        char **e, **d, buf_clean[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/execute.c:5405:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_timespan[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/execute.c:5808: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.
        char buf[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/core/execute.c:6039: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.
                const char *id,
data/systemd-247~rc2/src/core/execute.c:6040:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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,
data/systemd-247~rc2/src/core/execute.c:6041:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char **var_tmp_dir,
data/systemd-247~rc2/src/core/execute.h:204: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.
        char *stdio_fdname[3];
data/systemd-247~rc2/src/core/execute.h:205: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.
        char *stdio_file[3];
data/systemd-247~rc2/src/core/ima-setup.c:45: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).
        imafd = open(IMA_SECFS_POLICY, O_WRONLY|O_CLOEXEC);
data/systemd-247~rc2/src/core/ima-setup.c:56:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        input = fopen(IMA_POLICY_PATH, "re");
data/systemd-247~rc2/src/core/ima-setup.c:64: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).
        imafd = open(IMA_SECFS_POLICY, O_WRONLY|O_CLOEXEC);
data/systemd-247~rc2/src/core/job.c:555: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.
        char buf[LINE_MAX];
data/systemd-247~rc2/src/core/job.c:740:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char *const generic_finished_start_job[_JOB_RESULT_MAX] = {
data/systemd-247~rc2/src/core/job.c:750:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char *const generic_finished_stop_job[_JOB_RESULT_MAX] = {
data/systemd-247~rc2/src/core/job.c:755:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char *const generic_finished_reload_job[_JOB_RESULT_MAX] = {
data/systemd-247~rc2/src/core/job.c:763:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char *const generic_finished_verify_active_job[_JOB_RESULT_MAX] = {
data/systemd-247~rc2/src/core/job.c:860: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.
        char buf[LINE_MAX];
data/systemd-247~rc2/src/core/killall.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).
        f = fopen(p, "re");
data/systemd-247~rc2/src/core/load-fragment.c:1119:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((uint8_t*) q + c->stdin_data_size, p, sz);
data/systemd-247~rc2/src/core/load-fragment.c:5484:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(fragment, "re");
data/systemd-247~rc2/src/core/locale-setup.c:17:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        _cleanup_(locale_variables_freep) char *variables[_VARIABLE_LC_MAX] = {};
data/systemd-247~rc2/src/core/machine-id-setup.c:39: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 = open(dbus_machine_id, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
data/systemd-247~rc2/src/core/machine-id-setup.c:105: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).
                fd = open(etc_machine_id, O_RDWR|O_CREAT|O_CLOEXEC|O_NOCTTY, 0444);
data/systemd-247~rc2/src/core/machine-id-setup.c:109:30:  [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(etc_machine_id, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/core/machine-id-setup.c:236: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 = open(etc_machine_id, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/core/main.c:1448: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.
        char log_level[DECIMAL_STR_MAX(int) + 1],
data/systemd-247~rc2/src/core/main.c:1600:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/core/main.c:1625: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).
        random_fd = open("/dev/urandom", O_WRONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/core/main.c:1754:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char sfd[DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/core/main.c:1959:38:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        static const char * const table[_MANAGER_OBJECTIVE_MAX] = {
data/systemd-247~rc2/src/core/main.c:2561: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.
        char timespan[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/manager.c:203: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.
        char cylon[6 + CYLON_BUFFER_EXTRA + 1];
data/systemd-247~rc2/src/core/manager.c:205: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.
        char time[FORMAT_TIMESPAN_MAX], limit[FORMAT_TIMESPAN_MAX] = "no limit";
data/systemd-247~rc2/src/core/manager.c:2120:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[CONST_MAX(FORMAT_TIMESPAN_MAX, FORMAT_TIMESTAMP_MAX)];
data/systemd-247~rc2/src/core/manager.c:2275: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.
        char buf[PATH_MAX];
data/systemd-247~rc2/src/core/manager.c:2355: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.
        char buf[NOTIFY_BUFFER_MAX+1];
data/systemd-247~rc2/src/core/manager.c:3876: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.
        char userspace[FORMAT_TIMESPAN_MAX], initrd[FORMAT_TIMESPAN_MAX], kernel[FORMAT_TIMESPAN_MAX], sum[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/manager.c:3883:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/manager.c:3884:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX + STRLEN(" (firmware) + ") + FORMAT_TIMESPAN_MAX + STRLEN(" (loader) + ")]
data/systemd-247~rc2/src/core/manager.c:4086: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.
        const char *argv[5];
data/systemd-247~rc2/src/core/manager.c:4488: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.
        char p[strlen(path)+1];
data/systemd-247~rc2/src/core/manager.c:4722:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char unit_name[UNIT_NAME_MAX+1];
data/systemd-247~rc2/src/core/manager.c:4907:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const manager_state_table[_MANAGER_STATE_MAX] = {
data/systemd-247~rc2/src/core/manager.c:4918:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const manager_timestamp_table[_MANAGER_TIMESTAMP_MAX] = {
data/systemd-247~rc2/src/core/manager.h:426: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.
        char *prefix[_EXEC_DIRECTORY_TYPE_MAX];
data/systemd-247~rc2/src/core/mount-setup.c:442:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(*file, "re");
data/systemd-247~rc2/src/core/mount-setup.c:504:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char timespan[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/mount.c:756: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.
        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/namespace.c:198:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const mount_mode_table[_MOUNT_MODE_MAX] = {
data/systemd-247~rc2/src/core/namespace.c:1816:39:  [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).
                proc_self_mountinfo = fopen("/proc/self/mountinfo", "re");
data/systemd-247~rc2/src/core/namespace.c:2118: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.
        char bid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/core/namespace.c:2238: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).
                netns = open("/proc/self/ns/net", O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/core/namespace.c:2291: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).
                netns = open(path, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/core/namespace.c:2335:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const protect_home_table[_PROTECT_HOME_MAX] = {
data/systemd-247~rc2/src/core/namespace.c:2344:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const protect_system_table[_PROTECT_SYSTEM_MAX] = {
data/systemd-247~rc2/src/core/scope.c:249: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.
        char buf_runtime[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/selinux-access.c:49: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.
        char login_uid_buf[DECIMAL_STR_MAX(uid_t) + 1] = "n/a";
data/systemd-247~rc2/src/core/selinux-access.c:50: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.
        char uid_buf[DECIMAL_STR_MAX(uid_t) + 1] = "n/a";
data/systemd-247~rc2/src/core/selinux-access.c:51: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.
        char gid_buf[DECIMAL_STR_MAX(gid_t) + 1] = "n/a";
data/systemd-247~rc2/src/core/selinux-setup.c:71:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char timespan[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/service.c:786: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.
        char buf_restart[FORMAT_TIMESPAN_MAX], buf_start[FORMAT_TIMESPAN_MAX], buf_stop[FORMAT_TIMESPAN_MAX],
data/systemd-247~rc2/src/core/service.c:942: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.
        char procfs[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/core/service.c:1305:33:  [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(t + rn_socket_fds, cfds, cn_fds * sizeof(int));
data/systemd-247~rc2/src/core/service.c:2625:17:  [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(args + length, e, n);
data/systemd-247~rc2/src/core/service.c:3894:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf_restart[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/service.c:3923: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.
        char t[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/smack-setup.c:57: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).
        load2_fd = open("/sys/fs/smackfs/load2", O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
data/systemd-247~rc2/src/core/smack-setup.c:64: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).
        change_fd = open("/sys/fs/smackfs/change-rule", O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
data/systemd-247~rc2/src/core/smack-setup.c:131: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).
        cipso2_fd = open("/sys/fs/smackfs/cipso2", O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
data/systemd-247~rc2/src/core/smack-setup.c:192:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        dst = fopen("/sys/fs/smackfs/netlabel", "we");
data/systemd-247~rc2/src/core/smack-setup.c:253: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).
        f = fopen("/etc/smack/onlycap", "re");
data/systemd-247~rc2/src/core/smack-setup.c:287: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).
        onlycap_fd = open("/sys/fs/smackfs/onlycap", O_WRONLY|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
data/systemd-247~rc2/src/core/socket.c:578: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.
        char time_string[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/socket.c:881:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char a[INET6_ADDRSTRLEN], b[INET6_ADDRSTRLEN];
data/systemd-247~rc2/src/core/socket.c:1171: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 = open(path, O_RDWR | O_CLOEXEC | O_NOCTTY | O_NONBLOCK | O_NOFOLLOW);
data/systemd-247~rc2/src/core/socket.c:1205: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 = open(path, (writable ? O_RDWR : O_RDONLY)|O_CLOEXEC|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW);
data/systemd-247~rc2/src/core/socket.c:1225: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 = open(path, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK|O_NOFOLLOW);
data/systemd-247~rc2/src/core/swap.c:622: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.
        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/swap.c:1394:33:  [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).
                m->proc_swaps = fopen("/proc/swaps", "re");
data/systemd-247~rc2/src/core/timer.c:233: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.
        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/timer.c:275:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char timespan1[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/timer.c:356: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.
        char s[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/timer.c:509:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/timer.c:547:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/core/timer.c:666:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char z[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/core/unit.c:567:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char s[strlen(path) + 1];
data/systemd-247~rc2/src/core/unit.c:756: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.
        char *values[1] = {};
data/systemd-247~rc2/src/core/unit.c:1213: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.
        char timestamp[5][FORMAT_TIMESTAMP_MAX], timespan[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/core/unit.c:1536:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char prefix[strlen(path) + 1];
data/systemd-247~rc2/src/core/unit.c:2288:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX] = "";
data/systemd-247~rc2/src/core/unit.c:2313:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX] = "";
data/systemd-247~rc2/src/core/unit.c:2378:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX] = "";
data/systemd-247~rc2/src/core/unit.c:3550:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const ip_accounting_metric_field[_CGROUP_IP_ACCOUNTING_METRIC_MAX] = {
data/systemd-247~rc2/src/core/unit.c:3557:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const io_accounting_metric_field_base[_CGROUP_IO_ACCOUNTING_METRIC_MAX] = {
data/systemd-247~rc2/src/core/unit.c:3564:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const io_accounting_metric_field_last[_CGROUP_IO_ACCOUNTING_METRIC_MAX] = {
data/systemd-247~rc2/src/core/unit.c:4947:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(path, "we");
data/systemd-247~rc2/src/core/unit.c:5171: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.
        char prefix[strlen(path) + 1];
data/systemd-247~rc2/src/core/unit.c:5711: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.
        char buf[2];
data/systemd-247~rc2/src/core/unit.h:317: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.
        char invocation_id_string[SD_ID128_STRING_MAX]; /* useful when logging */
data/systemd-247~rc2/src/core/unit.h:393: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.
        const char *starting_stopping[2];
data/systemd-247~rc2/src/core/unit.h:394: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.
        const char *finished_start_job[_JOB_RESULT_MAX];
data/systemd-247~rc2/src/core/unit.h:395: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.
        const char *finished_stop_job[_JOB_RESULT_MAX];
data/systemd-247~rc2/src/coredump/coredump.c:102:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const meta_field_names[_META_MAX] = {
data/systemd-247~rc2/src/coredump/coredump.c:116: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.
        const char *meta[_META_MAX];
data/systemd-247~rc2/src/coredump/coredump.c:200:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char * const xattrs[_META_MAX] = {
data/systemd-247~rc2/src/coredump/coredump.c:488:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(field, "COREDUMP=", 9);
data/systemd-247~rc2/src/coredump/coredump.c:596: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).
        proc_ns_dir_fd = open(p, O_DIRECTORY | O_CLOEXEC | O_RDONLY);
data/systemd-247~rc2/src/coredump/coredumpctl.c:375: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.
        char buf[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/coredump/coredumpctl.c:554:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char absolute[FORMAT_TIMESTAMP_MAX], relative[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/coredump/coredumpctl.c:830: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).
                fdf = open(filename, O_RDONLY | O_CLOEXEC);
data/systemd-247~rc2/src/coredump/coredumpctl.c:904:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(arg_output, "we");
data/systemd-247~rc2/src/cryptsetup/cryptsetup-keyfile.c:34: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).
                fd = open(key_file, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/cryptsetup/cryptsetup-keyfile.c:47:30:  [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(joined, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/cryptsetup/cryptsetup-keyfile.c:80:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf1[FORMAT_BYTES_MAX], buf2[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/dissect/dissect.c:362:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char s[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/dissect/dissect.c:625:29:  [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).
                target_fd = open(arg_target, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW, 0600);
data/systemd-247~rc2/src/dissect/dissect.c:668:29:  [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).
                source_fd = open(arg_source, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/firstboot/firstboot.c:537: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.
        char id[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/firstboot/firstboot.c:677:20:  [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).
        original = fopen(passwd_path, "re");
data/systemd-247~rc2/src/firstboot/firstboot.c:745:20:  [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).
        original = fopen(shadow_path, "re");
data/systemd-247~rc2/src/fsck/fsck.c:340:19:  [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).
        console = fopen("/dev/console", "we");
data/systemd-247~rc2/src/fsck/fsck.c:350:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char dash_c[STRLEN("-C") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/fsck/fsck.c:352: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.
                const char *cmdline[9];
data/systemd-247~rc2/src/fsckd/fsckd.c:132:19:  [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).
        console = fopen("/dev/console", "we");
data/systemd-247~rc2/src/fsckd/fsckd.c:214: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.
        char buffer[6];
data/systemd-247~rc2/src/fsckd/fsckd.c:380: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.
        char line[LINE_MAX];
data/systemd-247~rc2/src/fstab-generator/fstab-generator.c:199: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.
        char timespan[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/fuzz/fuzz-dhcp-server.c:32: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).
        server->fd = open("/dev/null", O_RDWR|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/fuzz/fuzz-dhcp-server.c:48:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(lease->chaddr, chaddr, 16);
data/systemd-247~rc2/src/fuzz/fuzz-journal-remote.c:36:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(mem, data, size);
data/systemd-247~rc2/src/fuzz/fuzz-journal-remote.c:62:38:  [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).
                assert_se(dev_null = fopen("/dev/null", "we"));
data/systemd-247~rc2/src/fuzz/fuzz-udev-rule-parse-value.c:16:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(str, data, size);
data/systemd-247~rc2/src/fuzz/fuzz-varlink.c:49:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char c[137];
data/systemd-247~rc2/src/fuzz/fuzz-varlink.c:99:26:  [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).
        assert_se(null = fopen("/dev/null", "we"));
data/systemd-247~rc2/src/getty-generator/getty-generator.c:91: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 = open(p, O_RDWR|O_NONBLOCK|O_NOCTTY|O_CLOEXEC|O_NOFOLLOW);
data/systemd-247~rc2/src/gpt-auto-generator/gpt-auto-generator.c:99: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 = open(node, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/gpt-auto-generator/gpt-auto-generator.c:229: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).
        f = fopen(p, "wxe");
data/systemd-247~rc2/src/gpt-auto-generator/gpt-auto-generator.c:351: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).
        f = fopen(unit, "wxe");
data/systemd-247~rc2/src/gpt-auto-generator/gpt-auto-generator.c:416: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).
        f = fopen(p, "wxe");
data/systemd-247~rc2/src/home/homectl.c:719:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char mids[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/home/homectl.c:2818: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).
                                f = fopen(optarg+1, "re");
data/systemd-247~rc2/src/home/homed-home.c:1093:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/home/homed-home.c:1938:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char p[SYS_BLOCK_PATH_MAX("/size")];
data/systemd-247~rc2/src/home/homed-home.c:2157: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.
        char ids[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/home/homed-home.c:2308: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).
                ref_fd = open(fn, O_RDONLY|O_CLOEXEC|O_NONBLOCK);
data/systemd-247~rc2/src/home/homed-home.c:2329: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).
        ret_fd = open(fn, O_WRONLY|O_CLOEXEC|O_NONBLOCK);
data/systemd-247~rc2/src/home/homed-manager.c:860:30:  [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_DIRECTORY|O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/home/homed-manager.c:1051:33:  [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(ret_sender, CMSG_DATA(cmsg), sizeof(struct ucred));
data/systemd-247~rc2/src/home/homed-manager.c:1471: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).
        f = fopen(path, "re");
data/systemd-247~rc2/src/home/homework-cifs.c:25:34:  [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).
                setup->root_fd = open(user_record_home_directory(h), O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
data/systemd-247~rc2/src/home/homework-cifs.c:91:34:  [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).
                setup->root_fd = open("/run/systemd/user-home-mount", O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
data/systemd-247~rc2/src/home/homework-directory.c:20: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).
        setup->root_fd = open(user_record_image_path(h), O_RDONLY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/home/homework-directory.c:149: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).
        root_fd = open(temporary, O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
data/systemd-247~rc2/src/home/homework-fscrypt.c:57:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(key.raw, volume_key, volume_key_size);
data/systemd-247~rc2/src/home/homework-fscrypt.c:85:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret_key_descriptor, hashed2, FS_KEY_DESCRIPTOR_SIZE);
data/systemd-247~rc2/src/home/homework-fscrypt.c:89: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.
                const char *password,
data/systemd-247~rc2/src/home/homework-fscrypt.c:192:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char **passwords,
data/systemd-247~rc2/src/home/homework-fscrypt.c:299: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).
        setup->root_fd = open(ip, O_RDONLY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/home/homework-fscrypt.c:313:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(setup->fscrypt_key_descriptor, policy.master_key_descriptor, FS_KEY_DESCRIPTOR_SIZE);
data/systemd-247~rc2/src/home/homework-fscrypt.c:374: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.
        char label[STRLEN("trusted.fscrypt_slot") + DECIMAL_STR_MAX(nr) + 1];
data/systemd-247~rc2/src/home/homework-fscrypt.c:490: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).
        root_fd = open(temporary, O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
data/systemd-247~rc2/src/home/homework-luks.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).
        fd = open(path, O_RDWR|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/home/homework-luks.c:152: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 = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/home/homework-luks.c:180: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 = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/home/homework-luks.c:949: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.
        char buf[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/home/homework-luks.c:976: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).
        root_fd = open(root_path, O_RDONLY|O_DIRECTORY|O_CLOEXEC);
data/systemd-247~rc2/src/home/homework-luks.c:984: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.
        char buf[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/home/homework-luks.c:1030: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).
        backing_fd = open(backing_path, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/home/homework-luks.c:1140: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).
                root_fd = open(user_record_home_directory(h), O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
data/systemd-247~rc2/src/home/homework-luks.c:1156: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).
                image_fd = open(ip, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/home/homework-luks.c:1227: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).
                root_fd = open(subdir, O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
data/systemd-247~rc2/src/home/homework-luks.c:1274: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.
        char buffer1[FORMAT_BYTES_MAX], buffer2[FORMAT_BYTES_MAX], buffer3[FORMAT_BYTES_MAX], buffer4[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/home/homework-luks.c:1480: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.
        char suuid[ID128_UUID_STRING_MAX], **pp;
data/systemd-247~rc2/src/home/homework-luks.c:1614: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.
        char uuids[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/home/homework-luks.c:1781: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.
        char buf[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/home/homework-luks.c:1947: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).
                image_fd = open(ip, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/home/homework-luks.c:2025: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).
                image_fd = open(temporary_image_path, O_RDWR|O_CREAT|O_EXCL|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW, 0600);
data/systemd-247~rc2/src/home/homework-luks.c:2124: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).
        root_fd = open(subdir, O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
data/systemd-247~rc2/src/home/homework-luks.c:2405:34:  [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).
                setup->root_fd = open("/run/systemd/user-home-mount", O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
data/systemd-247~rc2/src/home/homework-luks.c:2608: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.
        char buffer1[FORMAT_BYTES_MAX], buffer2[FORMAT_BYTES_MAX], buffer3[FORMAT_BYTES_MAX],
data/systemd-247~rc2/src/home/homework-luks.c:2629: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).
        image_fd = open(ip, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/home/homework-luks.c:2654:36:  [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(whole_disk, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/home/homework-luks.c:2994: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).
        root_fd = open(p, O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOFOLLOW);
data/systemd-247~rc2/src/home/homework.c:1646:31:  [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).
                opened_file = fopen(json_path, "re");
data/systemd-247~rc2/src/home/modhex.c:9:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char modhex_alphabet[16] = {
data/systemd-247~rc2/src/home/modhex.h:10:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const char modhex_alphabet[16];
data/systemd-247~rc2/src/home/pam_systemd_home.c:876:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/home/user-record-pwquality.c:20: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.
        char buf[PWQ_MAX_ERROR_MESSAGE_LEN], **pp;
data/systemd-247~rc2/src/home/user-record-util.c:27: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.
        char smid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/home/user-record-util.c:112: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.
        char smid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/home/user-record-util.c:287: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.
        char smid[SD_ID128_STRING_MAX], partition_uuids[ID128_UUID_STRING_MAX], luks_uuids[ID128_UUID_STRING_MAX], fs_uuids[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/home/user-record-util.c:504:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char x[2];
data/systemd-247~rc2/src/home/user-record-util.c:636: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.
        char smid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/home/user-record-util.c:1175: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.
        char buf[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/home/user-record-util.c:1232: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.
        char buf[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/home/user-record-util.c:1290: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.
        char buf[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/hostname/hostnamed.c:59: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.
        char *data[_PROP_MAX];
data/systemd-247~rc2/src/hostname/hostnamed.c:377:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char * const name[_PROP_MAX] = {
data/systemd-247~rc2/src/import/export-raw.c:260: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).
                new_fd = open(t, O_CLOEXEC|O_CREAT|O_NOCTTY|O_RDWR, 0600);
data/systemd-247~rc2/src/import/export-raw.c:297:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        sfd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/import/export-tar.c:269:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        sfd = open(path, O_DIRECTORY|O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/import/export.c:86: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).
                open_fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC|O_NOCTTY, 0666);
data/systemd-247~rc2/src/import/export.c:162: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).
                open_fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC|O_NOCTTY, 0666);
data/systemd-247~rc2/src/import/import-common.c:57: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 = open(path, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/import/import-compress.c:355:17:  [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(*buffer, data, size);
data/systemd-247~rc2/src/import/import-fs.c:66:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/import/import-fs.c:149: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).
                open_fd = open(path, O_DIRECTORY|O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/import/import-raw.c:172: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).
        converted_fd = open(t, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664);
data/systemd-247~rc2/src/import/import-raw.c:253: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).
        i->output_fd = open(i->temp_path, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664);
data/systemd-247~rc2/src/import/import.c:87: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).
                open_fd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/import/import.c:182: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).
                open_fd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/import/importd.c:71: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.
        char log_message[LINE_MAX];
data/systemd-247~rc2/src/import/importd.c:548: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.
        char buf[NOTIFY_BUFFER_MAX+1];
data/systemd-247~rc2/src/import/pull-job.c:245:17:  [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(j->payload + j->payload_size, p, sz);
data/systemd-247~rc2/src/import/pull-job.c:376:17:  [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(j->payload + j->payload_size, contents, sz);
data/systemd-247~rc2/src/import/pull-job.c:454:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char bytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/import/pull-job.c:507:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/import/pull-job.c:510:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char y[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/import/pull-raw.c:240: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).
        converted_fd = open(t, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664);
data/systemd-247~rc2/src/import/pull-raw.c:327:39:  [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).
                i->raw_job->disk_fd = open(i->final_path, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/import/pull-raw.c:348:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        dfd = open(tp, O_WRONLY|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664);
data/systemd-247~rc2/src/import/pull-raw.c:576: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).
        j->disk_fd = open(*temp_path, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664);
data/systemd-247~rc2/src/import/pull-tar.c:449: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).
        j->disk_fd = open(i->settings_temp_path, O_RDWR|O_CREAT|O_EXCL|O_NOCTTY|O_CLOEXEC, 0664);
data/systemd-247~rc2/src/import/test-qcow2.c:20:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        sfd = open(argv[1], O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/import/test-qcow2.c:26:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        dfd = open(argv[2], O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY, 0666);
data/systemd-247~rc2/src/journal-remote/journal-gatewayd.c:410:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char match[9 + 32 + 1] = "_BOOT_ID=";
data/systemd-247~rc2/src/journal-remote/journal-gatewayd.c:672: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 = open(path, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/journal-remote/journal-remote-main.c:713:30:  [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_RDONLY|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/journal-remote/journal-remote.c:275: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.
        char name[STRLEN("raw-socket-") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/journal-remote/journal-upload-journal.c:106:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char sid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/journal-remote/journal-upload-journal.c:167:25:  [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 + pos,
data/systemd-247~rc2/src/journal-remote/journal-upload-journal.c:197:25:  [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 + pos, u->field_data, len);
data/systemd-247~rc2/src/journal-remote/journal-upload-journal.c:213:25:  [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 + pos, &le64, 8);
data/systemd-247~rc2/src/journal-remote/journal-upload.c:352: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).
                fd = open(filename, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/journal-remote/journal-upload.h:33: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.
        char error[CURL_ERROR_SIZE];
data/systemd-247~rc2/src/journal-remote/microhttpd-util.c:95: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.
        const char *const names[4];
data/systemd-247~rc2/src/journal/audit-type.h:19:25:  [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*) _s_, "AUDIT%04i", type);        \
data/systemd-247~rc2/src/journal/catalog.c:51: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.
        char language[32]; /* One byte is used for termination, so the maximum allowed
data/systemd-247~rc2/src/journal/catalog.c:129:17:  [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, b1, n);
data/systemd-247~rc2/src/journal/catalog.c:135:17:  [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, b2, n);
data/systemd-247~rc2/src/journal/catalog.c:262: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).
        f = fopen(path, "re");
data/systemd-247~rc2/src/journal/catalog.c:354:17:  [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(payload + payload_size, line, line_len);
data/systemd-247~rc2/src/journal/catalog.c:521: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 = open(database, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/journal/fsprg.c:120:17:  [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, gcry_md_read(hd2, RND_HASH), cpylen);
data/systemd-247~rc2/src/journal/fsprg.c:295:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(state, mpk, 2 + secpar / 8);
data/systemd-247~rc2/src/journal/journal-authenticate.c:60:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(o->tag.tag, gcry_md_read(f->hmac, 0), TAG_LENGTH);
data/systemd-247~rc2/src/journal/journal-authenticate.c:325: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 = open(p, O_RDWR|O_CLOEXEC|O_NOCTTY, 0600);
data/systemd-247~rc2/src/journal/journal-file.c:421:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(h.signature, HEADER_SIGNATURE, 8);
data/systemd-247~rc2/src/journal/journal-file.c:1563:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(o->field.payload, field, size);
data/systemd-247~rc2/src/journal/journal-file.c:2682: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.
        char t[STRLEN("_BOOT_ID=") + 32 + 1] = "_BOOT_ID=";
data/systemd-247~rc2/src/journal/journal-file.c:3209: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.
        char a[SD_ID128_STRING_MAX], b[SD_ID128_STRING_MAX], c[SD_ID128_STRING_MAX], d[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/journal/journal-file.c:3210: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.
        char x[FORMAT_TIMESTAMP_MAX], y[FORMAT_TIMESTAMP_MAX], z[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/journal/journal-file.c:3212: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.
        char bytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/journal/journal-file.c:3399:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char bytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/journal/journal-file.c:3453: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).
                f->fd = open(f->path, f->flags|O_CLOEXEC|O_NONBLOCK, f->mode);
data/systemd-247~rc2/src/journal/journal-file.c:3906: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.
        char a[FORMAT_BYTES_MAX], b[FORMAT_BYTES_MAX], c[FORMAT_BYTES_MAX], d[FORMAT_BYTES_MAX], e[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/journal/journal-send.c:34:17:  [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(*_f, "CODE_FUNC=", 10);    \
data/systemd-247~rc2/src/journal/journal-send.c:35:17:  [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(*_f + 10, _func, _fl);     \
data/systemd-247~rc2/src/journal/journal-send.c:77: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.
        char p[STRLEN("PRIORITY=") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/journal/journal-send.c:78: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.
        char sbuf[LINE_MAX + 8] = "MESSAGE=";
data/systemd-247~rc2/src/journal/journal-send.c:100:17:  [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(buffer, "MESSAGE=", 8);
data/systemd-247~rc2/src/journal/journal-send.c:242:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        (c == (char *) iov[i].iov_base + 17 &&
data/systemd-247~rc2/src/journal/journal-send.c:347:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[n];
data/systemd-247~rc2/src/journal/journal-send.c:353:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char error[STRLEN("ERRNO=") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/journal/journal-send.c:358:25:  [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(buffer, "MESSAGE=", 8);
data/systemd-247~rc2/src/journal/journal-send.c:361:33:  [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(buffer + 8, message, k - 2);
data/systemd-247~rc2/src/journal/journal-send.c:362:33:  [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(buffer + 8 + k - 2, ": ", 2);
data/systemd-247~rc2/src/journal/journal-send.c:419:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(header, identifier, l);
data/systemd-247~rc2/src/journal/journal-send.c:452: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.
        char p[STRLEN("PRIORITY=") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/journal/journal-send.c:453: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.
        char sbuf[LINE_MAX + 8] = "MESSAGE=";
data/systemd-247~rc2/src/journal/journal-send.c:476:17:  [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(buffer, "MESSAGE=", 8);
data/systemd-247~rc2/src/journal/journal-send.c:543:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(niov, iov, sizeof(struct iovec) * n);
data/systemd-247~rc2/src/journal/journal-vacuum.c:134: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.
        char sbytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/journal/journalctl.c:179:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char buf[LINE_MAX];
data/systemd-247~rc2/src/journal/journalctl.c:1232: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.
        char match[9+32+1] = "_BOOT_ID=";
data/systemd-247~rc2/src/journal/journalctl.c:1341:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char match[9+32+1] = "_BOOT_ID=";
data/systemd-247~rc2/src/journal/journalctl.c:1456:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char a[FORMAT_TIMESTAMP_MAX], b[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/journal/journalctl.c:1472: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.
        char match[9+32+1] = "_BOOT_ID=";
data/systemd-247~rc2/src/journal/journalctl.c:1743:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char match[STRLEN("SYSLOG_FACILITY=") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/journal/journalctl.c:1956:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char tsb[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/journal/journalctl.c:2029:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char a[FORMAT_TIMESTAMP_MAX], b[FORMAT_TIMESTAMP_MAX], c[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/journal/journalctl.c:2347:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char sbytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/journal/journalctl.c:2607:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char start_buf[FORMAT_TIMESTAMP_MAX], end_buf[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/journal/journalctl.c:2719:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                        unsigned char buf[LINE_MAX];
data/systemd-247~rc2/src/journal/journald-audit.c:35:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(c, field, l);
data/systemd-247~rc2/src/journal/journald-audit.c:94:17:  [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(c, field, l);
data/systemd-247~rc2/src/journal/journald-audit.c:325: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.
        char id_field[sizeof("_AUDIT_ID=") + DECIMAL_STR_MAX(uint64_t)],
data/systemd-247~rc2/src/journal/journald-audit.c:375: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(type_field, "_AUDIT_TYPE=%i", type);
data/systemd-247~rc2/src/journal/journald-console.c:43: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.
        char tbuf[STRLEN("[] ") + DECIMAL_STR_MAX(ts.tv_sec) + DECIMAL_STR_MAX(ts.tv_nsec)-3 + 1];
data/systemd-247~rc2/src/journal/journald-console.c:44: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.
        char header_pid[STRLEN("[]: ") + DECIMAL_STR_MAX(pid_t)];
data/systemd-247~rc2/src/journal/journald-context.c:413: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).
        f = fopen(p, "re");
data/systemd-247~rc2/src/journal/journald-kmsg.c:35: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.
        char header_priority[DECIMAL_STR_MAX(priority) + 3],
data/systemd-247~rc2/src/journal/journald-kmsg.c:297: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.
        char buffer[8192+1]; /* the kernel-side limit per record is 8K currently */
data/systemd-247~rc2/src/journal/journald-kmsg.c:377: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).
        s->dev_kmsg_fd = open("/dev/kmsg", mode);
data/systemd-247~rc2/src/journal/journald-kmsg.c:433: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 = open(fn, O_RDWR|O_CREAT|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW, 0644);
data/systemd-247~rc2/src/journal/journald-native.c:86:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[DECIMAL_STR_MAX(pid_t)];
data/systemd-247~rc2/src/journal/journald-native.c:87:17:  [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, p + STRLEN("OBJECT_PID="),
data/systemd-247~rc2/src/journal/journald-native.c:223:25:  [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(k, p, e - p);
data/systemd-247~rc2/src/journal/journald-native.c:225:25:  [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(k + (e - p) + 1, e + 1 + sizeof(uint64_t), l);
data/systemd-247~rc2/src/journal/journald-server.c:202: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.
        char fb1[FORMAT_BYTES_MAX], fb2[FORMAT_BYTES_MAX], fb3[FORMAT_BYTES_MAX],
data/systemd-247~rc2/src/journal/journald-server.c:905: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.
        char source_time[sizeof("_SOURCE_REALTIME_TIMESTAMP=") + DECIMAL_STR_MAX(usec_t)];
data/systemd-247~rc2/src/journal/journald-server.c:947:25:  [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(iovec + n, c->extra_fields_iovec, c->extra_fields_n_iovec * sizeof(struct iovec));
data/systemd-247~rc2/src/journal/journald-server.c:1060:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[LINE_MAX];
data/systemd-247~rc2/src/journal/journald-server.c:1116: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.
        char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/journal/journald-server.c:1719: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).
        s->hostname_fd = open("/proc/sys/kernel/hostname",
data/systemd-247~rc2/src/journal/journald-server.h:151: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.
        char machine_id_field[sizeof("_MACHINE_ID=") + 32];
data/systemd-247~rc2/src/journal/journald-server.h:152: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.
        char boot_id_field[sizeof("_BOOT_ID=") + 32];
data/systemd-247~rc2/src/journal/journald-stream.c:98: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.
        char id_field[STRLEN("_STREAM_ID=") + SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/journal/journald-stream.c:252: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.
        char syslog_facility[STRLEN("SYSLOG_FACILITY=") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/journal/journald-stream.c:314:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char * const line_break_field_table[_LINE_BREAK_MAX] = {
data/systemd-247~rc2/src/journal/journald-stream.c:947:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(CMSG_DATA(cmsg), &s->fd, sizeof(int));
data/systemd-247~rc2/src/journal/journald-syslog.c:69:17:  [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(CMSG_DATA(cmsg), ucred, sizeof(struct ucred));
data/systemd-247~rc2/src/journal/journald-syslog.c:95:17:  [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(CMSG_DATA(cmsg), &u, sizeof(struct ucred));
data/systemd-247~rc2/src/journal/journald-syslog.c:125: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.
        char header_priority[DECIMAL_STR_MAX(priority) + 3], header_time[64],
data/systemd-247~rc2/src/journal/journald-syslog.c:316: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.
        char *t, syslog_priority[sizeof("PRIORITY=") + DECIMAL_STR_MAX(int)],
data/systemd-247~rc2/src/journal/journald-syslog.c:362:17:  [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(dummy, buf + leading_ws, i - leading_ws);
data/systemd-247~rc2/src/journal/journald-syslog.c:422:17:  [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(t, "SYSLOG_TIMESTAMP=", hlen);
data/systemd-247~rc2/src/journal/journald-syslog.c:423:17:  [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(t + hlen, syslog_ts, syslog_ts_len);
data/systemd-247~rc2/src/journal/journald-syslog.c:444:17:  [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_raw, "SYSLOG_RAW=", hlen);
data/systemd-247~rc2/src/journal/journald-syslog.c:445:17:  [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_raw + hlen, buf, raw_len);
data/systemd-247~rc2/src/journal/sd-journal.c:926: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.
        char bid[SD_ID128_STRING_MAX], sid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/journal/sd-journal.c:1227:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char prefix[5 + DECIMAL_STR_MAX(uid_t) + 1];
data/systemd-247~rc2/src/journal/sd-journal.c:1290:30:  [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|O_NONBLOCK);
data/systemd-247~rc2/src/journal/sd-journal.c:3155:17:  [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(j->fields_buffer, o->field.payload, sz);
data/systemd-247~rc2/src/journal/test-compress.c:54: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.
        char compressed[512];
data/systemd-247~rc2/src/journal/test-compress.c:145: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.
        char buf[1024];
data/systemd-247~rc2/src/journal/test-compress.c:189: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).
        assert_se((src = open(srcfile, O_RDONLY|O_CLOEXEC)) >= 0);
data/systemd-247~rc2/src/journal/test-compress.c:230: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.
        char buf[20000], buf2[100];
data/systemd-247~rc2/src/journal/test-compress.c:238:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(huge, "HUGE=", STRLEN("HUGE="));
data/systemd-247~rc2/src/journal/test-compress.c:278: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.
        char data[512] = "random\0";
data/systemd-247~rc2/src/journal/test-compress.c:283:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(huge, "HUGE=", STRLEN("HUGE="));
data/systemd-247~rc2/src/journal/test-journal-interleaving.c:223:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&seqnum_id, &one->header->seqnum_id, sizeof(sd_id128_t));
data/systemd-247~rc2/src/journal/test-journal-send.c:51:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(huge, "HUGE=", STRLEN("HUGE="));
data/systemd-247~rc2/src/journal/test-journal-verify.c:26: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 = open(fn, O_RDWR|O_CLOEXEC);
data/systemd-247~rc2/src/journal/test-journal-verify.c:60: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.
        char a[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/journal/test-journal-verify.c:61: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.
        char b[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/journal/test-journal-verify.c:62: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.
        char c[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/journal/test-journal.c:168: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.
        char data[2048] = {0};
data/systemd-247~rc2/src/libsystemd-network/arp-util.c:117:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&arp.arp_sha, ha, ETH_ALEN);
data/systemd-247~rc2/src/libsystemd-network/arp-util.c:118:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&arp.arp_tpa, &pa, sizeof(pa));
data/systemd-247~rc2/src/libsystemd-network/arp-util.c:121:17:  [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(&arp.arp_spa, &pa, sizeof(pa));
data/systemd-247~rc2/src/libsystemd-network/dhcp-identifier.c:80:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(duid->llt.haddr, addr, addr_len);
data/systemd-247~rc2/src/libsystemd-network/dhcp-identifier.c:101:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(duid->ll.haddr, addr, addr_len);
data/systemd-247~rc2/src/libsystemd-network/dhcp-identifier.c:150:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&duid->raw.data, &machine_id, sizeof(machine_id));
data/systemd-247~rc2/src/libsystemd-network/dhcp-identifier.c:172:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ifindex_str[1 + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/libsystemd-network/dhcp-network.c:109:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(link->ll.sll_addr, bcast_addr, bcast_addr_len); /* We may overflow link->ll. link->ll_buffer ensures we have enough space. */
data/systemd-247~rc2/src/libsystemd-network/dhcp-network.c:136:17:  [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(&eth_mac, mac_addr, ETH_ALEN);
data/systemd-247~rc2/src/libsystemd-network/dhcp-option.c:62:25:  [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(&options[*offset + 1], *s, len);
data/systemd-247~rc2/src/libsystemd-network/dhcp-option.c:99:25:  [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(&options[*offset + 2], p->data, p->length);
data/systemd-247~rc2/src/libsystemd-network/dhcp-packet.c:62:17:  [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_tail, buf_64, len % sizeof(uint64_t));
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:104:17:  [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 + 8, options->data, options->length);
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:150:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(*buf, (char*) ia + iaid_offset, len);
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:161:17:  [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, &addr->iaaddr, sizeof(addr->iaaddr));
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:223:17:  [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[offset + 2], *s, len);
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:263:17:  [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[offset + 2], *s, len);
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:287:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&option->data, &pd->ia_pd, sizeof(pd->ia_pd));
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:296:17:  [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(&prefix_opt->iapdprefix, &prefix->iapdprefix, sizeof(struct iapdprefix));
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:308:17:  [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(&prefix_opt->iapdprefix, &hint_pd_prefix->iapdprefix, sizeof(struct iapdprefix));
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:510:17:  [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(&ia->ia_ta.id, iaoption->data, sizeof(ia->ia_ta));
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:637:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(*addrs + count, optval, optlen);
data/systemd-247~rc2/src/libsystemd-network/lldp-neighbor.c:181:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&n->source_address, h.ether_shost, sizeof(struct ether_addr));
data/systemd-247~rc2/src/libsystemd-network/lldp-neighbor.c:182:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&n->destination_address, h.ether_dhost, sizeof(struct ether_addr));
data/systemd-247~rc2/src/libsystemd-network/lldp-neighbor.c:652:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(LLDP_NEIGHBOR_RAW(n), raw, raw_size);
data/systemd-247~rc2/src/libsystemd-network/lldp-neighbor.c:740:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(oui, d, 3);
data/systemd-247~rc2/src/libsystemd-network/ndisc-router.c:45:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(NDISC_ROUTER_RAW(rt), raw, raw_size);
data/systemd-247~rc2/src/libsystemd-network/ndisc-router.c:535:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret_addr, ri + 8, NDISC_ROUTER_OPTION_LENGTH(rt) - 8);
data/systemd-247~rc2/src/libsystemd-network/network-internal.c:71:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(v + sizeof(sd_id128_t), name, l);
data/systemd-247~rc2/src/libsystemd-network/network-internal.c:153:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const wifi_iftype_table[NL80211_IFTYPE_MAX+1] = {
data/systemd-247~rc2/src/libsystemd-network/network-internal.c:674:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char sbuf[INET_ADDRSTRLEN];
data/systemd-247~rc2/src/libsystemd-network/network-internal.c:735:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[INET6_ADDRSTRLEN];
data/systemd-247~rc2/src/libsystemd-network/network-internal.c:789:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char sbuf[INET_ADDRSTRLEN];
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:314:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&client->mac_addr, addr, addr_len);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:320:17:  [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(&client->bcast_addr, bcast_addr, addr_len);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:394:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&client->client_id.raw.data, data, data_len);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:452:17:  [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(&client->client_id.ns.duid.raw.data, duid, duid_len);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:797:17:  [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(&packet->dhcp.chaddr, &client->mac_addr, ETH_ALEN);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:1643: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.
        char time_string[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:1758: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.
        char time_string[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:2087:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&release->dhcp.chaddr, &client->mac_addr, client->mac_addr_len);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:2121:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&release->dhcp.chaddr, &client->mac_addr, client->mac_addr_len);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-lease.c:330:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret, option, 4);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-lease.c:520:17:  [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(&route->dst_addr.s_addr, option, dst_octets);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-lease.c:878: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.
        char sbuf[INET_ADDRSTRLEN];
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-lease.c:1014:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char key[STRLEN("OPTION_000")+1];
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-server.c:257:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&link.ll.sll_addr, &packet->dhcp.chaddr, ETH_ALEN);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-server.c:419:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&packet->dhcp.chaddr, &req->message->chaddr, ETH_ALEN);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-server.c:594:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&packet->dhcp.chaddr, chaddr, ETH_ALEN);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-server.c:618:25:  [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(&req->requested_ip, option, sizeof(be32_t));
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-server.c:623:25:  [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(&req->server_id, option, sizeof(be32_t));
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-server.c:677:17:  [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((uint8_t*) data + 1, &message->chaddr, ETH_ALEN);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-server.c:871:33:  [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(&lease->chaddr, &req->message->chaddr,
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.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.
const char * dhcp6_message_type_table[_DHCP6_MESSAGE_MAX] = {
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:113:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char * dhcp6_message_status_table[_DHCP6_STATUS_MAX] = {
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:207:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&client->mac_addr, addr, addr_len);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:284:17:  [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(&client->duid.raw.data, duid, duid_len);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:941: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.
        char time_string[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:1558: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.
        char time_string[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-lease.c:149:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(addr, &lease->addr_iter->iaaddr.address,
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-lease.c:178:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(prefix, &lease->prefix_iter->iapdprefix.address,
data/systemd-247~rc2/src/libsystemd-network/sd-ipv4acd.c:209:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/sd-lldp.c:23:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const lldp_event_table[_SD_LLDP_EVENT_MAX] = {
data/systemd-247~rc2/src/libsystemd-network/sd-ndisc.c:26:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const ndisc_event_table[_SD_NDISC_EVENT_MAX] = {
data/systemd-247~rc2/src/libsystemd-network/sd-ndisc.c:264: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.
        char time_string[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/sd-radv.c:302: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.
        char time_string[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/sd-radv.c:529: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.
        char time_string_preferred[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/sd-radv.c:530: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.
        char time_string_valid[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/sd-radv.c:650: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.
        char time_string_valid[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/sd-radv.c:752:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(opt_rdnss + 1, dns, n_dns * sizeof(struct in6_addr));
data/systemd-247~rc2/src/libsystemd-network/test-dhcp-client.c:151:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ifname[IFNAMSIZ];
data/systemd-247~rc2/src/libsystemd-network/test-dhcp-client.c:456:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&test_addr_acq_ack[26], &udp_check, sizeof(udp_check));
data/systemd-247~rc2/src/libsystemd-network/test-dhcp-client.c:457:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&test_addr_acq_ack[32], &xid, sizeof(xid));
data/systemd-247~rc2/src/libsystemd-network/test-dhcp-client.c:458:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&test_addr_acq_ack[56], &mac_addr, ETHER_ADDR_LEN);
data/systemd-247~rc2/src/libsystemd-network/test-dhcp-client.c:487:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&test_addr_acq_offer[26], &udp_check, sizeof(udp_check));
data/systemd-247~rc2/src/libsystemd-network/test-dhcp-client.c:488:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&test_addr_acq_offer[32], &xid, sizeof(xid));
data/systemd-247~rc2/src/libsystemd-network/test-dhcp-client.c:489:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&test_addr_acq_offer[56], &mac_addr, ETHER_ADDR_LEN);
data/systemd-247~rc2/src/libsystemd-network/test-dhcp6-client.c:602:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(msg_reply, &reply.transaction_id, 4);
data/systemd-247~rc2/src/libsystemd-network/test-dhcp6-client.c:604:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&msg_reply[26], test_duid, sizeof(test_duid));
data/systemd-247~rc2/src/libsystemd-network/test-dhcp6-client.c:606:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&msg_reply[44], &test_iaid, sizeof(test_iaid));
data/systemd-247~rc2/src/libsystemd-network/test-dhcp6-client.c:715:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(msg_advertise, &advertise.transaction_id, 4);
data/systemd-247~rc2/src/libsystemd-network/test-dhcp6-client.c:717:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&msg_advertise[8], test_duid, sizeof(test_duid));
data/systemd-247~rc2/src/libsystemd-network/test-dhcp6-client.c:719:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&msg_advertise[26], &test_iaid, sizeof(test_iaid));
data/systemd-247~rc2/src/libsystemd-network/test-ndisc-ra.c:249:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[168];
data/systemd-247~rc2/src/libsystemd-network/test-ndisc-rs.c:34: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.
        char buf[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/libsystemd-network/test-ndisc-rs.c:110:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buff[INET6_ADDRSTRLEN];
data/systemd-247~rc2/src/libsystemd-network/test-ndisc-rs.c:141:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buff[INET6_ADDRSTRLEN];
data/systemd-247~rc2/src/libsystemd-network/test-ndisc-rs.c:321: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.
        char time_string_min[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/test-ndisc-rs.c:322: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.
        char time_string_nd[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd-network/test-ndisc-rs.c:323: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.
        char time_string_max[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-creds.c:801:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(p, "re");
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:26:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char t[n+1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:28:25:  [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(t, p, n);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:68:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char t[n-1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:70:33:  [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(t, p + 1, n - 2);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:146:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char t[n];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:148:25:  [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(t, p + 1, n - 1);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:157:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char t[n-1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:159:25:  [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(t, p + 1, n - 2);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:220:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char t[n-1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:222:25:  [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(t, p + 1, n - 2);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:264:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&x, p, sz);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-gvariant.c:298:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p, &x, sz);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-match.c:875:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-match.c:1035: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.
        char buf[32];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:185:17:  [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(np, m->header, sizeof(struct bus_header));
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:252:17:  [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+8, s, l);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:272:17:  [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 + 8, s, l + 1);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:318:17:  [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 + 5, s, l + 1);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:521:17:  [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(m->creds.label, label, label_sz + 1);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1536:17:  [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(a, p, sz);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1607:25:  [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((uint8_t*) a + 4, p, sz - 4);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1614:25:  [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((uint8_t*) a + 1, p, sz - 1);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1619:25:  [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(a, p, sz);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1721:25:  [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, iov[i].iov_base, iov[i].iov_len);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1879:17:  [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((uint8_t*) a + 1, contents, l + 1);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2135:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(a+1, c->signature, l);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2162:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char t[n+1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2164:25:  [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(t, p, n);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2233:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char t[n+1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2235:33:  [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(t, p, n);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2440:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char s[k + 1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2441:33:  [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, t + 1, k);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2496:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char s[k - 1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2498:33:  [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, t + 1, k - 2);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2636:25:  [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, iov[i].iov_base, iov[i].iov_len);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2887:17:  [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((uint8_t*) d + 2, signature, l);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:3236:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char t[j+1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:3237:25:  [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(t, c->signature + c->index + n, j);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:3856:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char t[n+1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:3858:25:  [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(t, p, n);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:3900:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char t[n+1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:3902:25:  [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(t, p, n);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4503:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char s[k + 1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4504:33:  [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, t + 1, k);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4571:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char s[k - 1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4572:33:  [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, t + 1, k - 2);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4683:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char s[k+1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4684:25:  [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, types+1, k);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4751:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char s[k-1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4752:25:  [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, types+1, k-2);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:5091:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char sig[l + 1], *s = sig;
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:5140:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char sig[l + 1], *s = sig;
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:355:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p + b->auth_iovec[0].iov_len, t, l);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:367: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.
        char t[3 + 32 + 2 + 1];
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:1055:25:  [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(CMSG_DATA(control), m->fds, sizeof(int) * m->n_fds);
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:507:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char * const table[_BUS_STATE_MAX] = {
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:757:17:  [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(b->sockaddr.un.sun_path, path, l);
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:771:17:  [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(b->sockaddr.un.sun_path+1, abstract, l);
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:838:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&b->sockaddr, result->ai_addr, result->ai_addrlen);
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:2688:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char sid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-marshal.c:177:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(s, "hallo");
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-match.c:129:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[32];
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-signature.c:9: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.
        char prefix[256];
data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c:418:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char fpath[PATH_MAX];
data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c:508:25:  [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(CMSG_DATA(cmsg), fds, sizeof(int) * n_fds);
data/systemd-247~rc2/src/libsystemd/sd-device/device-enumerator.c:427:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char syspath[strlen(path) + 1 + strlen(dent->d_name) + 1];
data/systemd-247~rc2/src/libsystemd/sd-device/device-monitor.c:52: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.
        char prefix[8];
data/systemd-247~rc2/src/libsystemd/sd-device/device-monitor.c:394:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char raw[8192];
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:235: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.
        char id[DECIMAL_STR_MAX(unsigned) * 2 + 1];
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:273:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char subsys[PATH_MAX];
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:641:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char subsys[PATH_MAX];
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:1140: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.
        char s[DECIMAL_STR_MAX(usec_t)];
data/systemd-247~rc2/src/libsystemd/sd-event/sd-event.c:1889: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 = open(path, O_PATH|O_CLOEXEC|
data/systemd-247~rc2/src/libsystemd/sd-event/sd-event.c:3700: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.
        char b[ELEMENTSOF(e->delays) * DECIMAL_STR_MAX(unsigned) + 1], *p;
data/systemd-247~rc2/src/libsystemd/sd-event/test-event.c:502:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[DECIMAL_STR_MAX(unsigned)+1];
data/systemd-247~rc2/src/libsystemd/sd-hwdb/hwdb-util.c:474: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).
        f = fopen(filename, "re");
data/systemd-247~rc2/src/libsystemd/sd-hwdb/sd-hwdb.c:41: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.
        char bytes[LINE_MAX];
data/systemd-247~rc2/src/libsystemd/sd-hwdb/sd-hwdb.c:61:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf->bytes + buf->len, s, len);
data/systemd-247~rc2/src/libsystemd/sd-hwdb/sd-hwdb.c:324:27:  [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).
                hwdb->f = fopen(hwdb_bin_path, "re");
data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.c:15:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *id128_to_uuid_string(sd_id128_t id, char s[static ID128_UUID_STRING_MAX]) {
data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.c:15:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *id128_to_uuid_string(sd_id128_t id, char s[static ID128_UUID_STRING_MAX]) {
data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.c:82: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.
        char buffer[36 + 2];
data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.c:140: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 = open(p, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.c:148: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.
        char buffer[36 + 2];
data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.c:184: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 = open(p, O_WRONLY|O_CREAT|O_CLOEXEC|O_NOCTTY|O_TRUNC, 0444);
data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.h:13:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *id128_to_uuid_string(sd_id128_t id, char s[static ID128_UUID_STRING_MAX]);
data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.h:13:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *id128_to_uuid_string(sd_id128_t id, char s[static ID128_UUID_STRING_MAX]);
data/systemd-247~rc2/src/libsystemd/sd-id128/sd-id128.c:21:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
_public_ char *sd_id128_to_string(sd_id128_t id, char s[_SD_ARRAY_STATIC SD_ID128_STRING_MAX]) {
data/systemd-247~rc2/src/libsystemd/sd-id128/sd-id128.c:21:50:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
_public_ char *sd_id128_to_string(sd_id128_t id, char s[_SD_ARRAY_STATIC SD_ID128_STRING_MAX]) {
data/systemd-247~rc2/src/libsystemd/sd-login/sd-login.c:355: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.
        char t[DECIMAL_STR_MAX(uid_t)];
data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-message.c:711:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(data, attr_data, size);
data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-message.c:881:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(data, attr_data, sizeof(struct ether_addr));
data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-message.c:903:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(data->addr.bytes, attr_data, r);
data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-message.c:927:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(info, attr_data, sizeof(struct ifa_cacheinfo));
data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-message.c:950:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(data, attr_data, FAMILY_ADDRESS_SIZE(family));
data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-util.c:14: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.
        char old_name[IF_NAMESIZE + 1] = {};
data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-util.c:409:41:  [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(&m->gateway.address, RTA_DATA(attr), FAMILY_ADDRESS_SIZE(family));
data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-util.c:428:41:  [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(&m->gateway, RTA_DATA(attr), FAMILY_ADDRESS_SIZE(gw_family) + sizeof(gw_family));
data/systemd-247~rc2/src/libsystemd/sd-netlink/test-netlink.c:40: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.
        char buffer[ETHER_ADDR_TO_STRING_MAX];
data/systemd-247~rc2/src/libsystemd/sd-netlink/test-netlink.c:521:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[STRLEN("hoge") + DECIMAL_STR_MAX(uint32_t)];
data/systemd-247~rc2/src/libsystemd/sd-netlink/test-netlink.c:537:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char expected[STRLEN("hoge") + DECIMAL_STR_MAX(uint32_t)];
data/systemd-247~rc2/src/libsystemd/sd-netlink/test-netlink.c:561:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[STRLEN("hoge") + DECIMAL_STR_MAX(uint32_t)];
data/systemd-247~rc2/src/libsystemd/sd-network/sd-network.c:97: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.
        char path[STRLEN("/run/systemd/netif/links/") + DECIMAL_STR_MAX(ifindex) + 1];
data/systemd-247~rc2/src/libsystemd/sd-network/sd-network.c:120: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.
        char path[STRLEN("/run/systemd/netif/links/") + DECIMAL_STR_MAX(ifindex) + 1];
data/systemd-247~rc2/src/libsystemd/sd-network/sd-network.c:256: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.
        char path[STRLEN("/run/systemd/netif/links/") + DECIMAL_STR_MAX(ifindex) + 1];
data/systemd-247~rc2/src/libsystemd/sd-network/sd-network.c:275: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.
        char path[STRLEN("/run/systemd/netif/links/") + DECIMAL_STR_MAX(ifindex) + 1];
data/systemd-247~rc2/src/libsystemd/sd-path/sd-path.c:90: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).
        f = fopen(fn, "re");
data/systemd-247~rc2/src/libsystemd/sd-resolve/sd-resolve.c:215:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((uint8_t*) p, &s, sizeof(AddrInfoSerialization));
data/systemd-247~rc2/src/libsystemd/sd-resolve/sd-resolve.c:216:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy((uint8_t*) p + sizeof(AddrInfoSerialization), ai->ai_addr, ai->ai_addrlen);
data/systemd-247~rc2/src/libsystemd/sd-resolve/sd-resolve.c:374:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               char hostbuf[NI_MAXHOST], servbuf[NI_MAXSERV];
data/systemd-247~rc2/src/libsystemd/sd-resolve/sd-resolve.c:382:16:  [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(&sa, (const uint8_t *) ni_req + sizeof(NameInfoRequest), ni_req->sockaddr_len);
data/systemd-247~rc2/src/libudev/libudev-util.c:23: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.
        char temp[UTIL_PATH_SIZE], *subsys, *sysname, *attr;
data/systemd-247~rc2/src/libudev/libudev-util.c:90:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&dest[j], "\\x2f", 4);
data/systemd-247~rc2/src/libudev/libudev-util.c:97:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(&dest[j], "\\x5c", 4);
data/systemd-247~rc2/src/locale/keymap-util.c:84:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void locale_simplify(char *locale[_VARIABLE_LC_MAX]) {
data/systemd-247~rc2/src/locale/keymap-util.c:531:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(map, "re");
data/systemd-247~rc2/src/locale/keymap-util.c:626: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).
        f = fopen(map, "re");
data/systemd-247~rc2/src/locale/keymap-util.c:720: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).
        f = fopen(map, "re");
data/systemd-247~rc2/src/locale/keymap-util.h:13: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.
        char *locale[_VARIABLE_LC_MAX];
data/systemd-247~rc2/src/locale/keymap-util.h:43:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void locale_simplify(char *locale[_VARIABLE_LC_MAX]);
data/systemd-247~rc2/src/locale/localectl.c:53:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        _cleanup_(locale_variables_freep) char *variables[_VARIABLE_LC_MAX] = {};
data/systemd-247~rc2/src/locale/localectl.c:280: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).
        f = fopen("/usr/share/X11/xkb/rules/base.lst", "re");
data/systemd-247~rc2/src/locale/localed.c:263: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.
                const char *assignment,
data/systemd-247~rc2/src/locale/localed.c:264:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char *new_locale[static _VARIABLE_LC_MAX],
data/systemd-247~rc2/src/locale/localed.c:302:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        _cleanup_(locale_variables_freep) char *new_locale[_VARIABLE_LC_MAX] = {};
data/systemd-247~rc2/src/login/loginctl.c:453: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.
        char since1[FORMAT_TIMESTAMP_RELATIVE_MAX];
data/systemd-247~rc2/src/login/loginctl.c:454: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.
        char since2[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/login/loginctl.c:584: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.
        char since1[FORMAT_TIMESTAMP_RELATIVE_MAX];
data/systemd-247~rc2/src/login/loginctl.c:585: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.
        char since2[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/login/logind-action.c:21:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char * const target_table[_HANDLE_ACTION_MAX] = {
data/systemd-247~rc2/src/login/logind-action.c:45:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char * const message_table[_HANDLE_ACTION_MAX] = {
data/systemd-247~rc2/src/login/logind-brightness.c:144:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char brs[DECIMAL_STR_MAX(uint32_t)+1];
data/systemd-247~rc2/src/login/logind-button.c:331: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.
        char name[256];
data/systemd-247~rc2/src/login/logind-button.c:340: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 = open(p, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/login/logind-core.c:515: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.
        char name[sizeof("autovt@tty.service") + DECIMAL_STR_MAX(unsigned)];
data/systemd-247~rc2/src/login/logind-dbus.c:2844:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[DECIMAL_STR_MAX(uint64_t) + 1];
data/systemd-247~rc2/src/login/logind-dbus.c:2856:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[DECIMAL_STR_MAX(uint64_t) + 1];
data/systemd-247~rc2/src/login/logind-inhibit.c:319:30:  [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).
                i->fifo_fd = open(i->fifo_path, O_RDONLY|O_CLOEXEC|O_NONBLOCK);
data/systemd-247~rc2/src/login/logind-inhibit.c:337:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        r = open(i->fifo_path, O_WRONLY|O_CLOEXEC|O_NONBLOCK);
data/systemd-247~rc2/src/login/logind-inhibit.c:455:29:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static thread_local char buffer[STRLEN(
data/systemd-247~rc2/src/login/logind-seat.c:172: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.
        char p[sizeof("/dev/tty") + DECIMAL_STR_MAX(unsigned)];
data/systemd-247~rc2/src/login/logind-seat.c:366: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.
        char t[64];
data/systemd-247~rc2/src/login/logind-session-device.c:132: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 = open(sd->node, O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/login/logind-session.c:1082:30:  [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).
                s->fifo_fd = open(s->fifo_path, O_RDONLY|O_CLOEXEC|O_NONBLOCK);
data/systemd-247~rc2/src/login/logind-session.c:1100:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        r = open(s->fifo_path, O_WRONLY|O_CLOEXEC|O_NONBLOCK);
data/systemd-247~rc2/src/login/logind-session.c:1194: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.
        char path[sizeof("/dev/tty") + DECIMAL_STR_MAX(s->vtnr)];
data/systemd-247~rc2/src/login/logind-session.c:1202: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(path, "/dev/tty%u", s->vtnr);
data/systemd-247~rc2/src/login/logind-user.c:43: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.
        char lu[DECIMAL_STR_MAX(uid_t) + 1];
data/systemd-247~rc2/src/login/logind-user.c:870:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char s[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/login/logind-utmp.c:61: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.
        char date[FORMAT_TIMESTAMP_MAX] = {};
data/systemd-247~rc2/src/login/logind.c:619: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).
        m->reserve_vt_fd = open(p, O_RDWR|O_NOCTTY|O_CLOEXEC|O_NONBLOCK);
data/systemd-247~rc2/src/login/logind.c:762:32:  [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).
        m->console_active_fd = open("/sys/class/tty/tty0/active", O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/login/pam_systemd.c:218:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(c, display+1, k);
data/systemd-247~rc2/src/login/pam_systemd.c:709:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char rt[STRLEN("/run/user/") + DECIMAL_STR_MAX(uid_t)];
data/systemd-247~rc2/src/login/pam_systemd.c:932:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[DECIMAL_STR_MAX(vtnr)];
data/systemd-247~rc2/src/login/pam_systemd.c:933: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.
                sprintf(buf, "%u", vtnr);
data/systemd-247~rc2/src/login/user-runtime-dir.c:72:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char options[sizeof("mode=0700,uid=,gid=,size=,nr_inodes=,smackfsroot=*")
data/systemd-247~rc2/src/login/user-runtime-dir.c:140:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char runtime_path[sizeof("/run/user") + DECIMAL_STR_MAX(uid_t)];
data/systemd-247~rc2/src/login/user-runtime-dir.c:165: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.
        char runtime_path[sizeof("/run/user") + DECIMAL_STR_MAX(uid_t)];
data/systemd-247~rc2/src/machine-id-setup/machine-id-setup-main.c:108: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.
        char buf[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/machine/machine-dbus.c:994: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).
                mntfd = open(q, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/machine/machine-dbus.c:1157: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).
                mntfd = open(q, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/machine/machine-dbus.c:1168: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).
                containerfd = open(container_dirname, O_CLOEXEC|O_RDONLY|O_NOCTTY|O_DIRECTORY);
data/systemd-247~rc2/src/machine/machine-dbus.c:1236: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).
                fd = open("/", O_RDONLY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/machine/machine-dbus.c:1263: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).
                        dfd = open("/", O_RDONLY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/machine/machine.c:654: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.
        char p[STRLEN("/proc//uid_map") + DECIMAL_STR_MAX(pid_t) + 1];
data/systemd-247~rc2/src/machine/machine.c:678: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).
        f = fopen(p, "re");
data/systemd-247~rc2/src/machine/machine.c:716: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).
        f = fopen(p, "re");
data/systemd-247~rc2/src/machine/machine.c:770: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).
        f = fopen(p, "re");
data/systemd-247~rc2/src/machine/machine.c:844: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).
        f = fopen(p, "re");
data/systemd-247~rc2/src/machine/machinectl.c:194:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_ifi[DECIMAL_STR_MAX(int) + 2], buffer[MAX(INET6_ADDRSTRLEN, INET_ADDRSTRLEN)];
data/systemd-247~rc2/src/machine/machinectl.c:506: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.
        char since1[FORMAT_TIMESTAMP_RELATIVE_MAX];
data/systemd-247~rc2/src/machine/machinectl.c:507: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.
        char since2[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/machine/machinectl.c:559:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char name[IF_NAMESIZE+1];
data/systemd-247~rc2/src/machine/machinectl.c:773:17:  [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(&id, p, size);
data/systemd-247~rc2/src/machine/machinectl.c:827: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.
        char ts_relative[FORMAT_TIMESTAMP_RELATIVE_MAX];
data/systemd-247~rc2/src/machine/machinectl.c:828: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.
        char ts_absolute[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/machine/machinectl.c:829: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.
        char bs[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/machine/machinectl.c:830: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.
        char bs_exclusive[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/machine/machinectl.c:939: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.
        char bs[FORMAT_BYTES_MAX], *s;
data/systemd-247~rc2/src/machine/machinectl.c:1890: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).
                fd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/machine/machinectl.c:1950: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).
                fd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/machine/machinectl.c:2004: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).
                fd = open(path, O_DIRECTORY|O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/machine/machinectl.c:2062: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).
                fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC|O_NOCTTY, 0666);
data/systemd-247~rc2/src/machine/machinectl.c:2104: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).
                fd = open(path, O_WRONLY|O_CREAT|O_TRUNC|O_CLOEXEC|O_NOCTTY, 0666);
data/systemd-247~rc2/src/machine/machinectl.c:2402: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.
        char fb[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/machine/machined-dbus.c:52: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 = open("/var/lib/machines", O_RDONLY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/machine/machined-dbus.c:78: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 = open("/var/lib/machines", O_RDONLY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/machine/machined-dbus.c:251:17:  [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(&id, v, n);
data/systemd-247~rc2/src/network/generator/network-generator.c:44:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const dracut_dhcp_type_table[_DHCP_TYPE_MAX] = {
data/systemd-247~rc2/src/network/generator/network-generator.c:58:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const networkd_dhcp_type_table[_DHCP_TYPE_MAX] = {
data/systemd-247~rc2/src/network/generator/network-generator.c:1055: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.
        char mac[ETHER_ADDR_TO_STRING_MAX];
data/systemd-247~rc2/src/network/generator/network-generator.c:1126: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.
        char mac[ETHER_ADDR_TO_STRING_MAX];
data/systemd-247~rc2/src/network/netdev/netdev.c:509:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(v + sizeof(sd_id128_t), ifname, l);
data/systemd-247~rc2/src/network/netdev/netdev.c:516:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(mac->ether_addr_octet, &result, ETH_ALEN);
data/systemd-247~rc2/src/network/netdev/netdev.c:668:16:  [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 = fopen(filename, "re");
data/systemd-247~rc2/src/network/netdev/tuntap.c:60: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 = open(TUN_DEV, O_RDWR|O_CLOEXEC);
data/systemd-247~rc2/src/network/netdev/wireguard.c:360:17:  [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(&peer->endpoint, ai->ai_addr, ai->ai_addrlen);
data/systemd-247~rc2/src/network/netdev/wireguard.c:470: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.
                const char *rvalue,
data/systemd-247~rc2/src/network/netdev/wireguard.c:509:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret, key, WG_KEY_LEN);
data/systemd-247~rc2/src/network/netdev/wireguard.c:859:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int wireguard_read_key_file(const char *filename, uint8_t dest[static WG_KEY_LEN]) {
data/systemd-247~rc2/src/network/netdev/wireguard.c:881:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dest, key, WG_KEY_LEN);
data/systemd-247~rc2/src/network/networkctl.c:133: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.
        char name[IFNAMSIZ+1];
data/systemd-247~rc2/src/network/networkctl.c:134: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.
        char netdev_kind[NETDEV_KIND_MAX];
data/systemd-247~rc2/src/network/networkctl.c:387:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/network/networkctl.c:620:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char devid[2 + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/network/networkctl.c:734: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.
        char modalias[STRLEN("OUI:XXYYXXYYXXYY") + 1], *desc;
data/systemd-247~rc2/src/network/networkctl.c:905:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[IF_NAMESIZE+1];
data/systemd-247~rc2/src/network/networkctl.c:956:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[IF_NAMESIZE+1];
data/systemd-247~rc2/src/network/networkctl.c:964:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char *p, s[INET_ADDRSTRLEN];
data/systemd-247~rc2/src/network/networkctl.c:1093: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).
        f = fopen(p, "re");
data/systemd-247~rc2/src/network/networkctl.c:1345:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char m1[STRLEN("_KERNEL_DEVICE=n") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/network/networkctl.c:1550:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ea[ETHER_ADDR_TO_STRING_MAX];
data/systemd-247~rc2/src/network/networkctl.c:1569:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char min_str[DECIMAL_STR_MAX(uint32_t)], max_str[DECIMAL_STR_MAX(uint32_t)];
data/systemd-247~rc2/src/network/networkctl.c:1680:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ttl[CONST_MAX(STRLEN("auto") + 1, DECIMAL_STR_MAX(uint8_t))];
data/systemd-247~rc2/src/network/networkctl.c:1777:25:  [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(ttl, "auto");
data/systemd-247~rc2/src/network/networkctl.c:1955:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[ETHER_ADDR_TO_STRING_MAX];
data/systemd-247~rc2/src/network/networkctl.c:1974:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char tx[FORMAT_BYTES_MAX], rx[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/network/networkctl.c:2504:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char ifname[IF_NAMESIZE + 1];
data/systemd-247~rc2/src/network/networkctl.c:2542:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char ifname[IF_NAMESIZE + 1];
data/systemd-247~rc2/src/network/networkctl.c:2666:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char ifname[IF_NAMESIZE + 1];
data/systemd-247~rc2/src/network/networkd-address.c:27:17:  [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(&ret->s6_addr[8], &link->hw_addr.addr.infiniband[12], 8);
data/systemd-247~rc2/src/network/networkd-address.c:1058: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.
        char valid_buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/network/networkd-can.c:188:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char time_string[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/network/networkd-conf.c:39:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/network/networkd-conf.c:188:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret->raw_data, raw_data, count);
data/systemd-247~rc2/src/network/networkd-dhcp-common.c:77:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&duid->raw_data, &uuid, sizeof(sd_id128_t));
data/systemd-247~rc2/src/network/networkd-dhcp-common.c:112:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&manager->product_uuid, a, sz);
data/systemd-247~rc2/src/network/networkd-dhcp-common.c:919:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const dhcp_option_data_type_table[_DHCP_OPTION_DATA_MAX] = {
data/systemd-247~rc2/src/network/networkd-dhcp-server.c:209: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).
        f = fopen(PRIVATE_UPLINK_RESOLV_CONF, "re");
data/systemd-247~rc2/src/network/networkd-dhcp6.c:392:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(address->in_addr.in6.s6_addr + 8, link->network->dhcp6_pd_token.in6.s6_addr + 8, 8);
data/systemd-247~rc2/src/network/networkd-link.c:2483: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.
        char ifindex_str[2 + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/network/networkd-link.c:2506: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.
                sprintf(ifindex_str, "n%d", link->ifindex);
data/systemd-247~rc2/src/network/networkd-link.c:2767:17:  [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(link->hw_addr.addr.bytes, hw_addr.addr.bytes, hw_addr.length);
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:158:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(h->ether_dhost, lldp_multicast_addr + mode, ETH_ALEN);
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:159:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(h->ether_shost, hwaddr, ETH_ALEN);
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:268:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(sa.ll.sll_addr, address, ETH_ALEN);
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:285: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.
        char machine_id_string[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/network/networkd-ndisc.c:610:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(addr->s6_addr, prefix->s6_addr, l);
data/systemd-247~rc2/src/network/networkd-ndisc.c:611:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(addr->s6_addr + l, &rid, 16 - l);
data/systemd-247~rc2/src/network/networkd-ndisc.c:657:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(new_address->s6_addr, address->s6_addr, 8);
data/systemd-247~rc2/src/network/networkd-ndisc.c:658:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                        memcpy(new_address->s6_addr + 8, j->prefix.s6_addr + 8, 8);
data/systemd-247~rc2/src/network/networkd-network-bus.c:19: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.
        char buf[ETHER_ADDR_TO_STRING_MAX];
data/systemd-247~rc2/src/network/networkd-network.c:290:16:  [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 = fopen(filename, "re");
data/systemd-247~rc2/src/network/networkd-radv.c:910:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const radv_prefix_delegation_table[_RADV_PREFIX_DELEGATION_MAX] = {
data/systemd-247~rc2/src/network/networkd-route.c:43:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const route_type_table[__RTN_MAX] = {
data/systemd-247~rc2/src/network/networkd-route.c:728:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char scope[ROUTE_SCOPE_STR_MAX], table[ROUTE_TABLE_STR_MAX], protocol[ROUTE_PROTOCOL_STR_MAX];
data/systemd-247~rc2/src/network/networkd-route.c:1073:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char scope[ROUTE_SCOPE_STR_MAX], table[ROUTE_TABLE_STR_MAX], protocol[ROUTE_PROTOCOL_STR_MAX];
data/systemd-247~rc2/src/network/networkd-route.c:1311:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_scope[ROUTE_SCOPE_STR_MAX], buf_table[ROUTE_TABLE_STR_MAX],
data/systemd-247~rc2/src/network/networkd-sriov.c:139:17:  [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(ivm.mac, &sr_iov->mac, ETH_ALEN);
data/systemd-247~rc2/src/network/networkd-wifi.c:54:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[ETHER_ADDR_TO_STRING_MAX];
data/systemd-247~rc2/src/network/tc/teql.c:11: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.
        char kind[STRLEN("teql") + DECIMAL_STR_MAX(unsigned)];
data/systemd-247~rc2/src/nspawn/nspawn-cgroup.c:27: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 = open(path, O_RDONLY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/nspawn/nspawn-cgroup.c:208: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).
        f = fopen("/proc/self/cgroup", "re");
data/systemd-247~rc2/src/nspawn/nspawn-expose-ports.c:39:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char v[split - e + 1];
data/systemd-247~rc2/src/nspawn/nspawn-expose-ports.c:41:17:  [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(v, e, split - e);
data/systemd-247~rc2/src/nspawn/nspawn-network.c:88:17:  [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(i, &idx, sizeof(idx));
data/systemd-247~rc2/src/nspawn/nspawn-network.c:96:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(mac->ether_addr_octet, &result, ETH_ALEN);
data/systemd-247~rc2/src/nspawn/nspawn-network.c:207:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 table[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
data/systemd-247~rc2/src/nspawn/nspawn-network.c:214: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.
        char new_ifname[IFNAMSIZ];
data/systemd-247~rc2/src/nspawn/nspawn-network.c:228:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(new_ifname, ifname, IFNAMSIZ - 5);
data/systemd-247~rc2/src/nspawn/nspawn-network.c:235:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(new_ifname, ifname, IFNAMSIZ-1);
data/systemd-247~rc2/src/nspawn/nspawn-network.c:246:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int setup_veth(const char *machine_name,
data/systemd-247~rc2/src/nspawn/nspawn-network.c:248:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               char iface_name[IFNAMSIZ],
data/systemd-247~rc2/src/nspawn/nspawn-network.c:480: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.
        char ifi_str[2 + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/nspawn/nspawn-network.c:491: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(ifi_str, "n%i", ifi);
data/systemd-247~rc2/src/nspawn/nspawn-network.h:10:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge);
data/systemd-247~rc2/src/nspawn/nspawn-network.h:10:53:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int setup_veth(const char *machine_name, pid_t pid, char iface_name[IFNAMSIZ], bool bridge);
data/systemd-247~rc2/src/nspawn/nspawn-oci.c:1100:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char access[4];
data/systemd-247~rc2/src/nspawn/nspawn-patch-uid.c:25: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/nspawn/nspawn-patch-uid.c:54: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/nspawn/nspawn-patch-uid.c:480: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 = open(path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW|O_NOATIME);
data/systemd-247~rc2/src/nspawn/nspawn-settings.c:776:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const resolv_conf_mode_table[_RESOLV_CONF_MODE_MAX] = {
data/systemd-247~rc2/src/nspawn/nspawn-settings.c:859:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const timezone_mode_table[_TIMEZONE_MODE_MAX] = {
data/systemd-247~rc2/src/nspawn/nspawn.c:2375: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).
                fd = open(j, O_CREAT|O_EXCL|O_WRONLY|O_CLOEXEC|O_NOFOLLOW, 0600);
data/systemd-247~rc2/src/nspawn/nspawn.c:2436: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 = open(from, O_RDWR|O_NONBLOCK|O_CLOEXEC);
data/systemd-247~rc2/src/nspawn/nspawn.c:2474: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.
        char id[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/nspawn/nspawn.c:3107: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.
        char as_uuid[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/nspawn/nspawn.c:3862:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char lock_path[STRLEN("/run/systemd/nspawn-uid/") + DECIMAL_STR_MAX(uid_t) + 1];
data/systemd-247~rc2/src/nspawn/nspawn.c:3916: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.
        char uid_map[STRLEN("/proc//uid_map") + DECIMAL_STR_MAX(uid_t) + 1], line[DECIMAL_STR_MAX(uid_t)*3+3+1];
data/systemd-247~rc2/src/nspawn/nspawn.c:3937: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.
        char buf[NOTIFY_BUFFER_MAX+1];
data/systemd-247~rc2/src/nspawn/nspawn.c:4358:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(j, "re");
data/systemd-247~rc2/src/nspawn/nspawn.c:4388:29:  [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(p, "re");
data/systemd-247~rc2/src/nspawn/nspawn.c:4432:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
               char veth_name[IFNAMSIZ], bool *veth_created,
data/systemd-247~rc2/src/nspawn/nspawn.c:4523:34:  [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).
                child_netns_fd = open(arg_network_namespace_path, O_RDONLY|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/nspawn/nspawn.c:5070: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.
        char udev_path[STRLEN("/proc//ns/net") + DECIMAL_STR_MAX(pid_t)];
data/systemd-247~rc2/src/nspawn/nspawn.c:5121: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.
        char veth_name[IFNAMSIZ] = "";
data/systemd-247~rc2/src/nss-myhostname/nss-myhostname.c:103:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r_name, canonical, l+1);
data/systemd-247~rc2/src/nss-myhostname/nss-myhostname.c:113:17:  [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(r_tuple->addr, LOCALADDRESS_IPV6, 16);
data/systemd-247~rc2/src/nss-myhostname/nss-myhostname.c:138:17:  [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(r_tuple->addr, &a->address, 16);
data/systemd-247~rc2/src/nss-myhostname/nss-myhostname.c:216:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r_name, canonical, l_canonical+1);
data/systemd-247~rc2/src/nss-myhostname/nss-myhostname.c:221:17:  [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(r_alias, additional, l_additional+1);
data/systemd-247~rc2/src/nss-myhostname/nss-myhostname.c:245:25:  [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(r_addr + i*ALIGN(alen), &a->address, alen);
data/systemd-247~rc2/src/nss-myhostname/nss-myhostname.c:255:25:  [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(r_addr, LOCALADDRESS_IPV6, 16);
data/systemd-247~rc2/src/nss-mymachines/nss-mymachines.c:156:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r_name, name, l+1);
data/systemd-247~rc2/src/nss-mymachines/nss-mymachines.c:193:17:  [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(r_tuple->addr, a, sz);
data/systemd-247~rc2/src/nss-mymachines/nss-mymachines.c:311:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r_name, name, l+1);
data/systemd-247~rc2/src/nss-mymachines/nss-mymachines.c:346:17:  [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(r_addr + i*ALIGN(alen), a, alen);
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:58:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&in6, a, sizeof(struct in6_addr));
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:253:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r_name, canonical, l+1);
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:274:17:  [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(r_tuple->addr, &q.address, q.address_size);
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:402:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r_name, canonical, l+1);
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:428:17:  [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(r_addr + i*ALIGN(alen), &q.address, alen);
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:594:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(r_addr, addr, len);
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:621:17:  [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(z, n, l+1);
data/systemd-247~rc2/src/oom/oomd-util.c:33: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.
        char buf[DECIMAL_STR_MAX(uint64_t) + 1];
data/systemd-247~rc2/src/oom/oomd-util.c:326: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).
        f = fopen(proc_swaps_path, "re");
data/systemd-247~rc2/src/oom/oomd-util.c:390: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.
        char swap[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/oom/oomd-util.c:410: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.
        char tbuf[FORMAT_TIMESPAN_MAX], mem_use[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/oom/oomd-util.c:411: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.
        char mem_min[FORMAT_BYTES_MAX], mem_low[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/oom/oomd-util.c:441: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.
        char used[FORMAT_BYTES_MAX], total[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/oom/test-oomd-util.c:153:19:  [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).
        assert_se(mkstemp(path));
data/systemd-247~rc2/src/partition/growfs.c:47: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).
        main_devfd = open(main_devpath, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/partition/growfs.c:201: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.
        char fb[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/partition/growfs.c:229: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).
        mountfd = open(arg_target, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/partition/growfs.c:237: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).
        devfd = open(devpath, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/partition/repart.c:1360:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char md[SHA256_DIGEST_LENGTH];
data/systemd-247~rc2/src/partition/repart.c:1416:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/partition/repart.c:1766: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.
        char format_buffer1[FORMAT_BYTES_MAX], format_buffer2[FORMAT_BYTES_MAX], *buf;
data/systemd-247~rc2/src/partition/repart.c:1833:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char uuid_buffer[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/partition/repart.c:1880:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char s[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/partition/repart.c:1961: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.
        char ids[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/partition/repart.c:2382: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.
        char suuid[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/partition/repart.c:2461: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).
                dev_fd = open(vol, O_RDWR|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/partition/repart.c:2514:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/partition/repart.c:2827:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char md[SHA256_DIGEST_LENGTH];
data/systemd-247~rc2/src/partition/repart.c:3034:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buf[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/partition/repart.c:3067:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char ids[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/partition/repart.c:3346:29:  [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).
                source_fd = open(p->copy_blocks_path, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/partition/repart.c:3378: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).
                        source_fd = open(bdev, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/partition/repart.c:3751: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 = open(p, mode);
data/systemd-247~rc2/src/partition/repart.c:3822:30:  [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(arg_node, O_RDONLY|O_CREAT|O_EXCL|O_CLOEXEC|O_NOFOLLOW, 0666);
data/systemd-247~rc2/src/partition/repart.c:3873: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.
        char buf1[FORMAT_BYTES_MAX], buf2[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/partition/repart.c:3887: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).
                *fd = open(node, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/partition/repart.c:3947: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.
        char buf[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/portable/portable.c:152:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(CMSG_DATA(cmsg), &data_fd, sizeof(int));
data/systemd-247~rc2/src/portable/portable.c:168: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.
        char buffer[PATH_MAX+2];
data/systemd-247~rc2/src/portable/portabled-bus.c:49: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 = open("/var/lib/portables", O_RDONLY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/portable/portabled-bus.c:75: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 = open("/var/lib/portables", O_RDONLY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/pstore/pstore.c:149:17:  [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(stpcpy(field, "FILE="), pe->content, pe->content_size);
data/systemd-247~rc2/src/pstore/pstore.c:314:25:  [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(dmesg + dmesg_size, pe->content, pe->content_size);
data/systemd-247~rc2/src/random-seed/random-seed.c:132: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).
                seed_fd = open(RANDOM_SEED, O_RDWR|O_CLOEXEC|O_NOCTTY|O_CREAT, 0600);
data/systemd-247~rc2/src/random-seed/random-seed.c:138:35:  [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).
                        seed_fd = open(RANDOM_SEED, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/random-seed/random-seed.c:151:29:  [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).
                random_fd = open("/dev/urandom", O_RDWR|O_CLOEXEC|O_NOCTTY, 0600);
data/systemd-247~rc2/src/random-seed/random-seed.c:160:29:  [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).
                random_fd = open("/dev/urandom", O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/random-seed/random-seed.c:164: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).
                seed_fd = open(RANDOM_SEED, O_WRONLY|O_CLOEXEC|O_NOCTTY|O_CREAT, 0600);
data/systemd-247~rc2/src/resolve/resolvectl.c:138: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.
        char rtt_str[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/resolve/resolvectl.c:165: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.
        char ifname[IF_NAMESIZE + 1];
data/systemd-247~rc2/src/resolve/resolvectl.c:1484: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.
        char ifi[DECIMAL_STR_MAX(int)], ifname[IF_NAMESIZE + 1] = "";
data/systemd-247~rc2/src/resolve/resolved-bus.c:111:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char p[DECIMAL_STR_MAX(q->answer_rcode)];
data/systemd-247~rc2/src/resolve/resolved-dns-answer.c:617:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(a->items, items, sizeof(DnsAnswerItem) * a->n_rrs);
data/systemd-247~rc2/src/resolve/resolved-dns-cache.c:197:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-cache.c:394: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.
        char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-cache.c:462:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ifname[IF_NAMESIZE + 1];
data/systemd-247~rc2/src/resolve/resolved-dns-cache.c:492: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.
        char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-cache.c:658:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-cache.c:738:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-cache.c:832: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.
        char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-cache.c:1096:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-dnssec.c:354:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(q+1, dnskey->dnskey.key, key_size*2);
data/systemd-247~rc2/src/resolve/resolved-dns-dnssec.c:1257:17:  [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, result, hash_size);
data/systemd-247~rc2/src/resolve/resolved-dns-dnssec.c:1270:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret, result, hash_size);
data/systemd-247~rc2/src/resolve/resolved-dns-dnssec.c:1641: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.
        char label[DNS_LABEL_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-packet.c:343:25:  [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->_data, (uint8_t*) p + ALIGN(sizeof(DnsPacket)), p->size);
data/systemd-247~rc2/src/resolve/resolved-dns-packet.c:501:17:  [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(w, d, l);
data/systemd-247~rc2/src/resolve/resolved-dns-packet.c:526:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char label[DNS_LABEL_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-packet.c:1241:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(d, q, sz);
data/systemd-247~rc2/src/resolve/resolved-dns-packet.c:1727:33:  [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(i->data, data, sz);
data/systemd-247~rc2/src/resolve/resolved-dns-query.c:380: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.
        char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-rr.c:825: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.
        char *s, k[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-rr.c:1010:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char expiration[STRLEN("YYYYMMDDHHmmSS") + 1], inception[STRLEN("YYYYMMDDHHmmSS") + 1];
data/systemd-247~rc2/src/resolve/resolved-dns-scope.c:1224:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-transaction.c:255: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.
        char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-transaction.c:304: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.
        char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-transaction.c:1632: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.
        char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-transaction.c:1811:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char s[DNS_RESOURCE_KEY_STRING_MAX], saux[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-transaction.c:2541: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.
        char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-transaction.c:2947:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char s[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-transaction.c:3037: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.
        char key_str[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-dns-trust-anchor.c:424:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                g = fopen(*f, "r");
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:297:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(i->data, key, strlen(key));
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:299:17:  [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(i->data + strlen(key), "=", 1);
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:300:17:  [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(i->data + strlen(key) + 1, value, strlen(value));
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:322:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(i->data, key, strlen(key));
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:324:17:  [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(i->data + strlen(key), "=", 1);
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:325:17:  [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(i->data + strlen(key) + 1, data, size);
data/systemd-247~rc2/src/resolve/resolved-dnstls-openssl.c:103:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char errbuf[256];
data/systemd-247~rc2/src/resolve/resolved-dnstls-openssl.c:116:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char errbuf[256];
data/systemd-247~rc2/src/resolve/resolved-dnstls-openssl.c:183:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char errbuf[256];
data/systemd-247~rc2/src/resolve/resolved-dnstls-openssl.c:212:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char errbuf[256];
data/systemd-247~rc2/src/resolve/resolved-dnstls-openssl.c:281:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char errbuf[256];
data/systemd-247~rc2/src/resolve/resolved-dnstls-openssl.c:317:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char errbuf[256];
data/systemd-247~rc2/src/resolve/resolved-dnstls-openssl.c:354:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char errbuf[256];
data/systemd-247~rc2/src/resolve/resolved-etc-hosts.c:232: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).
        f = fopen("/etc/hosts", "re");
data/systemd-247~rc2/src/resolve/resolved-link-bus.c:730: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.
        char *p, ifindex[DECIMAL_STR_MAX(link->ifindex)];
data/systemd-247~rc2/src/resolve/resolved-manager.c:324: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.
        char label[DNS_LABEL_MAX];
data/systemd-247~rc2/src/resolve/resolved-manager.c:410: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.
        char label[DNS_LABEL_MAX], *h;
data/systemd-247~rc2/src/resolve/resolved-manager.c:480: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).
        m->hostname_fd = open("/proc/sys/kernel/hostname",
data/systemd-247~rc2/src/resolve/resolved-manager.c:1420:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char s[DNS_RESOURCE_KEY_STRING_MAX];
data/systemd-247~rc2/src/resolve/resolved-resolv-conf.c:104: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).
        f = fopen("/etc/resolv.conf", "re");
data/systemd-247~rc2/src/resolve/resolved-resolv-conf.c:385:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char * const table[_RESOLV_CONF_MODE_MAX] = {
data/systemd-247~rc2/src/resolve/test-resolved-etc-hosts.c:21: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).
        f = fopen("/etc/hosts", "re");
data/systemd-247~rc2/src/resolve/test-resolved-etc-hosts.c:136:23:  [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).
        assert_se(f = fopen(fname, "re"));
data/systemd-247~rc2/src/rfkill/rfkill.c:290: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).
                c.rfkill_fd = open("/dev/rfkill", O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/run-generator/run-generator.c:67: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).
        f = fopen(p, "wxe");
data/systemd-247~rc2/src/run/run.c:1330:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/run/run.c:1336:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/run/run.c:1342:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char bytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/run/run.c:1346:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char bytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/run/run.c:1350:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char bytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/run/run.c:1354:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char bytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/run/run.c:1402:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret, p, l);
data/systemd-247~rc2/src/shared/acpi-fpdt.c:17: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.
        char signature[4];
data/systemd-247~rc2/src/shared/acpi-fpdt.c:21: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.
        char oem_id[6];
data/systemd-247~rc2/src/shared/acpi-fpdt.c:22: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.
        char oem_table_id[8];
data/systemd-247~rc2/src/shared/acpi-fpdt.c:24: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.
        char asl_compiler_id[4];
data/systemd-247~rc2/src/shared/acpi-fpdt.c:42: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.
        char signature[4];
data/systemd-247~rc2/src/shared/acpi-fpdt.c:108: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 = open("/dev/mem", O_CLOEXEC|O_RDONLY);
data/systemd-247~rc2/src/shared/ask-password-api.c:194:17:  [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 + 3 * i, "\b \b", 3);
data/systemd-247~rc2/src/shared/ask-password-api.c:231: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.
        char buffer[LINE_MAX];
data/systemd-247~rc2/src/shared/ask-password-api.c:429: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.
        char passphrase[LINE_MAX + 1] = {}, *x;
data/systemd-247~rc2/src/shared/ask-password-api.c:468:34:  [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).
                ttyfd = cttyfd = open("/dev/tty", O_RDWR|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/shared/ask-password-api.c:767: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.
        char final[sizeof(temp)] = "";
data/systemd-247~rc2/src/shared/ask-password-api.c:857:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(final, temp, sizeof(temp));
data/systemd-247~rc2/src/shared/ask-password-api.c:878:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char passphrase[LINE_MAX+1];
data/systemd-247~rc2/src/shared/base-filesystem.c:52: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 = open(root, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW);
data/systemd-247~rc2/src/shared/bond-util.c:51:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const bond_arp_validate_table[_NETDEV_BOND_ARP_VALIDATE_MAX] = {
data/systemd-247~rc2/src/shared/bond-util.c:60:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const bond_arp_all_targets_table[_NETDEV_BOND_ARP_ALL_TARGETS_MAX] = {
data/systemd-247~rc2/src/shared/bond-util.c:67:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const bond_primary_reselect_table[_NETDEV_BOND_PRIMARY_RESELECT_MAX] = {
data/systemd-247~rc2/src/shared/bootspec.c:93: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).
        f = fopen(path, "re");
data/systemd-247~rc2/src/shared/bootspec.c:185: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).
        f = fopen(path, "re");
data/systemd-247~rc2/src/shared/bpf-program.c:64:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p->instructions + p->n_instructions, instructions, sizeof(struct bpf_insn) * count);
data/systemd-247~rc2/src/shared/bpf-program.c:158: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 = open(path, O_DIRECTORY|O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/shared/bpf-program.c:187: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 = open(p->attached_path, O_DIRECTORY|O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/shared/bus-get-properties.c:67: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.
        char pstr[DECIMAL_STR_MAX(int) + 2];
data/systemd-247~rc2/src/shared/bus-map-properties.c:21:17:  [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).bytes, v, n);
data/systemd-247~rc2/src/shared/bus-message-util.c:70:17:  [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(ret_addr, d, sz);
data/systemd-247~rc2/src/shared/bus-print-properties.c:125:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char timestamp[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/shared/bus-print-properties.c:133:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char timespan[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/shared/bus-print-properties.c:139:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[STRLEN("0xFFFFFFFF")];
data/systemd-247~rc2/src/shared/bus-unit-util.c:239:9:  [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(mempcpy(n, field, l - 3), "USec");
data/systemd-247~rc2/src/shared/bus-util.c:378: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.
        char external_buf[DECIMAL_STR_MAX(uint64_t)], *p;
data/systemd-247~rc2/src/shared/cgroup-setup.c:255: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.
        char c[DECIMAL_STR_MAX(pid_t) + 2];
data/systemd-247~rc2/src/shared/cgroup-setup.c:296:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char prefix[strlen(path) + 1];
data/systemd-247~rc2/src/shared/cgroup-setup.c:550:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char prefix[strlen(pto) + 1];
data/systemd-247~rc2/src/shared/cgroup-setup.c:791:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char s[1 + strlen(n) + 1];
data/systemd-247~rc2/src/shared/cgroup-setup.c:797: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).
                                f = fopen(fs, "we");
data/systemd-247~rc2/src/shared/cgroup-show.c:98: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).
        f = fopen(fn, "re");
data/systemd-247~rc2/src/shared/chown-recursive.c:24: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/shared/chown-recursive.c:123: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 = open(path, O_RDONLY|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW|O_NOATIME);
data/systemd-247~rc2/src/shared/clean-ipc.c:43: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).
        f = fopen("/proc/sysvipc/shm", "re");
data/systemd-247~rc2/src/shared/clean-ipc.c:107: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).
        f = fopen("/proc/sysvipc/sem", "re");
data/systemd-247~rc2/src/shared/clean-ipc.c:166: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).
        f = fopen("/proc/sysvipc/msg", "re");
data/systemd-247~rc2/src/shared/clean-ipc.c:331:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char fn[1+strlen(de->d_name)+1];
data/systemd-247~rc2/src/shared/clock-util.c:26: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 = open("/dev/rtc", O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/shared/clock-util.c:47: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 = open("/dev/rtc", O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/shared/clock-util.c:71: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).
        f = fopen(adjtime_path, "re");
data/systemd-247~rc2/src/shared/condition.c:154:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char *const prefix[_ORDER_MAX] = {
data/systemd-247~rc2/src/shared/condition.c:523: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).
        f = fopen("/proc/self/status", "re");
data/systemd-247~rc2/src/shared/conf-parser.c:275:28:  [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 = ours = fopen(filename, "re");
data/systemd-247~rc2/src/shared/coredump-util.c:8:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const coredump_filter_table[_COREDUMP_FILTER_MAX] = {
data/systemd-247~rc2/src/shared/coredump-util.c:68: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.
        char t[STRLEN("0xFFFFFFFF")];
data/systemd-247~rc2/src/shared/dissect-image.c:385:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/shared/dissect-image.c:416:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/shared/dissect-image.c:439:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/shared/dissect-image.c:497:17:  [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(&fsuuid, verity->root_hash, sizeof(sd_id128_t));
data/systemd-247~rc2/src/shared/dissect-image.c:498:17:  [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(&vuuid, (const uint8_t*) verity->root_hash + verity->root_hash_size - sizeof(sd_id128_t), sizeof(sd_id128_t));
data/systemd-247~rc2/src/shared/dissect-image.c:1198: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.
        char s[SYS_BLOCK_PATH_MAX("/../loop/")];
data/systemd-247~rc2/src/shared/dissect-image.c:2203:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        static const char *const paths[_META_MAX] = {
data/systemd-247~rc2/src/shared/dm-util.c:16:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char msg_text[STRLEN("@cancel_deferred_remove") + 1];
data/systemd-247~rc2/src/shared/dm-util.c:37: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 = open("/dev/mapper/control", O_RDWR|O_CLOEXEC);
data/systemd-247~rc2/src/shared/dns-domain.c:308: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.
        char buffer[DNS_LABEL_MAX+1];
data/systemd-247~rc2/src/shared/dns-domain.c:349:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(decoded, buffer, l);
data/systemd-247~rc2/src/shared/dns-domain.c:398:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(decoded, result, w);
data/systemd-247~rc2/src/shared/dns-domain.c:423:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char label[DNS_LABEL_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:452:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char escaped[DNS_LABEL_ESCAPED_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:496:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char label[DNS_LABEL_MAX+1];
data/systemd-247~rc2/src/shared/dns-domain.c:524:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char la[DNS_LABEL_MAX], lb[DNS_LABEL_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:549:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char la[DNS_LABEL_MAX], lb[DNS_LABEL_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:580:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ln[DNS_LABEL_MAX], ls[DNS_LABEL_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:618:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ln[DNS_LABEL_MAX], lp[DNS_LABEL_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:650:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ln[DNS_LABEL_MAX], ls[DNS_LABEL_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:761:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char label[DNS_LABEL_MAX+1];
data/systemd-247~rc2/src/shared/dns-domain.c:797:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char label[DNS_LABEL_MAX+1];
data/systemd-247~rc2/src/shared/dns-domain.c:940:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char label[DNS_LABEL_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:992: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.
        char escaped[DNS_LABEL_ESCAPED_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:1035: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.
        char a[DNS_LABEL_MAX], b[DNS_LABEL_MAX], c[DNS_LABEL_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:1227: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.
        const char *a_labels[DNS_N_LABELS_MAX+1], *b_labels[DNS_N_LABELS_MAX+1];
data/systemd-247~rc2/src/shared/dns-domain.c:1245:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char la[DNS_LABEL_MAX], lb[DNS_LABEL_MAX];
data/systemd-247~rc2/src/shared/dns-domain.c:1337:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char label[DNS_LABEL_MAX];
data/systemd-247~rc2/src/shared/dropin.c:29: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.
        char prefix[DECIMAL_STR_MAX(unsigned)];
data/systemd-247~rc2/src/shared/dropin.c:37: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(prefix, "%u", level);
data/systemd-247~rc2/src/shared/efi-loader.c:50: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.
        char signature[16];
data/systemd-247~rc2/src/shared/efi-loader.c:217:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&u1, &uuid->u1, sizeof(uint32_t));
data/systemd-247~rc2/src/shared/efi-loader.c:222:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&u2, &uuid->u2, sizeof(uint16_t));
data/systemd-247~rc2/src/shared/efi-loader.c:225:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&u3, &uuid->u3, sizeof(uint16_t));
data/systemd-247~rc2/src/shared/efi-loader.c:228:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&id128->bytes[8], uuid->u4, sizeof(uuid->u4));
data/systemd-247~rc2/src/shared/efi-loader.c:238: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.
        char boot_id[9];
data/systemd-247~rc2/src/shared/efi-loader.c:349:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(guid, &uuid, sizeof(uuid));
data/systemd-247~rc2/src/shared/efi-loader.c:375: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.
        char boot_id[9];
data/systemd-247~rc2/src/shared/efi-loader.c:403:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&devicep->drive.part_nr, &part, sizeof(uint32_t));
data/systemd-247~rc2/src/shared/efi-loader.c:404:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&devicep->drive.part_start, &pstart, sizeof(uint64_t));
data/systemd-247~rc2/src/shared/efi-loader.c:405:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&devicep->drive.part_size, &psize, sizeof(uint64_t));
data/systemd-247~rc2/src/shared/efi-loader.c:432: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.
        char boot_id[9];
data/systemd-247~rc2/src/shared/efi-loader.c:472:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int boot_id_hex(const char s[static 4]) {
data/systemd-247~rc2/src/shared/efi-loader.c:712:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret, v, sizeof(uint64_t));
data/systemd-247~rc2/src/shared/ethtool-util.c:694:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(u->link_modes.supported, &ecmd.link_mode_data[offset], 4 * ecmd.req.link_mode_masks_nwords);
data/systemd-247~rc2/src/shared/ethtool-util.c:697:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(u->link_modes.advertising, &ecmd.link_mode_data[offset], 4 * ecmd.req.link_mode_masks_nwords);
data/systemd-247~rc2/src/shared/ethtool-util.c:700:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(u->link_modes.lp_advertising, &ecmd.link_mode_data[offset], 4 * ecmd.req.link_mode_masks_nwords);
data/systemd-247~rc2/src/shared/ethtool-util.c:766:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&ecmd.link_mode_data[offset], u->link_modes.supported, 4 * ecmd.req.link_mode_masks_nwords);
data/systemd-247~rc2/src/shared/ethtool-util.c:769:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&ecmd.link_mode_data[offset], u->link_modes.advertising, 4 * ecmd.req.link_mode_masks_nwords);
data/systemd-247~rc2/src/shared/ethtool-util.c:772:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&ecmd.link_mode_data[offset], u->link_modes.lp_advertising, 4 * ecmd.req.link_mode_masks_nwords);
data/systemd-247~rc2/src/shared/ethtool-util.c:827: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.
                const char *ifname,
data/systemd-247~rc2/src/shared/ethtool-util.c:876:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&u->link_modes.advertising, advertise, sizeof(uint32_t) * N_ADVERTISE);
data/systemd-247~rc2/src/shared/ethtool-util.h:106:54:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int ethtool_set_glinksettings(int *ethtool_fd, const char *ifname,
data/systemd-247~rc2/src/shared/exec-util.c:49:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char *_argv[2];
data/systemd-247~rc2/src/shared/exec-util.c:76:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char **directories,
data/systemd-247~rc2/src/shared/format-table.c:87:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char string[0];
data/systemd-247~rc2/src/shared/format-table.c:1445: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.
                sprintf(p, "%i", d->int_val);
data/systemd-247~rc2/src/shared/format-table.c:1505: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.
                sprintf(p, "%u", d->uint_val);
data/systemd-247~rc2/src/shared/format-table.c:1565: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.
                sprintf(p, "%i%%" , d->percent);
data/systemd-247~rc2/src/shared/format-table.c:1572:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char name[IF_NAMESIZE + 1];
data/systemd-247~rc2/src/shared/format-table.c:1774:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(ret + lspace, clickable ?: str, clickable_length);
data/systemd-247~rc2/src/shared/format-table.c:2387:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/shared/format-table.c:2392:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/shared/generator.c:95: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).
        f = fopen(unit, "wxe");
data/systemd-247~rc2/src/shared/generator.c:348: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).
        f = fopen(unit_file, "wxe");
data/systemd-247~rc2/src/shared/generator.c:423: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).
        f = fopen(unit_file, "wxe");
data/systemd-247~rc2/src/shared/generator.c:486: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).
        f = fopen(unit_file, "wxe");
data/systemd-247~rc2/src/shared/gpt.c:63:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *gpt_partition_type_uuid_to_string_harder(
data/systemd-247~rc2/src/shared/gpt.c:65:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[static ID128_UUID_STRING_MAX]) {
data/systemd-247~rc2/src/shared/gpt.h:96:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *gpt_partition_type_uuid_to_string_harder(
data/systemd-247~rc2/src/shared/gpt.h:98:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[static ID128_UUID_STRING_MAX]);
data/systemd-247~rc2/src/shared/group-record.c:62: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.
        char smid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/shared/group-record.c:149: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.
        char smid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/shared/initreq.h:48: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.
        char	gen_id[8];		/* Beats me.. telnetd uses "fe" */
data/systemd-247~rc2/src/shared/initreq.h:49: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.
        char	tty_id[16];		/* Tty name minus /dev/tty      */
data/systemd-247~rc2/src/shared/initreq.h:50: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.
        char	host[INITRQ_HLEN];	/* Hostname                     */
data/systemd-247~rc2/src/shared/initreq.h:51: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.
        char	term_type[16];		/* Terminal type                */
data/systemd-247~rc2/src/shared/initreq.h:54: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.
        char	exec_name[128];	        /* Program to execute           */
data/systemd-247~rc2/src/shared/initreq.h:55: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.
        char	reserved[128];		/* For future expansion.        */
data/systemd-247~rc2/src/shared/initreq.h:72:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[368];
data/systemd-247~rc2/src/shared/install.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 *const unit_file_type_table[_UNIT_FILE_TYPE_MAX] = {
data/systemd-247~rc2/src/shared/install.c:650: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 = open(config_path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC);
data/systemd-247~rc2/src/shared/install.c:842: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 = open(config_path, O_RDONLY|O_NONBLOCK|O_DIRECTORY|O_CLOEXEC);
data/systemd-247~rc2/src/shared/install.c:1260: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).
                fd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW);
data/systemd-247~rc2/src/shared/install.c:2961:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(*p, "re");
data/systemd-247~rc2/src/shared/journal-importer.c:204:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[4];
data/systemd-247~rc2/src/shared/journal-importer.c:217: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.
        char buf[CELLESCAPE_DEFAULT_LENGTH];
data/systemd-247~rc2/src/shared/journal-importer.c:319:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buf[64], *t;
data/systemd-247~rc2/src/shared/journal-importer.c:427:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(imp->buf + imp->filled, data, size);
data/systemd-247~rc2/src/shared/journal-importer.c:447:17:  [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(imp->buf, imp->buf + imp->offset, remain);
data/systemd-247~rc2/src/shared/json.c:113:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char string[0];
data/systemd-247~rc2/src/shared/json.c:415:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(v->string, s, n);
data/systemd-247~rc2/src/shared/json.c:437: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.
        char s[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/shared/json.c:646:25:  [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(w->string, l[v->n_elements], k+1);
data/systemd-247~rc2/src/shared/json.c:2502:17:  [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 + n, c, len);
data/systemd-247~rc2/src/shared/json.c:3825: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.
        char buffer[LINE_MAX];
data/systemd-247~rc2/src/shared/linux/auto_dev-ioctl.h:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[0];
data/systemd-247~rc2/src/shared/linux/bpf.h:309:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	build_id[BPF_BUILD_ID_SIZE];
data/systemd-247~rc2/src/shared/linux/bpf.h:329:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char	map_name[BPF_OBJ_NAME_LEN];
data/systemd-247~rc2/src/shared/linux/bpf.h:356:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char		prog_name[BPF_OBJ_NAME_LEN];
data/systemd-247~rc2/src/shared/linux/bpf.h:2710:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[BPF_OBJ_NAME_LEN];
data/systemd-247~rc2/src/shared/linux/bpf.h:2740:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char  name[BPF_OBJ_NAME_LEN];
data/systemd-247~rc2/src/shared/linux/dm-ioctl.h:143:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[DM_NAME_LEN];	/* device name */
data/systemd-247~rc2/src/shared/linux/dm-ioctl.h:144: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 uuid[DM_UUID_LEN];	/* unique identifier for
data/systemd-247~rc2/src/shared/linux/dm-ioctl.h:146:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[7];		/* padding or data */
data/systemd-247~rc2/src/shared/linux/dm-ioctl.h:170:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char target_type[DM_MAX_TYPE_NAME];
data/systemd-247~rc2/src/shared/linux/dm-ioctl.h:195:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[0];
data/systemd-247~rc2/src/shared/linux/dm-ioctl.h:205: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.
        char name[0];
data/systemd-247~rc2/src/shared/linux/dm-ioctl.h:214: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 message[0];
data/systemd-247~rc2/src/shared/linux/ethtool.h:183: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	driver[32];
data/systemd-247~rc2/src/shared/linux/ethtool.h:184: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	version[32];
data/systemd-247~rc2/src/shared/linux/ethtool.h:185: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	fw_version[ETHTOOL_FWVERS_LEN];
data/systemd-247~rc2/src/shared/linux/ethtool.h:186:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	bus_info[ETHTOOL_BUSINFO_LEN];
data/systemd-247~rc2/src/shared/linux/ethtool.h:187: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	erom_version[ETHTOOL_EROMVERS_LEN];
data/systemd-247~rc2/src/shared/linux/ethtool.h:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	reserved2[12];
data/systemd-247~rc2/src/shared/linux/ethtool.h:973:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	h_dest[ETH_ALEN];
data/systemd-247~rc2/src/shared/linux/ethtool.h:1224:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	data[ETHTOOL_FLASH_MAX_FILENAME];
data/systemd-247~rc2/src/shared/lockfile-util.c:45: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).
                fd = open(p, O_CREAT|O_RDWR|O_NOFOLLOW|O_CLOEXEC|O_NOCTTY, 0600);
data/systemd-247~rc2/src/shared/logs-show.c:350: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.
        char buf[MAX(FORMAT_TIMESTAMP_MAX, 64U)];
data/systemd-247~rc2/src/shared/logs-show.c:379:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char usec[7];
data/systemd-247~rc2/src/shared/logs-show.c:402:25:  [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 + 20, usec, 6);
data/systemd-247~rc2/src/shared/logs-show.c:590:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char bytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/shared/logs-show.c:612:41:  [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(joined + urlified_len, message + config_file_len, message_len - config_file_len);
data/systemd-247~rc2/src/shared/logs-show.c:649: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.
        char ts[FORMAT_TIMESTAMP_MAX + 7];
data/systemd-247~rc2/src/shared/logs-show.c:735:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char bytes[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/shared/logs-show.c:765: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.
        char sid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/shared/logs-show.c:994: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.
        char sid[SD_ID128_STRING_MAX], usecbuf[DECIMAL_STR_MAX(usec_t)];
data/systemd-247~rc2/src/shared/logs-show.c:1129: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.
                const char *field,
data/systemd-247~rc2/src/shared/logs-show.c:1266:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char **output_fields,
data/systemd-247~rc2/src/shared/logs-show.c:1463: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.
        char muid[sizeof("_UID=") + DECIMAL_STR_MAX(uid_t)];
data/systemd-247~rc2/src/shared/logs-show.c:1516: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.
        char buf[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/shared/logs-show.c:1547: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).
                fd = open("/proc/sys/kernel/random/boot_id", O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/shared/logs-show.c:1584: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.
        char match[9+32+1] = "_BOOT_ID=";
data/systemd-247~rc2/src/shared/logs-show.h:22:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char **output_fields,
data/systemd-247~rc2/src/shared/loop-util.c:370: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).
        control = open("/dev/loop-control", O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/shared/loop-util.c:396: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).
                loop = open(loopdev, O_CLOEXEC|O_NONBLOCK|O_NOCTTY|open_flags);
data/systemd-247~rc2/src/shared/loop-util.c:452: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 = open(path, O_CLOEXEC|O_NONBLOCK|O_NOCTTY|(open_flags >= 0 ? open_flags : O_RDWR));
data/systemd-247~rc2/src/shared/loop-util.c:460: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).
                fd = open(path, O_CLOEXEC|O_NONBLOCK|O_NOCTTY|O_RDONLY);
data/systemd-247~rc2/src/shared/loop-util.c:492: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).
                control = open("/dev/loop-control", O_RDWR|O_CLOEXEC|O_NOCTTY|O_NONBLOCK);
data/systemd-247~rc2/src/shared/loop-util.c:533: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).
        loop_fd = open(loop_path, O_CLOEXEC|O_NONBLOCK|O_NOCTTY|open_flags);
data/systemd-247~rc2/src/shared/loop-util.c:571: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.
        char sysfs[STRLEN("/sys/dev/block/:/partition") + 2*DECIMAL_STR_MAX(dev_t) + 1];
data/systemd-247~rc2/src/shared/loop-util.c:635: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).
        whole_fd = open(whole, O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
data/systemd-247~rc2/src/shared/machine-image.c:965: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).
                fd = open(i->path, O_CLOEXEC|O_RDONLY|O_NONBLOCK|O_NOCTTY);
data/systemd-247~rc2/src/shared/machine-image.c:1132:30:  [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|O_NOCTTY);
data/systemd-247~rc2/src/shared/mkfs-util.c:68:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char suuid[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/shared/mkfs-util.c:99:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char mangled_label[8 + 3 + 1], vol_id[8 + 1];
data/systemd-247~rc2/src/shared/mount-util.c:33: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.
        char path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/shared/mount-util.c:69: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 = open(target, O_PATH|O_CLOEXEC|O_NOFOLLOW);
data/systemd-247~rc2/src/shared/mount-util.c:168: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 = open(path, O_PATH|O_CLOEXEC|O_NOFOLLOW);
data/systemd-247~rc2/src/shared/numa-util.c:102:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char p[STRLEN("/sys/devices/system/node/node//cpulist") + DECIMAL_STR_MAX(size_t) + 1];
data/systemd-247~rc2/src/shared/output-mode.c:24:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const output_mode_table[_OUTPUT_MODE_MAX] = {
data/systemd-247~rc2/src/shared/pager.c:298: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.
        const char *args[4] = { "man", NULL, NULL, NULL };
data/systemd-247~rc2/src/shared/pkcs11-util.c:377:17:  [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(attributes_buffer, attributes, sizeof(CK_ATTRIBUTE) * n_attributes);
data/systemd-247~rc2/src/shared/pkcs11-util.c:557:17:  [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(attributes_buffer, attributes, sizeof(CK_ATTRIBUTE) * n_attributes);
data/systemd-247~rc2/src/shared/pkcs11-util.c:699: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 = open("/dev/urandom", O_WRONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/shared/pretty-print.c:140: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).
        f = fopen(filename, "re");
data/systemd-247~rc2/src/shared/ptyfwd.c:68: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.
        char in_buffer[LINE_MAX], out_buffer[LINE_MAX];
data/systemd-247~rc2/src/shared/pwquality-util.c:60: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.
        char buf[PWQ_MAX_ERROR_MESSAGE_LEN];
data/systemd-247~rc2/src/shared/pwquality-util.c:98: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.
        char buf[PWQ_MAX_ERROR_MESSAGE_LEN];
data/systemd-247~rc2/src/shared/pwquality-util.c:129: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.
        char buf[PWQ_MAX_ERROR_MESSAGE_LEN];
data/systemd-247~rc2/src/shared/pwquality-util.c:160: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.
        char buf[PWQ_MAX_ERROR_MESSAGE_LEN];
data/systemd-247~rc2/src/shared/seccomp-util.c:2039: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).
#if SCMP_SYS(open) > 0
data/systemd-247~rc2/src/shared/seccomp-util.c:2043:34:  [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).
                        SCMP_SYS(open),
data/systemd-247~rc2/src/shared/serialize.c:56: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.
        char buf[LONG_LINE_MAX];
data/systemd-247~rc2/src/shared/sleep-config.c:240: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 = open(swap->device, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/shared/sleep-config.c:337: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).
        f = fopen("/proc/swaps", "re");
data/systemd-247~rc2/src/shared/sleep-config.c:575:17:  [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(result_fiemap->fm_extents + result_extents,
data/systemd-247~rc2/src/shared/sleep-config.c:593:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(result_fiemap, fiemap, sizeof(struct fiemap));
data/systemd-247~rc2/src/shared/spawn-polkit-agent.c:23: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.
        char notify_fd[DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/shared/specifier.c:72:41:  [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(ret + j, w, k);
data/systemd-247~rc2/src/shared/switch-root.c:48: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).
                old_root_fd = open("/", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_NOCTTY|O_DIRECTORY);
data/systemd-247~rc2/src/shared/sysctl-util.c:55: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 = open(p, O_WRONLY|O_CLOEXEC);
data/systemd-247~rc2/src/shared/sysctl-util.h:24:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[DECIMAL_STR_MAX(type)];                        \
data/systemd-247~rc2/src/shared/udev-util.c:365:17:  [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(str, unescaped, r + 1);
data/systemd-247~rc2/src/shared/user-record-show.c:46:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:56:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:242:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:247:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:267:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:272:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:310:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:314:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:341:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:346:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:360:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:392:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:397:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:405:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:413:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:424:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:433:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:446:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:500:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/shared/user-record-show.c:523:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/shared/user-record.c:1130: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.
        char smid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/shared/user-record.c:1371: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.
        char smid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/shared/utmp-wtmp.c:182:17:  [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, src + l - buf_size, buf_size);
data/systemd-247~rc2/src/shared/utmp-wtmp.c:301: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 = open(tty, O_WRONLY|O_NONBLOCK|O_NOCTTY|O_CLOEXEC);
data/systemd-247~rc2/src/shared/utmp-wtmp.c:351: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.
        char date[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/shared/varlink.c:523:25:  [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(b, v->input_buffer + v->input_buffer_index, v->input_buffer_size);
data/systemd-247~rc2/src/shared/varlink.c:1254:17:  [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(v->output_buffer + v->output_buffer_size, text, r + 1);
data/systemd-247~rc2/src/shared/varlink.c:1265:17:  [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(mempcpy(n, v->output_buffer + v->output_buffer_index, v->output_buffer_size), text, r + 1);
data/systemd-247~rc2/src/shared/watchdog.c:35:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/shared/watchdog.c:73: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).
        watchdog_fd = open(fn, O_WRONLY|O_CLOEXEC);
data/systemd-247~rc2/src/shutdown/shutdown.c:191: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).
        f = fopen("/proc/meminfo", "re");
data/systemd-247~rc2/src/shutdown/shutdown.c:313: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.
        char *arguments[3], *watchdog_device;
data/systemd-247~rc2/src/shutdown/umount.c:390: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 = open(device, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/shutdown/umount.c:459: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 = open("/dev/mapper/control", O_RDWR|O_CLOEXEC);
data/systemd-247~rc2/src/shutdown/umount.c:488: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 = open(m->path, O_RDONLY|O_CLOEXEC|O_EXCL);
data/systemd-247~rc2/src/sleep/sleep.c:43: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.
        char offset_str[DECIMAL_STR_MAX(uint64_t)];
data/systemd-247~rc2/src/sleep/sleep.c:44: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.
        char resume_str[DECIMAL_STR_MAX(unsigned) * 2 + STRLEN(":")];
data/systemd-247~rc2/src/sleep/sleep.c:125:22:  [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("/sys/power/state", "we");
data/systemd-247~rc2/src/sleep/sleep.c:190: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).
        f = fopen("/sys/power/state", "we");
data/systemd-247~rc2/src/sleep/sleep.c:242: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.
        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:155:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(t, "we");
data/systemd-247~rc2/src/systemctl/systemctl-enable.c:269:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char *new_args[len + 2];
data/systemd-247~rc2/src/systemctl/systemctl-logind.c:278: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.
        char date[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/systemctl/systemctl-show.c:301: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.
        char since1[FORMAT_TIMESTAMP_RELATIVE_MAX], since2[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/systemctl/systemctl-show.c:441:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char tstamp1[FORMAT_TIMESTAMP_RELATIVE_MAX],
data/systemd-247~rc2/src/systemctl/systemctl-show.c:651:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_in[FORMAT_BYTES_MAX], buf_out[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/systemctl/systemctl-show.c:659:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_in[FORMAT_BYTES_MAX], buf_out[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/systemctl/systemctl-show.c:676:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/systemctl/systemctl-show.c:717:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/systemctl/systemctl-show.c:1232:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char timespan1[FORMAT_TIMESPAN_MAX] = "n/a", timespan2[FORMAT_TIMESPAN_MAX] = "n/a";
data/systemd-247~rc2/src/systemctl/systemctl-show.c:1258:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char timestamp[FORMAT_TIMESTAMP_MAX] = "n/a";
data/systemd-247~rc2/src/systemctl/systemctl-show.c:1282:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char timestamp1[FORMAT_TIMESTAMP_MAX], timestamp2[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/systemctl/systemctl-show.c:1393:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char ts[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/systemctl/systemctl-show.c:1590:33:  [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(str, p, sz);
data/systemd-247~rc2/src/systemctl/systemctl-show.c:1966: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.
        char since1[FORMAT_TIMESTAMP_RELATIVE_MAX], since2[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/systemctl/systemctl-start-unit.c:212:43:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char** make_extra_args(const char *extra_args[static 4]) {
data/systemd-247~rc2/src/systemctl/systemctl-sysv-compat.c:33: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).
                fd = open(p, O_WRONLY|O_NONBLOCK|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/systemctl/systemctl-sysv-compat.c:255:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 table[_ACTION_MAX] = {
data/systemd-247~rc2/src/systemd/sd-id128.h:38:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *sd_id128_to_string(sd_id128_t id, char s[_SD_ARRAY_STATIC SD_ID128_STRING_MAX]);
data/systemd-247~rc2/src/systemd/sd-id128.h:38:41:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char *sd_id128_to_string(sd_id128_t id, char s[_SD_ARRAY_STATIC SD_ID128_STRING_MAX]);
data/systemd-247~rc2/src/sysusers/sysusers.c:138: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).
        f = fopen(passwd_path, "re");
data/systemd-247~rc2/src/sysusers/sysusers.c:186: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).
        f = fopen(group_path, "re");
data/systemd-247~rc2/src/sysusers/sysusers.c:238:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        src = open(x, O_RDONLY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/sysusers/sysusers.c:377:67:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
static int write_temporary_passwd(const char *passwd_path, FILE **tmpfile, char **tmpfile_path) {
data/systemd-247~rc2/src/sysusers/sysusers.c:391:20:  [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).
        original = fopen(passwd_path, "re");
data/systemd-247~rc2/src/sysusers/sysusers.c:475:67:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
static int write_temporary_shadow(const char *shadow_path, FILE **tmpfile, char **tmpfile_path) {
data/systemd-247~rc2/src/sysusers/sysusers.c:492:20:  [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).
        original = fopen(shadow_path, "re");
data/systemd-247~rc2/src/sysusers/sysusers.c:573:65:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
static int write_temporary_group(const char *group_path, FILE **tmpfile, char **tmpfile_path) {
data/systemd-247~rc2/src/sysusers/sysusers.c:588:20:  [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).
        original = fopen(group_path, "re");
data/systemd-247~rc2/src/sysusers/sysusers.c:670:70:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
static int write_temporary_gshadow(const char * gshadow_path, FILE **tmpfile, char **tmpfile_path) {
data/systemd-247~rc2/src/sysusers/sysusers.c:685:20:  [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).
        original = fopen(gshadow_path, "re");
data/systemd-247~rc2/src/sysv-generator/sysv-generator.c:129: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).
        f = fopen(unit, "wxe");
data/systemd-247~rc2/src/sysv-generator/sysv-generator.c:439: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).
        f = fopen(s->path, "re");
data/systemd-247~rc2/src/test/test-alloc-util.c:148:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p2, p1, 1024);
data/systemd-247~rc2/src/test/test-boot-timestamps.c:14: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.
        char ts_start[FORMAT_TIMESPAN_MAX], ts_exit[FORMAT_TIMESPAN_MAX], ts_span[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/test/test-boot-timestamps.c:34: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.
        char ts_start[FORMAT_TIMESPAN_MAX], ts_exit[FORMAT_TIMESPAN_MAX], ts_span[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/test/test-boot-timestamps.c:54: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.
        char s[MAX(FORMAT_TIMESPAN_MAX, FORMAT_TIMESTAMP_MAX)];
data/systemd-247~rc2/src/test/test-bpf-devices.c:43: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).
                fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:48: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).
                fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:81: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).
                fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:85: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).
                fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:94: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).
                fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:98: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).
                fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:107: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).
                fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:111: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).
                fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:120: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).
                fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:124: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).
                fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:153: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).
                fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:157: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).
                fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:166: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).
                fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:170: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).
                fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:179: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).
                fd = open(s, O_CLOEXEC|O_RDONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:183: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).
                fd2 = open(s, O_CLOEXEC|O_WRONLY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:211: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).
                fd = open(s, O_CLOEXEC|O_RDWR|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-devices.c:244: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).
                fd = open(s, O_CLOEXEC|O_RDWR|O_NOCTTY);
data/systemd-247~rc2/src/test/test-bpf-firewall.c:28: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.
        char log_buf[65535];
data/systemd-247~rc2/src/test/test-btrfs.c:17: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 = open("/", O_RDONLY|O_CLOEXEC|O_DIRECTORY);
data/systemd-247~rc2/src/test/test-btrfs.c:21:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ts[FORMAT_TIMESTAMP_MAX], bs[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/test/test-calendarspec.c:13: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.
        char buf[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/test/test-calendarspec.c:39: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.
        char buf[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/test/test-calendarspec.c:77: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.
        char buf[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/test/test-calendarspec.c:100: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.
        char buf[FORMAT_TIMESTAMP_MAX], zaf[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/test/test-cgroup-util.c:325: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 = open("/sys/fs/cgroup", O_RDONLY|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW);
data/systemd-247~rc2/src/test/test-cgroup-util.c:329: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).
                fd = open("/sys/fs/cgroup/systemd", O_RDONLY|O_DIRECTORY|O_CLOEXEC|O_NOFOLLOW);
data/systemd-247~rc2/src/test/test-cgroup-util.c:369: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.
        char *vals3[3] = {}, *vals3a[3] = {};
data/systemd-247~rc2/src/test/test-chown-rec.c:33: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.
        char buffer[sizeof(acl) * 4];
data/systemd-247~rc2/src/test/test-condition.c:217: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.
        char sid[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/test/test-copy.c:59: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.
        char buf[64] = {};
data/systemd-247~rc2/src/test/test-copy.c:201: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.
        char buf[1024], buf2[1024];
data/systemd-247~rc2/src/test/test-copy.c:203: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).
        infd = open("/usr/lib/os-release", O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/test/test-copy.c:205: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).
                infd = open("/etc/os-release", O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/test/test-copy.c:242: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 = open(src, O_RDONLY | O_CLOEXEC | O_NOCTTY);
data/systemd-247~rc2/src/test/test-cpu-set-util.c:248:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 expected[32] =
data/systemd-247~rc2/src/test/test-date.c:10: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.
        char buf[FORMAT_TIMESTAMP_MAX], buf_relative[FORMAT_TIMESTAMP_RELATIVE_MAX];
data/systemd-247~rc2/src/test/test-date.c:19:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/test/test-dns-domain.c:10: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.
        char buffer[buffer_sz];
data/systemd-247~rc2/src/test/test-dns-domain.c:127: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.
        char buffer[buffer_sz];
data/systemd-247~rc2/src/test/test-ellipsize.c:16: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.
        char buf[LINE_MAX];
data/systemd-247~rc2/src/test/test-exec-util.c:203: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.
        char buf[128] = {};
data/systemd-247~rc2/src/test/test-exec-util.c:225: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.
        char buf[128] = {};
data/systemd-247~rc2/src/test/test-fd-util.c:61: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).
        assert_se((b = open("/dev/null", O_RDONLY|O_CLOEXEC)) >= 0);
data/systemd-247~rc2/src/test/test-fd-util.c:99: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.
        char wbuffer[196*1024 - 7];
data/systemd-247~rc2/src/test/test-fd-util.c:100: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.
        char rbuffer[sizeof(wbuffer)];
data/systemd-247~rc2/src/test/test-fd-util.c:153: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).
        new_fd = open("/dev/null", O_RDONLY);
data/systemd-247~rc2/src/test/test-fd-util.c:173:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[10];
data/systemd-247~rc2/src/test/test-fd-util.c:204: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).
                assert_se(open("/dev/full", O_WRONLY|O_CLOEXEC) == 0);
data/systemd-247~rc2/src/test/test-fd-util.c:258:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd1 = open("/etc/fstab", O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/test/test-fileio.c:402: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.
        char buf[64];
data/systemd-247~rc2/src/test/test-fileio.c:412: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).
        f = fopen(fn, "r+");
data/systemd-247~rc2/src/test/test-fileio.c:422: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).
        f = fopen(fn, "w+");
data/systemd-247~rc2/src/test/test-fileio.c:435: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.
        char buf[64] = {};
data/systemd-247~rc2/src/test/test-fileio.c:450: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.
        char buf[64] = {};
data/systemd-247~rc2/src/test/test-fileio.c:781: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).
        f = fopen("/proc/uptime", "re");
data/systemd-247~rc2/src/test/test-format-util.c:9: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.
        char buf[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/test/test-fs-util.c:537: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 = open(p, O_RDONLY|O_DIRECTORY|O_CLOEXEC);
data/systemd-247~rc2/src/test/test-fs-util.c:666: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 = open(p, O_WRONLY|O_CLOEXEC|O_CREAT|O_EXCL, 0600);
data/systemd-247~rc2/src/test/test-hashmap-plain.c:755:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char b[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/test/test-hashmap-plain.c:793: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.
        char b[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/test/test-hashmap-plain.c:813:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char s[DECIMAL_STR_MAX(unsigned)];
data/systemd-247~rc2/src/test/test-id128.c:24: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.
        char t[SD_ID128_STRING_MAX], q[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/test/test-io-util.c:13: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.
        char check[n];
data/systemd-247~rc2/src/test/test-ip-protocol-list.c:11: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.
        char str[DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/test/test-ip-protocol-list.c:20: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.
        char str[DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/test/test-journal-importer.c:29: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).
        imp.fd = open(journal_data_path, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/test/test-journal-importer.c:60: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).
        imp.fd = open(journal_data_path, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/test/test-libudev.c:403: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.
        char result[UTIL_PATH_SIZE] = "";
data/systemd-247~rc2/src/test/test-loop-block.c:164: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 = open(p, O_CREAT|O_EXCL|O_RDWR|O_CLOEXEC|O_NOFOLLOW, 0666);
data/systemd-247~rc2/src/test/test-mountpoint-util.c:48:23:  [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).
        assert_se(f = fopen("/proc/self/mountinfo", "re"));
data/systemd-247~rc2/src/test/test-mountpoint-util.c:146: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 = open(file1, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0664);
data/systemd-247~rc2/src/test/test-mountpoint-util.c:149: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 = open(file2, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0664);
data/systemd-247~rc2/src/test/test-mountpoint-util.c:186: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 = open(dir1file, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0664);
data/systemd-247~rc2/src/test/test-mountpoint-util.c:227: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).
                fd = open(dir2file, O_WRONLY|O_CREAT|O_EXCL|O_CLOEXEC, 0664);
data/systemd-247~rc2/src/test/test-namespace.c:149: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).
                fd = open("/dev/kmsg", O_RDONLY | O_CLOEXEC);
data/systemd-247~rc2/src/test/test-namespace.c:180: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).
                assert_se(open("/dev/kmsg", O_RDONLY | O_CLOEXEC) < 0);
data/systemd-247~rc2/src/test/test-namespace.c:191: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.
        char boot_id[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/test/test-nss.c:80:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char family_name[DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/test/test-nss.c:81:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ifname[IF_NAMESIZE + 1];
data/systemd-247~rc2/src/test/test-nss.c:83:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&u, it->addr, 16);
data/systemd-247~rc2/src/test/test-nss.c:117:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char family_name[DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/test/test-nss.c:121:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(&u, *s, host->h_length);
data/systemd-247~rc2/src/test/test-nss.c:135: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.
        char buffer[2000];
data/systemd-247~rc2/src/test/test-nss.c:144: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.
        char pretty_status[DECIMAL_STR_MAX(enum nss_status)];
data/systemd-247~rc2/src/test/test-nss.c:187: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.
        char buffer[2000];
data/systemd-247~rc2/src/test/test-nss.c:195: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.
        char pretty_status[DECIMAL_STR_MAX(enum nss_status)];
data/systemd-247~rc2/src/test/test-nss.c:198: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.
        char family_name[DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/test/test-nss.c:222: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.
        char buffer[2000];
data/systemd-247~rc2/src/test/test-nss.c:225: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.
        char pretty_status[DECIMAL_STR_MAX(enum nss_status)];
data/systemd-247~rc2/src/test/test-nss.c:227: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.
        char family_name[DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/test/test-nss.c:250: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.
        char buffer[2000];
data/systemd-247~rc2/src/test/test-nss.c:253: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.
        char pretty_status[DECIMAL_STR_MAX(enum nss_status)];
data/systemd-247~rc2/src/test/test-nss.c:281: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.
        char buffer[2000];
data/systemd-247~rc2/src/test/test-nss.c:284: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.
        char pretty_status[DECIMAL_STR_MAX(enum nss_status)];
data/systemd-247~rc2/src/test/test-nss.c:319: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.
        char buffer[2000];
data/systemd-247~rc2/src/test/test-nss.c:322: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.
        char pretty_status[DECIMAL_STR_MAX(enum nss_status)];
data/systemd-247~rc2/src/test/test-path-util.c:83: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 = open("/", O_RDONLY|O_CLOEXEC|O_DIRECTORY|O_NOCTTY);
data/systemd-247~rc2/src/test/test-path-util.c:249: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.
        char s[PATH_MAX];
data/systemd-247~rc2/src/test/test-path-util.c:575: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.
        char foo[FILENAME_MAX+2];
data/systemd-247~rc2/src/test/test-path.c:222: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).
        f = fopen(test_path, "w");
data/systemd-247~rc2/src/test/test-path.c:264: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).
        f = fopen(test_path, "w");
data/systemd-247~rc2/src/test/test-process-util.c:39: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.
        char path[STRLEN("/proc//comm") + DECIMAL_STR_MAX(pid_t)];
data/systemd-247~rc2/src/test/test-procfs-util.c:12: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.
        char buf[CONST_MAX(FORMAT_TIMESPAN_MAX, FORMAT_BYTES_MAX)];
data/systemd-247~rc2/src/test/test-psi-util.c:18:19:  [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).
        assert_se(mkstemp(path));
data/systemd-247~rc2/src/test/test-seccomp.c:828: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).
        return open(path, flags, mode);
data/systemd-247~rc2/src/test/test-serialize.c:13:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char long_string[LONG_LINE_MAX+1];
data/systemd-247~rc2/src/test/test-signal-util.c:52: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.
        char buf[STRLEN("RTMIN+") + DECIMAL_STR_MAX(int) + 1];
data/systemd-247~rc2/src/test/test-siphash24.c:97:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(in_buf, in, sizeof(in));
data/systemd-247~rc2/src/test/test-siphash24.c:99:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(in_buf + 1, in, sizeof(in));
data/systemd-247~rc2/src/test/test-siphash24.c:101:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(in_buf + 2, in, sizeof(in));
data/systemd-247~rc2/src/test/test-siphash24.c:103:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(in_buf + 4, in, sizeof(in));
data/systemd-247~rc2/src/test/test-sleep.c:53: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 = open(path, O_RDONLY | O_CLOEXEC | O_NONBLOCK);
data/systemd-247~rc2/src/test/test-socket-netlink.c:83:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char aaa[SUN_PATH_LEN + 1] = "@";
data/systemd-247~rc2/src/test/test-socket-util.c:64:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(a.sockaddr.un.sun_path, in, len_in);
data/systemd-247~rc2/src/test/test-socket-util.c:245:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                char tmpfile[] = "/tmp/test-socket-util-passfd-read-XXXXXX";
data/systemd-247~rc2/src/test/test-socket-util.c:250:39:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                tmpfd = mkostemp_safe(tmpfile);
data/systemd-247~rc2/src/test/test-socket-util.c:255: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).
                tmpfd = open(tmpfile, O_RDONLY);
data/systemd-247~rc2/src/test/test-socket-util.c:255:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                tmpfd = open(tmpfile, O_RDONLY);
data/systemd-247~rc2/src/test/test-socket-util.c:257:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                assert_se(unlink(tmpfile) == 0);
data/systemd-247~rc2/src/test/test-socket-util.c:264: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.
        char buf[64];
data/systemd-247~rc2/src/test/test-socket-util.c:295:22:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                char tmpfile[] = "/tmp/test-socket-util-passfd-contents-read-XXXXXX";
data/systemd-247~rc2/src/test/test-socket-util.c:300:39:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                tmpfd = mkostemp_safe(tmpfile);
data/systemd-247~rc2/src/test/test-socket-util.c:305: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).
                tmpfd = open(tmpfile, O_RDONLY);
data/systemd-247~rc2/src/test/test-socket-util.c:305:30:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                tmpfd = open(tmpfile, O_RDONLY);
data/systemd-247~rc2/src/test/test-socket-util.c:307:34:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
                assert_se(unlink(tmpfile) == 0);
data/systemd-247~rc2/src/test/test-socket-util.c:314: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.
        char buf[64];
data/systemd-247~rc2/src/test/test-socket-util.c:356: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.
        char buf[64];
data/systemd-247~rc2/src/test/test-socket-util.c:392: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.
        char buf[64];
data/systemd-247~rc2/src/test/test-socket-util.c:431: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.
        char buf[64];
data/systemd-247~rc2/src/test/test-specifier.c:76:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char spec[3];
data/systemd-247~rc2/src/test/test-stat-util.c:76: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).
        assert_se((fd = open("/proc/self/ns/mnt", O_CLOEXEC|O_RDONLY)) >= 0);
data/systemd-247~rc2/src/test/test-stat-util.c:80: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).
        assert_se((fd = open("/proc/self/ns/net", O_CLOEXEC|O_RDONLY)) >= 0);
data/systemd-247~rc2/src/test/test-string-util.c:142: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.
        char buf[40];
data/systemd-247~rc2/src/test/test-strxcpyx.c:10: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.
        char target[25];
data/systemd-247~rc2/src/test/test-strxcpyx.c:27: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.
        char target[25];
data/systemd-247~rc2/src/test/test-strxcpyx.c:47: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.
        char target[25];
data/systemd-247~rc2/src/test/test-strxcpyx.c:60: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.
        char target[25];
data/systemd-247~rc2/src/test/test-strxcpyx.c:71: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.
        char target[25];
data/systemd-247~rc2/src/test/test-strxcpyx.c:82: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.
        char b[100 * DECIMAL_STR_MAX(unsigned) + 1];
data/systemd-247~rc2/src/test/test-strxcpyx.c:83: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.
        char c[100 * DECIMAL_STR_MAX(unsigned) + 1], *p;
data/systemd-247~rc2/src/test/test-time-util.c:201: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.
        char l[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/test/test-time-util.c:325:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[MAX(FORMAT_TIMESTAMP_MAX, FORMAT_TIMESPAN_MAX)];
data/systemd-247~rc2/src/test/test-time-util.c:364: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.
        char buf[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/test/test-unit-file.c:50: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.
        char buf[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/test/test-util.c:324: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.
        char buf[FORMAT_BYTES_MAX];
data/systemd-247~rc2/src/test/test-xattr-util.c:22: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.
        char v[3];
data/systemd-247~rc2/src/test/test-xattr-util.c:35: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 = open(t, O_RDONLY|O_DIRECTORY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/test/test-xattr-util.c:43: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 = open("/", O_RDONLY|O_DIRECTORY|O_CLOEXEC|O_NOCTTY);
data/systemd-247~rc2/src/test/test-xattr-util.c:55: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.
        char ts[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/time-wait-sync/time-wait-sync.c:103: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.
        char buf[MAX((size_t)FORMAT_TIMESTAMP_MAX, STRLEN("unrepresentable"))];
data/systemd-247~rc2/src/time-wait-sync/time-wait-sync.c:154:17:  [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(buf, "unrepresentable");
data/systemd-247~rc2/src/timedate/timedatectl.c:56: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.
        char a[LINE_MAX];
data/systemd-247~rc2/src/timedate/timedatectl.c:343:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[5];
data/systemd-247~rc2/src/timedate/timedatectl.c:359:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char * const ntp_leap_table[4] = {
data/systemd-247~rc2/src/timedate/timedatectl.c:371: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.
        char ts[FORMAT_TIMESPAN_MAX], jitter[FORMAT_TIMESPAN_MAX],
data/systemd-247~rc2/src/timedate/timedatectl.c:612:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(p->reference.str, d, sz);
data/systemd-247~rc2/src/timedate/timedatectl.c:729:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char ts[FORMAT_TIMESPAN_MAX], stamp[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/timesync/timesyncd-ntp-message.h:40: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.
        char refid[4];
data/systemd-247~rc2/src/timesync/timesyncd-server.c:23:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&a->sockaddr, sockaddr, socklen);
data/systemd-247~rc2/src/timesync/timesyncd.c:40: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 = open(CLOCK_FILE, O_RDWR|O_CLOEXEC, 0644);
data/systemd-247~rc2/src/timesync/timesyncd.c:79:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char date[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:407: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).
        f = fopen("/proc/net/unix", "re");
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:659:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char a[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:668:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char a[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:676:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char a[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:726:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char a[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:735:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char a[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:743:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char a[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:751:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char a[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:769:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char a[FORMAT_TIMESTAMP_MAX], m[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:1022: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:1125: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.
        char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:1591:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const char *const creation_mode_verb_table[_CREATION_MODE_MAX] = {
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:1894:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char procfs_path[STRLEN("/proc/self/fd/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:1978: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).
                fd = open(*fn, O_CLOEXEC|O_NOFOLLOW|O_PATH);
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:2256: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.
        char timestamp[FORMAT_TIMESTAMP_MAX];
data/systemd-247~rc2/src/tty-ask-password-agent/tty-ask-password-agent.c:129: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 = open(p, O_WRONLY|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
data/systemd-247~rc2/src/tty-ask-password-agent/tty-ask-password-agent.c:285: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 = open(p, O_RDONLY|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
data/systemd-247~rc2/src/udev/ata_id/ata_id.c:396: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.
        char model[41];
data/systemd-247~rc2/src/udev/ata_id/ata_id.c:397: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.
        char model_enc[256];
data/systemd-247~rc2/src/udev/ata_id/ata_id.c:398: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.
        char serial[21];
data/systemd-247~rc2/src/udev/ata_id/ata_id.c:399: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.
        char revision[9];
data/systemd-247~rc2/src/udev/ata_id/ata_id.c:442: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 = open(node, O_RDONLY|O_NONBLOCK|O_CLOEXEC);
data/systemd-247~rc2/src/udev/ata_id/ata_id.c:475:17:  [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(&id, identify.byte, sizeof id);
data/systemd-247~rc2/src/udev/ata_id/ata_id.c:484:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(model, id.model, 40);
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:99:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char u[18];
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:212:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char inq[128];
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:433:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char header[32];
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:471:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char features[65530];
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:557:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char header[32];
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:594:26:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                unsigned char buffer[32 * 2048];
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:601:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        unsigned char dvdstruct[8];
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:602:34:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        unsigned char format[12];
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:708:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char header[12];
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:709:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char toc[65536];
data/systemd-247~rc2/src/udev/cdrom_id/cdrom_id.c:855: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).
                fd = open(node, O_RDONLY|O_NONBLOCK|O_CLOEXEC);
data/systemd-247~rc2/src/udev/fido_id/fido_id.c:71: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 = open(desc_path, O_RDONLY | O_NOFOLLOW | O_CLOEXEC);
data/systemd-247~rc2/src/udev/mtd_probe/mtd_probe.c:44: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).
        mtd_fd = open(argv[1], O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/udev/net/link-config.c:130:16:  [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 = fopen(filename, "re");
data/systemd-247~rc2/src/udev/net/link-config.c:404:17:  [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(mac->ether_addr_octet, &result, ETH_ALEN);
data/systemd-247~rc2/src/udev/scsi_id/scsi.h:21:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char data[1];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char config_file[MAX_PATH_LEN] = "/etc/scsi_id.config";
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:50:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char vendor_str[64];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:51:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char model_str[64];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:52:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char vendor_enc_str[256];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:53:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char model_enc_str[256];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:54:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char revision_str[16];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:55:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char type_str[16];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:157: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).
        f = fopen(config_file, "re");
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:354:38:  [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).
                        sg_version = atoi(optarg);
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:495:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char serial_str[MAX_SERIAL_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:533:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char serial_str[MAX_SERIAL_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:548: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.
        char maj_min_dev[MAX_PATH_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:29: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.
        char vendor[9];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:30: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.
        char model[17];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:31: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.
        char revision[5];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:32: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.
        char type[33];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:33: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.
        char kernel[64];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:34: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.
        char serial[MAX_SERIAL_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:35: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.
        char serial_short[MAX_SERIAL_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:39: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.
        char unit_serial_number[MAX_SERIAL_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:42: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.
        char wwn[17];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:45: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.
        char wwn_vendor_extension[17];
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.h:48: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.
        char tgpt_group[8];
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:272:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char inq_cmd[INQUIRY_CMDLEN] =
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:274:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char sense[SENSE_BUFF_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:400:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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[static VENDOR_LENGTH + MODEL_LENGTH]) {
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:413:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf, dev_scsi->vendor, VENDOR_LENGTH);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:414:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(buf + VENDOR_LENGTH, dev_scsi->model, MODEL_LENGTH);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:483: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.
                sprintf(tgpt_group,"%x", group);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:557:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char page_83[SCSI_INQ_BUFF_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:643:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char page_83[SCSI_INQ_BUFF_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:705:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[SCSI_INQ_BUFF_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:738:17:  [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(serial_short, buf + 4, len);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:746:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[SCSI_INQ_BUFF_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:750: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 = open(devname, O_RDONLY | O_NONBLOCK | O_CLOEXEC);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:761: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(dev_scsi->kernel,"%d:%d", major(statbuf.st_rdev),
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:770:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dev_scsi->vendor, buf + 8, 8);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:772:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dev_scsi->model, buf + 16, 16);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:774:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(dev_scsi->revision, buf + 32, 4);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:776: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(dev_scsi->type,"%x", buf[0] & 0x1f);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:785:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char page0[SCSI_INQ_BUFF_LEN];
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:796: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).
                fd = open(devname, O_RDONLY | O_NONBLOCK | O_CLOEXEC);
data/systemd-247~rc2/src/udev/udev-builtin-blkid.c:30: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.
        char s[256];
data/systemd-247~rc2/src/udev/udev-builtin-blkid.c:267: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 = open(devnode, O_RDONLY|O_CLOEXEC|O_NONBLOCK);
data/systemd-247~rc2/src/udev/udev-builtin-btrfs.c:23: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 = open("/dev/btrfs-control", O_RDWR|O_CLOEXEC);
data/systemd-247~rc2/src/udev/udev-builtin-hwdb.c:70: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.
        char s[LINE_MAX];
data/systemd-247~rc2/src/udev/udev-builtin-input_id.c:50: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.
        char width[DECIMAL_STR_MAX(int)], height[DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/udev/udev-builtin-input_id.c:54: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 = open(devpath, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/udev/udev-builtin-input_id.c:82: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.
        char text[4096];
data/systemd-247~rc2/src/udev/udev-builtin-keyboard.c:23: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.
        char codes[4096];
data/systemd-247~rc2/src/udev/udev-builtin-keyboard.c:136: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.
        char val_s[DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/udev/udev-builtin-keyboard.c:200:38:  [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(node, O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
data/systemd-247~rc2/src/udev/udev-builtin-keyboard.c:217:38:  [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(node, O_RDWR|O_CLOEXEC|O_NONBLOCK|O_NOCTTY);
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:60: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.
        char pci_slot[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:61: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.
        char pci_path[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:62: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.
        char pci_onboard[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:65: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.
        char usb_ports[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:66: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.
        char bcma_core[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:67: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.
        char ccw_busid[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:68: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.
        char vio_slot[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:69: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.
        char platform_path[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:70: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.
        char netdevsim_path[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:75: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.
        char suffix[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:108: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.
        char suffix[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:227: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 = open(filename, O_RDONLY | O_CLOEXEC);
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:274: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.
        char slots[PATH_MAX];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:350:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char str[PATH_MAX];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:441: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.
        char vendor[5];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:554: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.
        char name[256], *ports, *config, *interf, *s;
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:787: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.
        char str[32];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:851:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:863:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:872:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:881:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:890:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:904:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:928:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:942:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char str[ALTIFNAMSIZ];
data/systemd-247~rc2/src/udev/udev-builtin-path_id.c:380: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.
        char guid[39];
data/systemd-247~rc2/src/udev/udev-builtin-path_id.c:683:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char tag[UTIL_NAME_SIZE];
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:142:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        unsigned char buf[18 + 65535];
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:164: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 = open(filename, O_RDONLY|O_CLOEXEC);
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:179:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char if_str[8];
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:201:17:  [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(&ifs_str[strpos], if_str, 8),
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:231: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.
        char vendor_str[64] = "";
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:232: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.
        char vendor_str_enc[256];
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:234: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.
        char model_str[64] = "";
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:235: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.
        char model_str_enc[256];
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:237: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.
        char serial_str[UTIL_NAME_SIZE] = "";
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:238: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.
        char packed_if_str[UTIL_NAME_SIZE] = "";
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:239: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.
        char revision_str[64] = "";
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:240: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.
        char type_str[64] = "";
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:241: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.
        char instance_str[64] = "";
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:244: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.
        char serial[256];
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:363: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.
                sprintf(instance_str, "%d:%d", target, lun);
data/systemd-247~rc2/src/udev/udev-ctrl.c:35: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.
        char version[16];
data/systemd-247~rc2/src/udev/udev-ctrl.h:25: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.
        char buf[256];
data/systemd-247~rc2/src/udev/udev-event.c:153:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int get_subst_type(const char **str, bool strict, FormatSubstitutionType *ret_type, char ret_attr[static UTIL_PATH_SIZE]) {
data/systemd-247~rc2/src/udev/udev-event.c:153:92:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int get_subst_type(const char **str, bool strict, FormatSubstitutionType *ret_type, char ret_attr[static UTIL_PATH_SIZE]) {
data/systemd-247~rc2/src/udev/udev-event.c:340:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char vbuf[UTIL_NAME_SIZE];
data/systemd-247~rc2/src/udev/udev-event.c:454:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char attr[UTIL_PATH_SIZE];
data/systemd-247~rc2/src/udev/udev-event.c:495: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.
        char attr[UTIL_PATH_SIZE];
data/systemd-247~rc2/src/udev/udev-event.c:538: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.
        char buf[4096], *p;
data/systemd-247~rc2/src/udev/udev-event.c:599: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.
        char timeout[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/udev/udev-event.c:614: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.
        char timeout[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/udev/udev-event.c:1071:33:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                                char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/udev/udev-node.c:198: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.
        char name_enc[PATH_MAX];
data/systemd-247~rc2/src/udev/udev-node.c:227:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                        fd = open(filename, O_WRONLY|O_CREAT|O_CLOEXEC|O_TRUNC|O_NOFOLLOW, 0444);
data/systemd-247~rc2/src/udev/udev-node.c:339: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).
        node_fd = open(devnode, O_PATH|O_NOFOLLOW|O_CLOEXEC);
data/systemd-247~rc2/src/udev/udev-node.c:434: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.
        char filename[DEV_NUM_PATH_MAX], *s;
data/systemd-247~rc2/src/udev/udev-rules.c:1173: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).
        f = fopen(filename, "re");
data/systemd-247~rc2/src/udev/udev-rules.c:1367: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.
        char nbuf[UTIL_NAME_SIZE], vbuf[UTIL_NAME_SIZE];
data/systemd-247~rc2/src/udev/udev-rules.c:1477:30:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int attr_subst_subdir(char attr[static UTIL_PATH_SIZE]) {
data/systemd-247~rc2/src/udev/udev-rules.c:1480: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.
        char buf[UTIL_PATH_SIZE], *p;
data/systemd-247~rc2/src/udev/udev-rules.c:1525: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.
        char buf[UTIL_PATH_SIZE];
data/systemd-247~rc2/src/udev/udev-rules.c:1632:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char tmp[UTIL_PATH_SIZE];
data/systemd-247~rc2/src/udev/udev-rules.c:1658:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char result[UTIL_LINE_SIZE];
data/systemd-247~rc2/src/udev/udev-rules.c:1688:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                f = fopen(buf, "re");
data/systemd-247~rc2/src/udev/udev-rules.c:1729:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char result[UTIL_LINE_SIZE], *line, *pos;
data/systemd-247~rc2/src/udev/udev-rules.c:1862:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char owner[UTIL_NAME_SIZE];
data/systemd-247~rc2/src/udev/udev-rules.c:1879:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char group[UTIL_NAME_SIZE];
data/systemd-247~rc2/src/udev/udev-rules.c:1896:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char mode_str[UTIL_NAME_SIZE];
data/systemd-247~rc2/src/udev/udev-rules.c:1943:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char label_str[UTIL_LINE_SIZE] = {};
data/systemd-247~rc2/src/udev/udev-rules.c:1973:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char value_new[UTIL_NAME_SIZE], *p = value_new;
data/systemd-247~rc2/src/udev/udev-rules.c:2066:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char filename[UTIL_PATH_SIZE], *next;
data/systemd-247~rc2/src/udev/udev-rules.c:2086:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char value[UTIL_NAME_SIZE];
data/systemd-247~rc2/src/udev/udev-rules.c:2106:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char value[UTIL_NAME_SIZE];
data/systemd-247~rc2/src/udev/udev-rules.c:2279: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.
        char device_node[UTIL_PATH_SIZE], tags_dir[UTIL_PATH_SIZE], tag_symlink[UTIL_PATH_SIZE];
data/systemd-247~rc2/src/udev/udev-watch.c:85: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.
        char filename[STRLEN("/run/udev/watch/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/udev/udev-watch.c:122: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.
        char filename[STRLEN("/run/udev/watch/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/udev/udev-watch.c:146: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.
        char filename[STRLEN("/run/udev/watch/") + DECIMAL_STR_MAX(int)];
data/systemd-247~rc2/src/udev/udevadm-test.c:29:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char arg_syspath[UTIL_PATH_SIZE] = {};
data/systemd-247~rc2/src/udev/udevadm-test.c:152:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char program[UTIL_PATH_SIZE];
data/systemd-247~rc2/src/udev/udevd.c:373: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 = open(val, O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK);
data/systemd-247~rc2/src/udev/udevd.c:425: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 = open(val, O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK);
data/systemd-247~rc2/src/udev/udevd.c:1239: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).
                fd = open(devname, O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK);
data/systemd-247~rc2/src/udev/v4l_id/v4l_id.c:62: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 = open(device, O_RDONLY);
data/systemd-247~rc2/src/update-utmp/update-utmp.c:200:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char s[STRLEN("old-level=_ new-level=_") + 1];
data/systemd-247~rc2/src/userdb/userdbd-manager.c:161:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char pids[DECIMAL_STR_MAX(pid_t)];
data/systemd-247~rc2/src/userdb/userwork.c:40: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.
        char buf[SD_ID128_STRING_MAX];
data/systemd-247~rc2/src/userdb/userwork.c:716:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/userdb/userwork.c:725:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                        char buf[FORMAT_TIMESPAN_MAX];
data/systemd-247~rc2/src/vconsole/vconsole-setup.c:53: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.
        char vcname[sizeof("/dev/vcs") + DECIMAL_STR_MAX(unsigned) - 2];
data/systemd-247~rc2/src/vconsole/vconsole-setup.c:128: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.
        const char *args[8];
data/systemd-247~rc2/src/vconsole/vconsole-setup.c:167: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.
        const char *args[9];
data/systemd-247~rc2/src/vconsole/vconsole-setup.c:289:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char ttyname[sizeof("/dev/tty63")];
data/systemd-247~rc2/src/vconsole/vconsole-setup.c:371: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.
                sprintf(path, "/dev/tty%u", i);
data/systemd-247~rc2/src/veritysetup/veritysetup-generator.c:169: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.
        char ids[ID128_UUID_STRING_MAX];
data/systemd-247~rc2/src/xdg-autostart-generator/xdg-autostart-service.c:579: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).
        f = fopen(unit, "wxe");
data/systemd-247~rc2/coccinelle/macros.h:45:53:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        for (_cleanup_umask_ mode_t _saved_umask_ = umask(mask) | S_IFMT; \
data/systemd-247~rc2/src/analyze/analyze.c:681:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                text_width = 8.0 * strlen(u->name);
data/systemd-247~rc2/src/backlight/backlight.c:388:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/basic/af-list.c:31:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sc = lookup_af(name, strlen(name));
data/systemd-247~rc2/src/basic/arphrd-list.c:20: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).
        sc = lookup_arphrd(name, strlen(name));
data/systemd-247~rc2/src/basic/btrfs-util.c:50: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).
        if (strlen(name) > BTRFS_SUBVOL_NAME_MAX)
data/systemd-247~rc2/src/basic/btrfs-util.c:137:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(args.name, subvolume, sizeof(args.name)-1);
data/systemd-247~rc2/src/basic/btrfs-util.c:170:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        old = umask(~mode);
data/systemd-247~rc2/src/basic/btrfs-util.c:173:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                umask(combined);
data/systemd-247~rc2/src/basic/btrfs-util.c:175:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(old);
data/systemd-247~rc2/src/basic/btrfs-util.c:1137:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(vol_args.name, subvolume, sizeof(vol_args.name)-1);
data/systemd-247~rc2/src/basic/btrfs-util.c:1473:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(vol_args.name, subvolume, sizeof(vol_args.name)-1);
data/systemd-247~rc2/src/basic/bus-label.c:23: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).
        r = new(char, strlen(s)*3 + 1);
data/systemd-247~rc2/src/basic/cap-list.c:46:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sc = lookup_capability(name, strlen(name));
data/systemd-247~rc2/src/basic/cap-list.c:75:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        add = strlen(p);
data/systemd-247~rc2/src/basic/cap-list.c:80:25:  [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(mempcpy(str + n, p, add), " ");
data/systemd-247~rc2/src/basic/cgroup-util.c:1504: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).
                                if (l != strlen(n))
data/systemd-247~rc2/src/basic/cgroup-util.c:1815:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(k);
data/systemd-247~rc2/src/basic/copy.c:300:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        n = read(fdf, buf, sizeof buf);
data/systemd-247~rc2/src/basic/efivars.c:111:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        n = read(fd, &a, sizeof(a));
data/systemd-247~rc2/src/basic/efivars.c:121:40:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                                (void) usleep(EFI_RETRY_DELAY);
data/systemd-247~rc2/src/basic/efivars.c:134:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(fd, buf, (size_t) st.st_size - 4);
data/systemd-247~rc2/src/basic/efivars.c:280:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        u16 = utf8_to_utf16(v, strlen(v));
data/systemd-247~rc2/src/basic/env-util.c:72: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).
        if (strlen(e) > sc_arg_max() - 3)
data/systemd-247~rc2/src/basic/env-util.c:95: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).
        if (strlen(e) > sc_arg_max() - 1)
data/systemd-247~rc2/src/basic/env-util.c:243:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t l = strlen(pattern);
data/systemd-247~rc2/src/basic/env-util.c:460: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).
        return strv_env_get_n(l, name, strlen(name), 0);
data/systemd-247~rc2/src/basic/env-util.h:32:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return replace_env_n(format, strlen(format), env, flags);
data/systemd-247~rc2/src/basic/errno-list.c:31:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sc = lookup_errno(name, strlen(name));
data/systemd-247~rc2/src/basic/escape.c:102: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).
        return cescape_length(s, strlen(s));
data/systemd-247~rc2/src/basic/escape.c:376:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ans = new(char, MIN(strlen(s), console_width) * 4 + 1);
data/systemd-247~rc2/src/basic/escape.c:380:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memset(ans, '_', MIN(strlen(s), console_width) * 4);
data/systemd-247~rc2/src/basic/escape.c:381: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).
        ans[MIN(strlen(s), console_width) * 4] = 0;
data/systemd-247~rc2/src/basic/escape.c:487: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).
        r = new(char, strlen(s)*2+1);
data/systemd-247~rc2/src/basic/escape.c:516: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).
        r = new(char, (style == ESCAPE_POSIX) + 1 + strlen(s)*2 + 1 + 1);
data/systemd-247~rc2/src/basic/escape.h:55:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return cunescape_length(s, strlen(s), flags, ret);
data/systemd-247~rc2/src/basic/fileio.c:336: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).
        l = strlen(blob);
data/systemd-247~rc2/src/basic/fileio.c:425:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        k = read(fd, buf, size + 1);
data/systemd-247~rc2/src/basic/fileio.c:754:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        t += strlen(pattern);
data/systemd-247~rc2/src/basic/fileio.c:1258:13:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        k = fgetc(f);
data/systemd-247~rc2/src/basic/fs-util.c:54: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).
        l = strlen(path);
data/systemd-247~rc2/src/basic/fs-util.c:287:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        u = umask(0777);
data/systemd-247~rc2/src/basic/fs-util.c:289:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(u);
data/systemd-247~rc2/src/basic/hash-funcs.c:9:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        siphash24_compress(p, strlen(p) + 1, state);
data/systemd-247~rc2/src/basic/hexdecoct.c:123:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(p);
data/systemd-247~rc2/src/basic/hexdecoct.c:313:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(p);
data/systemd-247~rc2/src/basic/hexdecoct.c:712:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(p);
data/systemd-247~rc2/src/basic/hostname-util.c:240:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (sethostname(s, strlen(s)) < 0)
data/systemd-247~rc2/src/basic/in-addr-util.c:413: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).
        p = x + strlen(x);
data/systemd-247~rc2/src/basic/in-addr-util.c:414: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).
        l -= strlen(x);
data/systemd-247~rc2/src/basic/io-util.c:36:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                l = read(fd, buf, sizeof(buf));
data/systemd-247~rc2/src/basic/io-util.c:68:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                k = read(fd, p, nbytes);
data/systemd-247~rc2/src/basic/io-util.c:308:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = iovw_put(iovw, x, strlen(x));
data/systemd-247~rc2/src/basic/io-util.h:72:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define IOVEC_INIT_STRING(string) IOVEC_INIT((char*) string, strlen(string))
data/systemd-247~rc2/src/basic/kbd-util.c:96: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).
        if (strlen(name) >= 128)
data/systemd-247~rc2/src/basic/khash.c:110: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).
        if (strlen(algorithm) >= sizeof(sa.alg.salg_name))
data/systemd-247~rc2/src/basic/locale-util.c:242: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).
        if (strlen(name) >= 128)
data/systemd-247~rc2/src/basic/log.c:799:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = strlen(object);
data/systemd-247~rc2/src/basic/mkdir.c:125: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).
                char t[strlen(path) + 1];
data/systemd-247~rc2/src/basic/parse-util.c:252:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                p = e + strlen(table[i].suffix);
data/systemd-247~rc2/src/basic/path-util.c:183:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = new(char, n_parents * 3 + strlen(t) + 1);
data/systemd-247~rc2/src/basic/path-util.c:423: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).
                                  lvalue, strlen(path), fatal ? "" : ", ignoring");
data/systemd-247~rc2/src/basic/path-util.c:555:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        sz += 1 + strlen(p);
data/systemd-247~rc2/src/basic/path-util.c:810: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).
        l = k = strlen(path);
data/systemd-247~rc2/src/basic/path-util.c:881: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).
        if (strlen(p) >= PATH_MAX) /* PATH_MAX is counted *with* the trailing NUL byte */
data/systemd-247~rc2/src/basic/path-util.c:925: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).
        k = strlen(filename);
data/systemd-247~rc2/src/basic/path-util.h:134:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        _l = strlen(_root) + 1 + strlen(_path) + 1;     \
data/systemd-247~rc2/src/basic/path-util.h:134: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).
                        _l = strlen(_root) + 1 + strlen(_path) + 1;     \
data/systemd-247~rc2/src/basic/process-util.c:238:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(nn, name, nn_size);
data/systemd-247~rc2/src/basic/process-util.c:277:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(mm, name, mm_size);
data/systemd-247~rc2/src/basic/process-util.c:307:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t l = strlen(name);
data/systemd-247~rc2/src/basic/process-util.c:320:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                k = strlen(program_invocation_name);
data/systemd-247~rc2/src/basic/process-util.c:321:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(program_invocation_name, name, k);
data/systemd-247~rc2/src/basic/process-util.c:337:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        k = strlen(saved_argv[0]);
data/systemd-247~rc2/src/basic/process-util.c:338:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(saved_argv[0], name, k);
data/systemd-247~rc2/src/basic/process-util.c:347: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).
                        memzero(saved_argv[i], strlen(saved_argv[i]));
data/systemd-247~rc2/src/basic/process-util.c:493:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        l += strlen(field);
data/systemd-247~rc2/src/basic/process-util.c:641:42:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
int get_process_umask(pid_t pid, mode_t *umask) {
data/systemd-247~rc2/src/basic/process-util.c:646:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        assert(umask);
data/systemd-247~rc2/src/basic/process-util.c:655:30:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        return parse_mode(m, umask);
data/systemd-247~rc2/src/basic/process-util.c:876: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).
        l = strlen(field);
data/systemd-247~rc2/src/basic/process-util.h:26: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).
                        _r_ = newa(char, STRLEN("/proc/self/") + strlen(_field_) + 1); \
data/systemd-247~rc2/src/basic/process-util.h:29: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).
                        _r_ = newa(char, STRLEN("/proc/") + DECIMAL_STR_MAX(pid_t) + 1 + strlen(_field_) + 1); \
data/systemd-247~rc2/src/basic/process-util.h:50:42:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
int get_process_umask(pid_t pid, mode_t *umask);
data/systemd-247~rc2/src/basic/replace-var.c:47: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).
        l = strlen(text);
data/systemd-247~rc2/src/basic/replace-var.c:72: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).
                skip = strlen(v) + 2;
data/systemd-247~rc2/src/basic/replace-var.c:75:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                nl = l - skip + strlen(n);
data/systemd-247~rc2/src/basic/siphash24.h:40:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        siphash24_compress(in, strlen(in), state);
data/systemd-247~rc2/src/basic/siphash24.h:48:29:  [1] (buffer) strlen:
  Does not handle 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 siphash24(s, strlen(s) + 1, k);
data/systemd-247~rc2/src/basic/smack-util.c:79: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).
                r = lsetxattr(path, smack_attr_to_string(attr), label, strlen(label), 0);
data/systemd-247~rc2/src/basic/smack-util.c:98: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).
                r = fsetxattr(fd, smack_attr_to_string(attr), label, strlen(label), 0);
data/systemd-247~rc2/src/basic/smack-util.c:157:62:  [1] (buffer) strlen:
  Does not handle 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 (setxattr(procfs_path, "security.SMACK64", label, strlen(label), 0) < 0) {
data/systemd-247~rc2/src/basic/socket-util.c:709:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(p) >= ALTIFNAMSIZ)
data/systemd-247~rc2/src/basic/socket-util.c:712:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(p) >= IFNAMSIZ)
data/systemd-247~rc2/src/basic/socket-util.c:749: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).
        if (strlen(p) >= IFNAMSIZ)
data/systemd-247~rc2/src/basic/socket-util.c:1123: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).
        l = strlen(path);
data/systemd-247~rc2/src/basic/string-util.c:45: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).
        sl = strlen(s);
data/systemd-247~rc2/src/basic/string-util.c:46: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).
        pl = strlen(postfix);
data/systemd-247~rc2/src/basic/string-util.c:66: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).
        sl = strlen(s);
data/systemd-247~rc2/src/basic/string-util.c:67: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).
        pl = strlen(postfix);
data/systemd-247~rc2/src/basic/string-util.c:92: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).
        sl = strlen(s);
data/systemd-247~rc2/src/basic/string-util.c:93: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).
        wl = strlen(word);
data/systemd-247~rc2/src/basic/string-util.c:131: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).
        a = strlen(s);
data/systemd-247~rc2/src/basic/string-util.c:155:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = strlen(t);
data/systemd-247~rc2/src/basic/string-util.c:606: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).
        old_len = strlen(old_string);
data/systemd-247~rc2/src/basic/string-util.c:607: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).
        new_len = strlen(new_string);
data/systemd-247~rc2/src/basic/string-util.c:609: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).
        l = strlen(text);
data/systemd-247~rc2/src/basic/string-util.c:686:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        isz = _isz ? *_isz : strlen(*ibuf);
data/systemd-247~rc2/src/basic/string-util.c:816:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = strlen(t);
data/systemd-247~rc2/src/basic/string-util.c:871: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).
        l = strlen(s);
data/systemd-247~rc2/src/basic/string-util.c:902: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).
        b = strdup(x + strlen(sep));
data/systemd-247~rc2/src/basic/string-util.c:950: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).
        if (*p && s && strneq(*p, s, l) && (l > strlen(*p) || (*p)[l] == '\0'))
data/systemd-247~rc2/src/basic/string-util.c:989:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        explicit_bzero_safe(x, strlen(x));
data/systemd-247~rc2/src/basic/string-util.h:99: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).
        l = strlen(prefix);
data/systemd-247~rc2/src/basic/string-util.h:109: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).
        l = strlen(prefix);
data/systemd-247~rc2/src/basic/string-util.h:133: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).
                        _len_ += strlen(_appendees_[_i_]);              \
data/systemd-247~rc2/src/basic/string-util.h:178:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return ellipsize_mem(s, strlen(s), length, percent);
data/systemd-247~rc2/src/basic/string-util.h:214: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).
        return strlen(s);
data/systemd-247~rc2/src/basic/string-util.h:219:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf, src, buf_len);
data/systemd-247~rc2/src/basic/string-util.h:227:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t n = strlen(token);
data/systemd-247~rc2/src/basic/string-util.h:245:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t n = strlen(token);
data/systemd-247~rc2/src/basic/string-util.h:264:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *t = realloc(*p, strlen(*p) + 1);
data/systemd-247~rc2/src/basic/strv.c:362: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).
        k = strlen(separator);
data/systemd-247~rc2/src/basic/strv.c:375:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n += m + strlen(*s) * (1 + needs_escaping);
data/systemd-247~rc2/src/basic/strv.c:720:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                z = strlen(*i);
data/systemd-247~rc2/src/basic/strxcpyx.c:44: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).
        return strnpcpy(dest, size, src, strlen(src));
data/systemd-247~rc2/src/basic/strxcpyx.c:97: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).
        return strnscpy(dest, size, src, strlen(src));
data/systemd-247~rc2/src/basic/syslog-util.c:117: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).
        if (strlen(s) > LOG_NAMESPACE_MAX)
data/systemd-247~rc2/src/basic/terminal-util.c:143: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).
        if (strlen(line) != 1)
data/systemd-247~rc2/src/basic/terminal-util.c:344:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(50 * USEC_PER_MSEC);
data/systemd-247~rc2/src/basic/terminal-util.c:458:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        l = read(notify, &buffer, sizeof(buffer));
data/systemd-247~rc2/src/basic/time-util.c:376:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = strlen(buf);
data/systemd-247~rc2/src/basic/time-util.c:384: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).
        n = strlen(buf);
data/systemd-247~rc2/src/basic/time-util.c:397:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                tn = strlen(tm.tm_zone);
data/systemd-247~rc2/src/basic/time-util.c:504:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(p, "infinity", l-1);
data/systemd-247~rc2/src/basic/time-util.c:510:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
                strncpy(p, "0", l-1);
data/systemd-247~rc2/src/basic/time-util.c:750: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).
                skip = strlen(day_nr[i].name);
data/systemd-247~rc2/src/basic/tmpfile-util.c:121: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).
        t = new(char, strlen(p) + 2 + strlen(extra) + 6 + 1);
data/systemd-247~rc2/src/basic/tmpfile-util.c:121:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        t = new(char, strlen(p) + 2 + strlen(extra) + 6 + 1);
data/systemd-247~rc2/src/basic/tmpfile-util.c:158: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).
        t = new(char, strlen(p) + 2 + strlen(extra) + 16 + 1);
data/systemd-247~rc2/src/basic/tmpfile-util.c:158:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        t = new(char, strlen(p) + 2 + strlen(extra) + 16 + 1);
data/systemd-247~rc2/src/basic/tmpfile-util.c:198: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).
        t = new(char, strlen(p) + 3 + strlen(extra) + 16 + 1);
data/systemd-247~rc2/src/basic/tmpfile-util.c:198:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        t = new(char, strlen(p) + 3 + strlen(extra) + 16 + 1);
data/systemd-247~rc2/src/basic/umask-util.h:11:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(*u & 0777);
data/systemd-247~rc2/src/basic/umask-util.h:24:53:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        for (_cleanup_umask_ mode_t _saved_umask_ = umask(mask) | S_IFMT; \
data/systemd-247~rc2/src/basic/unit-name.c:44: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).
        if (strlen(n) >= UNIT_NAME_MAX)
data/systemd-247~rc2/src/basic/unit-name.c:227: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).
        b = strlen(suffix);
data/systemd-247~rc2/src/basic/unit-name.c:330: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).
        r = new(char, strlen(f)*4+1);
data/systemd-247~rc2/src/basic/unit-name.c:470: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).
        b = strlen(i);
data/systemd-247~rc2/src/basic/unit-name.c:472:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        s = new(char, a + 1 + b + strlen(e) + 1);
data/systemd-247~rc2/src/basic/unit-name.c:502:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        s = new(char, a + 1 + strlen(e) + 1);
data/systemd-247~rc2/src/basic/unit-name.c:663: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).
        s = new(char, strlen(name) * 4 + strlen(suffix) + 1);
data/systemd-247~rc2/src/basic/unit-name.c:663: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).
        s = new(char, strlen(name) * 4 + strlen(suffix) + 1);
data/systemd-247~rc2/src/basic/unit-name.c:749: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).
                subslice = new(char, (e - slice) + 1 + strlen(name) + 6 + 1);
data/systemd-247~rc2/src/basic/utf8.c:181: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).
        p = s = malloc(strlen(str) * 4 + 1);
data/systemd-247~rc2/src/basic/utf8.c:225:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        p = s = prev_s = malloc(strlen(str) * 4 + 1);
data/systemd-247~rc2/src/basic/utf8.c:268:68:  [1] (buffer) strlen:
  Does not handle 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 = mempcpy(s, UTF8_REPLACEMENT_CHARACTER, strlen(UTF8_REPLACEMENT_CHARACTER));
data/systemd-247~rc2/src/basic/utf8.c:281:29:  [1] (buffer) strlen:
  Does not handle 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 = mempcpy(s, "…", strlen("…"));
data/systemd-247~rc2/src/basic/util.c:119:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(fd, contents, sizeof(contents));
data/systemd-247~rc2/src/basic/util.c:135:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(fd, contents, sizeof(contents));
data/systemd-247~rc2/src/binfmt/binfmt.c:196:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/boot/bootctl.c:1680: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).
                encoded = utf8_to_utf16(arg1, strlen(arg1));
data/systemd-247~rc2/src/boot/efi/util.c:240: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).
        UINTN strlen;
data/systemd-247~rc2/src/boot/efi/util.c:253: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).
                utf8len = utf8_to_16(stra + i, str + strlen);
data/systemd-247~rc2/src/boot/efi/util.c:263: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).
        str[strlen] = '\0';
data/systemd-247~rc2/src/boot/efi/util.c:269: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).
        UINTN strlen;
data/systemd-247~rc2/src/boot/efi/util.c:282: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).
                utf8len = utf8_to_16(stra + i, str + strlen);
data/systemd-247~rc2/src/boot/efi/util.c:289:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (str[strlen] == '/')
data/systemd-247~rc2/src/boot/efi/util.c:290:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        str[strlen] = '\\';
data/systemd-247~rc2/src/boot/efi/util.c:291:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (str[strlen] == '\\' && str[strlen-1] == '\\') {
data/systemd-247~rc2/src/boot/efi/util.c:300: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).
        str[strlen] = '\0';
data/systemd-247~rc2/src/busctl/busctl.c:1099:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        name_width = strlen("NAME");
data/systemd-247~rc2/src/busctl/busctl.c:1100:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        type_width = strlen("TYPE");
data/systemd-247~rc2/src/busctl/busctl.c:1101:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        signature_width = strlen("SIGNATURE");
data/systemd-247~rc2/src/busctl/busctl.c:1102: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).
        result_width = strlen("RESULT/VALUE");
data/systemd-247~rc2/src/busctl/busctl.c:1111: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).
                        name_width = MAX(name_width, strlen(m->interface));
data/systemd-247~rc2/src/busctl/busctl.c:1113: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).
                        name_width = MAX(name_width, strlen(m->name) + 1);
data/systemd-247~rc2/src/busctl/busctl.c:1115: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).
                        type_width = MAX(type_width, strlen(m->type));
data/systemd-247~rc2/src/busctl/busctl.c:1117: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).
                        signature_width = MAX(signature_width, strlen(m->signature));
data/systemd-247~rc2/src/busctl/busctl.c:1119: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).
                        result_width = MAX(result_width, strlen(m->result));
data/systemd-247~rc2/src/busctl/busctl.c:1121: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).
                        result_width = MAX(result_width, strlen(m->value));
data/systemd-247~rc2/src/cgroups-agent/cgroups-agent.c:33: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).
        l = strlen(argv[1]);
data/systemd-247~rc2/src/cgtop/cgtop.c:618:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                cputlen = strlen(buffer);
data/systemd-247~rc2/src/cgtop/cgtop.c:621:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pathtlen = strlen(array[j]->path);
data/systemd-247~rc2/src/cgtop/cgtop.c:637: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).
                path_columns = columns() - 36 - strlen(buffer);
data/systemd-247~rc2/src/cgtop/cgtop.c:980:32:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                        (void) usleep(last_refresh + arg_delay - t);
data/systemd-247~rc2/src/core/automount.c:372: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).
        l = sizeof(struct autofs_dev_ioctl) + strlen(where) + 1;
data/systemd-247~rc2/src/core/bpf-devices.c:384: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).
        assert(strlen(acc) <= 3);
data/systemd-247~rc2/src/core/cgroup.c:1325:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                                strncpy(buf, "-1\n", sizeof(buf));
data/systemd-247~rc2/src/core/cgroup.c:2896:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                l = read(fd, &buffer, sizeof(buffer));
data/systemd-247~rc2/src/core/dbus-cgroup.c:708: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).
                                            (int)(strlen(name) - strlen("Scale")), name, \
data/systemd-247~rc2/src/core/dbus-cgroup.c:708: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).
                                            (int)(strlen(name) - strlen("Scale")), name, \
data/systemd-247~rc2/src/core/dbus-cgroup.c:1309:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                if (read)
data/systemd-247~rc2/src/core/dbus-cgroup.c:1332:45:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                                        if (read)
data/systemd-247~rc2/src/core/dbus-cgroup.c:1345:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        if (read) {
data/systemd-247~rc2/src/core/dbus-execute.c:1008:84:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        SD_BUS_PROPERTY("UMask", "u", bus_property_get_mode, offsetof(ExecContext, umask), SD_BUS_VTABLE_PROPERTY_CONST),
data/systemd-247~rc2/src/core/dbus-execute.c:1852:62:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                return bus_set_transient_mode_t(u, name, &c->umask, message, flags, error);
data/systemd-247~rc2/src/core/dbus-manager.c:1281:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fd = acquire_data_fd(dump, strlen(dump), 0);
data/systemd-247~rc2/src/core/dbus-timer.c:46:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(s);
data/systemd-247~rc2/src/core/dbus-util.c:149:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = strndupa(name, strlen(name) - 4);
data/systemd-247~rc2/src/core/dynamic-user.c:53: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).
        d = malloc0(offsetof(DynamicUser, name) + strlen(name) + 1);
data/systemd-247~rc2/src/core/dynamic-user.c:242: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).
                        candidate = UID_CLAMP_INTO_RANGE(siphash24(name, strlen(name), hash_key));
data/systemd-247~rc2/src/core/execute.c:535:111:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                fd = acquire_path(context->stdio_file[STDIN_FILENO], rw ? O_RDWR : O_RDONLY, 0666 & ~context->umask);
data/systemd-247~rc2/src/core/execute.c:717:88:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                fd = acquire_path(context->stdio_file[fileno], flags, 0666 & ~context->umask);
data/systemd-247~rc2/src/core/execute.c:1381: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).
        l = strlen(p);
data/systemd-247~rc2/src/core/execute.c:2128:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read(unshare_ready_fd, &c, sizeof(c)) < 0) {
data/systemd-247~rc2/src/core/execute.c:2159: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(fd, gid_map, strlen(gid_map)) < 0) {
data/systemd-247~rc2/src/core/execute.c:2172: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(fd, uid_map, strlen(uid_map)) < 0) {
data/systemd-247~rc2/src/core/execute.c:2194:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(errno_pipe[0], &r, sizeof(r));
data/systemd-247~rc2/src/core/execute.c:2536: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).
                add = strlen(sc->id) + sc->size;
data/systemd-247~rc2/src/core/execute.c:2588: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).
                add = strlen(*id) + size;
data/systemd-247~rc2/src/core/execute.c:4048:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (void) umask(context->umask);
data/systemd-247~rc2/src/core/execute.c:4048:31:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (void) umask(context->umask);
data/systemd-247~rc2/src/core/execute.c:5183:28:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                prefix, c->umask,
data/systemd-247~rc2/src/core/execute.c:5846:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                k += strlen(*a)+3;
data/systemd-247~rc2/src/core/execute.h:188:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        mode_t umask;
data/systemd-247~rc2/src/core/ima-setup.c:80: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).
                len = strlen(line);
data/systemd-247~rc2/src/core/load-fragment.c:291: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).
        if (strlen(rvalue) >= PATH_MAX) {
data/systemd-247~rc2/src/core/load-fragment.c:1047: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).
        sz = strlen(resolved);
data/systemd-247~rc2/src/core/load-fragment.c:1589:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = unhexmem(rvalue, strlen(rvalue), &roothash_decoded, &roothash_decoded_size);
data/systemd-247~rc2/src/core/load-fragment.c:1658:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = unbase64mem(value, strlen(value), &roothash_sig_decoded, &roothash_sig_decoded_size);
data/systemd-247~rc2/src/core/load-fragment.c:4283:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        bool read;
data/systemd-247~rc2/src/core/load-fragment.c:4350:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read)
data/systemd-247~rc2/src/core/load-fragment.c:5651: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).
                assert_se(p = load_fragment_gperf_lookup(i, strlen(i)));
data/systemd-247~rc2/src/core/machine-id-setup.c:152: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).
                        r = loop_write(fd, "uninitialized\n", strlen("uninitialized\n"), false);
data/systemd-247~rc2/src/core/main.c:2602:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                umask(0);
data/systemd-247~rc2/src/core/manager.c:2650:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(m->signal_fd, &sfsi, sizeof(sfsi));
data/systemd-247~rc2/src/core/manager.c:3132: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).
        if (asprintf(&message, "U\002%c%s%n", (int) (strlen(u->id) + 1), u->id, &n) < 0) {
data/systemd-247~rc2/src/core/manager.c:4488:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char p[strlen(path)+1];
data/systemd-247~rc2/src/core/namespace.c:705:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        u = umask(0000);
data/systemd-247~rc2/src/core/path.c:160:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(s->inotify_fd, &buffer, sizeof(buffer));
data/systemd-247~rc2/src/core/service.c:2617:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = strlen(e);
data/systemd-247~rc2/src/core/service.c:3236:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(fd, &x, sizeof(x));
data/systemd-247~rc2/src/core/service.c:4090:29:  [1] (buffer) strlen:
  Does not handle 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(e) > STATUS_TEXT_MAX)
data/systemd-247~rc2/src/core/service.c:4091:105:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                log_unit_warning(u, "Status message overly long (%zu > %u), ignoring.", strlen(e), STATUS_TEXT_MAX);
data/systemd-247~rc2/src/core/smack-setup.c:113:78:  [1] (buffer) strlen:
  Does not handle 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(isempty(acc2) ? load2_fd : change_fd, buf, strlen(buf)) < 0) {
data/systemd-247~rc2/src/core/smack-setup.c:173: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).
                        if (write(cipso2_fd, buf, strlen(buf)) < 0) {
data/systemd-247~rc2/src/core/smack-setup.c:274:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(buf);
data/systemd-247~rc2/src/core/socket.c:1106:80:  [1] (buffer) strlen:
  Does not handle 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 (setsockopt(fd, SOL_TCP, TCP_CONGESTION, s->tcp_congestion, strlen(s->tcp_congestion)+1) < 0)
data/systemd-247~rc2/src/core/socket.c:1158:20:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        old_mask = umask(~socket_mode);
data/systemd-247~rc2/src/core/socket.c:1161:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (void) umask(~socket_mode | old_mask);
data/systemd-247~rc2/src/core/socket.c:1164:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (void) umask(old_mask);
data/systemd-247~rc2/src/core/socket.c:1262:20:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        old_mask = umask(~mq_mode);
data/systemd-247~rc2/src/core/socket.c:1265:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (void) umask(~mq_mode | old_mask);
data/systemd-247~rc2/src/core/socket.c:1267:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        (void) umask(old_mask);
data/systemd-247~rc2/src/core/transaction.c:336: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).
                next = strlen(unit_log_field) + strlen(*unit_id);
data/systemd-247~rc2/src/core/transaction.c:336: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).
                next = strlen(unit_log_field) + strlen(*unit_id);
data/systemd-247~rc2/src/core/unit.c:196:72:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                        (void) get_process_umask(getpid_cached(), &ec->umask);
data/systemd-247~rc2/src/core/unit.c:567:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        char s[strlen(path) + 1];
data/systemd-247~rc2/src/core/unit.c:1536:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char prefix[strlen(path) + 1];
data/systemd-247~rc2/src/core/unit.c:4544: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).
        if (asprintf(ret, "_du%016" PRIx64, siphash24(n, strlen(n), hash_key)) < 0)
data/systemd-247~rc2/src/core/unit.c:4797:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                a = (n > 0) + 1 + strlen(p) + 1; /* separating space + " + entry + " */
data/systemd-247~rc2/src/core/unit.c:5171:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char prefix[strlen(path) + 1];
data/systemd-247~rc2/src/coredump/coredump.c:226: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).
                k = fsetxattr(fd, xattrs[i], context->meta[i], strlen(context->meta[i]), XATTR_CREATE);
data/systemd-247~rc2/src/coredump/coredump.c:490:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(fd, field + 9, size);
data/systemd-247~rc2/src/coredump/coredumpctl.c:311: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).
        ident = strlen(name) + 1; /* name + "=" */
data/systemd-247~rc2/src/cryptsetup/cryptsetup-keyfile.c:100:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(fd, buffer, key_file_size);
data/systemd-247~rc2/src/cryptsetup/cryptsetup.c:461:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(*p)+1 >= arg_key_size)
data/systemd-247~rc2/src/cryptsetup/cryptsetup.c:469:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(c, *p, arg_key_size);
data/systemd-247~rc2/src/cryptsetup/cryptsetup.c:528: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).
                params.passphrase_size = strlen(params.passphrase);
data/systemd-247~rc2/src/cryptsetup/cryptsetup.c:716: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).
                        r = crypt_activate_by_passphrase(cd, name, arg_key_slot, base64_encoded, strlen(base64_encoded), flags);
data/systemd-247~rc2/src/cryptsetup/cryptsetup.c:758: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).
                                r = crypt_activate_by_passphrase(cd, name, arg_key_slot, *p, strlen(*p), flags);
data/systemd-247~rc2/src/cryptsetup/cryptsetup.c:843:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/delta/delta.c:235:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                d = p + strlen(toppath) + 1;
data/systemd-247~rc2/src/delta/delta.c:243:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        d = p + strlen(toppath) + 1;
data/systemd-247~rc2/src/dissect/dissect.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).
                        r = unhexmem(optarg, strlen(optarg), &p, &l);
data/systemd-247~rc2/src/dissect/dissect.c:216: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).
                                r = unbase64mem(value, strlen(value), &p, &l);
data/systemd-247~rc2/src/firstboot/firstboot.c:1277:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/fsck/fsck.c:265:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/fsckd/fsckd.c:219:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(m->plymouth_fd, buffer, sizeof(buffer));
data/systemd-247~rc2/src/fsckd/fsckd.c:260: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).
        if (connect(m->plymouth_fd, &sa.sa, offsetof(struct sockaddr_un, sun_path) + 1 + strlen(sa.un.sun_path+1)) < 0) {
data/systemd-247~rc2/src/fsckd/fsckd.c:286: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).
        if (asprintf(&packet, "%c\002%c%s%n", mode, (int) (strlen(message) + 1), message, &n) < 0)
data/systemd-247~rc2/src/fuzz/fuzz-ndisc-rs.c:27:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, iov_base, iov_len) == (ssize_t) iov_len);
data/systemd-247~rc2/src/hibernate-resume/hibernate-resume.c:25:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/home/homectl-fido2.c:235: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).
                               (const unsigned char*) fido_un, strlen(fido_un), /* We pass the user ID and name as the same */
data/systemd-247~rc2/src/home/homed-home.c:998: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).
        stdin_fd = acquire_data_fd(formatted, strlen(formatted), 0);
data/systemd-247~rc2/src/home/homed-manager.c:588:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        candidate = UID_CLAMP_INTO_HOME_RANGE(siphash24(user_name, strlen(user_name), hash_key));
data/systemd-247~rc2/src/home/homed.c:30:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/home/homework-fscrypt.c:126:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            password, strlen(password),
data/systemd-247~rc2/src/home/homework-fscrypt.c:387:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                            password, strlen(password),
data/systemd-247~rc2/src/home/homework-fscrypt.c:444: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).
        if (fsetxattr(root_fd, label, joined, strlen(joined), 0) < 0)
data/systemd-247~rc2/src/home/homework-luks.c:249:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strlen(*pp));
data/systemd-247~rc2/src/home/homework-luks.c:845: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).
        text_length = strlen(text);
data/systemd-247~rc2/src/home/homework-luks.c:1556:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strlen(*pp));
data/systemd-247~rc2/src/home/homework-luks.c:2974:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strlen(effective_passwords[i]));
data/systemd-247~rc2/src/home/homework-luks.c:3043:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strlen(*pp));
data/systemd-247~rc2/src/home/homework-pkcs11.c:69:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                rv = m->C_Login(session, CKU_USER, (CK_UTF8CHAR*) *i, strlen(*i));
data/systemd-247~rc2/src/home/homework.c:1638:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/home/homework.c:1733:32:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                        (void) usleep(usec_sub_unsigned(end, n));
data/systemd-247~rc2/src/home/modhex.c:30: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).
        l = strlen(password);
data/systemd-247~rc2/src/home/user-record-sign.c:58: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).
        if (EVP_DigestSign(md_ctx, NULL, &signature_size, (uint8_t*) text, strlen(text)) <= 0)
data/systemd-247~rc2/src/home/user-record-sign.c:65: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).
        if (EVP_DigestSign(md_ctx, signature, &signature_size, (uint8_t*) text, strlen(text)) <= 0)
data/systemd-247~rc2/src/home/user-record-sign.c:153: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).
                if (EVP_DigestVerify(md_ctx, signature, signature_size, (uint8_t*) text, strlen(text)) <= 0) {
data/systemd-247~rc2/src/hostname/hostnamed.c:978:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/import/export-raw.c:186:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                l = read(e->input_fd, input, sizeof(input));
data/systemd-247~rc2/src/import/export-tar.c:198:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                l = read(e->tar_fd, input, sizeof(input));
data/systemd-247~rc2/src/import/import-raw.c:312:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(i->input_fd, i->buffer + i->buffer_size, sizeof(i->buffer) - i->buffer_size);
data/systemd-247~rc2/src/import/import-tar.c:256:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(i->input_fd, i->buffer + i->buffer_size, sizeof(i->buffer) - i->buffer_size);
data/systemd-247~rc2/src/import/importd.c:344:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(fd, t->log_message + t->log_message_size, sizeof(t->log_message) - t->log_message_size);
data/systemd-247~rc2/src/import/importd.c:1378:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/import/pull-common.c:147:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        h = siphash24(url, strlen(url), k.bytes);
data/systemd-247~rc2/src/import/pull-common.c:182: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).
        if (strlen(path) >= HASH_URL_THRESHOLD_LENGTH) {
data/systemd-247~rc2/src/import/pull-common.c:349:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                   strlen(line));
data/systemd-247~rc2/src/import/pull-common.c:357:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(line));
data/systemd-247~rc2/src/import/pull-job.c:188: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).
                        (void) fsetxattr(j->disk_fd, "user.source_etag", j->etag, strlen(j->etag), 0);
data/systemd-247~rc2/src/import/pull-job.c:190: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).
                        (void) fsetxattr(j->disk_fd, "user.source_url", j->url, strlen(j->url), 0);
data/systemd-247~rc2/src/initctl/initctl.c:192:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(f->fd,
data/systemd-247~rc2/src/initctl/initctl.c:322:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/journal-remote/journal-gatewayd.c:648: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).
        response = MHD_create_response_from_buffer(strlen(page), page, MHD_RESPMEM_MUST_FREE);
data/systemd-247~rc2/src/journal-remote/journal-gatewayd.c:780: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).
        response = MHD_create_response_from_buffer(strlen(json), json, MHD_RESPMEM_MUST_FREE);
data/systemd-247~rc2/src/journal-remote/journal-upload.c:295:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(u->input, buf, size * nmemb);
data/systemd-247~rc2/src/journal-remote/journal-upload.c:432:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                x = strlen(t);
data/systemd-247~rc2/src/journal-remote/microhttpd-util.c:55: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).
                                    fmt, strlen(message) + 1,
data/systemd-247~rc2/src/journal/catalog.c:108: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).
        l1 = strlen(one);
data/systemd-247~rc2/src/journal/catalog.c:109: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).
        l2 = strlen(two);
data/systemd-247~rc2/src/journal/catalog.c:163: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).
                assert(strlen(language) > 1 && strlen(language) < 32);
data/systemd-247~rc2/src/journal/catalog.c:163: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).
                assert(strlen(language) > 1 && strlen(language) < 32);
data/systemd-247~rc2/src/journal/catalog.c:224: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).
        c = strlen(t);
data/systemd-247~rc2/src/journal/catalog.c:293:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    strlen(line) >= 2+1+32 &&
data/systemd-247~rc2/src/journal/catalog.c:347:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                line_len = strlen(line);
data/systemd-247~rc2/src/journal/catalog.c:489: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).
                offset = strbuf_add_string(sb, payload, strlen(payload));
data/systemd-247~rc2/src/journal/catalog.c:566:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(key.language, loc, len);
data/systemd-247~rc2/src/journal/compress.c:560:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        n = read(fdf, buf, m);
data/systemd-247~rc2/src/journal/compress.c:727:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        n = read(fdf, buf, sizeof(buf));
data/systemd-247~rc2/src/journal/journal-file.c:3624:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     (int) strlen(f->path) - 8, f->path,
data/systemd-247~rc2/src/journal/journal-file.c:3726:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     (int) strlen(fname) - 8, fname,
data/systemd-247~rc2/src/journal/journal-send.c:32: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).
                _fl = strlen(_func) + 1;          \
data/systemd-247~rc2/src/journal/journal-send.c:343:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        k = isempty(message) ? 0 : strlen(message) + 2;
data/systemd-247~rc2/src/journal/journal-send.c:356: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).
                                memmove(buffer + 8 + k, j, strlen(j)+1);
data/systemd-247~rc2/src/journal/journal-send.c:416: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).
        l = strlen(identifier);
data/systemd-247~rc2/src/journal/journal-vacuum.c:168:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                q = strlen(de->d_name);
data/systemd-247~rc2/src/journal/journalctl.c:280:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        } else if (strlen(x) >= 32) {
data/systemd-247~rc2/src/journal/journalctl.c:799: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).
                        memset(optarg, 'x', strlen(optarg));
data/systemd-247~rc2/src/journal/journalctl.c:1726: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).
                        r = sd_journal_add_match(j, match, strlen(match));
data/systemd-247~rc2/src/journal/journalctl.c:1747: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).
                r = sd_journal_add_match(j, match, strlen(match));
data/systemd-247~rc2/src/journal/journalctl.c:2709:59:  [1] (buffer) strlen:
  Does not handle 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("MESSAGE="),
data/systemd-247~rc2/src/journal/journald-audit.c:29: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).
        l = strlen(field);
data/systemd-247~rc2/src/journal/journald-audit.c:75:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(field) + (e - s);
data/systemd-247~rc2/src/journal/journald-audit.c:88:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(field);
data/systemd-247~rc2/src/journal/journald-audit.c:166: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).
        c = newa(char, strlen(prefix) + (e - *p) + 2);
data/systemd-247~rc2/src/journal/journald-audit.c:181: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(t, "=");
data/systemd-247~rc2/src/journal/journald-context.c:269: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).
                        c->label_size = strlen(c->label);
data/systemd-247~rc2/src/journal/journald-kmsg.c:303:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(s->dev_kmsg_fd, buffer, sizeof(buffer) - 1);
data/systemd-247~rc2/src/journal/journald-server.c:1764: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).
                l = send(s->notify_fd, p, strlen(p), MSG_DONTWAIT);
data/systemd-247~rc2/src/journal/journald-server.c:1782: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).
                l = send(s->notify_fd, p, strlen(p), MSG_DONTWAIT);
data/systemd-247~rc2/src/journal/journald-syslog.c:368:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        store_raw = msg != buf || strlen(msg) != raw_len;
data/systemd-247~rc2/src/journal/journald.c:34:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/journal/sd-journal.c:249: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).
                size = strlen(data);
data/systemd-247~rc2/src/journal/sd-journal.c:1082:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(item) < 2 || item[1] != '=')
data/systemd-247~rc2/src/journal/sd-journal.c:2302: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).
        field_length = strlen(field);
data/systemd-247~rc2/src/journal/sd-journal.c:2676:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                l = read(j->inotify_fd, &buffer, sizeof(buffer));
data/systemd-247~rc2/src/journal/sd-journal.c:2895: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).
        k = strlen(j->unique_field);
data/systemd-247~rc2/src/journal/sd-journal.c:3197: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).
        d = strlen(field) + 1;
data/systemd-247~rc2/src/journal/test-catalog.c:35: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).
                size = strlen(contents);
data/systemd-247~rc2/src/journal/test-compress.c:123: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).
        len = strlen(data);
data/systemd-247~rc2/src/journal/test-compress.c:154:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for (i = 1; i < strlen(TEXT); i++) {
data/systemd-247~rc2/src/journal/test-journal-stream.c:96: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).
                iovec[0] = IOVEC_MAKE(p, strlen(p));
data/systemd-247~rc2/src/journal/test-journal-stream.c:100: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).
                iovec[1] = IOVEC_MAKE(q, strlen(q));
data/systemd-247~rc2/src/journal/test-journal.c:74: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).
        assert_se(journal_file_find_data_object(f, test, strlen(test), NULL, &p) == 1);
data/systemd-247~rc2/src/journal/test-journal.c:81:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se(journal_file_find_data_object(f, test2, strlen(test2), NULL, &p) == 1);
data/systemd-247~rc2/src/libsystemd-network/dhcp-identifier.c:196:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                id = siphash24(name, strlen(name), HASH_KEY.bytes);
data/systemd-247~rc2/src/libsystemd-network/dhcp-option.c:42:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        size_t len = strlen(*s);
data/systemd-247~rc2/src/libsystemd-network/dhcp-option.c:58:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        size_t len = strlen(*s);
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:211:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(*s);
data/systemd-247~rc2/src/libsystemd-network/dhcp6-option.c:253:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t len = strlen(*s);
data/systemd-247~rc2/src/libsystemd-network/network-internal.c:63: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).
        l = strlen(name);
data/systemd-247~rc2/src/libsystemd-network/network-internal.c:501:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!ascii_is_valid(n) || strlen(n) >= IFALIASZ) {
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:561: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).
        assert_return(strlen(mudurl) <= 255, -EINVAL);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:575:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(*p) > 255)
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:956: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).
                                               strlen(client->hostname), client->hostname);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:967: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).
                                       strlen(client->vendor_class_identifier),
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-client.c:976: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).
                                       strlen(client->mudurl),
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp-server.c:529:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                strlen(server->timezone), server->timezone);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:459: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).
        assert_return(strlen(mudurl) <= UINT8_MAX, -EINVAL);
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:475:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(*p) > UINT16_MAX)
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:496:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(*p) > UINT8_MAX)
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:650: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).
                                                SD_DHCP6_OPTION_MUD_URL, strlen(client->mudurl),
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:681: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).
                                                SD_DHCP6_OPTION_MUD_URL, strlen(client->mudurl),
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:746: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).
                                                SD_DHCP6_OPTION_MUD_URL, strlen(client->mudurl),
data/systemd-247~rc2/src/libsystemd-network/sd-dhcp6-client.c:798: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).
                                                SD_DHCP6_OPTION_MUD_URL, strlen(client->mudurl),
data/systemd-247~rc2/src/libsystemd-network/sd-radv.c:776: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).
                len += strlen(*s) + 2;
data/systemd-247~rc2/src/libsystemd-network/test-lldp.c:344:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                expected_length = strlen(expected[2 * i]);
data/systemd-247~rc2/src/libsystemd-network/test-lldp.c:350:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                expected_length = strlen(expected[2 * i + 1]);
data/systemd-247~rc2/src/libsystemd-network/test-ndisc-ra.c:239:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read (fd, iov_base, iov_len) == (ssize_t)iov_len);
data/systemd-247~rc2/src/libsystemd-network/test-ndisc-ra.c:252:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(test_fd[0], &buf, sizeof(buf)) == sizeof(buf));
data/systemd-247~rc2/src/libsystemd-network/test-ndisc-rs.c:192:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read (fd, iov_base, iov_len) == (ssize_t)iov_len);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-container.c:81:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(pair[0], &error_buf, sizeof(error_buf));
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-creds.c:722: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).
        sz = strlen(p);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-error.c:396: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 (errno == ERANGE || strlen(x) >= k - 1) {
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-internal.c:292: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).
        r = new(char, strlen(v)*3+1);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-introspect.c:178:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        *names += strlen(*names) + 1;
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:238: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).
        l = strlen(s);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:298: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).
        l = strlen(s);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:465:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                label_sz = strlen(label);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1497:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        sz = strlen(p) + 1;
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1558: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).
                        sz = 4 + strlen(p) + 1;
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1566: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).
                        sz = 1 + strlen(p) + 1;
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1762: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).
                nindex = c->index + 1 + strlen(contents);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1873:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(contents);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1910:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(contents);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:1985:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(contents);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2128: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).
        l = strlen(c->signature);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2345:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        n_struct = strlen(types);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2481:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        n_struct = strlen(s);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:2878:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(signature);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:3719:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                c->index += 1 + strlen(contents);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:3757:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                k = strlen(contents);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4006: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).
        l = strlen(contents);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4047: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).
        l = strlen(contents);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4435:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        n_struct = strlen(types); /* length of current struct contents signature */
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:4556:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        n_struct = strlen(s);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:5095:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(sig, *signature + 1, l);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-message.c:5141:33:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                                strncpy(sig, *signature + 1, l);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-objects.c:1211: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).
        pl = strlen(path);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-objects.c:1435: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).
        pl = strlen(m->path);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-objects.c:1577:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                pl = strlen(path);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-objects.c:1718:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        *names += strlen(*names) + 1;
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-objects.c:2300: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).
        pl = strlen(path);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-objects.c:2492: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).
        pl = strlen(path);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-objects.c:2669: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).
        pl = strlen(path);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-objects.c:2839: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).
        pl = strlen(path);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:257: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).
        l = strlen(line);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:349: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).
        l = strlen(t);
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:411:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                                   line + strlen("AUTH ANONYMOUS"),
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:412: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).
                                                   l - strlen("AUTH ANONYMOUS"));
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:419: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).
                                if (l <= strlen("AUTH ANONYMOUS"))
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:428: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).
                                                  line + strlen("AUTH EXTERNAL"),
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:429: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).
                                                  l - strlen("AUTH EXTERNAL"));
data/systemd-247~rc2/src/libsystemd/sd-bus/bus-socket.c:436: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).
                                if (l <= strlen("AUTH EXTERNAL"))
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:642:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(key);
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:749:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(path);
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:763:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(abstract);
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:1424: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).
                        t = new0(char, strlen(host));
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:1427:25:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                        strncat(t, host, a - host + 1);
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:1428:25:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
                        strncat(t, a + 2, rbracket - a - 2);
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:3841: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).
        path_length = strlen(path_template);
data/systemd-247~rc2/src/libsystemd/sd-bus/sd-bus.c:3867:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                path_length += strlen(label) - 1;
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-chat.c:310:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(pp[0], &x, 1) <= 0) {
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-match.c:135: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).
                        assert_se(bus_match_node_type_from_string(x, strlen(x)) == i);
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-watch-bind.c:51:16:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        (void) usleep(100 * USEC_PER_MSEC);
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-watch-bind.c:54:16:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        (void) usleep(100 * USEC_PER_MSEC);
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-watch-bind.c:60:16:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        (void) usleep(100 * USEC_PER_MSEC);
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-watch-bind.c:64:16:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        (void) usleep(100 * USEC_PER_MSEC);
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-watch-bind.c:67:16:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        (void) usleep(100 * USEC_PER_MSEC);
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-watch-bind.c:78:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100 * USEC_PER_MSEC);
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-watch-bind.c:81:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100 * USEC_PER_MSEC);
data/systemd-247~rc2/src/libsystemd/sd-bus/test-bus-watch-bind.c:84:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(100 * USEC_PER_MSEC);
data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c:383: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).
                        length = strlen(path);
data/systemd-247~rc2/src/libsystemd/sd-daemon/sd-daemon.c:426:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(stpcpy(fpath, "/dev/mqueue"), path, sizeof(fpath) - 12);
data/systemd-247~rc2/src/libsystemd/sd-device/device-enumerator.c:427:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char syspath[strlen(path) + 1 + strlen(dent->d_name) + 1];
data/systemd-247~rc2/src/libsystemd/sd-device/device-enumerator.c:427: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).
                char syspath[strlen(path) + 1 + strlen(dent->d_name) + 1];
data/systemd-247~rc2/src/libsystemd/sd-device/device-monitor.c:471:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                bufpos = strlen(buf.raw) + 1;
data/systemd-247~rc2/src/libsystemd/sd-device/device-monitor.c:502:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return MurmurHash2(str, strlen(str), 0);
data/systemd-247~rc2/src/libsystemd/sd-device/device-private.c:506: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).
                len = strlen(prop) + 1 + strlen(val);
data/systemd-247~rc2/src/libsystemd/sd-device/device-private.c:506: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).
                len = strlen(prop) + 1 + strlen(val);
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:1529: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(ret, ":");
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:1535:67:  [1] (buffer) strlen:
  Does not handle 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 (!GREEDY_REALLOC(ret, ret_allocated, ret_len + strlen(tag) + 2))
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:1566: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).
                        if (!GREEDY_REALLOC(devlinks, devlinks_allocated, devlinks_len + strlen(devlink) + 2))
data/systemd-247~rc2/src/libsystemd/sd-device/sd-device.c:1965: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).
        len = strlen(_value);
data/systemd-247~rc2/src/libsystemd/sd-event/sd-event.c:2830:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ss = read(fd, &x, sizeof(x));
data/systemd-247~rc2/src/libsystemd/sd-event/sd-event.c:3003:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(d->fd, &si, sizeof(si));
data/systemd-247~rc2/src/libsystemd/sd-event/sd-event.c:3052:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(d->fd, &d->buffer, sizeof(d->buffer));
data/systemd-247~rc2/src/libsystemd/sd-hwdb/hwdb-util.c:140: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).
        k = strbuf_add_string(trie->strings, key, strlen(key));
data/systemd-247~rc2/src/libsystemd/sd-hwdb/hwdb-util.c:143: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).
        v = strbuf_add_string(trie->strings, value, strlen(value));
data/systemd-247~rc2/src/libsystemd/sd-hwdb/hwdb-util.c:148:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                fn = strbuf_add_string(trie->strings, filename, strlen(filename));
data/systemd-247~rc2/src/libsystemd/sd-hwdb/hwdb-util.c:256:78:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        off = strbuf_add_string(trie->strings, search + i+1, strlen(search + i+1));
data/systemd-247~rc2/src/libsystemd/sd-hwdb/hwdb-util.c:501: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).
                len = strlen(line);
data/systemd-247~rc2/src/libsystemd/sd-hwdb/sd-hwdb.c:205: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).
        len = strlen(prefix + p);
data/systemd-247~rc2/src/libsystemd/sd-id128/id128-util.c:43: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).
        l = strlen(s);
data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-message.c:221:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                length = strlen(data);
data/systemd-247~rc2/src/libsystemd/sd-netlink/netlink-message.c:249: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).
                        length = strlen(*p);
data/systemd-247~rc2/src/libsystemd/sd-network/sd-network.c:397:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(fd, &buffer, sizeof(buffer));
data/systemd-247~rc2/src/libsystemd/sd-path/sd-path.c:101: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).
        n = strlen(field);
data/systemd-247~rc2/src/libsystemd/sd-resolve/sd-resolve.c:200: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).
        cnl = ai->ai_canonname ? strlen(ai->ai_canonname)+1 : 0;
data/systemd-247~rc2/src/libsystemd/sd-resolve/sd-resolve.c:299:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sl = serv ? strlen(serv)+1 : 0;
data/systemd-247~rc2/src/libsystemd/sd-resolve/sd-resolve.c:300:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        hl = host ? strlen(host)+1 : 0;
data/systemd-247~rc2/src/libsystemd/sd-resolve/sd-resolve.c:951:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        node_len = node ? strlen(node) + 1 : 0;
data/systemd-247~rc2/src/libsystemd/sd-resolve/sd-resolve.c:952:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        service_len = service ? strlen(service) + 1 : 0;
data/systemd-247~rc2/src/locale/localed.c:790:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/login/logind-button.c:142:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(b->fd, &ev, sizeof(ev));
data/systemd-247~rc2/src/login/logind-seat.c:378:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        k = read(s->manager->console_active_fd, t, sizeof(t)-1);
data/systemd-247~rc2/src/login/logind-seat.c:660: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).
        if (strlen(name) > 255)
data/systemd-247~rc2/src/login/logind.c:1173:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/login/pam_systemd.c:527:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        if (ur->umask != MODE_INVALID) {
data/systemd-247~rc2/src/login/pam_systemd.c:528:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                umask(ur->umask);
data/systemd-247~rc2/src/login/pam_systemd.c:528:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                umask(ur->umask);
data/systemd-247~rc2/src/login/pam_systemd.c:531:107:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                        pam_syslog(handle, LOG_DEBUG, "Set user umask to %04o based on user record.", ur->umask);
data/systemd-247~rc2/src/login/user-runtime-dir.c:200:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/machine/machine-dbus.c:1036:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read(errno_pipe_fd[0], &r, sizeof(r)) == sizeof(r))
data/systemd-247~rc2/src/machine/machinectl.c:207:25:  [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(buf_ifi, "");
data/systemd-247~rc2/src/machine/machinectl.c:2283:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(type);
data/systemd-247~rc2/src/machine/machinectl.c:2287:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(remote);
data/systemd-247~rc2/src/machine/machinectl.c:2291:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(local);
data/systemd-247~rc2/src/machine/machined-dbus.c:791: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) write(result_fd, image->name, strlen(image->name)+1);
data/systemd-247~rc2/src/machine/machined-dbus.c:795:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        l = write(result_fd, image->name, strlen(image->name)+1);
data/systemd-247~rc2/src/machine/machined.c:335:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/machine/operation.c:31:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        else if (read(o->errno_fd, &r, sizeof(r)) != sizeof(r)) { /* Try to acquire error code for failed operation */
data/systemd-247~rc2/src/modules-load/modules-load.c:171:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/network/netdev/macsec.c:740:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = unhexmem_full(rvalue, strlen(rvalue), true, &p, &l);
data/systemd-247~rc2/src/network/netdev/macsec.c:848:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = unhexmem(rvalue, strlen(rvalue), &p, &l);
data/systemd-247~rc2/src/network/netdev/netdev.c:498: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).
        l = strlen(ifname);
data/systemd-247~rc2/src/network/netdev/tuntap.c:43:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifr->ifr_name, netdev->ifname, IFNAMSIZ-1);
data/systemd-247~rc2/src/network/netdev/wireguard.c:494:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = unbase64mem_full(rvalue, strlen(rvalue), true, &key, &len);
data/systemd-247~rc2/src/network/networkctl.c:350:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(info->netdev_kind, received_kind, IFNAMSIZ);
data/systemd-247~rc2/src/network/networkctl.c:2292:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        newline = w + strlen(table[i]) + (w == 0 ? 0 : 2) > cols;
data/systemd-247~rc2/src/network/networkd-conf.c:167: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).
                len = strlen(cbyte);
data/systemd-247~rc2/src/network/networkd-dhcp-common.c:541:29:  [1] (buffer) strlen:
  Does not handle 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(w) > UINT8_MAX) {
data/systemd-247~rc2/src/network/networkd-dhcp-common.c:547:29:  [1] (buffer) strlen:
  Does not handle 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(w) > UINT16_MAX) {
data/systemd-247~rc2/src/network/networkd-dhcp-common.c:599:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(w) > UINT8_MAX) {
data/systemd-247~rc2/src/network/networkd-dhcp4.c:1704:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!http_url_is_valid(unescaped) || strlen(unescaped) > 255) {
data/systemd-247~rc2/src/network/networkd-dhcp6.c:1613:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!http_url_is_valid(unescaped) || strlen(unescaped) > UINT8_MAX) {
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:109:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        machine_id_length = strlen(machine_id);
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:110:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        ifname_length = strlen(ifname);
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:113: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).
                port_description_length = strlen(port_description);
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:116:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                hostname_length = strlen(hostname);
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:119: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).
                pretty_hostname_length = strlen(pretty_hostname);
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:122:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                mud_length = strlen(mud);
data/systemd-247~rc2/src/network/networkd-lldp-tx.c:485:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (!http_url_is_valid(unescaped) || strlen(unescaped) > 255) {
data/systemd-247~rc2/src/network/networkd-ndisc.c:1025: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).
                s = malloc0(ALIGN(sizeof(NDiscDNSSL)) + strlen(*j) + 1);
data/systemd-247~rc2/src/network/networkd-util.c:139:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cs = malloc0(offsetof(NetworkConfigSection, filename) + strlen(filename) + 1);
data/systemd-247~rc2/src/network/networkd.c:26:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/network/wait-online/wait-online.c:192:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/nspawn/nspawn-network.c:71: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).
        l = strlen(machine_name);
data/systemd-247~rc2/src/nspawn/nspawn-network.c:114: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).
        if (strlen(altifname) >= ALTIFNAMSIZ)
data/systemd-247~rc2/src/nspawn/nspawn-network.c:218: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).
        if (strlen(ifname) < IFNAMSIZ) /* Name is short enough */
data/systemd-247~rc2/src/nspawn/nspawn-network.c:225:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                h = siphash24(ifname, strlen(ifname), SHORTEN_IFNAME_HASH_KEY.bytes);
data/systemd-247~rc2/src/nspawn/nspawn.c:1340: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).
                        r = unhexmem(optarg, strlen(optarg), &k, &l);
data/systemd-247~rc2/src/nspawn/nspawn.c:1357: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).
                                r = unbase64mem(value, strlen(value), &p, &l);
data/systemd-247~rc2/src/nspawn/nspawn.c:2133:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        u = umask(0000);
data/systemd-247~rc2/src/nspawn/nspawn.c:2214:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        u = umask(0000);
data/systemd-247~rc2/src/nspawn/nspawn.c:2416:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        u = umask(0000);
data/systemd-247~rc2/src/nspawn/nspawn.c:3904:68:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        candidate = (uid_t) siphash24(arg_machine, strlen(arg_machine), hash_key);
data/systemd-247~rc2/src/nspawn/nspawn.c:5194:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/nss-myhostname/nss-myhostname.c:92: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).
        l = strlen(canonical);
data/systemd-247~rc2/src/nss-myhostname/nss-myhostname.c:198: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).
        l_canonical = strlen(canonical);
data/systemd-247~rc2/src/nss-mymachines/nss-mymachines.c:145: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).
        l = strlen(name);
data/systemd-247~rc2/src/nss-mymachines/nss-mymachines.c:298: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).
        l = strlen(name);
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:242: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).
        l = strlen(canonical);
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:389: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).
        l = strlen(canonical);
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:578:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                ms += ALIGN(strlen(q.name) + 1);
data/systemd-247~rc2/src/nss-resolve/nss-resolve.c:619:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(q.name);
data/systemd-247~rc2/src/nss-systemd/userdb-glue.c:35:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        required = strlen(hr->user_name) + 1;
data/systemd-247~rc2/src/nss-systemd/userdb-glue.c:38:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        required += strlen(rn) + 1;
data/systemd-247~rc2/src/nss-systemd/userdb-glue.c:41:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        required += strlen(hd) + 1;
data/systemd-247~rc2/src/nss-systemd/userdb-glue.c:44:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        required += strlen(shell) + 1;
data/systemd-247~rc2/src/nss-systemd/userdb-glue.c:145:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        required = strlen(g->group_name) + 1;
data/systemd-247~rc2/src/nss-systemd/userdb-glue.c:149:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                required += strlen(*m) + 1;
data/systemd-247~rc2/src/nss-systemd/userdb-glue.c:157:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                required += strlen(*m) + 1;
data/systemd-247~rc2/src/oom/oomd-manager-bus.c:25:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        fd = acquire_data_fd(dump, strlen(dump), 0);
data/systemd-247~rc2/src/oom/oomd-util.c:54:71:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = cg_set_xattr(SYSTEMD_CGROUP_CONTROLLER, path, xattr, buf, strlen(buf), 0);
data/systemd-247~rc2/src/partition/repart.c:967: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).
        recoded = utf8_to_utf16(resolved, strlen(resolved));
data/systemd-247~rc2/src/partition/repart.c:1374: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).
                  (const unsigned char*) token, strlen(token),
data/systemd-247~rc2/src/portable/portable.c:79: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).
        m = malloc0(offsetof(PortableMetadata, name) + strlen(name) + 1);
data/systemd-247~rc2/src/portable/portabled-operation.c:29:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        else if (read(o->errno_fd, &r, sizeof(r)) != sizeof(r)) { /* Try to acquire error code for failed operation */
data/systemd-247~rc2/src/portable/portabled.c:140:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/pstore/pstore.c:145:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                field_size = strlen("FILE=") + pe->content_size;
data/systemd-247~rc2/src/pstore/pstore.c:276: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).
                plen = strlen(p);
data/systemd-247~rc2/src/pstore/pstore.c:305:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t needed = strlen(pe->dirent.d_name) + strlen(":\n") + pe->content_size + 1;
data/systemd-247~rc2/src/pstore/pstore.c:305: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).
                size_t needed = strlen(pe->dirent.d_name) + strlen(":\n") + pe->content_size + 1;
data/systemd-247~rc2/src/quotacheck/quotacheck.c:67:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/random-seed/random-seed.c:119:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/remount-fs/remount-fs.c:88:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/reply-password/reply-password.c:61:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                length = 1 + strlen(line) + 1;
data/systemd-247~rc2/src/resolve/dns-type.c:26:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sc = lookup_dns_type(s, strlen(s));
data/systemd-247~rc2/src/resolve/resolvectl.c:241: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).
                           (int) strlen(name), c == 0 ? name : "", c == 0 ? ":" : " ",
data/systemd-247~rc2/src/resolve/resolvectl.c:262:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       (int) strlen(name), c == 0 ? name : "", c == 0 ? ":" : " ",
data/systemd-247~rc2/src/resolve/resolvectl.c:339: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).
                           (int) strlen(pretty), c == 0 ? pretty : "",
data/systemd-247~rc2/src/resolve/resolvectl.c:707:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (name ? strlen(name) + 1 : 0) +
data/systemd-247~rc2/src/resolve/resolvectl.c:708:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (type ? strlen(type) + 1 : 0) +
data/systemd-247~rc2/src/resolve/resolvectl.c:709: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).
                strlen(domain) + 2;
data/systemd-247~rc2/src/resolve/resolvectl.c:721: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).
                        printf("%*s%s", (int) strlen(name), c == 0 ? name : "", c == 0 ? "/" : " ");
data/systemd-247~rc2/src/resolve/resolvectl.c:723: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).
                        printf("%*s%s", (int) strlen(type), c == 0 ? type : "", c == 0 ? "/" : " ");
data/systemd-247~rc2/src/resolve/resolvectl.c:726:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                       (int) strlen(domain), c == 0 ? domain : "",
data/systemd-247~rc2/src/resolve/resolvectl.c:1306:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const unsigned indent = strlen("Global: "); /* Use the same indentation everywhere to make things nice */
data/systemd-247~rc2/src/resolve/resolvectl.c:1596: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).
                len = strlen(buf);
data/systemd-247~rc2/src/resolve/resolved-conf.c:362: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).
                                r = unbase64mem(value, strlen(value), &decoded, &length);
data/systemd-247~rc2/src/resolve/resolved-dns-packet.c:444: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).
        return dns_packet_append_raw_string(p, s, strlen(s), start);
data/systemd-247~rc2/src/resolve/resolved-dns-rr.c:25: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).
        l = strlen(name);
data/systemd-247~rc2/src/resolve/resolved-dns-stream.c:268:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ss = read(s->fd, buf, count);
data/systemd-247~rc2/src/resolve/resolved-dns-trust-anchor.c:272:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                r = unhexmem(p, strlen(p), &dd, &l);
data/systemd-247~rc2/src/resolve/resolved-dns-trust-anchor.c:331:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                r = unbase64mem(p, strlen(p), &k, &l);
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:288:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        length = strlen(key);
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:291:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                length += strlen(value) + 1; /* length of value plus '=' */
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:297:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memcpy(i->data, key, strlen(key));
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:299: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).
                memcpy(i->data + strlen(key), "=", 1);
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:300: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).
                memcpy(i->data + strlen(key) + 1, value, strlen(value));
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:300: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).
                memcpy(i->data + strlen(key) + 1, value, strlen(value));
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:313:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        length = strlen(key);
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:322:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memcpy(i->data, key, strlen(key));
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:324: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).
                memcpy(i->data + strlen(key), "=", 1);
data/systemd-247~rc2/src/resolve/resolved-dnssd.c:325: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).
                memcpy(i->data + strlen(key) + 1, data, size);
data/systemd-247~rc2/src/resolve/resolved-dnstls-gnutls.c:76:86:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                r = gnutls_server_name_set(gs, GNUTLS_NAME_DNS, server->server_name, strlen(server->server_name));
data/systemd-247~rc2/src/resolve/resolved-manager.c:361:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                r = strlen(utf8);
data/systemd-247~rc2/src/resolve/resolved.c:39:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/resolve/test-resolve-tables.c:23: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).
                assert_se(s == NULL || strlen(s) < _DNS_TYPE_STRING_MAX);
data/systemd-247~rc2/src/resolve/test-resolve-tables.c:44: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).
                assert_se(s == NULL || strlen(s) < _DNS_CLASS_STRING_MAX);
data/systemd-247~rc2/src/rfkill/rfkill.c:281:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/rfkill/rfkill.c:312:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                l = read(c.rfkill_fd, &event, sizeof(event));
data/systemd-247~rc2/src/shared/ask-password-api.c:209:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                m = strlen(str); /* Not a valid UTF-8 string? If so, let's backspace the number of bytes
data/systemd-247~rc2/src/shared/ask-password-api.c:264: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).
        } else if (asprintf(&packet, "*\002%c%s%n", (int) (strlen(message) + 1), message, &n) < 0)
data/systemd-247~rc2/src/shared/ask-password-api.c:323:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                k = read(fd, buffer + p, sizeof(buffer) - p);
data/systemd-247~rc2/src/shared/ask-password-api.c:348:77:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                if (asprintf(&packet, "*\002%c%s%n", (int) (strlen(message) + 1), message, &n) < 0) {
data/systemd-247~rc2/src/shared/ask-password-api.c:482: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).
                (void) loop_write(ttyfd, message, strlen(message), false);
data/systemd-247~rc2/src/shared/ask-password-api.c:488: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).
                        (void) loop_write(ttyfd, PRESS_TAB, strlen(PRESS_TAB), false);
data/systemd-247~rc2/src/shared/ask-password-api.c:573:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(ttyfd >= 0 ? ttyfd : STDIN_FILENO, &c, 1);
data/systemd-247~rc2/src/shared/ask-password-api.c:585: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).
                        backspace_chars(ttyfd, strlen(PRESS_TAB));
data/systemd-247~rc2/src/shared/ask-password-api.c:595:67:  [1] (buffer) strlen:
  Does not handle 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) loop_write(ttyfd, SKIPPED, strlen(SKIPPED), false);
data/systemd-247~rc2/src/shared/ask-password-api.c:645: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).
                                        (void) loop_write(ttyfd, NO_ECHO, strlen(NO_ECHO), false);
data/systemd-247~rc2/src/shared/ask-password-api.c:658:67:  [1] (buffer) strlen:
  Does not handle 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) loop_write(ttyfd, NO_ECHO, strlen(NO_ECHO), false);
data/systemd-247~rc2/src/shared/barrier.c:235:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        len = read(b->them, &buf, sizeof(buf));
data/systemd-247~rc2/src/shared/bootspec.c:308: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).
        f = fmemopen_unlocked((void*) osrelease, strlen(osrelease), "r");
data/systemd-247~rc2/src/shared/bus-unit-util.c:236: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).
        l = strlen(field);
data/systemd-247~rc2/src/shared/bus-unit-util.c:1114: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).
                r = sd_bus_message_append_array(m, 'y', eq, strlen(eq));
data/systemd-247~rc2/src/shared/bus-unit-util.c:1168:67:  [1] (buffer) strlen:
  Does not handle 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 bus_append_byte_array(m, field, unescaped, strlen(unescaped));
data/systemd-247~rc2/src/shared/bus-unit-util.c:1560: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).
                r = unhexmem(eq, strlen(eq), &roothash_decoded, &roothash_decoded_size);
data/systemd-247~rc2/src/shared/bus-unit-util.c:1582: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).
                r = unbase64mem(value, strlen(value), &roothash_sig_decoded, &roothash_sig_decoded_size);
data/systemd-247~rc2/src/shared/calendarspec.c:430:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        skip = strlen(day_nr[i].name);
data/systemd-247~rc2/src/shared/cgroup-setup.c:296:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char prefix[strlen(path) + 1];
data/systemd-247~rc2/src/shared/cgroup-setup.c:550:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char prefix[strlen(pto) + 1];
data/systemd-247~rc2/src/shared/cgroup-setup.c:791:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        char s[1 + strlen(n) + 1];
data/systemd-247~rc2/src/shared/clean-ipc.c:331:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                char fn[1+strlen(de->d_name)+1];
data/systemd-247~rc2/src/shared/condition.c:100:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        bool equal;
data/systemd-247~rc2/src/shared/condition.c:123:21:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                if (equal)
data/systemd-247~rc2/src/shared/condition.c:655:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        bool equal;
data/systemd-247~rc2/src/shared/condition.c:667:21:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                if (equal)
data/systemd-247~rc2/src/shared/conf-parser.c:91:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                p = lookup(key, strlen(key));
data/systemd-247~rc2/src/shared/conf-parser.c:93:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                p = lookup(lvalue, strlen(lvalue));
data/systemd-247~rc2/src/shared/conf-parser.c:183:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                k = strlen(l);
data/systemd-247~rc2/src/shared/conf-parser.c:337:29:  [1] (buffer) strlen:
  Does not handle 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(continuation) + strlen(l) > LONG_LINE_MAX) {
data/systemd-247~rc2/src/shared/conf-parser.c:337: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).
                        if (strlen(continuation) + strlen(l) > LONG_LINE_MAX) {
data/systemd-247~rc2/src/shared/dev-setup.c:90:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        u = umask(0000);
data/systemd-247~rc2/src/shared/dissect-image.c:1608:84:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = sym_crypt_activate_by_passphrase(cd, name, CRYPT_ANY_SLOT, passphrase, strlen(passphrase),
data/systemd-247~rc2/src/shared/dissect-image.c:1829:24:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                (void) usleep(2 * USEC_PER_MSEC);
data/systemd-247~rc2/src/shared/dissect-image.c:1997:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        n = new(char, e - image + strlen(suffix) + 1);
data/systemd-247~rc2/src/shared/dissect-image.c:2108: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).
                        r = unhexmem(text, strlen(text), &root_hash, &root_hash_size);
data/systemd-247~rc2/src/shared/dissect-image.c:2347:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        n = read(error_pipe[0], &v, sizeof(v));
data/systemd-247~rc2/src/shared/dm-util.c:32: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).
        if (strlen(name) >= sizeof(message.dm_ioctl.name))
data/systemd-247~rc2/src/shared/dns-domain.c:341: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).
        l = strlen(buffer);
data/systemd-247~rc2/src/shared/dns-domain.c:520: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).
        x = a + strlen(a);
data/systemd-247~rc2/src/shared/dns-domain.c:521: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).
        y = b + strlen(b);
data/systemd-247~rc2/src/shared/dns-domain.c:982: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).
        l = strlen(name);
data/systemd-247~rc2/src/shared/dns-domain.c:1009:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = dns_label_escape(name, strlen(name), escaped, sizeof(escaped));
data/systemd-247~rc2/src/shared/efi-loader.c:380:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        title_len = (strlen(title)+1) * 2;
data/systemd-247~rc2/src/shared/efi-loader.c:381:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        path_len = (strlen(path)+1) * 2;
data/systemd-247~rc2/src/shared/efi-loader.c:514:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(de->d_name) != 45)
data/systemd-247~rc2/src/shared/efi-loader.c:792: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).
        if (strlen(s) > FILENAME_MAX) /* Make sure entry names fit in filenames */
data/systemd-247~rc2/src/shared/firewall-util.c:53:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(in_interface);
data/systemd-247~rc2/src/shared/firewall-util.c:66:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t l = strlen(out_interface);
data/systemd-247~rc2/src/shared/firewall-util.c:126:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(t->u.user.name, "MASQUERADE", sizeof(t->u.user.name));
data/systemd-247~rc2/src/shared/firewall-util.c:232:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(m->u.user.name, "tcp", sizeof(m->u.user.name));
data/systemd-247~rc2/src/shared/firewall-util.c:241:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
                strncpy(m->u.user.name, "udp", sizeof(m->u.user.name));
data/systemd-247~rc2/src/shared/firewall-util.c:253:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(m->u.user.name, "addrtype", sizeof(m->u.user.name));
data/systemd-247~rc2/src/shared/firewall-util.c:263:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(t->u.user.name, "DNAT", sizeof(t->u.user.name));
data/systemd-247~rc2/src/shared/format-table.c:249: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).
                return strlen(data) + 1;
data/systemd-247~rc2/src/shared/format-table.c:1325: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).
                        d->formatted = new(char, strlen(d->string) + 1);
data/systemd-247~rc2/src/shared/format-table.c:1431:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = strlen(p);
data/systemd-247~rc2/src/shared/format-table.c:1735:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        old_length = strlen(str);
data/systemd-247~rc2/src/shared/format-table.c:1742:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                clickable_length = strlen(clickable);
data/systemd-247~rc2/src/shared/fstab-util.c:113: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).
                                if (end < word + strlen(name))
data/systemd-247~rc2/src/shared/fstab-util.c:115: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).
                                if (!strneq(word, name, strlen(name)))
data/systemd-247~rc2/src/shared/fstab-util.c:119: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).
                                x = word + strlen(name);
data/systemd-247~rc2/src/shared/fstab-util.c:252: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).
        l = strlen(s);
data/systemd-247~rc2/src/shared/fstab-util.c:270: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).
        enc_len = strlen(u) * 4 + 1;
data/systemd-247~rc2/src/shared/import-util.c:59:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        s = new(char, (e - url) + strlen(suffix) + 1);
data/systemd-247~rc2/src/shared/ip-protocol-list.c:33:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        sc = lookup_ip_protocol(name, strlen(name));
data/systemd-247~rc2/src/shared/journal-importer.c:91:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(imp->fd,
data/systemd-247~rc2/src/shared/journal-importer.c:135:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(imp->fd, imp->buf + imp->filled,
data/systemd-247~rc2/src/shared/journal-util.c:151:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                l = strlen(p);
data/systemd-247~rc2/src/shared/json.c:134: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).
        s = malloc(offsetof(JsonSource, name) + strlen(name) + 1);
data/systemd-247~rc2/src/shared/json.c:400:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = strlen(s);
data/systemd-247~rc2/src/shared/json.c:632:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                k = strlen(l[v->n_elements]);
data/systemd-247~rc2/src/shared/json.c:731: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).
                return offsetof(JsonVariant, string) + strlen(v->string) + 1;
data/systemd-247~rc2/src/shared/json.c:840:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:851:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:855:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/systemd-247~rc2/src/shared/json.c:862:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:868:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:870:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:876:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/systemd-247~rc2/src/shared/json.c:883:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:889:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:923:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/systemd-247~rc2/src/shared/json.c:930:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:936:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:970:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/systemd-247~rc2/src/shared/json.c:983:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:1020:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/systemd-247~rc2/src/shared/json.c:1027:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:1033:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:1056:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/systemd-247~rc2/src/shared/json.c:1172:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:1174:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:1180:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/systemd-247~rc2/src/shared/json.c:1192:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:1194:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:1202:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/systemd-247~rc2/src/shared/json.c:1217:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:1219:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
                goto mismatch;
data/systemd-247~rc2/src/shared/json.c:1277:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/systemd-247~rc2/src/shared/json.c:1462:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = 1 + (v->source ? strlen(v->source->name) : 0) +
data/systemd-247~rc2/src/shared/lockfile-util.c:96: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).
        t = newa(char, strlen(p) + 2 + 4 + 1);
data/systemd-247~rc2/src/shared/logs-show.c:173:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                .field_len = strlen(_field),                            \
data/systemd-247~rc2/src/shared/logs-show.c:415: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).
                                assert(sizeof(buf) > strlen(buf));
data/systemd-247~rc2/src/shared/logs-show.c:416: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).
                                k = sizeof(buf) - strlen(buf);
data/systemd-247~rc2/src/shared/logs-show.c:418: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).
                                r = snprintf(buf + strlen(buf), k, ".%06"PRIu64, x % USEC_PER_SEC);
data/systemd-247~rc2/src/shared/logs-show.c:431:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        return (int) strlen(buf);
data/systemd-247~rc2/src/shared/logs-show.c:606: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).
                                size_t urlified_len = strlen(urlified);
data/systemd-247~rc2/src/shared/logs-show.c:721: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).
                                valuelen = strlen(urlified);
data/systemd-247~rc2/src/shared/logs-show.c:912: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).
        if (!(flags & OUTPUT_SHOW_ALL) && strlen(name) + 1 + size >= JSON_THRESHOLD)
data/systemd-247~rc2/src/shared/logs-show.c:1025: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).
        r = update_json_data(h, flags, "__CURSOR", cursor, strlen(cursor));
data/systemd-247~rc2/src/shared/logs-show.c:1030:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        r = update_json_data(h, flags, "__REALTIME_TIMESTAMP", usecbuf, strlen(usecbuf));
data/systemd-247~rc2/src/shared/logs-show.c:1035: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).
        r = update_json_data(h, flags, "__MONOTONIC_TIMESTAMP", usecbuf, strlen(usecbuf));
data/systemd-247~rc2/src/shared/logs-show.c:1040: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).
        r = update_json_data(h, flags, "_BOOT_ID", sid, strlen(sid));
data/systemd-247~rc2/src/shared/logs-show.c:1150: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).
        fl = strlen(field);
data/systemd-247~rc2/src/shared/logs-show.c:1601: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).
        r = sd_journal_add_match(j, match, strlen(match));
data/systemd-247~rc2/src/shared/loop-util.c:254:24:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                (void) usleep(UINT64_C(10) * USEC_PER_MSEC +
data/systemd-247~rc2/src/shared/loop-util.c:424:24:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                (void) usleep(random_u64() % (UINT64_C(10) * USEC_PER_MSEC +
data/systemd-247~rc2/src/shared/loop-util.c:505:40:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                                (void) usleep(50 * USEC_PER_MSEC);
data/systemd-247~rc2/src/shared/mkfs-util.c:102:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(mangled_label, label, sizeof(mangled_label)-1);
data/systemd-247~rc2/src/shared/mount-util.c:609: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).
                x[strlen(x) - 1] = '\0'; /* truncate the last | */
data/systemd-247~rc2/src/shared/nscd-flush.c:35: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).
        l = strlen(database);
data/systemd-247~rc2/src/shared/pager.c:203:73:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        r = loop_write(exe_name_pipe[1], pager_args[0], strlen(pager_args[0]) + 1, false);
data/systemd-247~rc2/src/shared/pager.c:222: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).
                        r = loop_write(exe_name_pipe[1], exe, strlen(exe) + 1, false);
data/systemd-247~rc2/src/shared/pager.c:233: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).
                r = loop_write(exe_name_pipe[1], "(built-in)", strlen("(built-in)") + 1, false);
data/systemd-247~rc2/src/shared/pager.c:304: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).
        k = strlen(desc);
data/systemd-247~rc2/src/shared/pkcs11-util.c:277: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).
                        rv = m->C_Login(session, CKU_USER, (CK_UTF8CHAR*) *i, strlen(*i));
data/systemd-247~rc2/src/shared/ptyfwd.c:211:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        k = read(f->input_fd, f->in_buffer + f->in_buffer_full, LINE_MAX - f->in_buffer_full);
data/systemd-247~rc2/src/shared/ptyfwd.c:266:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                        k = read(f->master, f->out_buffer + f->out_buffer_full, LINE_MAX - f->out_buffer_full);
data/systemd-247~rc2/src/shared/securebits-util.c:28: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).
        len = strlen(str);
data/systemd-247~rc2/src/shared/serialize.c:26: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).
        if (strlen(key) + 1 + strlen(value) + 1 > LONG_LINE_MAX) {
data/systemd-247~rc2/src/shared/serialize.c:26:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(key) + 1 + strlen(value) + 1 > LONG_LINE_MAX) {
data/systemd-247~rc2/src/shared/serialize.c:68: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).
        if (k < 0 || (size_t) k >= sizeof(buf) || strlen(key) + 1 + k + 1 > LONG_LINE_MAX) {
data/systemd-247~rc2/src/shared/sleep-config.c:163:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                size_t l = strlen(s);
data/systemd-247~rc2/src/shared/specifier.c:43: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).
        l = strlen(text);
data/systemd-247~rc2/src/shared/specifier.c:68: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).
                                        k = strlen(w);
data/systemd-247~rc2/src/shared/sysctl-util.c:40:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                memmove(s, s+1, strlen(s));
data/systemd-247~rc2/src/shared/sysctl-util.c:62:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (write(fd, value, strlen(value)) < 0)
data/systemd-247~rc2/src/shared/test-tables.h:32: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).
                        printf("%*s  ...\n", (int) strlen(name), "");
data/systemd-247~rc2/src/shared/udev-util.c:55:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                n = strlen(log_val);
data/systemd-247~rc2/src/shared/user-record-show.c:251:17:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        if (hr->umask != MODE_INVALID)
data/systemd-247~rc2/src/shared/user-record-show.c:252:53:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                printf("       UMask: 0%03o\n", hr->umask);
data/systemd-247~rc2/src/shared/user-record.c:1244:136:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                { "umask",                      JSON_VARIANT_UNSIGNED,      json_dispatch_umask,                  offsetof(UserRecord, umask),                         0         },
data/systemd-247~rc2/src/shared/user-record.c:1591:136:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                { "umask",                      JSON_VARIANT_UNSIGNED,      json_dispatch_umask,                  offsetof(UserRecord, umask),                         0         },
data/systemd-247~rc2/src/shared/user-record.h:266:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        mode_t umask;
data/systemd-247~rc2/src/shared/utmp-wtmp.c:91:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(store->ut_host, uts.release, sizeof(store->ut_host));
data/systemd-247~rc2/src/shared/utmp-wtmp.c:93:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant character.
        strncpy(store->ut_line, "~", sizeof(store->ut_line));  /* or ~~ ? */
data/systemd-247~rc2/src/shared/utmp-wtmp.c:94:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(store->ut_id, "~~", sizeof(store->ut_id));
data/systemd-247~rc2/src/shared/utmp-wtmp.c:159:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(store.ut_user, "shutdown", sizeof(store.ut_user));
data/systemd-247~rc2/src/shared/utmp-wtmp.c:170:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(store.ut_user, "reboot", sizeof(store.ut_user));
data/systemd-247~rc2/src/shared/utmp-wtmp.c:178: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).
        l = strlen(src);
data/systemd-247~rc2/src/shared/utmp-wtmp.c:180:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(buf, src, buf_size);
data/systemd-247~rc2/src/shared/utmp-wtmp.c:216:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(store.ut_user, user, sizeof(store.ut_user)-1);
data/systemd-247~rc2/src/shared/utmp-wtmp.c:285:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
        strncpy(store.ut_user, "runlevel", sizeof(store.ut_user));
data/systemd-247~rc2/src/shared/utmp-wtmp.c:306: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).
        left = strlen(message);
data/systemd-247~rc2/src/shared/varlink.c:540:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                n = read(v->fd, v->input_buffer + v->input_buffer_index + v->input_buffer_size, rs);
data/systemd-247~rc2/src/shutdown/shutdown.c:331:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/sysctl/sysctl.c:392:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/systemctl/systemctl-compat-telinit.c:106: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).
        if (strlen(argv[optind]) != 1)
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:481:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                contents_start += strlen(EDIT_MARKER_START);
data/systemd-247~rc2/src/systemctl/systemctl-edit.c:492: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).
        if (strlen(contents) != size) {
data/systemd-247~rc2/src/systemctl/systemctl-sysv-compat.c:176: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).
                p[strlen(p) - STRLEN(".service")] = 0;
data/systemd-247~rc2/src/sysusers/sysusers.c:1439: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).
        if (strlen(action) != 1)
data/systemd-247~rc2/src/sysusers/sysusers.c:1942:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/sysv-generator/sysv-generator.c:471: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).
                                } else if (t[strlen(t)-1] == '\\')
data/systemd-247~rc2/src/sysv-generator/sysv-generator.c:503: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).
                                k = strlen(t);
data/systemd-247~rc2/src/sysv-generator/sysv-generator.c:539:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        k = strlen(t);
data/systemd-247~rc2/src/sysv-generator/sysv-generator.c:855: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).
                                if (strlen(de->d_name) < 4)
data/systemd-247~rc2/src/test/test-barrier.c:39:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(usecs);
data/systemd-247~rc2/src/test/test-chown-rec.c:50:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(022);
data/systemd-247~rc2/src/test/test-condition.c:330: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(strchr(u.release, 0), "*");
data/systemd-247~rc2/src/test/test-conf-parser.c:327:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se(fwrite(s, strlen(s), 1, f) == 1);
data/systemd-247~rc2/src/test/test-copy.c:73:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(out_fd, buf, sizeof buf) == (ssize_t) strlen(text));
data/systemd-247~rc2/src/test/test-copy.c:73:62:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se(read(out_fd, buf, sizeof buf) == (ssize_t) strlen(text));
data/systemd-247~rc2/src/test/test-copy.c:108: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).
                assert_se(base64mem(*p, strlen(*p), &c) >= 0);
data/systemd-247~rc2/src/test/test-copy.c:110: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).
                k = setxattr(f, "user.testxattr", c, strlen(c), 0);
data/systemd-247~rc2/src/test/test-copy.c:157: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).
                        assert_se(base64mem(*p, strlen(*p), &d) >= 0);
data/systemd-247~rc2/src/test/test-copy.c:213:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = read(pipefd[0], buf, sizeof(buf));
data/systemd-247~rc2/src/test/test-copy.c:217:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r2 = read(infd, buf2, sizeof(buf2));
data/systemd-247~rc2/src/test/test-daemon.c:34:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(duration);
data/systemd-247~rc2/src/test/test-daemon.c:39:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(duration);
data/systemd-247~rc2/src/test/test-daemon.c:44:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(duration);
data/systemd-247~rc2/src/test/test-daemon.c:49:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(duration);
data/systemd-247~rc2/src/test/test-daemon.c:54:9:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
        usleep(duration);
data/systemd-247~rc2/src/test/test-device-nodes.c:12:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size_t out_len = strlen(in) * 4 + 1;
data/systemd-247~rc2/src/test/test-dns-domain.c:133: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).
        label = what + strlen(what);
data/systemd-247~rc2/src/test/test-ellipsize.c:76:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                for (l = strlen(s); l >= 0; l--)
data/systemd-247~rc2/src/test/test-ellipsize.c:77: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).
                        for (k = strlen(s) + 1; k >= 0; k--)
data/systemd-247~rc2/src/test/test-env-file.c:54: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).
        assert_se(write(fd, env_file_1, strlen(env_file_1)) == strlen(env_file_1));
data/systemd-247~rc2/src/test/test-env-file.c:54: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).
        assert_se(write(fd, env_file_1, strlen(env_file_1)) == strlen(env_file_1));
data/systemd-247~rc2/src/test/test-env-file.c:76: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).
        assert_se(write(fd, env_file_2, strlen(env_file_2)) == strlen(env_file_2));
data/systemd-247~rc2/src/test/test-env-file.c:76: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).
        assert_se(write(fd, env_file_2, strlen(env_file_2)) == strlen(env_file_2));
data/systemd-247~rc2/src/test/test-env-file.c:93: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).
        assert_se(write(fd, env_file_3, strlen(env_file_3)) == strlen(env_file_3));
data/systemd-247~rc2/src/test/test-env-file.c:93: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).
        assert_se(write(fd, env_file_3, strlen(env_file_3)) == strlen(env_file_3));
data/systemd-247~rc2/src/test/test-env-file.c:108: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).
        assert_se(write(fd, env_file_4, strlen(env_file_4)) == strlen(env_file_4));
data/systemd-247~rc2/src/test/test-env-file.c:108: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).
        assert_se(write(fd, env_file_4, strlen(env_file_4)) == strlen(env_file_4));
data/systemd-247~rc2/src/test/test-env-file.c:127: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).
        assert_se(write(fd, env_file_5, strlen(env_file_5)) == strlen(env_file_5));
data/systemd-247~rc2/src/test/test-env-file.c:127: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).
        assert_se(write(fd, env_file_5, strlen(env_file_5)) == strlen(env_file_5));
data/systemd-247~rc2/src/test/test-env-file.c:165:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                assert_se(sz == strlen(v));
data/systemd-247~rc2/src/test/test-escape.c:39:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        assert_se(strlen(t) == i || strlen(t) == i - 1 || strlen(t) == i - 2 || strlen(t) == i - 3);
data/systemd-247~rc2/src/test/test-escape.c:39: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).
                        assert_se(strlen(t) == i || strlen(t) == i - 1 || strlen(t) == i - 2 || strlen(t) == i - 3);
data/systemd-247~rc2/src/test/test-escape.c:39: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).
                        assert_se(strlen(t) == i || strlen(t) == i - 1 || strlen(t) == i - 2 || strlen(t) == i - 3);
data/systemd-247~rc2/src/test/test-escape.c:39: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).
                        assert_se(strlen(t) == i || strlen(t) == i - 1 || strlen(t) == i - 2 || strlen(t) == i - 3);
data/systemd-247~rc2/src/test/test-escape.c:44:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        assert_se(strlen(t) == i);
data/systemd-247~rc2/src/test/test-exec-util.c:206:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, buf, sizeof buf) >= 0);
data/systemd-247~rc2/src/test/test-exec-util.c:218: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).
                assert_se(write(fd, *t, strlen(*t)) == (ssize_t) strlen(*t));
data/systemd-247~rc2/src/test/test-exec-util.c:218: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).
                assert_se(write(fd, *t, strlen(*t)) == (ssize_t) strlen(*t));
data/systemd-247~rc2/src/test/test-exec-util.c:227:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, buf, sizeof buf - 1) > 0);
data/systemd-247~rc2/src/test/test-fd-util.c:107:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, rbuffer, sizeof(rbuffer)) == 3);
data/systemd-247~rc2/src/test/test-fd-util.c:116:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, rbuffer, sizeof(rbuffer)) == 0);
data/systemd-247~rc2/src/test/test-fd-util.c:127:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, rbuffer, sizeof(rbuffer)) == sizeof(rbuffer));
data/systemd-247~rc2/src/test/test-fd-util.c:211:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                assert_se(read(3, buffer, sizeof(buffer)) == 1);
data/systemd-247~rc2/src/test/test-fd-util.c:213:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                assert_se(read(0, buffer, sizeof(buffer)) == 6);
data/systemd-247~rc2/src/test/test-fd-util.c:219:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                assert_se(read(3, buffer, sizeof(buffer)) == 1);
data/systemd-247~rc2/src/test/test-fd-util.c:236:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                x = read(fd1, a, sizeof(a));
data/systemd-247~rc2/src/test/test-fd-util.c:239:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                y = read(fd2, b, sizeof(b));
data/systemd-247~rc2/src/test/test-fd-util.c:310:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                assert_se(read(fd2, &j, sizeof(j)) == sizeof(j));
data/systemd-247~rc2/src/test/test-fd-util.c:314:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd2, &j, sizeof(j)) == 0);
data/systemd-247~rc2/src/test/test-fileio.c:163:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se(sz == strlen(value));
data/systemd-247~rc2/src/test/test-fileio.c:443:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, buf, sizeof(buf)) == 7);
data/systemd-247~rc2/src/test/test-fileio.c:458:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, buf, sizeof buf) == (ssize_t) strlen("boohoo\n"));
data/systemd-247~rc2/src/test/test-fileio.c:458: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).
        assert_se(read(fd, buf, sizeof buf) == (ssize_t) strlen("boohoo\n"));
data/systemd-247~rc2/src/test/test-fileio.c:629: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).
        assert_se(strlen(p) == 16);
data/systemd-247~rc2/src/test/test-fileio.c:635: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).
        assert_se(strlen(p) == 16);
data/systemd-247~rc2/src/test/test-fileio.c:641: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).
        assert_se(strlen(p) == 16);
data/systemd-247~rc2/src/test/test-fileio.c:647: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).
        assert_se(strlen(p) == 16);
data/systemd-247~rc2/src/test/test-fileio.c:791: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).
                assert_se((size_t) r == strlen(line) + 1);
data/systemd-247~rc2/src/test/test-fileio.c:910: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).
                assert_se(write(rfd, TEST_STR, strlen(TEST_STR)) == strlen(TEST_STR));
data/systemd-247~rc2/src/test/test-fileio.c:910:69:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                assert_se(write(rfd, TEST_STR, strlen(TEST_STR)) == strlen(TEST_STR));
data/systemd-247~rc2/src/test/test-fileio.c:916:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se(size == strlen(TEST_STR));
data/systemd-247~rc2/src/test/test-fs-util.c:766:45:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        _unused_ _cleanup_umask_ mode_t u = umask(0000);
data/systemd-247~rc2/src/test/test-hashmap-plain.c:926:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                seen[strlen(val) - 1]++;
data/systemd-247~rc2/src/test/test-hexdecoct.c:84:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        l = strlen(s);
data/systemd-247~rc2/src/test/test-hexdecoct.c:101: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).
        test_unhexmem_one(hex_invalid, strlen(hex_invalid), -EINVAL);
data/systemd-247~rc2/src/test/test-hexdecoct.c:103:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        test_unhexmem_one(hex, strlen(hex) - 1, -EPIPE);
data/systemd-247~rc2/src/test/test-hexdecoct.c:104:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        test_unhexmem_one(hex, strlen(hex), 0);
data/systemd-247~rc2/src/test/test-hexdecoct.c:106:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        test_unhexmem_one(hex_space, strlen(hex_space), 0);
data/systemd-247~rc2/src/test/test-hexdecoct.c:285:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                assert_se(size == strlen(output));
data/systemd-247~rc2/src/test/test-io-util.c:23:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, check, n) == (ssize_t) n);
data/systemd-247~rc2/src/test/test-journal-importer.c:15: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).
        assert_se(strlen(content) == iovec->iov_len);
data/systemd-247~rc2/src/test/test-json.c:101:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se((size_t) r == strlen(s));
data/systemd-247~rc2/src/test/test-json.c:118:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se((size_t) r == strlen(s));
data/systemd-247~rc2/src/test/test-json.c:134:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se((size_t) r == strlen(s));
data/systemd-247~rc2/src/test/test-json.c:141:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se((size_t) r == strlen(s));
data/systemd-247~rc2/src/test/test-json.c:381: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).
        assert_se(f = fmemopen_unlocked((void*) data, strlen(data), "r"));
data/systemd-247~rc2/src/test/test-libmount.c:24:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        f = fmemopen((char*) string, strlen(string), "re");
data/systemd-247~rc2/src/test/test-libudev.c:355:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se((size_t) r == strlen(expected));
data/systemd-247~rc2/src/test/test-libudev.c:360: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).
        test_util_replace_whitespace_one_len(str, strlen(str), expected);
data/systemd-247~rc2/src/test/test-load-fragment.c:516:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                memzero(i.name, strlen(i.name));                        \
data/systemd-247~rc2/src/test/test-load-fragment.c:517:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                memzero(i.path, strlen(i.path));                        \
data/systemd-247~rc2/src/test/test-ordered-set.c:26:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                seen[strlen(val) - 1]++;
data/systemd-247~rc2/src/test/test-path.c:389:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(022);
data/systemd-247~rc2/src/test/test-process-util.c:82: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).
        log_info("PID"PID_FMT" strlen(environ): %zi", pid, env ? (ssize_t)strlen(env) : (ssize_t)-errno);
data/systemd-247~rc2/src/test/test-process-util.c:552:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(100 * USEC_PER_MSEC);
data/systemd-247~rc2/src/test/test-sd-hwdb.c:54:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len1 += strlen(key) + strlen(value);
data/systemd-247~rc2/src/test/test-sd-hwdb.c:54:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len1 += strlen(key) + strlen(value);
data/systemd-247~rc2/src/test/test-sd-hwdb.c:59:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len2 += strlen(key) + strlen(value);
data/systemd-247~rc2/src/test/test-sd-hwdb.c:59:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len2 += strlen(key) + strlen(value);
data/systemd-247~rc2/src/test/test-set.c:21:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                seen[strlen(val) - 1]++;
data/systemd-247~rc2/src/test/test-socket-util.c:140: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).
        assert_se(SOCKADDR_UN_LEN(fs) == offsetof(struct sockaddr_un, sun_path) + strlen(fs.sun_path) + 1);
data/systemd-247~rc2/src/test/test-socket-util.c:141: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).
        assert_se(SOCKADDR_UN_LEN(abstract) == offsetof(struct sockaddr_un, sun_path) + 1 + strlen(abstract.sun_path + 1));
data/systemd-247~rc2/src/test/test-socket-util.c:252: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).
                assert_se(write(tmpfd, file_contents, strlen(file_contents)) == (ssize_t) strlen(file_contents));
data/systemd-247~rc2/src/test/test-socket-util.c:252: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).
                assert_se(write(tmpfd, file_contents, strlen(file_contents)) == (ssize_t) strlen(file_contents));
data/systemd-247~rc2/src/test/test-socket-util.c:273:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = read(fd, buf, sizeof(buf)-1);
data/systemd-247~rc2/src/test/test-socket-util.c:302: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).
                assert_se(write(tmpfd, file_contents, strlen(file_contents)) == (ssize_t) strlen(file_contents));
data/systemd-247~rc2/src/test/test-socket-util.c:302: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).
                assert_se(write(tmpfd, file_contents, strlen(file_contents)) == (ssize_t) strlen(file_contents));
data/systemd-247~rc2/src/test/test-socket-util.c:327:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = read(fd, buf, sizeof(buf)-1);
data/systemd-247~rc2/src/test/test-strbuf.c:11: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).
        return strbuf_add_string(sb, s, strlen(s));
data/systemd-247~rc2/src/test/test-string-util.c:317: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).
        assert_se(strlen(strshorten(s, 6)) == 6);
data/systemd-247~rc2/src/test/test-string-util.c:318: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).
        assert_se(strlen(strshorten(s, 12)) == 6);
data/systemd-247~rc2/src/test/test-string-util.c:319: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).
        assert_se(strlen(strshorten(s, 2)) == 2);
data/systemd-247~rc2/src/test/test-string-util.c:320: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).
        assert_se(strlen(strshorten(s, 0)) == 0);
data/systemd-247~rc2/src/test/test-udev-util.c:23: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).
                assert_se(endpos == str + strlen(in));
data/systemd-247~rc2/src/test/test-umask-util.c:12:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        u = umask(0111);
data/systemd-247~rc2/src/test/test-umask-util.c:16:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                assert_se(umask(000) == 0123);
data/systemd-247~rc2/src/test/test-umask-util.c:21:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        assert_se(umask(u) == 0111);
data/systemd-247~rc2/src/test/test-umask-util.c:24:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                assert_se(umask(000) == 0135);
data/systemd-247~rc2/src/test/test-umask-util.c:29:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        assert_se(umask(0111) == u);
data/systemd-247~rc2/src/test/test-umask-util.c:32:27:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
                assert_se(umask(000) == 0315);
data/systemd-247~rc2/src/test/test-umask-util.c:38:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        assert_se(umask(u) == 0111);
data/systemd-247~rc2/src/test/test-utf8.c:187: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).
        assert_se(strlen(a) == sizeof(utf8));
data/systemd-247~rc2/src/test/test-utf8.c:228:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                a = utf8_to_utf16(p, strlen(p));
data/systemd-247~rc2/src/test/test-varlink.c:175:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, &c, sizeof(c)) == sizeof(c));
data/systemd-247~rc2/src/test/test-varlink.c:178:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        assert_se(read(fd, &c, sizeof(c)) == 0);
data/systemd-247~rc2/src/test/test-watchdog.c:35:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(t/2);
data/systemd-247~rc2/src/test/test-xdg-autostart.c:61:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert_se(fwrite(s, strlen(s), 1, f) == 1);
data/systemd-247~rc2/src/time-wait-sync/time-wait-sync.c:86:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(fd, &buffer, sizeof(buffer));
data/systemd-247~rc2/src/timedate/timedated.c:367: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).
                                p = s + strlen(s);
data/systemd-247~rc2/src/timedate/timedated.c:380:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                b = strlen(e);
data/systemd-247~rc2/src/timedate/timedated.c:382: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).
                w = new(char, a + (c->local_rtc ? 5 : 3) + strlen(prepend) + b + 1);
data/systemd-247~rc2/src/timedate/timedated.c:1149:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/timesync/timesyncd.c:102:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:433:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(p) < 37)
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:1033: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).
                if (setxattr(procfs_path, *name, *value, strlen(*value), 0) < 0)
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:1373: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).
        r = loop_write(fd, i->argument, strlen(i->argument), false);
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:1438: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).
                        r = loop_write(fd, i->argument, strlen(i->argument), false);
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:1521: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).
                r = loop_write(fd, i->argument, strlen(i->argument), false);
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:3319:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        prefix = newa(char, strlen(path) + 1);
data/systemd-247~rc2/src/tmpfiles/tmpfiles.c:3401:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/tty-ask-password-agent/tty-ask-password-agent.c:75: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).
                packet_length += strlen(*p) + 1;
data/systemd-247~rc2/src/tty-ask-password-agent/tty-ask-password-agent.c:690:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/udev/fido_id/fido_id.c:76:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        desc_len = read(fd, desc, sizeof(desc));
data/systemd-247~rc2/src/udev/mtd_probe/probe_smartmedia.c:80:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read(mtd_fd, cis_buffer, SM_SECTOR_SIZE) == SM_SECTOR_SIZE) {
data/systemd-247~rc2/src/udev/scsi_id/scsi_id.c:185:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (buf[strlen(buffer) - 1] != '\n') {
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:500: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).
        s = j = strlen(serial);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:522:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                strncpy(wwn, serial + s, 16);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:524:25:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                        strncpy(wwn_vendor_extension, serial + s + 16, 16);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:539: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).
        j = strlen(serial);        /* j = 1; */
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:546:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(serial_short, serial, max_len-1);
data/systemd-247~rc2/src/udev/scsi_id/scsi_serial.c:684: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).
        j = strlen(serial);
data/systemd-247~rc2/src/udev/udev-builtin-keyboard.c:68: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).
        k = keyboard_lookup_key(keycode, strlen(keycode));
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:159:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ret->suffix, suffix, sizeof(ret->suffix));
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:230:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(fd, &config, sizeof(config)) != sizeof(config))
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:463: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).
        if (strlen(syspath) < sizeof _PLATFORM_TEST)
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:532:29:  [1] (buffer) strlen:
  Does not handle 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(vf_names.pci_onboard) + strlen(vf_info.suffix) < sizeof(names->pci_onboard))
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:532: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).
                        if (strlen(vf_names.pci_onboard) + strlen(vf_info.suffix) < sizeof(names->pci_onboard))
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:536:29:  [1] (buffer) strlen:
  Does not handle 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(vf_names.pci_slot) + strlen(vf_info.suffix) < sizeof(names->pci_slot))
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:536: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).
                        if (strlen(vf_names.pci_slot) + strlen(vf_info.suffix) < sizeof(names->pci_slot))
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:540:29:  [1] (buffer) strlen:
  Does not handle 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(vf_names.pci_path) + strlen(vf_info.suffix) < sizeof(names->pci_path))
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:540: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).
                        if (strlen(vf_names.pci_path) + strlen(vf_info.suffix) < sizeof(names->pci_path))
data/systemd-247~rc2/src/udev/udev-builtin-net_id.c:677:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        bus_id_len = strlen(bus_id);
data/systemd-247~rc2/src/udev/udev-builtin-path_id.c:396: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).
        if (strlen(guid_str) < guid_str_len || guid_str[0] != '{' || guid_str[guid_str_len-1] != '}')
data/systemd-247~rc2/src/udev/udev-builtin-uaccess.c:25:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:71:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(to, type, len);
data/systemd-247~rc2/src/udev/udev-builtin-usb_id.c:168:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        size = read(fd, buf, sizeof(buf));
data/systemd-247~rc2/src/udev/udev-event.c:555:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(fd, p, size - 1);
data/systemd-247~rc2/src/udev/udev-event.c:1075:40:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                                (void) usleep(event->exec_delay_usec);
data/systemd-247~rc2/src/udev/udev-rules.c:479: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).
                len = strlen(value);
data/systemd-247~rc2/src/udev/udev-rules.c:1084: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).
        line = memdup_suffix0(line_str, strlen(line_str) + 1);
data/systemd-247~rc2/src/udev/udev-rules.c:1226: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).
                len = strlen(line);
data/systemd-247~rc2/src/udev/udev-rules.c:1229:29:  [1] (buffer) strlen:
  Does not handle 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(continuation) + len >= UTIL_LINE_SIZE)
data/systemd-247~rc2/src/udev/udev-rules.c:1237:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                                len = strlen(line);
data/systemd-247~rc2/src/udev/udev-rules.c:1440: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).
                len = strlen(val);
data/systemd-247~rc2/src/udev/udevadm-info.c:102: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).
                len = strlen(value);
data/systemd-247~rc2/src/udev/udevd.c:795: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).
        devpath_len = strlen(devpath);
data/systemd-247~rc2/src/udev/udevd.c:855:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                loop_devpath_len = strlen(loop_devpath);
data/systemd-247~rc2/src/udev/udevd.c:1325:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        l = read(fd, &buffer, sizeof(buffer));
data/systemd-247~rc2/src/udev/udevd.c:1905:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(022);
data/systemd-247~rc2/src/update-utmp/update-utmp.c:233:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/user-sessions/user-sessions.c:26:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/userdb/userdbd.c:29:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/vconsole/vconsole-setup.c:435:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/veritysetup/veritysetup-generator.c:181: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).
        r = unhexmem(arg_root_hash, strlen(arg_root_hash), &m, &l);
data/systemd-247~rc2/src/veritysetup/veritysetup.c:58:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(0022);
data/systemd-247~rc2/src/veritysetup/veritysetup.c:68:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                r = unhexmem(argv[5], strlen(argv[5]), &m, &l);
data/systemd-247~rc2/src/veritysetup/veritysetup.c:99: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).
                                r = unbase64mem(value, strlen(value), (void *)&hash_sig, &hash_sig_size);

ANALYSIS SUMMARY:

Hits = 3495
Lines analyzed = 631306 in approximately 15.25 seconds (41407 lines/second)
Physical Source Lines of Code (SLOC) = 458885
Hits@level = [0] 1881 [1] 945 [2] 1820 [3] 238 [4] 442 [5]  50
Hits@level+ = [0+] 5376 [1+] 3495 [2+] 2550 [3+] 730 [4+] 492 [5+]  50
Hits/KSLOC@level+ = [0+] 11.7154 [1+] 7.61629 [2+] 5.55695 [3+] 1.59081 [4+] 1.07216 [5+] 0.10896
Symlinks skipped = 2 (--allowlink overrides but see doc for security issue)
Dot directories skipped = 4 (--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.