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/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/blockdevs.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/child.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/debug.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/devices.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/bpf.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/drm.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/epoll.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/eventfd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/fanotify_init.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/fds.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/files.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/inotify.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/memfd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/perf.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/pipes.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/sockets.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/testfiles.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/timerfd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/fds/userfaultfd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ftrace.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/generate-args.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-aarch64.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-alpha.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-arm.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-i386.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-ia64.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-mips.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-parisc.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-ppc.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-s390.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-sh.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-sparc.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-syscalls.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-tile.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch-x86-64.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arch.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/arg-decoder.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/bdevs.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/bpf.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/child.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/compat.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/debug.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/domains.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/exit.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/fanotify.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/fd.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/files.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/ftrace.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/futex.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/ioctls.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/kcov.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/list.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/locks.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/log.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/logfile.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/maps.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/memfd.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/net.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/object-types.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/objects.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/params.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/pathnames.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/perf.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/perf_event.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/pids.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/pipes.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/post-mortem.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/random.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/results.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/sanitise.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/shm.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/signals.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/socketinfo.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/stats.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscall.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-aarch64.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-alpha.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-arm.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-i386.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-ia64.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-mips-64.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-mips-n32.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-mips-o32.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-mips.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-parisc.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-ppc.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-s390.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-s390x.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-sh.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-sparc.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-tile.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscalls-x86_64.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/sysv-shm.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/tables.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/taint.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/testfile.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/tls.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/trinity.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/types.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/uid.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/userfaultfd.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/include/utils.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/autofs.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/binder.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/btrfs-control.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/btrfs.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/cdrom.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/dm.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/drm.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/ext.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/firewire.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/framebuffer.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/hpet.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/input.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/ioctls.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/kvm.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/logger.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/loop.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/mce.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/msr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/mtd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/nvme.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/ozwpan.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/random.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/rfkill.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/rtc.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/scsi.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/sgx.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/sisfb.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/snd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/socket.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/uinput.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/usbmon.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/vfio.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/vfs.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/vhost.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/videodev2.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/vmci.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/vsock.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/vt.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/watchdog.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/kcov.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/locks.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/log-files.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/log.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/main.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-write.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/mm/maps-initial.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/mm/maps.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/bpf.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/domains.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/ether.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-alg.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-appletalk.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-atm.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ax25.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-bluetooth.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-caif.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-can.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-decnet.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-econet.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-icmp6.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ip-dccp.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ip-raw.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ip-sctp.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ip-tcp.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ip-udp.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ip-udplite.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ipv4.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ipv6.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ipx.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-irda.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-iucv.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-kcm.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-llc.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-netlink.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-netrom.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-nfc.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-packet.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-phonet.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-pppox.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-qrtr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-rds.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-rose.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-rxrpc.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-smc.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-tipc.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-unix.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-x25.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-xdp.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/protocols.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/net/sockaddr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/objects.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/output.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/params.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/pathnames.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/pids.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/post-mortem.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/rand/interesting-numbers.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random-address.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random-length.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random-page.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/rand/seed.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/random-syscall.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/results.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/shm.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/signals.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/stats.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscall.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/accept.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/access.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/acct.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/add_key.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/adjtimex.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/alarm.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/bdflush.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/bind.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/bpf.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/brk.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/capget.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/capset.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/chdir.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/chmod.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/chown.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/chroot.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/clock_adjtime.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/clock_getres.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/clock_gettime.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/clock_nanosleep.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/clock_settime.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/clone.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/clone3.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/close.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/connect.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/copy_file_range.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/creat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/delete_module.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/dup.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/epoll_create.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/epoll_ctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/epoll_pwait.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/epoll_wait.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/eventfd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/execve.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/exit.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/exit_group.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/faccessat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fadvise64.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fallocate.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fanotify_init.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fanotify_mark.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fchdir.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fchmod.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fchown.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fcntl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fdatasync.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fgetxattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/finit_module.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/flock.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fork.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fremovexattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fsconfig.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fsetxattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fsmount.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fsopen.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fspick.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fstat64.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fstatfs.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/fsync.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ftruncate.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/futex.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/futimesat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/get_mempolicy.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/get_robust_list.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getcpu.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getcwd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getdents.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getegid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/geteuid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getgid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getgroups.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getitimer.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getpagesize.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getpeername.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getpgid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getpgrp.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getpid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getppid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getpriority.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getrandom.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getresgid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getresuid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getrlimit.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getrusage.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getsid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getsockname.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getsockopt.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/gettid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/gettimeofday.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getuid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/getxattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ia64/getunwind.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ia64/perfmonctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/init_module.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/inotify_add_watch.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/inotify_init.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/inotify_rm_watch.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/io_cancel.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/io_destroy.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/io_getevents.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/io_pgetevents.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/io_setup.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/io_submit.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/io_uring_enter.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/io_uring_register.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/io_uring_setup.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ioctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ioprio_get.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ioprio_set.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ipc.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/kcmp.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/kexec_file_load.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/kexec_load.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/keyctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/kill.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/lchown.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/lgetxattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/link.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/linkat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/listen.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/listxattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/llseek.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/lookup_dcookie.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/lremovexattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/lseek.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/lsetxattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/lstat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/madvise.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mbind.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/membarrier.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/memfd_create.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/migrate_pages.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mincore.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mkdir.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mknod.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mlock.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mlockall.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mmap.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mount.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/move_mount.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/move_pages.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mprotect.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mq_getsetattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mq_notify.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mq_open.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mq_timedreceive.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mq_timedsend.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mq_unlink.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mremap.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/msgctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/msgget.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/msgrcv.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/msgsnd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/msync.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/munlock.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/munlockall.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/munmap.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/name_to_handle_at.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/nanosleep.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/newfstat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/newlstat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/newstat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/newuname.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/nfsservctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ni_syscall.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/nice.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/oldreaddir.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/oldumount.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/olduname.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/open.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/open_tree.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/pause.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/pciconfig_iobase.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/pciconfig_read.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/pciconfig_write.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/personality.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/pidfd_open.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/pidfd_send_signal.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/pipe.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/pivot_root.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/pkey.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/poll.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ppc/rtas.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/prctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/prlimit64.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/process_vm_readv.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/process_vm_writev.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/pselect6.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ptrace.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/quotactl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/read.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/readahead.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/readlink.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/reboot.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/recv.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/remap_file_pages.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/removexattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/rename.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/request_key.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/restart_syscall.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/rmdir.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/rseq.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/rt_sigpending.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/rt_sigprocmask.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/rt_sigqueueinfo.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/rt_sigreturn.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/rt_sigsuspend.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/rt_sigtimedwait.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/rt_tgsigqueueinfo.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/s390x/runtime_instr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/s390x/s390_guarded_storage.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/s390x/s390_pci_mmio.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/s390x/s390_sthyi.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_get_priority_max.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_get_priority_min.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_getaffinity.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_getattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_getparam.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_getscheduler.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_rr_get_interval.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_setaffinity.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_setattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_setparam.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_setscheduler.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sched_yield.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/seccomp.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/select.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/semctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/semget.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/semop.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/semtimedop.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/send.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sendfile.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/set_mempolicy.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/set_robust_list.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/set_tid_address.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setdomainname.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setfsgid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setfsuid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setgid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setgroups.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sethostname.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setitimer.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setns.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setpgid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setpriority.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setregid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setresgid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setresuid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setreuid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setrlimit.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setsid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setsockopt.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/settimeofday.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setuid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/setxattr.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sgetmask.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sh/cacheflush.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/shmat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/shmctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/shmdt.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/shmget.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/shutdown.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sigaction.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sigaltstack.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/signal.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/signalfd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sigpending.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sigprocmask.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sigreturn.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sigsuspend.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/socket.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/socketcall.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/socketpair.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sparc/kern_features.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/splice.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ssetmask.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/stat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/statfs.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/stime.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/swap.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/symlink.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sync.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sync_file_range.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/syncfs.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/syscalls.h Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sysctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sysfs.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/sysinfo.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/syslog.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/tee.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/tgkill.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/time.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/timer_create.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/timer_delete.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/timer_getoverrun.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/timer_gettime.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/timer_settime.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/timerfd_create.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/timerfd_gettime.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/timerfd_settime.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/times.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/tkill.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/truncate.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/umask.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/umount.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/uname.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/unlink.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/unshare.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/uselib.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/userfaultfd.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/ustat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/utime.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/utimensat.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/utimes.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/vfork.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/vhangup.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/vmsplice.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/wait4.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/waitid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/waitpid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/write.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/x86/i386/vm86.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/x86/i386/vm86old.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/x86/ioperm.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/x86/iopl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/x86/modify_ldt.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/x86/x86_64/arch_prctl.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/sysv-shm.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/tables-biarch.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/tables-uniarch.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/taint.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/tools/analyze-sockets.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/trinity.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/uid.c Examining data/trinity-1.9+git20200331.4d2343bd18c7b/utils.c FINAL RESULTS: data/trinity-1.9+git20200331.4d2343bd18c7b/trinity.c:56:8: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. ret = chmod(tmpdir, 0777); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:18:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sptr += sprintf(sptr, "\"%s\"", (char *) reg); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:103:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sptr += sprintf(sptr, "%s=", name); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:112:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sptr += sprintf(sptr, "%s", str); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:134:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sptr += sprintf(sptr, "[child%u:%u] [%lu] %s", data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:138:10: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sptr += sprintf(sptr, "%s(", entry->name); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:154:11: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sptr += sprintf(sptr, "= %ld (%s)", data/trinity-1.9+git20200331.4d2343bd18c7b/debug.c:144:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(debugbuf, fmt, args); data/trinity-1.9+git20200331.4d2343bd18c7b/debug.c:159:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(debugbuf, fmt, args); data/trinity-1.9+git20200331.4d2343bd18c7b/main.c:249:3: [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. sscanf(line, "%d %s %c", &pid, procname, &state); data/trinity-1.9+git20200331.4d2343bd18c7b/mm/maps-initial.c:47:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(new->map.name, "anon(%s)", name); data/trinity-1.9+git20200331.4d2343bd18c7b/net/bpf.c:569:2: [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, sizeof(buf), fmt, val); data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-alg.c:225:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *)alg->salg_type, types[type]); data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-alg.c:243:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *)alg->salg_name, algs[algo]); data/trinity-1.9+git20200331.4d2343bd18c7b/output.c:59:6: [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. n = vsnprintf(outputbuf, sizeof(outputbuf), fmt, args); data/trinity-1.9+git20200331.4d2343bd18c7b/output.c:93:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, args); data/trinity-1.9+git20200331.4d2343bd18c7b/output.c:102:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, fmt, args); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/futex.c:213:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access("/proc/self/make-it-fail", W_OK) == -1) data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/futex.c:217:9: [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. err = system("echo 0 > /proc/self/make-it-fail"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/futex.c:220:9: [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. err = system("echo 1 > /proc/self/make-it-fail"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/futex.c:231:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access("/sys/kernel/debug/fail_futex/", W_OK) == -1) data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/futex.c:234:8: [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. err = system("echo Y > /sys/kernel/debug/fail_futex/ignore-private"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/futex.c:235:8: [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. err = system("echo Y > /sys/kernel/debug/fail_futex/task-filter"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/futex.c:236:8: [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. err = system("echo 1 > /sys/kernel/debug/fail_futex/times"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:328:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(dir_name,SYSFS"/%s", data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:332:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_name,"%s/type",dir_name); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:345:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(format_name,"%s/format",dir_name); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:382:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_name,"%s/format/%s", data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:386: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. result=fscanf(fff,"%s",format_value); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:405:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(event_name,"%s/events",dir_name); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:443:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(temp_name,"%s/events/%s", data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:447: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. result=fscanf(fff,"%s",event_value); data/trinity-1.9+git20200331.4d2343bd18c7b/params.c:160:16: [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 ((opt = getopt_long(argc, argv, paramstr, longopts, &opt_index)) != -1) { data/trinity-1.9+git20200331.4d2343bd18c7b/rand/seed.c:63:3: [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(r); data/trinity-1.9+git20200331.4d2343bd18c7b/rand/seed.c:83:2: [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(shm->seed + (child->num + 1)); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:23:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "%ld", (long) reg); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:26:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "%o", (mode_t) reg); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:33:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "0x%lx", reg); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:40:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "%p", (void *) reg); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:45:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "0x%lx", reg); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:56:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "0x%lx", reg); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:59:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "%ld", (long) reg); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:101:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, ", "); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:144:10: [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. sptr += sprintf(sptr, ") "); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:157:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "= "); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:159:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "0x%lx", rec->retval); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:161:12: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "%ld", (long) rec->retval); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:183:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rec->prebuffer, buffer, len); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:200:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(rec->postbuffer, buffer, len); data/trinity-1.9+git20200331.4d2343bd18c7b/child.c:103:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open("/proc/self/make-it-fail", O_WRONLY); data/trinity-1.9+git20200331.4d2343bd18c7b/child.c:139:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/self/oom_score_adj", "w"); data/trinity-1.9+git20200331.4d2343bd18c7b/child.c:191: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 childname[17]; data/trinity-1.9+git20200331.4d2343bd18c7b/child.c:215:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(childname, "trinity-c%d", childno); data/trinity-1.9+git20200331.4d2343bd18c7b/debug.c:137: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 debugbuf[BUFSIZE]; data/trinity-1.9+git20200331.4d2343bd18c7b/debug.c:155:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char debugbuf[BUFSIZE]; data/trinity-1.9+git20200331.4d2343bd18c7b/devices.c:30:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/devices", "r"); data/trinity-1.9+git20200331.4d2343bd18c7b/devices.c:86:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/misc", "r"); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/bpf.c:56: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[32]; data/trinity-1.9+git20200331.4d2343bd18c7b/fds/drm.c:85:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256 + 10]; data/trinity-1.9+git20200331.4d2343bd18c7b/fds/drm.c:108:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(buf, O_RDWR); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/fds.c:42: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). newnode->open = prov->open; data/trinity-1.9+git20200331.4d2343bd18c7b/fds/fds.c:72:33: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). provider->enabled = provider->open(); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/files.c:22: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 mode[3]=" "; data/trinity-1.9+git20200331.4d2343bd18c7b/fds/files.c:37:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(filename, mode); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/files.c:59:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(filename, flags | randflags | O_NONBLOCK, 0666); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/memfd.c:67:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(namestr, "memfd%u", i + 1); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/perf.c:66:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(obj->perfobj.eventattr, (void *) rec->a1, sizeof(struct perf_event_attr)); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/sockets.c:429: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). cachefile = open(cachefilename, O_RDONLY); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/testfiles.c:52:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open(filename, O_CREAT | flags, 0666); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/testfiles.c:89:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename, "trinity-testfile%u", i); data/trinity-1.9+git20200331.4d2343bd18c7b/ftrace.c:21:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096]; data/trinity-1.9+git20200331.4d2343bd18c7b/ftrace.c:24:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). tracein = open(tracefile, O_RDONLY); data/trinity-1.9+git20200331.4d2343bd18c7b/ftrace.c:31: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). traceout = open(ftracedumpname, O_CREAT | O_WRONLY, 0600); data/trinity-1.9+git20200331.4d2343bd18c7b/ftrace.c:69: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). trace_fd = open("/sys/kernel/debug/tracing/tracing_on", O_WRONLY); data/trinity-1.9+git20200331.4d2343bd18c7b/include/exit.h:27: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 *reasons[NUM_EXIT_REASONS] = { data/trinity-1.9+git20200331.4d2343bd18c7b/include/fd.h:17: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). int (*open)(void); data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscall.h:40: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 prebuffer[PREBUFFER_LEN]; data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscall.h:41: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 postbuffer[POSTBUFFER_LEN]; data/trinity-1.9+git20200331.4d2343bd18c7b/include/syscall.h:95: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. const char name[80]; data/trinity-1.9+git20200331.4d2343bd18c7b/include/tls.h:28: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 iv[TLS_CIPHER_AES_GCM_128_IV_SIZE]; data/trinity-1.9+git20200331.4d2343bd18c7b/include/tls.h:29: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 key[TLS_CIPHER_AES_GCM_128_KEY_SIZE]; data/trinity-1.9+git20200331.4d2343bd18c7b/include/tls.h:30: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 salt[TLS_CIPHER_AES_GCM_128_SALT_SIZE]; data/trinity-1.9+git20200331.4d2343bd18c7b/include/tls.h:31: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 rec_seq[TLS_CIPHER_AES_GCM_128_REC_SEQ_SIZE]; data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/autofs.c:122: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/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/btrfs.c:26:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uuid[BTRFS_UUID_SIZE]; /* in */ data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/ext.c:35: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_key_descriptor[EXT4_KEY_DESCRIPTOR_SIZE]; data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/logger.c:42:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[0]; data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/ozwpan.c:31: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[OZ_MAX_BINDING_LEN]; data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/scsi.c:74: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 data[512]; data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/scsi.c:75: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 cmd[12]; data/trinity-1.9+git20200331.4d2343bd18c7b/ioctls/scsi.c:76: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 sense[252]; data/trinity-1.9+git20200331.4d2343bd18c7b/kcov.c:26:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). kcovfd = open("/sys/kernel/debug/kcov", O_RDWR); data/trinity-1.9+git20200331.4d2343bd18c7b/log-files.c:31:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(fullpath, "w"); data/trinity-1.9+git20200331.4d2343bd18c7b/log-files.c:51:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(logfilename, "trinity-child%u.log", child->num); data/trinity-1.9+git20200331.4d2343bd18c7b/main.c:225:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[80]; data/trinity-1.9+git20200331.4d2343bd18c7b/main.c:227:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename, "/proc/%d/stat", target); data/trinity-1.9+git20200331.4d2343bd18c7b/main.c:229:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(filename, "r"); data/trinity-1.9+git20200331.4d2343bd18c7b/main.c:259:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[80]; data/trinity-1.9+git20200331.4d2343bd18c7b/main.c:261:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename, "/proc/%d/stack", pid); data/trinity-1.9+git20200331.4d2343bd18c7b/main.c:263:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(filename, "r"); data/trinity-1.9+git20200331.4d2343bd18c7b/main.c:292: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 fdstr[20]; data/trinity-1.9+git20200331.4d2343bd18c7b/main.c:317:4: [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(fdstr, "(fd = %u)", (unsigned int) rec->a1); data/trinity-1.9+git20200331.4d2343bd18c7b/main.c:683:5: [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(stalltxt, " STALLED:%u", stall_count); data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:19: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[page_size]; data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:23:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, p, page_size); data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:31: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[page_size]; data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:38:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, page, page_size); data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:46: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[page_size]; data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:55:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, page, page_size); data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:63: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[page_size]; data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:70:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, page, page_size); data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:79: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[page_size]; data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:86:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, page, page_size); data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:94: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[page_size]; data/trinity-1.9+git20200331.4d2343bd18c7b/mm/fault-read.c:99:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buf, ptr, page_size); data/trinity-1.9+git20200331.4d2343bd18c7b/mm/maps-initial.c:29:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open("/dev/zero", O_RDWR); data/trinity-1.9+git20200331.4d2343bd18c7b/mm/maps-initial.c:67:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/meminfo", "r"); data/trinity-1.9+git20200331.4d2343bd18c7b/mm/maps.c:65: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[11]; data/trinity-1.9+git20200331.4d2343bd18c7b/net/bpf.c:320:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256], tmp[128]; data/trinity-1.9+git20200331.4d2343bd18c7b/net/bpf.c:712:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(curr, validate_arch, sizeof(validate_arch)); data/trinity-1.9+git20200331.4d2343bd18c7b/net/bpf.c:721:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(curr, examine_syscall, sizeof(examine_syscall)); data/trinity-1.9+git20200331.4d2343bd18c7b/net/bpf.c:725:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(curr, allow_syscall, sizeof(allow_syscall)); data/trinity-1.9+git20200331.4d2343bd18c7b/net/bpf.c:731:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(curr, kill_process, sizeof(kill_process)); data/trinity-1.9+git20200331.4d2343bd18c7b/net/proto-ip-tcp.c:28:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ptr, "tls"); data/trinity-1.9+git20200331.4d2343bd18c7b/output.c:27: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 outputbuf[BUFSIZE]; data/trinity-1.9+git20200331.4d2343bd18c7b/output.c:31: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 child_prefix[32]; data/trinity-1.9+git20200331.4d2343bd18c7b/pathnames.c:298:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy(newpath, pathname, len); data/trinity-1.9+git20200331.4d2343bd18c7b/pathnames.c:304:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (void) memcpy(newpath + 2, pathname, len); data/trinity-1.9+git20200331.4d2343bd18c7b/pids.c:76:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[512], *sptr = string; data/trinity-1.9+git20200331.4d2343bd18c7b/pids.c:78:10: [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. sptr += sprintf(sptr, "## pids: (%u active)\n", shm->running_childs); data/trinity-1.9+git20200331.4d2343bd18c7b/pids.c:81:11: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "%u-%u: ", i, i + 7); data/trinity-1.9+git20200331.4d2343bd18c7b/pids.c:91:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "[empty] "); data/trinity-1.9+git20200331.4d2343bd18c7b/pids.c:95:13: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sptr += sprintf(sptr, "%u ", pid); data/trinity-1.9+git20200331.4d2343bd18c7b/pids.c:110: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 *end, buf[32]; data/trinity-1.9+git20200331.4d2343bd18c7b/pids.c:114:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen("/proc/sys/kernel/pid_max", "r"); data/trinity-1.9+git20200331.4d2343bd18c7b/post-mortem.c:39:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = fopen("trinity-post-mortem.log", "w"); data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random-page.c:134:18: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 0: p += sprintf(p, "0x%lx", (unsigned long) rand64()); data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random-page.c:136:18: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 1: p += sprintf(p, "0x%lx", (unsigned long) rand64()); data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random-page.c:138:18: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 2: p += sprintf(p, "0x%x", (int) rand32()); data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random-page.c:149:18: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 0: p += sprintf(p, "%lu", (unsigned long) rand64()); data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random-page.c:151:18: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 1: p += sprintf(p, "%u", (unsigned int) rand32()); data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random-page.c:153:18: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. case 2: p += sprintf(p, "%u", (unsigned char) rnd()); data/trinity-1.9+git20200331.4d2343bd18c7b/rand/seed.c:51: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). urandomfd = open("/dev/urandom", O_RDONLY); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/execve.c:38: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. generate_rand_bytes((unsigned char *) ptr[i], rnd() % page_size); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mmap.c:121: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. p += sprintf(p, "PROT_NONE]"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mmap.c:125: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. p += sprintf(p, "PROT_READ|"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mmap.c:127: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. p += sprintf(p, "PROT_WRITE|"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mmap.c:129: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. p += sprintf(p, "PROT_EXEC|"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mmap.c:131: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. p += sprintf(p, "PROT_SEM "); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:65: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 format_string[BUFSIZ]; data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:204: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 field[BUFSIZ]; data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:280: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 dir_name[BUFSIZ] = ""; data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:281: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 event_name[BUFSIZ+7] = ""; data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:282: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 event_value[BUFSIZ] = ""; data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:283: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 temp_name[BUFSIZ*2] = ""; data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:284: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 format_name[BUFSIZ+7] = ""; data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:285: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 format_value[BUFSIZ] = ""; data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:333:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fff=fopen(temp_name,"r"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:384:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fff=fopen(temp_name,"r"); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/perf_event_open.c:445:9: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fff=fopen(temp_name,"r"); data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c:133: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 str32[40]; data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c:134: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 str64[40]; data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c:144: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. p += sprintf(p, "%d enabled", shm->nr_active_32bit_syscalls); data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c:148:10: [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. p += sprintf(p, ", %u disabled", nr); data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c:150:4: [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(str32, "all disabled."); data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c:157: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. p += sprintf(p, "%d enabled", shm->nr_active_64bit_syscalls); data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c:161:10: [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. p += sprintf(p, ", %u disabled", nr); data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c:163:4: [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(str64, "all disabled"); data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c:304:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(*arg_name, arg, size); data/trinity-1.9+git20200331.4d2343bd18c7b/tables.c:501:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(copy + m , entry, sizeof(struct syscallentry)); data/trinity-1.9+git20200331.4d2343bd18c7b/taint.c:19:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[11]; data/trinity-1.9+git20200331.4d2343bd18c7b/taint.c:32:9: [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). ret = atoi(buffer); data/trinity-1.9+git20200331.4d2343bd18c7b/taint.c:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char flagname[TAINT_NAME_LEN]; data/trinity-1.9+git20200331.4d2343bd18c7b/taint.c:140: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). taint_fd = open("/proc/sys/kernel/tainted", O_RDONLY); data/trinity-1.9+git20200331.4d2343bd18c7b/tools/analyze-sockets.c:155:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "Unknown(%u)", proto); data/trinity-1.9+git20200331.4d2343bd18c7b/tools/analyze-sockets.c:180:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, "Unknown(%u)", type); data/trinity-1.9+git20200331.4d2343bd18c7b/tools/analyze-sockets.c:192: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). cachefile = open(cachefilename, O_RDONLY); data/trinity-1.9+git20200331.4d2343bd18c7b/trinity.c:102: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. const char taskname[13]="trinity-main"; data/trinity-1.9+git20200331.4d2343bd18c7b/utils.c:56:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%lu bytes", size); data/trinity-1.9+git20200331.4d2343bd18c7b/utils.c:62:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%luKB", size / 1024); data/trinity-1.9+git20200331.4d2343bd18c7b/utils.c:68:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ldMB", (size / 1024) / 1024); data/trinity-1.9+git20200331.4d2343bd18c7b/utils.c:72:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ldGB", ((size / 1024) / 1024) / 1024); data/trinity-1.9+git20200331.4d2343bd18c7b/arg-decoder.c:163:10: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sptr += sprintf(sptr, "\n"); data/trinity-1.9+git20200331.4d2343bd18c7b/blockdevs.c:56:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(optarg); data/trinity-1.9+git20200331.4d2343bd18c7b/child.c:442:3: [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(1); data/trinity-1.9+git20200331.4d2343bd18c7b/debug.c:97: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). output(0, " prebuffer : %p (len:%d)\n", rec->prebuffer, strlen(rec->prebuffer)); data/trinity-1.9+git20200331.4d2343bd18c7b/debug.c:99: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). output(0, " postbuffer : %p (len:%ld)\n", rec->postbuffer, strlen(rec->postbuffer)); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/fds.c:195:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(param); data/trinity-1.9+git20200331.4d2343bd18c7b/fds/sockets.c:444:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytesread = read(cachefile, buffer, sizeof(int) * 3); data/trinity-1.9+git20200331.4d2343bd18c7b/ftrace.c:38:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). in = read(tracein, buffer, 4096); data/trinity-1.9+git20200331.4d2343bd18c7b/locks.c:107:3: [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(1); data/trinity-1.9+git20200331.4d2343bd18c7b/log-files.c:19:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(logfilename) + 2; data/trinity-1.9+git20200331.4d2343bd18c7b/log-files.c:22:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen(logging_args); data/trinity-1.9+git20200331.4d2343bd18c7b/log-files.c:26: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). p += snprintf(fullpath, strlen(logging_args) + 2, "%s/", logging_args); data/trinity-1.9+git20200331.4d2343bd18c7b/log-files.c:27: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 += snprintf(p, strlen(logfilename) + 1, "%s", logfilename); data/trinity-1.9+git20200331.4d2343bd18c7b/net/domains.c:76:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(name); data/trinity-1.9+git20200331.4d2343bd18c7b/net/domains.c:84: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). if (len != strlen(domains[i].name)) data/trinity-1.9+git20200331.4d2343bd18c7b/pathnames.c:62:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pathlen = strlen(path); data/trinity-1.9+git20200331.4d2343bd18c7b/pathnames.c:66:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(ignored_paths[i]) != pathlen) { data/trinity-1.9+git20200331.4d2343bd18c7b/pathnames.c:295:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(pathname); data/trinity-1.9+git20200331.4d2343bd18c7b/pids.c:98:11: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sptr += sprintf(sptr, "\n"); data/trinity-1.9+git20200331.4d2343bd18c7b/rand/random-page.c:146:11: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. p += sprintf(p, "-"); data/trinity-1.9+git20200331.4d2343bd18c7b/rand/seed.c:57:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(urandomfd, &r, sizeof(r)) != sizeof(r)) data/trinity-1.9+git20200331.4d2343bd18c7b/shm.c:60:18: [1] (free) memalign: On some systems (though not Linux-based systems) an attempt to free() results from memalign() may fail. This may, on a few systems, be exploitable. Also note that memalign() may not check that the boundary parameter is correct (CWE-676). Use posix_memalign instead (defined in POSIX's 1003.1d). Don't switch to valloc(); it is marked as obsolete in BSD 4.3, as legacy in SUSv2, and is no longer defined in SUSv3. In some cases, malloc()'s alignment may be sufficient. shm->children = memalign(page_size, childptrslen); data/trinity-1.9+git20200331.4d2343bd18c7b/syscall.c:167:3: [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); data/trinity-1.9+git20200331.4d2343bd18c7b/syscall.c:178:3: [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(1000); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mmap.c:118:8: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. p += sprintf(buf, "["); data/trinity-1.9+git20200331.4d2343bd18c7b/syscalls/mmap.c:133:3: [1] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source is a constant character. sprintf(p, "]"); data/trinity-1.9+git20200331.4d2343bd18c7b/taint.c:29:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ret = read(taint_fd, buffer, 10); data/trinity-1.9+git20200331.4d2343bd18c7b/taint.c:83:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(flagname, beg, maxlen); data/trinity-1.9+git20200331.4d2343bd18c7b/tools/analyze-sockets.c:199:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bytesread = read(cachefile, buffer, sizeof(int) * 3); ANALYSIS SUMMARY: Hits = 211 Lines analyzed = 41813 in approximately 0.93 seconds (44774 lines/second) Physical Source Lines of Code (SLOC) = 32802 Hits@level = [0] 60 [1] 29 [2] 147 [3] 3 [4] 31 [5] 1 Hits@level+ = [0+] 271 [1+] 211 [2+] 182 [3+] 35 [4+] 32 [5+] 1 Hits/KSLOC@level+ = [0+] 8.26169 [1+] 6.43253 [2+] 5.54844 [3+] 1.06701 [4+] 0.97555 [5+] 0.0304859 Dot directories skipped = 2 (--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.