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/criu-3.15/compel/arch/aarch64/plugins/include/asm/syscall-types.h
Examining data/criu-3.15/compel/arch/aarch64/plugins/include/features.h
Examining data/criu-3.15/compel/arch/aarch64/plugins/std/syscalls/syscall-aux.h
Examining data/criu-3.15/compel/arch/aarch64/src/lib/cpu.c
Examining data/criu-3.15/compel/arch/aarch64/src/lib/handle-elf.c
Examining data/criu-3.15/compel/arch/aarch64/src/lib/include/cpu.h
Examining data/criu-3.15/compel/arch/aarch64/src/lib/include/handle-elf.h
Examining data/criu-3.15/compel/arch/aarch64/src/lib/include/syscall.h
Examining data/criu-3.15/compel/arch/aarch64/src/lib/include/uapi/asm/breakpoints.h
Examining data/criu-3.15/compel/arch/aarch64/src/lib/include/uapi/asm/cpu.h
Examining data/criu-3.15/compel/arch/aarch64/src/lib/include/uapi/asm/fpu.h
Examining data/criu-3.15/compel/arch/aarch64/src/lib/include/uapi/asm/infect-types.h
Examining data/criu-3.15/compel/arch/aarch64/src/lib/include/uapi/asm/processor-flags.h
Examining data/criu-3.15/compel/arch/aarch64/src/lib/include/uapi/asm/sigframe.h
Examining data/criu-3.15/compel/arch/aarch64/src/lib/infect.c
Examining data/criu-3.15/compel/arch/arm/plugins/include/asm/syscall-types.h
Examining data/criu-3.15/compel/arch/arm/plugins/include/features.h
Examining data/criu-3.15/compel/arch/arm/plugins/std/syscalls/syscall-aux.h
Examining data/criu-3.15/compel/arch/arm/src/lib/handle-elf.c
Examining data/criu-3.15/compel/arch/arm/src/lib/include/cpu.h
Examining data/criu-3.15/compel/arch/arm/src/lib/include/handle-elf.h
Examining data/criu-3.15/compel/arch/arm/src/lib/include/syscall.h
Examining data/criu-3.15/compel/arch/arm/src/lib/include/uapi/asm/breakpoints.h
Examining data/criu-3.15/compel/arch/arm/src/lib/include/uapi/asm/cpu.h
Examining data/criu-3.15/compel/arch/arm/src/lib/include/uapi/asm/fpu.h
Examining data/criu-3.15/compel/arch/arm/src/lib/include/uapi/asm/infect-types.h
Examining data/criu-3.15/compel/arch/arm/src/lib/include/uapi/asm/processor-flags.h
Examining data/criu-3.15/compel/arch/arm/src/lib/include/uapi/asm/sigframe.h
Examining data/criu-3.15/compel/arch/arm/src/lib/infect.c
Examining data/criu-3.15/compel/arch/mips/plugins/include/asm/prologue.h
Examining data/criu-3.15/compel/arch/mips/plugins/include/asm/syscall-types.h
Examining data/criu-3.15/compel/arch/mips/plugins/include/features.h
Examining data/criu-3.15/compel/arch/mips/src/lib/cpu.c
Examining data/criu-3.15/compel/arch/mips/src/lib/handle-elf.c
Examining data/criu-3.15/compel/arch/mips/src/lib/include/handle-elf.h
Examining data/criu-3.15/compel/arch/mips/src/lib/include/ldsodefs.h
Examining data/criu-3.15/compel/arch/mips/src/lib/include/syscall.h
Examining data/criu-3.15/compel/arch/mips/src/lib/include/uapi/asm/breakpoints.h
Examining data/criu-3.15/compel/arch/mips/src/lib/include/uapi/asm/cpu.h
Examining data/criu-3.15/compel/arch/mips/src/lib/include/uapi/asm/fpu.h
Examining data/criu-3.15/compel/arch/mips/src/lib/include/uapi/asm/infect-types.h
Examining data/criu-3.15/compel/arch/mips/src/lib/include/uapi/asm/sigframe.h
Examining data/criu-3.15/compel/arch/mips/src/lib/include/uapi/asm/siginfo.h
Examining data/criu-3.15/compel/arch/mips/src/lib/infect.c
Examining data/criu-3.15/compel/arch/ppc64/plugins/include/asm/syscall-types.h
Examining data/criu-3.15/compel/arch/ppc64/plugins/include/features.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/cpu.c
Examining data/criu-3.15/compel/arch/ppc64/src/lib/handle-elf.c
Examining data/criu-3.15/compel/arch/ppc64/src/lib/include/cpu.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/include/handle-elf.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/include/syscall.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/include/uapi/asm/breakpoints.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/include/uapi/asm/cpu.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/include/uapi/asm/fpu.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/include/uapi/asm/infect-types.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/include/uapi/asm/processor-flags.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/include/uapi/asm/processor.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/include/uapi/asm/sigframe.h
Examining data/criu-3.15/compel/arch/ppc64/src/lib/infect.c
Examining data/criu-3.15/compel/arch/s390/plugins/include/asm/syscall-types.h
Examining data/criu-3.15/compel/arch/s390/plugins/std/syscalls/syscalls-s390.c
Examining data/criu-3.15/compel/arch/s390/src/lib/cpu.c
Examining data/criu-3.15/compel/arch/s390/src/lib/handle-elf.c
Examining data/criu-3.15/compel/arch/s390/src/lib/include/handle-elf.h
Examining data/criu-3.15/compel/arch/s390/src/lib/include/syscall.h
Examining data/criu-3.15/compel/arch/s390/src/lib/include/uapi/asm/breakpoints.h
Examining data/criu-3.15/compel/arch/s390/src/lib/include/uapi/asm/cpu.h
Examining data/criu-3.15/compel/arch/s390/src/lib/include/uapi/asm/fpu.h
Examining data/criu-3.15/compel/arch/s390/src/lib/include/uapi/asm/infect-types.h
Examining data/criu-3.15/compel/arch/s390/src/lib/include/uapi/asm/sigframe.h
Examining data/criu-3.15/compel/arch/s390/src/lib/infect.c
Examining data/criu-3.15/compel/arch/x86/plugins/include/asm/prologue.h
Examining data/criu-3.15/compel/arch/x86/plugins/include/asm/syscall-types.h
Examining data/criu-3.15/compel/arch/x86/plugins/include/features.h
Examining data/criu-3.15/compel/arch/x86/plugins/std/syscalls/syscall32.c
Examining data/criu-3.15/compel/arch/x86/src/lib/cpu.c
Examining data/criu-3.15/compel/arch/x86/src/lib/handle-elf.c
Examining data/criu-3.15/compel/arch/x86/src/lib/include/cpu.h
Examining data/criu-3.15/compel/arch/x86/src/lib/include/handle-elf.h
Examining data/criu-3.15/compel/arch/x86/src/lib/include/syscall.h
Examining data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/breakpoints.h
Examining data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/cpu.h
Examining data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/fpu.h
Examining data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/infect-types.h
Examining data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/processor-flags.h
Examining data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h
Examining data/criu-3.15/compel/arch/x86/src/lib/infect.c
Examining data/criu-3.15/compel/include/compel-cpu.h
Examining data/criu-3.15/compel/include/elf32-types.h
Examining data/criu-3.15/compel/include/elf64-types.h
Examining data/criu-3.15/compel/include/errno.h
Examining data/criu-3.15/compel/include/infect-priv.h
Examining data/criu-3.15/compel/include/log.h
Examining data/criu-3.15/compel/include/piegen.h
Examining data/criu-3.15/compel/include/ptrace.h
Examining data/criu-3.15/compel/include/rpc-pie-priv.h
Examining data/criu-3.15/compel/include/shmem.h
Examining data/criu-3.15/compel/include/uapi/cpu.h
Examining data/criu-3.15/compel/include/uapi/handle-elf.h
Examining data/criu-3.15/compel/include/uapi/infect-rpc.h
Examining data/criu-3.15/compel/include/uapi/infect-util.h
Examining data/criu-3.15/compel/include/uapi/infect.h
Examining data/criu-3.15/compel/include/uapi/ksigset.h
Examining data/criu-3.15/compel/include/uapi/log.h
Examining data/criu-3.15/compel/include/uapi/loglevels.h
Examining data/criu-3.15/compel/include/uapi/plugins.h
Examining data/criu-3.15/compel/include/uapi/ptrace.h
Examining data/criu-3.15/compel/include/uapi/sigframe-common.h
Examining data/criu-3.15/compel/include/uapi/task-state.h
Examining data/criu-3.15/compel/plugins/fds/fds.c
Examining data/criu-3.15/compel/plugins/include/std-priv.h
Examining data/criu-3.15/compel/plugins/include/uapi/plugin-fds.h
Examining data/criu-3.15/compel/plugins/include/uapi/shmem.h
Examining data/criu-3.15/compel/plugins/include/uapi/std.h
Examining data/criu-3.15/compel/plugins/include/uapi/std/fds.h
Examining data/criu-3.15/compel/plugins/include/uapi/std/infect.h
Examining data/criu-3.15/compel/plugins/include/uapi/std/log.h
Examining data/criu-3.15/compel/plugins/include/uapi/std/string.h
Examining data/criu-3.15/compel/plugins/include/uapi/std/syscall-types.h
Examining data/criu-3.15/compel/plugins/shmem/shmem.c
Examining data/criu-3.15/compel/plugins/std/fds.c
Examining data/criu-3.15/compel/plugins/std/infect.c
Examining data/criu-3.15/compel/plugins/std/log.c
Examining data/criu-3.15/compel/plugins/std/std.c
Examining data/criu-3.15/compel/plugins/std/string.c
Examining data/criu-3.15/compel/src/lib/handle-elf.c
Examining data/criu-3.15/compel/src/lib/infect-rpc.c
Examining data/criu-3.15/compel/src/lib/infect-util.c
Examining data/criu-3.15/compel/src/lib/infect.c
Examining data/criu-3.15/compel/src/lib/log.c
Examining data/criu-3.15/compel/src/lib/ptrace.c
Examining data/criu-3.15/compel/src/main.c
Examining data/criu-3.15/compel/test/fdspy/parasite.c
Examining data/criu-3.15/compel/test/fdspy/spy.c
Examining data/criu-3.15/compel/test/fdspy/victim.c
Examining data/criu-3.15/compel/test/infect/parasite.c
Examining data/criu-3.15/compel/test/infect/spy.c
Examining data/criu-3.15/compel/test/infect/victim.c
Examining data/criu-3.15/compel/test/rsys/spy.c
Examining data/criu-3.15/compel/test/rsys/victim.c
Examining data/criu-3.15/criu/action-scripts.c
Examining data/criu-3.15/criu/aio.c
Examining data/criu-3.15/criu/arch/aarch64/cpu.c
Examining data/criu-3.15/criu/arch/aarch64/crtools.c
Examining data/criu-3.15/criu/arch/aarch64/include/asm/dump.h
Examining data/criu-3.15/criu/arch/aarch64/include/asm/int.h
Examining data/criu-3.15/criu/arch/aarch64/include/asm/kerndat.h
Examining data/criu-3.15/criu/arch/aarch64/include/asm/parasite-syscall.h
Examining data/criu-3.15/criu/arch/aarch64/include/asm/parasite.h
Examining data/criu-3.15/criu/arch/aarch64/include/asm/restore.h
Examining data/criu-3.15/criu/arch/aarch64/include/asm/restorer.h
Examining data/criu-3.15/criu/arch/aarch64/include/asm/types.h
Examining data/criu-3.15/criu/arch/aarch64/include/asm/vdso.h
Examining data/criu-3.15/criu/arch/aarch64/restorer.c
Examining data/criu-3.15/criu/arch/aarch64/sigframe.c
Examining data/criu-3.15/criu/arch/aarch64/vdso-pie.c
Examining data/criu-3.15/criu/arch/arm/cpu.c
Examining data/criu-3.15/criu/arch/arm/crtools.c
Examining data/criu-3.15/criu/arch/arm/include/asm/dump.h
Examining data/criu-3.15/criu/arch/arm/include/asm/int.h
Examining data/criu-3.15/criu/arch/arm/include/asm/kerndat.h
Examining data/criu-3.15/criu/arch/arm/include/asm/parasite-syscall.h
Examining data/criu-3.15/criu/arch/arm/include/asm/parasite.h
Examining data/criu-3.15/criu/arch/arm/include/asm/restore.h
Examining data/criu-3.15/criu/arch/arm/include/asm/restorer.h
Examining data/criu-3.15/criu/arch/arm/include/asm/types.h
Examining data/criu-3.15/criu/arch/arm/include/asm/vdso.h
Examining data/criu-3.15/criu/arch/arm/pie-cacheflush.c
Examining data/criu-3.15/criu/arch/arm/restorer.c
Examining data/criu-3.15/criu/arch/arm/sigframe.c
Examining data/criu-3.15/criu/arch/arm/vdso-pie.c
Examining data/criu-3.15/criu/arch/mips/cpu.c
Examining data/criu-3.15/criu/arch/mips/crtools.c
Examining data/criu-3.15/criu/arch/mips/include/asm/dump.h
Examining data/criu-3.15/criu/arch/mips/include/asm/int.h
Examining data/criu-3.15/criu/arch/mips/include/asm/kerndat.h
Examining data/criu-3.15/criu/arch/mips/include/asm/parasite-syscall.h
Examining data/criu-3.15/criu/arch/mips/include/asm/parasite.h
Examining data/criu-3.15/criu/arch/mips/include/asm/restore.h
Examining data/criu-3.15/criu/arch/mips/include/asm/restorer.h
Examining data/criu-3.15/criu/arch/mips/include/asm/syscall32.h
Examining data/criu-3.15/criu/arch/mips/include/asm/types.h
Examining data/criu-3.15/criu/arch/mips/include/asm/vdso.h
Examining data/criu-3.15/criu/arch/mips/restorer.c
Examining data/criu-3.15/criu/arch/mips/sigaction_compat.c
Examining data/criu-3.15/criu/arch/mips/sigframe.c
Examining data/criu-3.15/criu/arch/mips/vdso-pie.c
Examining data/criu-3.15/criu/arch/ppc64/cpu.c
Examining data/criu-3.15/criu/arch/ppc64/crtools.c
Examining data/criu-3.15/criu/arch/ppc64/include/asm/dump.h
Examining data/criu-3.15/criu/arch/ppc64/include/asm/int.h
Examining data/criu-3.15/criu/arch/ppc64/include/asm/kerndat.h
Examining data/criu-3.15/criu/arch/ppc64/include/asm/parasite-syscall.h
Examining data/criu-3.15/criu/arch/ppc64/include/asm/parasite.h
Examining data/criu-3.15/criu/arch/ppc64/include/asm/restore.h
Examining data/criu-3.15/criu/arch/ppc64/include/asm/restorer.h
Examining data/criu-3.15/criu/arch/ppc64/include/asm/types.h
Examining data/criu-3.15/criu/arch/ppc64/include/asm/vdso.h
Examining data/criu-3.15/criu/arch/ppc64/restorer.c
Examining data/criu-3.15/criu/arch/ppc64/sigframe.c
Examining data/criu-3.15/criu/arch/ppc64/vdso-pie.c
Examining data/criu-3.15/criu/arch/s390/cpu.c
Examining data/criu-3.15/criu/arch/s390/crtools.c
Examining data/criu-3.15/criu/arch/s390/include/asm/dump.h
Examining data/criu-3.15/criu/arch/s390/include/asm/int.h
Examining data/criu-3.15/criu/arch/s390/include/asm/kerndat.h
Examining data/criu-3.15/criu/arch/s390/include/asm/parasite-syscall.h
Examining data/criu-3.15/criu/arch/s390/include/asm/parasite.h
Examining data/criu-3.15/criu/arch/s390/include/asm/restore.h
Examining data/criu-3.15/criu/arch/s390/include/asm/restorer.h
Examining data/criu-3.15/criu/arch/s390/include/asm/types.h
Examining data/criu-3.15/criu/arch/s390/include/asm/vdso.h
Examining data/criu-3.15/criu/arch/s390/restorer.c
Examining data/criu-3.15/criu/arch/s390/sigframe.c
Examining data/criu-3.15/criu/arch/s390/vdso-pie.c
Examining data/criu-3.15/criu/arch/x86/cpu.c
Examining data/criu-3.15/criu/arch/x86/crtools.c
Examining data/criu-3.15/criu/arch/x86/include/asm/compat.h
Examining data/criu-3.15/criu/arch/x86/include/asm/dump.h
Examining data/criu-3.15/criu/arch/x86/include/asm/int.h
Examining data/criu-3.15/criu/arch/x86/include/asm/kerndat.h
Examining data/criu-3.15/criu/arch/x86/include/asm/parasite-syscall.h
Examining data/criu-3.15/criu/arch/x86/include/asm/parasite.h
Examining data/criu-3.15/criu/arch/x86/include/asm/restore.h
Examining data/criu-3.15/criu/arch/x86/include/asm/restorer.h
Examining data/criu-3.15/criu/arch/x86/include/asm/syscall32.h
Examining data/criu-3.15/criu/arch/x86/include/asm/types.h
Examining data/criu-3.15/criu/arch/x86/include/asm/vdso.h
Examining data/criu-3.15/criu/arch/x86/kerndat.c
Examining data/criu-3.15/criu/arch/x86/restorer.c
Examining data/criu-3.15/criu/arch/x86/sigaction_compat.c
Examining data/criu-3.15/criu/arch/x86/sigframe.c
Examining data/criu-3.15/criu/arch/x86/sys-exec-tbl.c
Examining data/criu-3.15/criu/arch/x86/vdso-pie.c
Examining data/criu-3.15/criu/autofs.c
Examining data/criu-3.15/criu/bfd.c
Examining data/criu-3.15/criu/bitmap.c
Examining data/criu-3.15/criu/bpfmap.c
Examining data/criu-3.15/criu/cgroup-props.c
Examining data/criu-3.15/criu/cgroup.c
Examining data/criu-3.15/criu/clone-noasan.c
Examining data/criu-3.15/criu/config.c
Examining data/criu-3.15/criu/cr-check.c
Examining data/criu-3.15/criu/cr-dedup.c
Examining data/criu-3.15/criu/cr-dump.c
Examining data/criu-3.15/criu/cr-errno.c
Examining data/criu-3.15/criu/cr-restore.c
Examining data/criu-3.15/criu/cr-service.c
Examining data/criu-3.15/criu/crtools.c
Examining data/criu-3.15/criu/eventfd.c
Examining data/criu-3.15/criu/eventpoll.c
Examining data/criu-3.15/criu/external.c
Examining data/criu-3.15/criu/fault-injection.c
Examining data/criu-3.15/criu/fdstore.c
Examining data/criu-3.15/criu/fifo.c
Examining data/criu-3.15/criu/file-ids.c
Examining data/criu-3.15/criu/file-lock.c
Examining data/criu-3.15/criu/files-ext.c
Examining data/criu-3.15/criu/files-reg.c
Examining data/criu-3.15/criu/files.c
Examining data/criu-3.15/criu/filesystems.c
Examining data/criu-3.15/criu/fsnotify.c
Examining data/criu-3.15/criu/image-desc.c
Examining data/criu-3.15/criu/image.c
Examining data/criu-3.15/criu/img-streamer.c
Examining data/criu-3.15/criu/include/action-scripts.h
Examining data/criu-3.15/criu/include/aio.h
Examining data/criu-3.15/criu/include/asm-generic/int.h
Examining data/criu-3.15/criu/include/asm-generic/vdso.h
Examining data/criu-3.15/criu/include/atomic.h
Examining data/criu-3.15/criu/include/autofs.h
Examining data/criu-3.15/criu/include/bfd.h
Examining data/criu-3.15/criu/include/bitmap.h
Examining data/criu-3.15/criu/include/bitops.h
Examining data/criu-3.15/criu/include/bitsperlong.h
Examining data/criu-3.15/criu/include/bpfmap.h
Examining data/criu-3.15/criu/include/cgroup-props.h
Examining data/criu-3.15/criu/include/cgroup.h
Examining data/criu-3.15/criu/include/clone-noasan.h
Examining data/criu-3.15/criu/include/cpu.h
Examining data/criu-3.15/criu/include/cr-errno.h
Examining data/criu-3.15/criu/include/cr-service-const.h
Examining data/criu-3.15/criu/include/cr-service.h
Examining data/criu-3.15/criu/include/cr_options.h
Examining data/criu-3.15/criu/include/criu-log.h
Examining data/criu-3.15/criu/include/criu-plugin.h
Examining data/criu-3.15/criu/include/crtools.h
Examining data/criu-3.15/criu/include/dump.h
Examining data/criu-3.15/criu/include/eventfd.h
Examining data/criu-3.15/criu/include/eventpoll.h
Examining data/criu-3.15/criu/include/external.h
Examining data/criu-3.15/criu/include/fault-injection.h
Examining data/criu-3.15/criu/include/fcntl.h
Examining data/criu-3.15/criu/include/fdinfo.h
Examining data/criu-3.15/criu/include/fdstore.h
Examining data/criu-3.15/criu/include/fifo.h
Examining data/criu-3.15/criu/include/file-ids.h
Examining data/criu-3.15/criu/include/file-lock.h
Examining data/criu-3.15/criu/include/files-reg.h
Examining data/criu-3.15/criu/include/files.h
Examining data/criu-3.15/criu/include/filesystems.h
Examining data/criu-3.15/criu/include/fs-magic.h
Examining data/criu-3.15/criu/include/fsnotify.h
Examining data/criu-3.15/criu/include/image-desc.h
Examining data/criu-3.15/criu/include/image.h
Examining data/criu-3.15/criu/include/img-streamer.h
Examining data/criu-3.15/criu/include/imgset.h
Examining data/criu-3.15/criu/include/inet_diag.h
Examining data/criu-3.15/criu/include/infect-pie.h
Examining data/criu-3.15/criu/include/int.h
Examining data/criu-3.15/criu/include/ipc_ns.h
Examining data/criu-3.15/criu/include/irmap.h
Examining data/criu-3.15/criu/include/kcmp-ids.h
Examining data/criu-3.15/criu/include/kcmp.h
Examining data/criu-3.15/criu/include/kerndat.h
Examining data/criu-3.15/criu/include/libnetlink.h
Examining data/criu-3.15/criu/include/linux/mount.h
Examining data/criu-3.15/criu/include/linux/userfaultfd.h
Examining data/criu-3.15/criu/include/log.h
Examining data/criu-3.15/criu/include/lsm.h
Examining data/criu-3.15/criu/include/magic.h
Examining data/criu-3.15/criu/include/mem.h
Examining data/criu-3.15/criu/include/memfd.h
Examining data/criu-3.15/criu/include/mman.h
Examining data/criu-3.15/criu/include/mount.h
Examining data/criu-3.15/criu/include/namespaces.h
Examining data/criu-3.15/criu/include/net.h
Examining data/criu-3.15/criu/include/netfilter.h
Examining data/criu-3.15/criu/include/netlink_diag.h
Examining data/criu-3.15/criu/include/packet_diag.h
Examining data/criu-3.15/criu/include/page-pipe.h
Examining data/criu-3.15/criu/include/page-xfer.h
Examining data/criu-3.15/criu/include/page.h
Examining data/criu-3.15/criu/include/pagemap-cache.h
Examining data/criu-3.15/criu/include/pagemap.h
Examining data/criu-3.15/criu/include/parasite-syscall.h
Examining data/criu-3.15/criu/include/parasite-vdso.h
Examining data/criu-3.15/criu/include/parasite.h
Examining data/criu-3.15/criu/include/path.h
Examining data/criu-3.15/criu/include/pid.h
Examining data/criu-3.15/criu/include/pipes.h
Examining data/criu-3.15/criu/include/plugin.h
Examining data/criu-3.15/criu/include/posix-timer.h
Examining data/criu-3.15/criu/include/prctl.h
Examining data/criu-3.15/criu/include/proc_parse.h
Examining data/criu-3.15/criu/include/protobuf-desc.h
Examining data/criu-3.15/criu/include/protobuf.h
Examining data/criu-3.15/criu/include/pstree.h
Examining data/criu-3.15/criu/include/ptrace-compat.h
Examining data/criu-3.15/criu/include/rbtree.h
Examining data/criu-3.15/criu/include/restore.h
Examining data/criu-3.15/criu/include/restorer.h
Examining data/criu-3.15/criu/include/rst-malloc.h
Examining data/criu-3.15/criu/include/rst_info.h
Examining data/criu-3.15/criu/include/sched.h
Examining data/criu-3.15/criu/include/seccomp.h
Examining data/criu-3.15/criu/include/seize.h
Examining data/criu-3.15/criu/include/servicefd.h
Examining data/criu-3.15/criu/include/setproctitle.h
Examining data/criu-3.15/criu/include/shmem.h
Examining data/criu-3.15/criu/include/sigframe.h
Examining data/criu-3.15/criu/include/signalfd.h
Examining data/criu-3.15/criu/include/sk-inet.h
Examining data/criu-3.15/criu/include/sk-packet.h
Examining data/criu-3.15/criu/include/sk-queue.h
Examining data/criu-3.15/criu/include/sockets.h
Examining data/criu-3.15/criu/include/stats.h
Examining data/criu-3.15/criu/include/string.h
Examining data/criu-3.15/criu/include/sysctl.h
Examining data/criu-3.15/criu/include/sysfs_parse.h
Examining data/criu-3.15/criu/include/timens.h
Examining data/criu-3.15/criu/include/timerfd.h
Examining data/criu-3.15/criu/include/tls.h
Examining data/criu-3.15/criu/include/tty.h
Examining data/criu-3.15/criu/include/tun.h
Examining data/criu-3.15/criu/include/types.h
Examining data/criu-3.15/criu/include/uffd.h
Examining data/criu-3.15/criu/include/unix_diag.h
Examining data/criu-3.15/criu/include/util-pie.h
Examining data/criu-3.15/criu/include/util-vdso.h
Examining data/criu-3.15/criu/include/util.h
Examining data/criu-3.15/criu/include/uts_ns.h
Examining data/criu-3.15/criu/include/vdso.h
Examining data/criu-3.15/criu/include/vma.h
Examining data/criu-3.15/criu/include/xmalloc.h
Examining data/criu-3.15/criu/ipc_ns.c
Examining data/criu-3.15/criu/irmap.c
Examining data/criu-3.15/criu/kcmp-ids.c
Examining data/criu-3.15/criu/kerndat.c
Examining data/criu-3.15/criu/libnetlink.c
Examining data/criu-3.15/criu/log.c
Examining data/criu-3.15/criu/lsm.c
Examining data/criu-3.15/criu/mem.c
Examining data/criu-3.15/criu/memfd.c
Examining data/criu-3.15/criu/mount.c
Examining data/criu-3.15/criu/namespaces.c
Examining data/criu-3.15/criu/net.c
Examining data/criu-3.15/criu/netfilter.c
Examining data/criu-3.15/criu/page-pipe.c
Examining data/criu-3.15/criu/page-xfer.c
Examining data/criu-3.15/criu/pagemap-cache.c
Examining data/criu-3.15/criu/pagemap.c
Examining data/criu-3.15/criu/parasite-syscall.c
Examining data/criu-3.15/criu/path.c
Examining data/criu-3.15/criu/pie/parasite-vdso.c
Examining data/criu-3.15/criu/pie/parasite.c
Examining data/criu-3.15/criu/pie/restorer.c
Examining data/criu-3.15/criu/pie/util-vdso.c
Examining data/criu-3.15/criu/pie/util.c
Examining data/criu-3.15/criu/pipes.c
Examining data/criu-3.15/criu/plugin.c
Examining data/criu-3.15/criu/proc_parse.c
Examining data/criu-3.15/criu/protobuf-desc.c
Examining data/criu-3.15/criu/protobuf.c
Examining data/criu-3.15/criu/pstree.c
Examining data/criu-3.15/criu/rbtree.c
Examining data/criu-3.15/criu/rst-malloc.c
Examining data/criu-3.15/criu/seccomp.c
Examining data/criu-3.15/criu/seize.c
Examining data/criu-3.15/criu/servicefd.c
Examining data/criu-3.15/criu/shmem.c
Examining data/criu-3.15/criu/sigframe.c
Examining data/criu-3.15/criu/signalfd.c
Examining data/criu-3.15/criu/sk-inet.c
Examining data/criu-3.15/criu/sk-netlink.c
Examining data/criu-3.15/criu/sk-packet.c
Examining data/criu-3.15/criu/sk-queue.c
Examining data/criu-3.15/criu/sk-tcp.c
Examining data/criu-3.15/criu/sk-unix.c
Examining data/criu-3.15/criu/sockets.c
Examining data/criu-3.15/criu/stats.c
Examining data/criu-3.15/criu/string.c
Examining data/criu-3.15/criu/sysctl.c
Examining data/criu-3.15/criu/sysfs_parse.c
Examining data/criu-3.15/criu/timens.c
Examining data/criu-3.15/criu/timerfd.c
Examining data/criu-3.15/criu/tls.c
Examining data/criu-3.15/criu/tty.c
Examining data/criu-3.15/criu/tun.c
Examining data/criu-3.15/criu/uffd.c
Examining data/criu-3.15/criu/util.c
Examining data/criu-3.15/criu/uts_ns.c
Examining data/criu-3.15/criu/vdso-compat.c
Examining data/criu-3.15/criu/vdso.c
Examining data/criu-3.15/include/common/arch/aarch64/asm/atomic.h
Examining data/criu-3.15/include/common/arch/aarch64/asm/bitops.h
Examining data/criu-3.15/include/common/arch/aarch64/asm/bitsperlong.h
Examining data/criu-3.15/include/common/arch/aarch64/asm/linkage.h
Examining data/criu-3.15/include/common/arch/aarch64/asm/page.h
Examining data/criu-3.15/include/common/arch/arm/asm/atomic.h
Examining data/criu-3.15/include/common/arch/arm/asm/bitops.h
Examining data/criu-3.15/include/common/arch/arm/asm/bitsperlong.h
Examining data/criu-3.15/include/common/arch/arm/asm/linkage.h
Examining data/criu-3.15/include/common/arch/arm/asm/page.h
Examining data/criu-3.15/include/common/arch/arm/asm/processor.h
Examining data/criu-3.15/include/common/arch/mips/asm/atomic.h
Examining data/criu-3.15/include/common/arch/mips/asm/bitops.h
Examining data/criu-3.15/include/common/arch/mips/asm/bitsperlong.h
Examining data/criu-3.15/include/common/arch/mips/asm/cmpxchg.h
Examining data/criu-3.15/include/common/arch/mips/asm/fls64.h
Examining data/criu-3.15/include/common/arch/mips/asm/linkage.h
Examining data/criu-3.15/include/common/arch/mips/asm/page.h
Examining data/criu-3.15/include/common/arch/mips/asm/utils.h
Examining data/criu-3.15/include/common/arch/ppc64/asm/atomic.h
Examining data/criu-3.15/include/common/arch/ppc64/asm/bitops.h
Examining data/criu-3.15/include/common/arch/ppc64/asm/bitsperlong.h
Examining data/criu-3.15/include/common/arch/ppc64/asm/cmpxchg.h
Examining data/criu-3.15/include/common/arch/ppc64/asm/linkage.h
Examining data/criu-3.15/include/common/arch/ppc64/asm/page.h
Examining data/criu-3.15/include/common/arch/s390/asm/atomic.h
Examining data/criu-3.15/include/common/arch/s390/asm/atomic_ops.h
Examining data/criu-3.15/include/common/arch/s390/asm/bitops.h
Examining data/criu-3.15/include/common/arch/s390/asm/bitsperlong.h
Examining data/criu-3.15/include/common/arch/s390/asm/linkage.h
Examining data/criu-3.15/include/common/arch/s390/asm/page.h
Examining data/criu-3.15/include/common/arch/x86/asm/atomic.h
Examining data/criu-3.15/include/common/arch/x86/asm/bitops.h
Examining data/criu-3.15/include/common/arch/x86/asm/bitsperlong.h
Examining data/criu-3.15/include/common/arch/x86/asm/cmpxchg.h
Examining data/criu-3.15/include/common/arch/x86/asm/linkage.h
Examining data/criu-3.15/include/common/arch/x86/asm/page.h
Examining data/criu-3.15/include/common/asm-generic/bitops.h
Examining data/criu-3.15/include/common/bitops.h
Examining data/criu-3.15/include/common/bitsperlong.h
Examining data/criu-3.15/include/common/bug.h
Examining data/criu-3.15/include/common/compiler.h
Examining data/criu-3.15/include/common/err.h
Examining data/criu-3.15/include/common/list.h
Examining data/criu-3.15/include/common/lock.h
Examining data/criu-3.15/include/common/page.h
Examining data/criu-3.15/include/common/scm-code.c
Examining data/criu-3.15/include/common/scm.h
Examining data/criu-3.15/include/common/xmalloc.h
Examining data/criu-3.15/lib/c/criu.c
Examining data/criu-3.15/lib/c/criu.h
Examining data/criu-3.15/soccr/soccr.c
Examining data/criu-3.15/soccr/soccr.h
Examining data/criu-3.15/soccr/test/tcp-conn.c
Examining data/criu-3.15/soccr/test/tcp-constructor.c
Examining data/criu-3.15/test/compel/arch/aarch64/include/arch_test_handle_binary.h
Examining data/criu-3.15/test/compel/arch/arm/include/arch_test_handle_binary.h
Examining data/criu-3.15/test/compel/arch/ppc64/include/arch_test_handle_binary.h
Examining data/criu-3.15/test/compel/arch/x86/include/arch_test_handle_binary.h
Examining data/criu-3.15/test/compel/handle_binary.c
Examining data/criu-3.15/test/compel/main.c
Examining data/criu-3.15/test/others/app-emu/job/job.c
Examining data/criu-3.15/test/others/app-emu/make/tmpl.c
Examining data/criu-3.15/test/others/bers/bers.c
Examining data/criu-3.15/test/others/ext-links/mvlink.c
Examining data/criu-3.15/test/others/libcriu/lib.c
Examining data/criu-3.15/test/others/libcriu/lib.h
Examining data/criu-3.15/test/others/libcriu/test_errno.c
Examining data/criu-3.15/test/others/libcriu/test_iters.c
Examining data/criu-3.15/test/others/libcriu/test_notify.c
Examining data/criu-3.15/test/others/libcriu/test_self.c
Examining data/criu-3.15/test/others/libcriu/test_sub.c
Examining data/criu-3.15/test/others/mounts/ext/ext-mount.c
Examining data/criu-3.15/test/others/mounts/ext/ns_init.c
Examining data/criu-3.15/test/others/pipes/pipe.c
Examining data/criu-3.15/test/others/rpc/test-c.c
Examining data/criu-3.15/test/others/socketpairs/socketpair.c
Examining data/criu-3.15/test/others/tcp/cln.c
Examining data/criu-3.15/test/others/tcp/srv.c
Examining data/criu-3.15/test/others/unix-callback/syslog-lib.c
Examining data/criu-3.15/test/others/unix-callback/unix-client.c
Examining data/criu-3.15/test/others/unix-callback/unix-lib.c
Examining data/criu-3.15/test/others/unix-callback/unix-server.c
Examining data/criu-3.15/test/umount2.c
Examining data/criu-3.15/test/zdtm/lib/arch/aarch64/include/asm/atomic.h
Examining data/criu-3.15/test/zdtm/lib/arch/arm/include/asm/atomic.h
Examining data/criu-3.15/test/zdtm/lib/arch/mips/include/asm/atomic.h
Examining data/criu-3.15/test/zdtm/lib/arch/ppc64/include/asm/atomic.h
Examining data/criu-3.15/test/zdtm/lib/arch/s390/include/asm/atomic.h
Examining data/criu-3.15/test/zdtm/lib/arch/x86/include/asm/atomic.h
Examining data/criu-3.15/test/zdtm/lib/bpfmap_zdtm.c
Examining data/criu-3.15/test/zdtm/lib/bpfmap_zdtm.h
Examining data/criu-3.15/test/zdtm/lib/cpuid.h
Examining data/criu-3.15/test/zdtm/lib/datagen.c
Examining data/criu-3.15/test/zdtm/lib/fs.c
Examining data/criu-3.15/test/zdtm/lib/fs.h
Examining data/criu-3.15/test/zdtm/lib/groups.c
Examining data/criu-3.15/test/zdtm/lib/lock.c
Examining data/criu-3.15/test/zdtm/lib/lock.h
Examining data/criu-3.15/test/zdtm/lib/msg.c
Examining data/criu-3.15/test/zdtm/lib/ns.c
Examining data/criu-3.15/test/zdtm/lib/ns.h
Examining data/criu-3.15/test/zdtm/lib/parseargs.c
Examining data/criu-3.15/test/zdtm/lib/streamutil.c
Examining data/criu-3.15/test/zdtm/lib/sysctl.c
Examining data/criu-3.15/test/zdtm/lib/sysctl.h
Examining data/criu-3.15/test/zdtm/lib/tcp.c
Examining data/criu-3.15/test/zdtm/lib/test.c
Examining data/criu-3.15/test/zdtm/lib/unix.c
Examining data/criu-3.15/test/zdtm/lib/zdtmtst.h
Examining data/criu-3.15/test/zdtm/static/aio00.c
Examining data/criu-3.15/test/zdtm/static/aio01.c
Examining data/criu-3.15/test/zdtm/static/apparmor.c
Examining data/criu-3.15/test/zdtm/static/arm-neon00.c
Examining data/criu-3.15/test/zdtm/static/auto_dev-ioctl.h
Examining data/criu-3.15/test/zdtm/static/autofs.c
Examining data/criu-3.15/test/zdtm/static/bind-mount.c
Examining data/criu-3.15/test/zdtm/static/binfmt_misc.c
Examining data/criu-3.15/test/zdtm/static/bpf_array.c
Examining data/criu-3.15/test/zdtm/static/bpf_hash.c
Examining data/criu-3.15/test/zdtm/static/bridge.c
Examining data/criu-3.15/test/zdtm/static/busyloop00.c
Examining data/criu-3.15/test/zdtm/static/caps00.c
Examining data/criu-3.15/test/zdtm/static/cgroup00.c
Examining data/criu-3.15/test/zdtm/static/cgroup01.c
Examining data/criu-3.15/test/zdtm/static/cgroup02.c
Examining data/criu-3.15/test/zdtm/static/cgroup03.c
Examining data/criu-3.15/test/zdtm/static/cgroup04.c
Examining data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c
Examining data/criu-3.15/test/zdtm/static/cgroup_stray.c
Examining data/criu-3.15/test/zdtm/static/cgroupns.c
Examining data/criu-3.15/test/zdtm/static/child_opened_proc.c
Examining data/criu-3.15/test/zdtm/static/child_subreaper.c
Examining data/criu-3.15/test/zdtm/static/child_subreaper_and_reparent.c
Examining data/criu-3.15/test/zdtm/static/child_subreaper_existing_child.c
Examining data/criu-3.15/test/zdtm/static/chroot-file.c
Examining data/criu-3.15/test/zdtm/static/chroot.c
Examining data/criu-3.15/test/zdtm/static/clean_mntns.c
Examining data/criu-3.15/test/zdtm/static/clone_fs.c
Examining data/criu-3.15/test/zdtm/static/cmdlinenv00.c
Examining data/criu-3.15/test/zdtm/static/config_inotify_irmap.c
Examining data/criu-3.15/test/zdtm/static/console.c
Examining data/criu-3.15/test/zdtm/static/cow00.c
Examining data/criu-3.15/test/zdtm/static/cow01.c
Examining data/criu-3.15/test/zdtm/static/cr_veth.c
Examining data/criu-3.15/test/zdtm/static/criu-rtc.c
Examining data/criu-3.15/test/zdtm/static/cwd00.c
Examining data/criu-3.15/test/zdtm/static/cwd01.c
Examining data/criu-3.15/test/zdtm/static/cwd02.c
Examining data/criu-3.15/test/zdtm/static/del_standalone_un.c
Examining data/criu-3.15/test/zdtm/static/deleted_dev.c
Examining data/criu-3.15/test/zdtm/static/deleted_unix_sock.c
Examining data/criu-3.15/test/zdtm/static/different_creds.c
Examining data/criu-3.15/test/zdtm/static/dumpable01.c
Examining data/criu-3.15/test/zdtm/static/dumpable02.c
Examining data/criu-3.15/test/zdtm/static/env00.c
Examining data/criu-3.15/test/zdtm/static/epoll.c
Examining data/criu-3.15/test/zdtm/static/epoll01.c
Examining data/criu-3.15/test/zdtm/static/eventfs00.c
Examining data/criu-3.15/test/zdtm/static/fanotify00.c
Examining data/criu-3.15/test/zdtm/static/fd.c
Examining data/criu-3.15/test/zdtm/static/fd01.c
Examining data/criu-3.15/test/zdtm/static/fdt_shared.c
Examining data/criu-3.15/test/zdtm/static/fifo-ghost.c
Examining data/criu-3.15/test/zdtm/static/fifo-rowo-pair.c
Examining data/criu-3.15/test/zdtm/static/fifo.c
Examining data/criu-3.15/test/zdtm/static/fifo_ro.c
Examining data/criu-3.15/test/zdtm/static/fifo_wronly.c
Examining data/criu-3.15/test/zdtm/static/file_append.c
Examining data/criu-3.15/test/zdtm/static/file_attr.c
Examining data/criu-3.15/test/zdtm/static/file_cloexec.c
Examining data/criu-3.15/test/zdtm/static/file_fown.c
Examining data/criu-3.15/test/zdtm/static/file_lease00.c
Examining data/criu-3.15/test/zdtm/static/file_lease01.c
Examining data/criu-3.15/test/zdtm/static/file_lease02.c
Examining data/criu-3.15/test/zdtm/static/file_lease03.c
Examining data/criu-3.15/test/zdtm/static/file_lease04.c
Examining data/criu-3.15/test/zdtm/static/file_locks00.c
Examining data/criu-3.15/test/zdtm/static/file_locks01.c
Examining data/criu-3.15/test/zdtm/static/file_locks02.c
Examining data/criu-3.15/test/zdtm/static/file_locks03.c
Examining data/criu-3.15/test/zdtm/static/file_locks04.c
Examining data/criu-3.15/test/zdtm/static/file_locks05.c
Examining data/criu-3.15/test/zdtm/static/file_locks06.c
Examining data/criu-3.15/test/zdtm/static/file_locks07.c
Examining data/criu-3.15/test/zdtm/static/file_locks08.c
Examining data/criu-3.15/test/zdtm/static/file_shared.c
Examining data/criu-3.15/test/zdtm/static/fpu00.c
Examining data/criu-3.15/test/zdtm/static/fpu01.c
Examining data/criu-3.15/test/zdtm/static/fpu02.c
Examining data/criu-3.15/test/zdtm/static/futex-rl.c
Examining data/criu-3.15/test/zdtm/static/futex.c
Examining data/criu-3.15/test/zdtm/static/get_smaps_bits.c
Examining data/criu-3.15/test/zdtm/static/get_smaps_bits.h
Examining data/criu-3.15/test/zdtm/static/ghost_holes00.c
Examining data/criu-3.15/test/zdtm/static/ghost_on_rofs.c
Examining data/criu-3.15/test/zdtm/static/groups.c
Examining data/criu-3.15/test/zdtm/static/grow_map.c
Examining data/criu-3.15/test/zdtm/static/grow_map02.c
Examining data/criu-3.15/test/zdtm/static/grow_map03.c
Examining data/criu-3.15/test/zdtm/static/helper_zombie_child.c
Examining data/criu-3.15/test/zdtm/static/inotify00.c
Examining data/criu-3.15/test/zdtm/static/inotify02.c
Examining data/criu-3.15/test/zdtm/static/inotify04.c
Examining data/criu-3.15/test/zdtm/static/inotify_irmap.c
Examining data/criu-3.15/test/zdtm/static/inotify_system.c
Examining data/criu-3.15/test/zdtm/static/ipc_namespace.c
Examining data/criu-3.15/test/zdtm/static/jobctl00.c
Examining data/criu-3.15/test/zdtm/static/link10.c
Examining data/criu-3.15/test/zdtm/static/loginuid.c
Examining data/criu-3.15/test/zdtm/static/macvlan.c
Examining data/criu-3.15/test/zdtm/static/maps00.c
Examining data/criu-3.15/test/zdtm/static/maps01.c
Examining data/criu-3.15/test/zdtm/static/maps02.c
Examining data/criu-3.15/test/zdtm/static/maps03.c
Examining data/criu-3.15/test/zdtm/static/maps04.c
Examining data/criu-3.15/test/zdtm/static/maps05.c
Examining data/criu-3.15/test/zdtm/static/maps06.c
Examining data/criu-3.15/test/zdtm/static/maps_file_prot.c
Examining data/criu-3.15/test/zdtm/static/mem-touch.c
Examining data/criu-3.15/test/zdtm/static/memfd00.c
Examining data/criu-3.15/test/zdtm/static/memfd01.c
Examining data/criu-3.15/test/zdtm/static/memfd02.c
Examining data/criu-3.15/test/zdtm/static/memfd03.c
Examining data/criu-3.15/test/zdtm/static/mlock_setuid.c
Examining data/criu-3.15/test/zdtm/static/mmx00.c
Examining data/criu-3.15/test/zdtm/static/mnt_enablefs.c
Examining data/criu-3.15/test/zdtm/static/mnt_ext_auto.c
Examining data/criu-3.15/test/zdtm/static/mnt_ext_dev.c
Examining data/criu-3.15/test/zdtm/static/mnt_ext_master.c
Examining data/criu-3.15/test/zdtm/static/mnt_ro_bind.c
Examining data/criu-3.15/test/zdtm/static/mnt_tracefs.c
Examining data/criu-3.15/test/zdtm/static/mntns_deleted.c
Examining data/criu-3.15/test/zdtm/static/mntns_ghost.c
Examining data/criu-3.15/test/zdtm/static/mntns_ghost01.c
Examining data/criu-3.15/test/zdtm/static/mntns_link_remap.c
Examining data/criu-3.15/test/zdtm/static/mntns_open.c
Examining data/criu-3.15/test/zdtm/static/mntns_overmount.c
Examining data/criu-3.15/test/zdtm/static/mntns_remap.c
Examining data/criu-3.15/test/zdtm/static/mntns_ro_root.c
Examining data/criu-3.15/test/zdtm/static/mntns_root_bind.c
Examining data/criu-3.15/test/zdtm/static/mntns_rw_ro_rw.c
Examining data/criu-3.15/test/zdtm/static/mntns_shared_bind.c
Examining data/criu-3.15/test/zdtm/static/mntns_shared_bind03.c
Examining data/criu-3.15/test/zdtm/static/mntns_shared_vs_private.c
Examining data/criu-3.15/test/zdtm/static/mount_paths.c
Examining data/criu-3.15/test/zdtm/static/mountpoints.c
Examining data/criu-3.15/test/zdtm/static/mprotect00.c
Examining data/criu-3.15/test/zdtm/static/msgque.c
Examining data/criu-3.15/test/zdtm/static/mtime_mmap.c
Examining data/criu-3.15/test/zdtm/static/netns-dev.c
Examining data/criu-3.15/test/zdtm/static/netns-nf.c
Examining data/criu-3.15/test/zdtm/static/netns-nft.c
Examining data/criu-3.15/test/zdtm/static/netns.c
Examining data/criu-3.15/test/zdtm/static/netns_sub.c
Examining data/criu-3.15/test/zdtm/static/netns_sub_sysctl.c
Examining data/criu-3.15/test/zdtm/static/netns_sub_veth.c
Examining data/criu-3.15/test/zdtm/static/non_uniform_share_propagation.c
Examining data/criu-3.15/test/zdtm/static/ofd_file_locks.c
Examining data/criu-3.15/test/zdtm/static/ofd_file_locks.h
Examining data/criu-3.15/test/zdtm/static/oom_score_adj.c
Examining data/criu-3.15/test/zdtm/static/opath_file.c
Examining data/criu-3.15/test/zdtm/static/overmount_dev.c
Examining data/criu-3.15/test/zdtm/static/overmount_fifo.c
Examining data/criu-3.15/test/zdtm/static/overmount_file.c
Examining data/criu-3.15/test/zdtm/static/overmount_sock.c
Examining data/criu-3.15/test/zdtm/static/overmount_with_shared_parent.c
Examining data/criu-3.15/test/zdtm/static/overmounted_file.c
Examining data/criu-3.15/test/zdtm/static/packet_sock.c
Examining data/criu-3.15/test/zdtm/static/packet_sock_mmap.c
Examining data/criu-3.15/test/zdtm/static/packet_sock_spkt.c
Examining data/criu-3.15/test/zdtm/static/pdeath_sig.c
Examining data/criu-3.15/test/zdtm/static/pid00.c
Examining data/criu-3.15/test/zdtm/static/pid_file.c
Examining data/criu-3.15/test/zdtm/static/pipe00.c
Examining data/criu-3.15/test/zdtm/static/pipe01.c
Examining data/criu-3.15/test/zdtm/static/pipe02.c
Examining data/criu-3.15/test/zdtm/static/pipe03.c
Examining data/criu-3.15/test/zdtm/static/poll.c
Examining data/criu-3.15/test/zdtm/static/posix_timers.c
Examining data/criu-3.15/test/zdtm/static/private_bind_propagation.c
Examining data/criu-3.15/test/zdtm/static/proc-self.c
Examining data/criu-3.15/test/zdtm/static/pstree.c
Examining data/criu-3.15/test/zdtm/static/pthread00.c
Examining data/criu-3.15/test/zdtm/static/pthread01.c
Examining data/criu-3.15/test/zdtm/static/pthread02.c
Examining data/criu-3.15/test/zdtm/static/ptrace_sig.c
Examining data/criu-3.15/test/zdtm/static/pty00.c
Examining data/criu-3.15/test/zdtm/static/pty01.c
Examining data/criu-3.15/test/zdtm/static/pty02.c
Examining data/criu-3.15/test/zdtm/static/pty03.c
Examining data/criu-3.15/test/zdtm/static/pty04.c
Examining data/criu-3.15/test/zdtm/static/remap_dead_pid.c
Examining data/criu-3.15/test/zdtm/static/rlimits00.c
Examining data/criu-3.15/test/zdtm/static/rmdir_open.c
Examining data/criu-3.15/test/zdtm/static/rtc.c
Examining data/criu-3.15/test/zdtm/static/s390x_gs_threads.c
Examining data/criu-3.15/test/zdtm/static/s390x_mmap_high.c
Examining data/criu-3.15/test/zdtm/static/s390x_regs_check.c
Examining data/criu-3.15/test/zdtm/static/s390x_runtime_instr.c
Examining data/criu-3.15/test/zdtm/static/sched_policy00.c
Examining data/criu-3.15/test/zdtm/static/sched_prio00.c
Examining data/criu-3.15/test/zdtm/static/scm00.c
Examining data/criu-3.15/test/zdtm/static/scm03.c
Examining data/criu-3.15/test/zdtm/static/scm05.c
Examining data/criu-3.15/test/zdtm/static/scm06.c
Examining data/criu-3.15/test/zdtm/static/seccomp_filter.c
Examining data/criu-3.15/test/zdtm/static/seccomp_filter_inheritance.c
Examining data/criu-3.15/test/zdtm/static/seccomp_filter_threads.c
Examining data/criu-3.15/test/zdtm/static/seccomp_filter_tsync.c
Examining data/criu-3.15/test/zdtm/static/seccomp_strict.c
Examining data/criu-3.15/test/zdtm/static/selfexe00.c
Examining data/criu-3.15/test/zdtm/static/selinux00.c
Examining data/criu-3.15/test/zdtm/static/selinux01.c
Examining data/criu-3.15/test/zdtm/static/sem.c
Examining data/criu-3.15/test/zdtm/static/session00.c
Examining data/criu-3.15/test/zdtm/static/session01.c
Examining data/criu-3.15/test/zdtm/static/session02.c
Examining data/criu-3.15/test/zdtm/static/session03.c
Examining data/criu-3.15/test/zdtm/static/shared_mount_propagation.c
Examining data/criu-3.15/test/zdtm/static/shared_slave_mount_children.c
Examining data/criu-3.15/test/zdtm/static/shm-mp.c
Examining data/criu-3.15/test/zdtm/static/shm.c
Examining data/criu-3.15/test/zdtm/static/shmemfd-priv.c
Examining data/criu-3.15/test/zdtm/static/shmemfd.c
Examining data/criu-3.15/test/zdtm/static/sigaltstack.c
Examining data/criu-3.15/test/zdtm/static/signalfd00.c
Examining data/criu-3.15/test/zdtm/static/sigpending.c
Examining data/criu-3.15/test/zdtm/static/sit.c
Examining data/criu-3.15/test/zdtm/static/sk-freebind.c
Examining data/criu-3.15/test/zdtm/static/sk-netlink.c
Examining data/criu-3.15/test/zdtm/static/sk-unix-mntns.c
Examining data/criu-3.15/test/zdtm/static/sk-unix-rel.c
Examining data/criu-3.15/test/zdtm/static/sk-unix-unconn.c
Examining data/criu-3.15/test/zdtm/static/sk-unix01.c
Examining data/criu-3.15/test/zdtm/static/skip-me.c
Examining data/criu-3.15/test/zdtm/static/sleeping00.c
Examining data/criu-3.15/test/zdtm/static/sock_filter00.c
Examining data/criu-3.15/test/zdtm/static/sock_opts00.c
Examining data/criu-3.15/test/zdtm/static/sock_opts01.c
Examining data/criu-3.15/test/zdtm/static/sock_peercred.c
Examining data/criu-3.15/test/zdtm/static/socket-ext.c
Examining data/criu-3.15/test/zdtm/static/socket-linger.c
Examining data/criu-3.15/test/zdtm/static/socket-raw.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-close0.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-close1.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-closed.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-closing.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-fin-wait1.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-keepalive.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-listen.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-reseted.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-reuseport.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-skip-in-flight.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-syn-sent.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp-unconn.c
Examining data/criu-3.15/test/zdtm/static/socket-tcp.c
Examining data/criu-3.15/test/zdtm/static/socket-tcpbuf.c
Examining data/criu-3.15/test/zdtm/static/socket6_udp.c
Examining data/criu-3.15/test/zdtm/static/socket_aio.c
Examining data/criu-3.15/test/zdtm/static/socket_close_data.c
Examining data/criu-3.15/test/zdtm/static/socket_close_data01.c
Examining data/criu-3.15/test/zdtm/static/socket_dgram_data.c
Examining data/criu-3.15/test/zdtm/static/socket_listen.c
Examining data/criu-3.15/test/zdtm/static/socket_queues.c
Examining data/criu-3.15/test/zdtm/static/socket_snd_addr.c
Examining data/criu-3.15/test/zdtm/static/socket_udp-broadcast.c
Examining data/criu-3.15/test/zdtm/static/socket_udp-corked.c
Examining data/criu-3.15/test/zdtm/static/socket_udp.c
Examining data/criu-3.15/test/zdtm/static/socket_udp_shutdown.c
Examining data/criu-3.15/test/zdtm/static/socket_udplite.c
Examining data/criu-3.15/test/zdtm/static/sockets00.c
Examining data/criu-3.15/test/zdtm/static/sockets01.c
Examining data/criu-3.15/test/zdtm/static/sockets02.c
Examining data/criu-3.15/test/zdtm/static/sockets03.c
Examining data/criu-3.15/test/zdtm/static/sockets_dgram.c
Examining data/criu-3.15/test/zdtm/static/sockets_spair.c
Examining data/criu-3.15/test/zdtm/static/sse00.c
Examining data/criu-3.15/test/zdtm/static/sse20.c
Examining data/criu-3.15/test/zdtm/static/stopped.c
Examining data/criu-3.15/test/zdtm/static/symlink.c
Examining data/criu-3.15/test/zdtm/static/tempfs.c
Examining data/criu-3.15/test/zdtm/static/tempfs_overmounted.c
Examining data/criu-3.15/test/zdtm/static/tempfs_overmounted01.c
Examining data/criu-3.15/test/zdtm/static/tempfs_ro.c
Examining data/criu-3.15/test/zdtm/static/tempfs_ro02.c
Examining data/criu-3.15/test/zdtm/static/tempfs_subns.c
Examining data/criu-3.15/test/zdtm/static/thp_disable.c
Examining data/criu-3.15/test/zdtm/static/thread_different_uid_gid.c
Examining data/criu-3.15/test/zdtm/static/time.c
Examining data/criu-3.15/test/zdtm/static/timens_for_kids.c
Examining data/criu-3.15/test/zdtm/static/timens_nested.c
Examining data/criu-3.15/test/zdtm/static/timerfd.c
Examining data/criu-3.15/test/zdtm/static/timers.c
Examining data/criu-3.15/test/zdtm/static/tty00.c
Examining data/criu-3.15/test/zdtm/static/tty02.c
Examining data/criu-3.15/test/zdtm/static/tty03.c
Examining data/criu-3.15/test/zdtm/static/tun.c
Examining data/criu-3.15/test/zdtm/static/uffd-events.c
Examining data/criu-3.15/test/zdtm/static/umask00.c
Examining data/criu-3.15/test/zdtm/static/unbindable.c
Examining data/criu-3.15/test/zdtm/static/unbound_sock.c
Examining data/criu-3.15/test/zdtm/static/unhashed_proc.c
Examining data/criu-3.15/test/zdtm/static/unlink_fifo.c
Examining data/criu-3.15/test/zdtm/static/unlink_fifo_wronly.c
Examining data/criu-3.15/test/zdtm/static/unlink_fstat00.c
Examining data/criu-3.15/test/zdtm/static/unlink_fstat01.c
Examining data/criu-3.15/test/zdtm/static/unlink_fstat02.c
Examining data/criu-3.15/test/zdtm/static/unlink_fstat03.c
Examining data/criu-3.15/test/zdtm/static/unlink_largefile.c
Examining data/criu-3.15/test/zdtm/static/unlink_mmap00.c
Examining data/criu-3.15/test/zdtm/static/unlink_mmap01.c
Examining data/criu-3.15/test/zdtm/static/unlink_mmap02.c
Examining data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c
Examining data/criu-3.15/test/zdtm/static/unlink_regular00.c
Examining data/criu-3.15/test/zdtm/static/unsupported_children_collision.c
Examining data/criu-3.15/test/zdtm/static/uptime_grow.c
Examining data/criu-3.15/test/zdtm/static/utsname.c
Examining data/criu-3.15/test/zdtm/static/vdso-proxy.c
Examining data/criu-3.15/test/zdtm/static/vdso00.c
Examining data/criu-3.15/test/zdtm/static/vdso01.c
Examining data/criu-3.15/test/zdtm/static/vdso02.c
Examining data/criu-3.15/test/zdtm/static/vfork00.c
Examining data/criu-3.15/test/zdtm/static/vsx.c
Examining data/criu-3.15/test/zdtm/static/vt.c
Examining data/criu-3.15/test/zdtm/static/wait00.c
Examining data/criu-3.15/test/zdtm/static/write_read00.c
Examining data/criu-3.15/test/zdtm/static/write_read01.c
Examining data/criu-3.15/test/zdtm/static/write_read02.c
Examining data/criu-3.15/test/zdtm/static/write_read10.c
Examining data/criu-3.15/test/zdtm/static/xids00.c
Examining data/criu-3.15/test/zdtm/static/zombie00.c
Examining data/criu-3.15/test/zdtm/static/zombie01.c
Examining data/criu-3.15/test/zdtm/static/zombie_leader.c
Examining data/criu-3.15/test/zdtm/transition/epoll.c
Examining data/criu-3.15/test/zdtm/transition/fifo_dyn.c
Examining data/criu-3.15/test/zdtm/transition/fifo_loop.c
Examining data/criu-3.15/test/zdtm/transition/file_aio.c
Examining data/criu-3.15/test/zdtm/transition/file_read.c
Examining data/criu-3.15/test/zdtm/transition/fork.c
Examining data/criu-3.15/test/zdtm/transition/ipc.c
Examining data/criu-3.15/test/zdtm/transition/lazy-thp.c
Examining data/criu-3.15/test/zdtm/transition/maps007.c
Examining data/criu-3.15/test/zdtm/transition/maps008.c
Examining data/criu-3.15/test/zdtm/transition/netlink00.c
Examining data/criu-3.15/test/zdtm/transition/pid_reuse.c
Examining data/criu-3.15/test/zdtm/transition/pipe_loop00.c
Examining data/criu-3.15/test/zdtm/transition/pipe_shared00.c
Examining data/criu-3.15/test/zdtm/transition/ptrace.c
Examining data/criu-3.15/test/zdtm/transition/shmem.c
Examining data/criu-3.15/test/zdtm/transition/socket_loop00.c
Examining data/criu-3.15/test/zdtm/transition/thread-bomb.c
Examining data/criu-3.15/test/zdtm/transition/unix_sock.c
Examining data/criu-3.15/test/zdtm_ct.c

FINAL RESULTS:

data/criu-3.15/criu/cr-service.c:359:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	if (readlink(images_dir_path, images_dir, PATH_MAX) == -1) {
data/criu-3.15/criu/cr-service.c:1371:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(server_addr.sun_path, 0666)) {
data/criu-3.15/criu/file-lock.c:140:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink(t, link, sizeof(link)) - 1;
data/criu-3.15/criu/files-reg.c:331:7:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
		if (chown(path, gfe->uid, gfe->gid) < 0) {
data/criu-3.15/criu/files-reg.c:336:7:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		if (chmod(path, gfe->mode)) {
data/criu-3.15/criu/files.c:677:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink(t, link, sizeof(link));
data/criu-3.15/criu/mount.c:2853:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(mnt_roots, 0777);
data/criu-3.15/criu/sk-unix.c:297:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
		ret = readlink(path, dir, sizeof(dir));
data/criu-3.15/criu/util.c:470:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink(t, buf, size);
data/criu-3.15/test/others/pipes/pipe.c:525:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	if (readlink(path, pipe_name, sizeof pipe_name) == -1)
data/criu-3.15/test/others/socketpairs/socketpair.c:424:6:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	if (readlink(path, sock_name, sizeof sock_name) == -1)
data/criu-3.15/test/zdtm/lib/ns.c:65:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink("/proc/self/cwd", path, sizeof(path) - 1);
data/criu-3.15/test/zdtm/lib/ns.c:131:4:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
			chmod("/dev/ptmx", 0666);
data/criu-3.15/test/zdtm/static/cwd01.c:60:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	aux = readlink("/proc/self/cwd", cwd1, sizeof(cwd1));
data/criu-3.15/test/zdtm/static/cwd01.c:75:9:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	aux2 = readlink("/proc/self/cwd", cwd2, sizeof(cwd2));
data/criu-3.15/test/zdtm/static/dumpable02.c:88: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(argv[0], 0111);
data/criu-3.15/test/zdtm/static/inotify_system.c:103:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(path, 0755) < 0) {
data/criu-3.15/test/zdtm/static/proc-self.c:26:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink(t, buf, size - 1);
data/criu-3.15/test/zdtm/static/selfexe00.c:33:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink("/proc/self/exe", path_before, sizeof(path_before) - 1);
data/criu-3.15/test/zdtm/static/selfexe00.c:45:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	ret = readlink("/proc/self/exe", path_after, sizeof(path_after) - 1);
data/criu-3.15/test/zdtm/static/socket-ext.c:51:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(dir, 0777);
data/criu-3.15/test/zdtm/static/socket-ext.c:78:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		chmod(dir, 0777);
data/criu-3.15/test/zdtm/static/socket-ext.c:79:3:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
		chmod(path, 0777);
data/criu-3.15/test/zdtm/static/sockets00.c:75: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(path, TEST_MODE);
data/criu-3.15/test/zdtm/static/sockets00.c:81:8:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	ret = chown(path, uid, gid);
data/criu-3.15/test/zdtm/static/unhashed_proc.c:50:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	len = readlink("/proc/self/cwd", cwd1, sizeof(cwd1));
data/criu-3.15/test/zdtm/static/unhashed_proc.c:68:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	len = readlink("/proc/self/cwd", cwd2, sizeof(cwd2)-1);
data/criu-3.15/test/zdtm/static/unlink_fstat00.c:62:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(dirname, 0500)) {
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:160:8:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	res = readlink(linkpath, buf, PATH_MAX - 1);
data/criu-3.15/compel/include/piegen.h:23:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(opts.fout, fmt, ##__VA_ARGS__);				\
data/criu-3.15/compel/src/lib/infect.c:1158:2:  [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.
	vsnprintf(path + l, sizeof(path) - l, fmt, args);
data/criu-3.15/compel/src/main.c:123: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(f, fmt, parms);
data/criu-3.15/compel/test/fdspy/spy.c:15:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, parms);
data/criu-3.15/compel/test/fdspy/spy.c:20:31:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define err_and_ret(msg) do { fprintf(stderr, msg); return -1; } while (0)
data/criu-3.15/compel/test/fdspy/spy.c:131:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl("./victim", "victim", NULL);
data/criu-3.15/compel/test/infect/spy.c:14:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, parms);
data/criu-3.15/compel/test/infect/spy.c:19:31:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define err_and_ret(msg) do { fprintf(stderr, msg); return -1; } while (0)
data/criu-3.15/compel/test/infect/spy.c:113:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl("./victim", "victim", NULL);
data/criu-3.15/compel/test/rsys/spy.c:10:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, parms);
data/criu-3.15/compel/test/rsys/spy.c:15:31:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define err_and_ret(msg) do { fprintf(stderr, msg); return -1; } while (0)
data/criu-3.15/compel/test/rsys/spy.c:86:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl("./victim", "victim", NULL);
data/criu-3.15/criu/autofs.c:724: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(param->path, mnt_path);
data/criu-3.15/criu/autofs.c:872: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(i->mnt_path, mi->ns_mountpoint);
data/criu-3.15/criu/cgroup.c:381:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(buf, F_OK) < 0 && errno == ENOENT) {
data/criu-3.15/criu/cgroup.c:1495:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		off2 += sprintf(path + off, "/%s", e->dir_name);
data/criu-3.15/criu/cgroup.c:1663:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		off2 += sprintf(paux + off, "/%s", e->dir_name);
data/criu-3.15/criu/cgroup.c:1755:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		off = sprintf(paux, "%s", opts.cgroup_yard);
data/criu-3.15/criu/cgroup.c:1805:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(paux, F_OK)) {
data/criu-3.15/criu/cr-check.c:106:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access("/proc/self/map_files", R_OK);
data/criu-3.15/criu/cr-check.c:142:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access("/proc/" LAST_PID_PATH, W_OK);
data/criu-3.15/criu/cr-check.c:508:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access("/proc/sys/kernel/sem_next_id", R_OK | W_OK);
data/criu-3.15/criu/cr-check.c:860:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access("/proc/self/timers", R_OK);
data/criu-3.15/criu/cr-check.c:1057:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access("/proc/self/ns/cgroup", F_OK);
data/criu-3.15/criu/cr-check.c:1167:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access("/proc/self/ns/user", F_OK);
data/criu-3.15/criu/cr-service.c:376:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(work_dir_path, images_dir_path);
data/criu-3.15/criu/cr-service.c:786:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(opts.exec_cmd[0], opts.exec_cmd);
data/criu-3.15/criu/crtools.c:257:4:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
			execvp(opts.exec_cmd[0], opts.exec_cmd);
data/criu-3.15/criu/fdstore.c:57:12:  [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.
	addrlen = snprintf(addr.sun_path, sizeof(addr.sun_path), "X/criu-fdstore-%"PRIx64, st.st_ino);
data/criu-3.15/criu/files-reg.c:420: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(gf->remap.rpath, path + root_len);
data/criu-3.15/criu/filesystems.c:253:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	buf += sprintf(buf, ":%s:M:%d:", bme->name, bme->offset);
data/criu-3.15/criu/filesystems.c:267:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(buf, ":%s:%s", bme->interpreter, bme->flags ? : "\0");
data/criu-3.15/criu/image.c:342:2:  [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.
	vsnprintf(path, PATH_MAX, imgset_template[type].fmt, args);
data/criu-3.15/criu/ipc_ns.c:321: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/sys/fs/mqueue", X_OK))
data/criu-3.15/criu/kerndat.c:471: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/sys/net/ipv6", F_OK) < 0) {
data/criu-3.15/criu/kerndat.c:794: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/timens_offsets", F_OK) < 0) {
data/criu-3.15/criu/log.c:345:14:  [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.
	log_size += vsnprintf(early_log_buffer + early_log_buf_off + log_size,
data/criu-3.15/criu/log.c:378:10:  [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.
	size  = vsnprintf(buffer + buf_off, sizeof buffer - buf_off, format, params);
data/criu-3.15/criu/lsm.c:204: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(AA_SECURITYFS_PATH, F_OK) == 0) {
data/criu-3.15/criu/lsm.c:215: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/fs/selinux", F_OK) == 0) {
data/criu-3.15/criu/mount.c:72:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(e_str, "mnt[%s]:%s", key, val);
data/criu-3.15/criu/mount.c:100:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mkey, "mnt[%s]", key);
data/criu-3.15/criu/mount.c:1490:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(mi->mountpoint, "%s%s", root->mountpoint, path);
data/criu-3.15/criu/mount.c:1492:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(mi->mountpoint, "%s/%s", root->mountpoint, path);
data/criu-3.15/criu/mount.c:2933: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(mi->mountpoint, root);
data/criu-3.15/criu/mount.c:2934: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(mi->mountpoint + root_len, mountpoint);
data/criu-3.15/criu/namespaces.c:111:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access(ns_file, 0);
data/criu-3.15/criu/net.c:273:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(path[i], MAX_CONF_OPT_PATH, CONF_OPT_PATH, proto, tgt, devconfs[i]);
data/criu-3.15/criu/net.c:307:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(path[ar], MAX_CONF_OPT_PATH, CONF_OPT_PATH, proto, tgt, devconfs[ar]);
data/criu-3.15/criu/net.c:376:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(path[i], MAX_CONF_UNIX_PATH, CONF_UNIX_FMT,
data/criu-3.15/criu/net.c:460:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(path[i], MAX_CONF_OPT_PATH, CONF_OPT_PATH, "ipv4", tgt, devconfs4[i]);
data/criu-3.15/criu/netfilter.c:89: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), NF_CONN_CMD, cmd,
data/criu-3.15/criu/page-xfer.c:943: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(path, sizeof(path), imgset_template[fd_type].fmt, img_id);
data/criu-3.15/criu/plugin.c:214:8:  [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(CR_PLUGIN_DEFAULT, F_OK))
data/criu-3.15/criu/proc_parse.c:378: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(path, sizeof(path), "%"PRIx64"-%"PRIx64, vma->e->start, vma->e->end);
data/criu-3.15/criu/proc_parse.c:1226:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(unknown + uoff, opt);
data/criu-3.15/criu/proc_parse.c:1364:8:  [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.
	ret = sscanf(str, "%i %i %u:%u %ms %s %ms %n",
data/criu-3.15/criu/proc_parse.c:1379: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(root_link.name, new->root);
data/criu-3.15/criu/proc_parse.c:1381:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(new->root, root_link.name);
data/criu-3.15/criu/proc_parse.c:1461: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(skip->string, mountpoint);
data/criu-3.15/criu/proc_parse.c:1724:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
		if (sscanf(str, map[i].fmt, map[i].value) != 1)
data/criu-3.15/criu/proc_parse.c:1842:10:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
			ret = sscanf(str, "eventfd-count: %"PRIx64,
data/criu-3.15/criu/proc_parse.c:2133:9:  [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.
		num = sscanf(buf, "%lld: -> %s %s %s %d %x:%x:%ld %lld %s",
data/criu-3.15/criu/proc_parse.c:2138:9:  [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.
		num = sscanf(buf, "%lld:%s %s %s %d %x:%x:%ld %lld %s",
data/criu-3.15/criu/seize.c:308:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(path, "%s/%s", root_path, de->d_name);
data/criu-3.15/criu/seize.c:444:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(path, "%s/%s", root, de->d_name);
data/criu-3.15/criu/seize.c:917: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(path, F_OK) == 0) {
data/criu-3.15/criu/seize.c:923: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(path, F_OK) == 0) {
data/criu-3.15/criu/sk-unix.c:1439:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		ret = access(path, R_OK | W_OK | X_OK);
data/criu-3.15/criu/sk-unix.c:1482:4:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			snprintf(path_parked, sizeof(path_parked), UNIX_GHOST_FMT, ui->name);
data/criu-3.15/criu/sockets.c:321: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(soe->so_bound_dev, dev);
data/criu-3.15/criu/sysctl.c:82:3:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		snprintf(&buf[off], sizeof(buf) - off, __fmt, arg[i]);	\
data/criu-3.15/criu/sysctl.c:457:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(cur->name, req[i].name);
data/criu-3.15/criu/sysfs_parse.c:121:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(path, rpath);
data/criu-3.15/criu/sysfs_parse.c:163:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(path, SYSFS_AUFS);	/* /sys/fs/aufs/ */
data/criu-3.15/criu/sysfs_parse.c:293: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(vma->aufs_rpath, path);
data/criu-3.15/criu/tls.c:283:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!access(cacrl, R_OK)) {
data/criu-3.15/criu/tun.c:461:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(spath, "class/net/%s/tun_flags", nde->name);
data/criu-3.15/criu/tun.c:465:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(spath, "class/net/%s/owner", nde->name);
data/criu-3.15/criu/tun.c:469:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(spath, "class/net/%s/group", nde->name);
data/criu-3.15/criu/util.c:125:9:  [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.
		ret = vsnprintf(new + offset, delta, fmt, tmp);
data/criu-3.15/criu/util.c:174:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			p += sprintf(opt + p, _s " ");	\
data/criu-3.15/criu/util.c:423:2:  [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.
	vsnprintf(path, sizeof(path), fmt, args);
data/criu-3.15/criu/util.c:615:3:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execvp(cmd, argv);
data/criu-3.15/criu/util.c:810: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(made_path, path);
data/criu-3.15/lib/c/criu.c:1338:3:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execlp(opts->service_binary, opts->service_binary, "swrk", fds, NULL);
data/criu-3.15/soccr/test/tcp-conn.c:9:29:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define pr_perror(fmt, ...) printf(fmt ": %m\n", ##__VA_ARGS__)
data/criu-3.15/soccr/test/tcp-conn.c:22:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(fmt, args);
data/criu-3.15/soccr/test/tcp-constructor.c:148:2:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execv(argv[optind], argv + optind);
data/criu-3.15/test/compel/main.c:35:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(test_fmt, params);
data/criu-3.15/test/compel/main.c:39:3:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vprintf(test_fmt, params);
data/criu-3.15/test/others/bers/bers.c:35:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf("%8d: " fmt, sys_gettid(), ##__VA_ARGS__)
data/criu-3.15/test/others/bers/bers.c:38:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf("%8d: Error (%s:%d): " fmt, sys_gettid(),\
data/criu-3.15/test/others/bers/bers.c:45:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf(fmt, ##__VA_ARGS__)
data/criu-3.15/test/others/bers/bers.c:49:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf("%8d: %s: " fmt, sys_gettid(), __func__,	\
data/criu-3.15/test/others/mounts/ext/ext-mount.c:49:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(img, IMG_NAME, id);
data/criu-3.15/test/others/mounts/ext/ext-mount.c:67:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(img, IMG_NAME, id);
data/criu-3.15/test/others/mounts/ext/ext-mount.c:93:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(src, "/%s/%s", old_root, src_file);
data/criu-3.15/test/others/mounts/ext/ns_init.c:122:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(argv[0], nargv);
data/criu-3.15/test/others/pipes/pipe.c:73:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		fprintf(stderr, fmt ": %m\n", __VA_ARGS__); \
data/criu-3.15/test/others/pipes/pipe.c:516:2:  [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.
	system(cmd);
data/criu-3.15/test/others/pipes/pipe.c:675:2:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execv(path, argv);
data/criu-3.15/test/others/rpc/test-c.c:115: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(addr.sun_path, argv[1]);
data/criu-3.15/test/others/socketpairs/socketpair.c:35:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(stderr, fmt ": %m\n", __VA_ARGS__); \
data/criu-3.15/test/others/socketpairs/socketpair.c:183:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(unix_sk_ino, socket_name(socketfd[WRITE_FD]));
data/criu-3.15/test/others/socketpairs/socketpair.c:415:2:  [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.
	system(cmd);
data/criu-3.15/test/others/socketpairs/socketpair.c:582:2:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execv(path, argv);
data/criu-3.15/test/others/unix-callback/unix-client.c:46:13:  [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.
	addr_len = snprintf(addr.sun_path, UNIX_PATH_MAX, SK_NAME);
data/criu-3.15/test/others/unix-callback/unix-lib.c:48:13:  [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.
	addr_len = snprintf(addr.sun_path, UNIX_PATH_MAX, SK_NAME);
data/criu-3.15/test/others/unix-callback/unix-lib.c:171:13:  [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.
	addr_len = snprintf(addr.sun_path, UNIX_PATH_MAX, SK_NAME);
data/criu-3.15/test/others/unix-callback/unix-server.c:40:13:  [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.
	addr_len = snprintf(addr.sun_path, UNIX_PATH_MAX, SK_NAME);
data/criu-3.15/test/zdtm/lib/fs.c:57:9:  [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.
		ret = sscanf(str, "%i %i %u:%u %s %s",
data/criu-3.15/test/zdtm/lib/fs.c:108: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(cwd, X_OK)) {
data/criu-3.15/test/zdtm/lib/groups.c:27:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(sh, "sh /%s.start", env);
data/criu-3.15/test/zdtm/lib/groups.c:28:3:  [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.
		system(sh);
data/criu-3.15/test/zdtm/lib/groups.c:35:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(sh, "sh /%s.stop", env);
data/criu-3.15/test/zdtm/lib/groups.c:36:10:  [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.
		sret = system(sh);
data/criu-3.15/test/zdtm/lib/msg.c:64:9:  [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.
	off += vsnprintf(buf + off, sizeof(buf) - off, format, arg);
data/criu-3.15/test/zdtm/lib/ns.c:124: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("/dev/pts/ptmx", F_OK) == 0) {
data/criu-3.15/test/zdtm/lib/ns.c:154:2:  [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.
	system("ip link set up dev lo");
data/criu-3.15/test/zdtm/lib/ns.c:270:2:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execvp(args->argv[0], args->argv);
data/criu-3.15/test/zdtm/lib/ns.c:342:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(x, "%sns", pidfile);
data/criu-3.15/test/zdtm/lib/ns.c:498:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(pidfile, "%s%s", pidf, INPROGRESS);
data/criu-3.15/test/zdtm/lib/test.c:76:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!access(outfile, F_OK) || errno != ENOENT) {
data/criu-3.15/test/zdtm/lib/zdtmtst.h:172:11:  [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.
	___ret = snprintf(s, sizeof(s), fmt, ##__VA_ARGS__);			\
data/criu-3.15/test/zdtm/static/apparmor.c:23:8:  [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.
	len = snprintf(profile, sizeof(profile), "changeprofile " PROFILE);
data/criu-3.15/test/zdtm/static/autofs.c:51:10:  [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.
			ret = vsnprintf(new + offset, delta, fmt, tmp);
data/criu-3.15/test/zdtm/static/autofs.c:298: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(AUTOFS_DEV, R_OK | W_OK)) {
data/criu-3.15/test/zdtm/static/autofs.c:324: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(param->path, mountpoint);
data/criu-3.15/test/zdtm/static/autofs.c:817:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (!access(tmpfs, F_OK)) {
data/criu-3.15/test/zdtm/static/bind-mount.c:50: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(test_bind_file, F_OK)) {
data/criu-3.15/test/zdtm/static/binfmt_misc.c:38:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	buf += sprintf(buf, ":%s:M:%d:", name, offset);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:56:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	buf += sprintf(buf, ":%s:E::", name);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:121:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/" "register", dirname);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:156:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(path, "%s/%s", dirname, NAME[i]);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:168:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(path, "%s/%s", dirname, NAME[i]);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:184:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(path, "%s/%s", dirname, NAME[i]);
data/criu-3.15/test/zdtm/static/bridge.c:22:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip link add " BRIDGE_NAME " type bridge"))
data/criu-3.15/test/zdtm/static/bridge.c:25:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip addr add 10.0.55.55/32 dev " BRIDGE_NAME))
data/criu-3.15/test/zdtm/static/bridge.c:29:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip addr add fe80:4567::1/64 nodad dev " BRIDGE_NAME))
data/criu-3.15/test/zdtm/static/bridge.c:32:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip link set " BRIDGE_NAME " up"))
data/criu-3.15/test/zdtm/static/bridge.c:41:2:  [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.
	system("ip link set " BRIDGE_NAME " down");
data/criu-3.15/test/zdtm/static/bridge.c:43:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip link del " BRIDGE_NAME))
data/criu-3.15/test/zdtm/static/bridge.c:87:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip addr list dev " BRIDGE_NAME " | grep inet | sort > bridge.dump.test")) {
data/criu-3.15/test/zdtm/static/bridge.c:96:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip addr list dev " BRIDGE_NAME " | grep inet | sort > bridge.rst.test")) {
data/criu-3.15/test/zdtm/static/bridge.c:101:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("diff bridge.rst.test bridge.dump.test")) {
data/criu-3.15/test/zdtm/static/cgroup00.c:24:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(paux, "%s/%s", dirname, name);
data/criu-3.15/test/zdtm/static/cgroup00.c:27:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(paux, "%s/%s/tasks", dirname, name);
data/criu-3.15/test/zdtm/static/cgroup00.c:56:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(aux, "name=%s:/%s\n", cgname, name);
data/criu-3.15/test/zdtm/static/cgroup00.c:97:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(aux, "none,name=%s", cgname);
data/criu-3.15/test/zdtm/static/cgroup01.c:32:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(aux, "none,name=%s", cgname);
data/criu-3.15/test/zdtm/static/cgroup01.c:38:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(paux, "%s/%s", dirname, subname);
data/criu-3.15/test/zdtm/static/cgroup01.c:42:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(paux, "%s/%s/tasks", dirname, subname);
data/criu-3.15/test/zdtm/static/cgroup01.c:59:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(paux, "%s/%s/%s.%d", dirname, subname, empty, i);
data/criu-3.15/test/zdtm/static/cgroup01.c:82: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(paux, "%*d %*d %*d:%*d %*s %s", aux);
data/criu-3.15/test/zdtm/static/cgroup02.c:30:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(subdir, "%s/%s", dirname, controller);
data/criu-3.15/test/zdtm/static/cgroup02.c:36:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(aux, "none,name=%s", controller);
data/criu-3.15/test/zdtm/static/cgroup02.c:78:2:  [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(mountinfo_line, "%*d %*d %*d:%*d %*s %s", aux);
data/criu-3.15/test/zdtm/static/cgroup02.c:106:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(paux, "%s/%s", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup02.c:112:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(paux, "%s/%s/prefix", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup02.c:167:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(paux, "%s/%s", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup02.c:171:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(paux, "%s/%s", dirname, cgname2);
data/criu-3.15/test/zdtm/static/cgroup03.c:29:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(subdir, "%s/%s", dirname, controller);
data/criu-3.15/test/zdtm/static/cgroup03.c:35:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(aux, "none,name=%s", controller);
data/criu-3.15/test/zdtm/static/cgroup03.c:132:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/test", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup03.c:136:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/test/notify_on_release", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup03.c:141:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/test/cgroup.procs", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup03.c:148:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/test", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup03.c:152:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/test/notify_on_release", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup03.c:156:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/test/cgroup.procs", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup03.c:164:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/test", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup03.c:166:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup04.c:51:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(subdir, "%s/%s", dirname, controller);
data/criu-3.15/test/zdtm/static/cgroup04.c:138:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/devices/%s/devices.allow", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup04.c:152:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(buf, dev_allow[i]);
data/criu-3.15/test/zdtm/static/cgroup04.c:156:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/devices/%s/devices.list", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup04.c:162:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/memory/%s/memory.limit_in_bytes", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup04.c:168:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/devices/%s/special_prop_check", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup04.c:182:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/devices/%s/special_prop_check", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup04.c:185:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/devices/%s", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup04.c:187:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/devices", dirname);
data/criu-3.15/test/zdtm/static/cgroup04.c:190:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/memory/%s", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup04.c:192:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/memory", dirname);
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:36:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mnt_point, "%s/%s", dirname, controller);
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:37:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(subdir, "%s/%s/%s", dirname, controller, cgname);
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:39:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(tasks_path, "%s/%s/%s/tasks", dirname, controller, cgname);
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:86:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(mnt_point, "%s/%s", dirname, controller);
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:87:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(subdir, "%s/%s/%s", dirname, controller, cgname);
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:331:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/%s/net_prio.ifpriomap",
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:358:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(subdir, "%s/%s/%s", dirname, "net_prio", cgname);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:32:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(subdir, "%s/%s", dirname, controller);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:38:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(aux, "none,name=%s", controller);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:55:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(subdir, "%s/%s", dirname, controller);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:172:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(path, "name=%s", cgname);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:197:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "name=%s", cgname);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:221:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/foo", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:223:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/test", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:225:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroupns.c:151:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "name=%s", cgname);
data/criu-3.15/test/zdtm/static/cgroupns.c:183:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(path, "name=%s", cgname);
data/criu-3.15/test/zdtm/static/cgroupns.c:206:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s/test", dirname, cgname);
data/criu-3.15/test/zdtm/static/cgroupns.c:208:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(path, "%s/%s", dirname, cgname);
data/criu-3.15/test/zdtm/static/chroot.c:68:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filepath, "/%s", filename);
data/criu-3.15/test/zdtm/static/cr_veth.c:26:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system("ip addr list dev " IF_NAME) == 0)
data/criu-3.15/test/zdtm/static/cr_veth.c:46:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip addr list dev " IF_NAME " | sed -e 's/@.*://' > cr_veth.dump.state")) {
data/criu-3.15/test/zdtm/static/cr_veth.c:54:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip addr list dev " IF_NAME " | sed -e 's/@.*://' > cr_veth.rst.state")) {
data/criu-3.15/test/zdtm/static/cr_veth.c:59:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("diff cr_veth.rst.state cr_veth.dump.state")) {
data/criu-3.15/test/zdtm/static/del_standalone_un.c:53:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(filename, "%s/sock", dirname);
data/criu-3.15/test/zdtm/static/del_standalone_un.c:54:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(temp, "%s/temp", dirname);
data/criu-3.15/test/zdtm/static/dumpable02.c:146:3:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execl(argv[0], "dumpable_server", NULL);
data/criu-3.15/test/zdtm/static/file_locks01.c:112:9:  [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.
		num = sscanf(buf, "%*s %*d:%s %s %s %d %x:%x:%ld %*d %*s",
data/criu-3.15/test/zdtm/static/file_locks02.c:45:9:  [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.
		num = sscanf(buf, "%*s %*d:%s %s %s %d",
data/criu-3.15/test/zdtm/static/file_locks03.c:45:9:  [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.
		num = sscanf(buf, "%*s %*d:%s %s %s %d",
data/criu-3.15/test/zdtm/static/file_locks04.c:37:9:  [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.
		num = sscanf(buf,
data/criu-3.15/test/zdtm/static/macvlan.c:27:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system("ip addr list dev " IF_NAME) == 0)
data/criu-3.15/test/zdtm/static/macvlan.c:47:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip addr list dev " IF_NAME " > macvlan.dump.test")) {
data/criu-3.15/test/zdtm/static/macvlan.c:55:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip addr list dev " IF_NAME " > macvlan.rst.test")) {
data/criu-3.15/test/zdtm/static/macvlan.c:60:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("diff macvlan.rst.test macvlan.dump.test")) {
data/criu-3.15/test/zdtm/static/mnt_enablefs.c:37: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(fname, F_OK))
data/criu-3.15/test/zdtm/static/mnt_ext_auto.c:48:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dst, "%s/%s", get_current_dir_name(), dirname);
data/criu-3.15/test/zdtm/static/mnt_ext_auto.c:49:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dst_private_shared_bind, "%s/%s", get_current_dir_name(), dirname_private_shared_bind);
data/criu-3.15/test/zdtm/static/mnt_ext_auto.c:50:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dst_bind, "%s/%s", get_current_dir_name(), dirname_bind);
data/criu-3.15/test/zdtm/static/mnt_ext_auto.c:51:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dst_slave_shared_bind, "%s/%s", get_current_dir_name(), dirname_slave_shared_bind);
data/criu-3.15/test/zdtm/static/mnt_ext_auto.c:52:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dst_slave_bind, "%s/%s", get_current_dir_name(), dirname_slave_bind);
data/criu-3.15/test/zdtm/static/mnt_ext_auto.c:62:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(src, "%s/%s", dname, DDIR);
data/criu-3.15/test/zdtm/static/mnt_ext_master.c:31:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dst, "%s/ext_mounts", getenv("ZDTM_ROOT"));
data/criu-3.15/test/zdtm/static/mnt_ext_master.c:37:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(src, "%s/test", dname);
data/criu-3.15/test/zdtm/static/mnt_tracefs.c:31:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dst, "%s/%s", get_current_dir_name(), dirname);
data/criu-3.15/test/zdtm/static/mnt_tracefs.c:45: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(dst, F_OK) < 0) {
data/criu-3.15/test/zdtm/static/mnt_tracefs.c:58:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dst, "%s/%s/tracing/README", get_current_dir_name(), dirname);
data/criu-3.15/test/zdtm/static/mnt_tracefs.c:64: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(dst, F_OK) < 0 && errno != EACCES) {
data/criu-3.15/test/zdtm/static/mntns_root_bind.c:79:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access(bspath, F_OK)) {
data/criu-3.15/test/zdtm/static/mntns_rw_ro_rw.c:33: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/sys/net/ipv4/ip_forward", W_OK)) {
data/criu-3.15/test/zdtm/static/mntns_rw_ro_rw.c:38: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/sys/kernel/ns_last_pid", W_OK) != -1 || errno != EROFS) {
data/criu-3.15/test/zdtm/static/mount_paths.c:45: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(fname, F_OK)) {
data/criu-3.15/test/zdtm/static/mountpoints.c:239: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(MPTS_ROOT"/kernel/meminfo", F_OK)) {
data/criu-3.15/test/zdtm/static/mountpoints.c:244:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (have_bfmtm && access(MPTS_ROOT"/kernel/sys/fs/binfmt_misc/register", F_OK)) {
data/criu-3.15/test/zdtm/static/mountpoints.c:253: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(MPTS_ROOT"/dev/overmount/test.over", F_OK)) {
data/criu-3.15/test/zdtm/static/netns-dev.c:309:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		ret = access(path, W_OK);
data/criu-3.15/test/zdtm/static/netns-dev.c:336:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		ret = access(path, W_OK);
data/criu-3.15/test/zdtm/static/netns-dev.c:370:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access(path, W_OK);
data/criu-3.15/test/zdtm/static/netns-dev.c:380:8:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	ret = fprintf(fp, IPV6ADDR_EXAMPLE);
data/criu-3.15/test/zdtm/static/netns-dev.c:403:8:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	ret = access(path, W_OK);
data/criu-3.15/test/zdtm/static/netns-dev.c:413:8:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
	ret = fscanf(fp, "%s", val);
data/criu-3.15/test/zdtm/static/netns-nf.c:20:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("iptables -A INPUT -t filter --protocol icmp -j DROP")) {
data/criu-3.15/test/zdtm/static/netns-nf.c:25:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "iptables -L > pre-%s", filename);
data/criu-3.15/test/zdtm/static/netns-nf.c:26:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd)) {
data/criu-3.15/test/zdtm/static/netns-nf.c:34:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "iptables -L > post-%s", filename);
data/criu-3.15/test/zdtm/static/netns-nf.c:35:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd)) {
data/criu-3.15/test/zdtm/static/netns-nf.c:40:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "diff pre-%s post-%s", filename, filename);
data/criu-3.15/test/zdtm/static/netns-nf.c:41:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd)) {
data/criu-3.15/test/zdtm/static/netns-nft.c:21:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("nft add table inet netns-nft-zdtm-test")) {
data/criu-3.15/test/zdtm/static/netns-nft.c:27:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("nft add chain inet netns-nft-zdtm-test input { type filter hook input priority 0 \\; }")) {
data/criu-3.15/test/zdtm/static/netns-nft.c:33:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("nft add rule inet netns-nft-zdtm-test input meta nfproto ipv4 icmp type { echo-request } reject")) {
data/criu-3.15/test/zdtm/static/netns-nft.c:39:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "nft list table inet netns-nft-zdtm-test > pre-%s", filename);
data/criu-3.15/test/zdtm/static/netns-nft.c:40:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd)) {
data/criu-3.15/test/zdtm/static/netns-nft.c:49:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "nft list table inet netns-nft-zdtm-test > post-%s", filename);
data/criu-3.15/test/zdtm/static/netns-nft.c:50:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd)) {
data/criu-3.15/test/zdtm/static/netns-nft.c:56:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(cmd, "diff pre-%s post-%s", filename, filename);
data/criu-3.15/test/zdtm/static/netns-nft.c:57:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd)) {
data/criu-3.15/test/zdtm/static/netns.c:14:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip link set lo up")) {
data/criu-3.15/test/zdtm/static/netns.c:19:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip addr add 1.2.3.4 dev lo")) {
data/criu-3.15/test/zdtm/static/netns.c:24:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip route add 1.2.3.5 dev lo")) {
data/criu-3.15/test/zdtm/static/netns.c:29:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip route add 1.2.3.6 via 1.2.3.5")) {
data/criu-3.15/test/zdtm/static/netns.c:34:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip link > netns.dump.test && ip addr >> netns.dump.test && ip route >> netns.dump.test")) {
data/criu-3.15/test/zdtm/static/netns.c:43:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip link > netns.rst.test && ip addr >> netns.rst.test && ip route >> netns.rst.test")) {
data/criu-3.15/test/zdtm/static/netns.c:48:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("diff netns.rst.test netns.dump.test")) {
data/criu-3.15/test/zdtm/static/netns_sub.c:107:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system("ip link set up dev lo"))
data/criu-3.15/test/zdtm/static/netns_sub.c:171:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system("ip link set up dev lo"))
data/criu-3.15/test/zdtm/static/netns_sub_veth.c:53: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.
			if (system("ip link set up dev lo"))
data/criu-3.15/test/zdtm/static/netns_sub_veth.c:74:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip link add name zdtmbr type bridge"))
data/criu-3.15/test/zdtm/static/netns_sub_veth.c:82:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system(cmd)) {
data/criu-3.15/test/zdtm/static/netns_sub_veth.c:85: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.
			if (system(cmd))
data/criu-3.15/test/zdtm/static/netns_sub_veth.c:89:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system(cmd))
data/criu-3.15/test/zdtm/static/ofd_file_locks.c:19:8:  [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.
	num = sscanf(buf,
data/criu-3.15/test/zdtm/static/overmount_sock.c:27: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(name->sun_path, filename);
data/criu-3.15/test/zdtm/static/pthread01.c:42:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(buf, #sig " ");			\
data/criu-3.15/test/zdtm/static/remap_dead_pid.c:49:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		sprintf(path, proc_path, pid);
data/criu-3.15/test/zdtm/static/rmdir_open.c:25:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(subdir, "%s/subdir", dirname);
data/criu-3.15/test/zdtm/static/s390x_regs_check.c:285:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			ptr += sprintf(ptr, "%*s", indent, " ");
data/criu-3.15/test/zdtm/static/s390x_regs_check.c:287:12:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				ptr += sprintf(ptr, "%s: ", tag);
data/criu-3.15/test/zdtm/static/selinux00.c:31: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/fs/selinux", F_OK) == 0)
data/criu-3.15/test/zdtm/static/selinux01.c:33: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/fs/selinux", F_OK) == 0)
data/criu-3.15/test/zdtm/static/shared_mount_propagation.c:82: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(test_file, F_OK)) {
data/criu-3.15/test/zdtm/static/shared_mount_propagation.c:87: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(test_bind_file1, F_OK)) {
data/criu-3.15/test/zdtm/static/shared_mount_propagation.c:92: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(test_bind_file2, F_OK)) {
data/criu-3.15/test/zdtm/static/shared_mount_propagation.c:97: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(test_bind_file3, F_OK)) {
data/criu-3.15/test/zdtm/static/sit.c:29:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip link add " IF_NAME " type sit ttl 13 local " LOCAL_ADDR " remote " REMOT_ADDR)) {
data/criu-3.15/test/zdtm/static/sit.c:34:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip -details addr list dev " IF_NAME " > sit.dump.test")) {
data/criu-3.15/test/zdtm/static/sit.c:42:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip -details addr list dev " IF_NAME " > sit.rst.test")) {
data/criu-3.15/test/zdtm/static/sit.c:47:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("diff sit.rst.test sit.dump.test")) {
data/criu-3.15/test/zdtm/static/socket-raw.c:295: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(data, string_data);
data/criu-3.15/test/zdtm/static/socket-tcp-closed.c:78:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd))
data/criu-3.15/test/zdtm/static/socket-tcp-closed.c:105:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd))
data/criu-3.15/test/zdtm/static/socket-tcp-reseted.c:69:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd))
data/criu-3.15/test/zdtm/static/socket-tcp-reseted.c:78:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd))
data/criu-3.15/test/zdtm/static/socket-tcp-syn-sent.c:76:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd))
data/criu-3.15/test/zdtm/static/socket-tcp-syn-sent.c:101:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system(cmd))
data/criu-3.15/test/zdtm/static/socket-tcp.c:75:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("ip link set up dev lo"))
data/criu-3.15/test/zdtm/static/socket-tcp.c:77:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("iptables -w -A INPUT -i lo -p tcp -m state --state NEW,ESTABLISHED -j ACCEPT"))
data/criu-3.15/test/zdtm/static/socket-tcp.c:79:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (system("iptables -w -A INPUT -j DROP"))
data/criu-3.15/test/zdtm/static/socket_close_data01.c:31: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(addr.sun_path, filename);
data/criu-3.15/test/zdtm/static/socket_close_data01.c:61: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(addr.sun_path, filename);
data/criu-3.15/test/zdtm/static/tempfs_overmounted01.c:97:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access("a/b/c", R_OK) || access("b/b/z", R_OK)) {
data/criu-3.15/test/zdtm/static/tempfs_overmounted01.c:97:32:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
		if (access("a/b/c", R_OK) || access("b/b/z", R_OK)) {
data/criu-3.15/test/zdtm/static/tun.c:122:2:  [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.
	system("ip link set up dev lo");
data/criu-3.15/test/zdtm/static/unlink_fstat02.c:32:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(link_name, "%s.link", filename);
data/criu-3.15/test/zdtm/static/unlink_fstat03.c:35:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(link_name, "%s.link", filename);
data/criu-3.15/test/zdtm/static/unlink_mmap01.c:59:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(linkname, "%s.lnk", filename);
data/criu-3.15/test/zdtm/static/unlink_regular00.c:43:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(subdir, "%s/" SUBDIR, dirname);
data/criu-3.15/test/zdtm/static/unlink_regular00.c:50:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(fname, "%s/" SUBDIR "/" FNAME, dirname);
data/criu-3.15/test/zdtm/static/unlink_regular00.c:51:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(lname, "%s/" FNAME, dirname);
data/criu-3.15/test/zdtm/static/write_read02.c:35:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(str, "standard_%s", filename);
data/criu-3.15/test/zdtm/transition/file_read.c:129:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(chew_file, "chew_%s.%d", filename, num);
data/criu-3.15/test/zdtm/transition/file_read.c:167:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(str, "standard_%s.%d", filename, num);
data/criu-3.15/test/zdtm/transition/unix_sock.c:37: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(name->sun_path, filename);
data/criu-3.15/test/zdtm_ct.c:112:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system("ip link set up dev lo"))
data/criu-3.15/test/zdtm_ct.c:114:3:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		execv(argv[1], argv + 1);
data/criu-3.15/compel/src/main.c:321:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	uninst_root = getenv("COMPEL_UNINSTALLED_ROOTDIR");
data/criu-3.15/compel/src/main.c:325:9:  [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.
		opt = getopt_long(argc, argv, short_opts, long_opts, &idx);
data/criu-3.15/criu/config.c:188:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			home_dir = getenv("HOME");
data/criu-3.15/criu/config.c:198:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
			cfg_from_env = getenv("CRIU_CONFIG_FILE");
data/criu-3.15/criu/config.c:584:9:  [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.
		opt = getopt_long(_argc, _argv, short_opts, long_opts, &idx);
data/criu-3.15/criu/config.c:913:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	else if (getenv("CRIU_DEPRECATED")) {
data/criu-3.15/criu/fault-injection.c:12:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	val = getenv("CRIU_FAULT");
data/criu-3.15/criu/files.c:1342:9:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	return chroot(".");
data/criu-3.15/criu/net.c:1810:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	ip_tool_cmd = getenv("CR_IP_TOOL");
data/criu-3.15/criu/net.c:1830:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	cmd = getenv("CR_IPTABLES");
data/criu-3.15/criu/pagemap-cache.c:192:28:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	pagemap_cache_disabled = (getenv("CRIU_PMC_OFF") != NULL);
data/criu-3.15/criu/plugin.c:210:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		path = getenv("CRIU_LIBS_DIR");
data/criu-3.15/criu/shmem.c:157:22:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		is_enabled = (bool)getenv("CRIU_TRACK_SHMEM");
data/criu-3.15/criu/sk-unix.c:1173:27:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
		if (fchdir(*root_fd) || chroot("."))
data/criu-3.15/criu/sk-unix.c:1251:7:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
		if (chroot(".")) {
data/criu-3.15/soccr/test/tcp-constructor.c:65:9:  [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.
		opt = getopt_long(argc, argv, short_opts, long_opts, &idx);
data/criu-3.15/test/others/bers/bers.c:292:9:  [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.
		opt = getopt_long(argc, argv, short_opts, long_opts, &idx);
data/criu-3.15/test/others/mounts/ext/ext-mount.c:37:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	dst = getenv("EMP_MOUNTPOINT");
data/criu-3.15/test/others/mounts/ext/ext-mount.c:77:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	src_file = getenv("EMP_ROOT_P");
data/criu-3.15/test/others/pipes/pipe.c:197:16:  [3] (buffer) getopt:
  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(argc, argv, cli_flags)) != -1) {
data/criu-3.15/test/others/socketpairs/socketpair.c:138:16:  [3] (buffer) getopt:
  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(argc, argv, cli_flags)) != -1) {
data/criu-3.15/test/zdtm/lib/datagen.c:80:10:  [3] (random) mrand48:
  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.
			rnd = mrand48();
data/criu-3.15/test/zdtm/lib/datagen.c:104:10:  [3] (random) mrand48:
  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.
			rnd = mrand48();
data/criu-3.15/test/zdtm/lib/groups.c:18:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv("ZDTM_TESTS");
data/criu-3.15/test/zdtm/lib/ns.c:33:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	root = getenv("ZDTM_ROOT");
data/criu-3.15/test/zdtm/lib/ns.c:54:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	criu_path = getenv("ZDTM_CRIU");
data/criu-3.15/test/zdtm/lib/ns.c:329:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	reap = getenv("ZDTM_NOREAP") == NULL;
data/criu-3.15/test/zdtm/lib/ns.c:455:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("ZDTM_USERNS"))
data/criu-3.15/test/zdtm/lib/test.c:127:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	val = getenv("ZDTM_NOTIFY_FDIN");
data/criu-3.15/test/zdtm/lib/test.c:132:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	val = getenv("ZDTM_NOTIFY_FDOUT");
data/criu-3.15/test/zdtm/lib/test.c:224:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	val = getenv("ZDTM_NEWNS");
data/criu-3.15/test/zdtm/lib/test.c:241:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	val = getenv("ZDTM_GROUPS");
data/criu-3.15/test/zdtm/lib/test.c:259:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	val = getenv("ZDTM_GID");
data/criu-3.15/test/zdtm/lib/test.c:265:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	val = getenv("ZDTM_UID");
data/criu-3.15/test/zdtm/static/arm-neon00.c:17: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(time(0));
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:321: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(time(NULL));
data/criu-3.15/test/zdtm/static/cgroupns.c:136:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!getenv("ZDTM_NEWNS")) {
data/criu-3.15/test/zdtm/static/chroot-file.c:133:6:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	if (chroot(dirname)) {
data/criu-3.15/test/zdtm/static/chroot.c:129:6:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
	if (chroot(dirname)) {
data/criu-3.15/test/zdtm/static/dumpable02.c:78:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("DUMPABLE_SERVER"))
data/criu-3.15/test/zdtm/static/env00.c:27:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	env = getenv(envname);
data/criu-3.15/test/zdtm/static/fanotify00.c:221:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	int ns = getenv("ZDTM_NEWNS") != NULL;
data/criu-3.15/test/zdtm/static/fpu00.c:63:6:  [3] (random) drand48:
  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.
	a = drand48();
data/criu-3.15/test/zdtm/static/fpu00.c:64:6:  [3] (random) drand48:
  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.
	b = drand48();
data/criu-3.15/test/zdtm/static/fpu00.c:65:6:  [3] (random) drand48:
  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.
	c = drand48();
data/criu-3.15/test/zdtm/static/fpu00.c:66:6:  [3] (random) drand48:
  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.
	d = drand48();
data/criu-3.15/test/zdtm/static/ipc_namespace.c:255:43:  [3] (random) lrand48:
  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.
	sprintf(buf, "%d %d %d %d\n", (unsigned) lrand48(), (unsigned) lrand48(),
data/criu-3.15/test/zdtm/static/ipc_namespace.c:255:65:  [3] (random) lrand48:
  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.
	sprintf(buf, "%d %d %d %d\n", (unsigned) lrand48(), (unsigned) lrand48(),
data/criu-3.15/test/zdtm/static/ipc_namespace.c:256:22:  [3] (random) lrand48:
  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.
				      (unsigned) lrand48(), (unsigned) lrand48() % MAX_MNI);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:256:44:  [3] (random) lrand48:
  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.
				      (unsigned) lrand48(), (unsigned) lrand48() % MAX_MNI);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:272:62:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/kernel/msgmax", (unsigned)lrand48());
data/criu-3.15/test/zdtm/static/ipc_namespace.c:274:62:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/kernel/msgmnb", (unsigned)lrand48());
data/criu-3.15/test/zdtm/static/ipc_namespace.c:276:62:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/kernel/msgmni", (unsigned)lrand48() % MAX_MNI);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:279:24:  [3] (random) lrand48:
  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.
	if (!ret && (unsigned)lrand48() % 2)
data/criu-3.15/test/zdtm/static/ipc_namespace.c:280:67:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/kernel/msg_next_id", (unsigned)lrand48() % ((unsigned)INT_MAX + 1));
data/criu-3.15/test/zdtm/static/ipc_namespace.c:281:24:  [3] (random) lrand48:
  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.
	if (!ret && (unsigned)lrand48() % 2)
data/criu-3.15/test/zdtm/static/ipc_namespace.c:282:67:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/kernel/sem_next_id", (unsigned)lrand48() % ((unsigned)INT_MAX + 1));
data/criu-3.15/test/zdtm/static/ipc_namespace.c:283:24:  [3] (random) lrand48:
  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.
	if (!ret && (unsigned)lrand48() % 2)
data/criu-3.15/test/zdtm/static/ipc_namespace.c:284:67:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/kernel/shm_next_id", (unsigned)lrand48() % ((unsigned)INT_MAX + 1));
data/criu-3.15/test/zdtm/static/ipc_namespace.c:286:62:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/kernel/shmmax", (unsigned)lrand48());
data/criu-3.15/test/zdtm/static/ipc_namespace.c:288:62:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/kernel/shmall", (unsigned)lrand48());
data/criu-3.15/test/zdtm/static/ipc_namespace.c:290:62:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/kernel/shmmni", (unsigned)lrand48() % MAX_MNI);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:292:71:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/kernel/shm_rmid_forced", (unsigned)lrand48() & 1);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:296:71:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/fs/mqueue/queues_max", (((unsigned)lrand48()) % 1023) + 1);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:298:67:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/fs/mqueue/msg_max", ((unsigned)lrand48() % 65536) + 1);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:300:71:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/fs/mqueue/msgsize_max", ((unsigned)lrand48() & (8192 * 128 - 1)) | 128);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:302:71:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/fs/mqueue/msg_default", ((unsigned)lrand48() % 65536) + 1);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:304:75:  [3] (random) lrand48:
  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.
		ret = rand_ipc_sysctl("/proc/sys/fs/mqueue/msgsize_default", ((unsigned)lrand48() & (8192 * 128 - 1)) | 128);
data/criu-3.15/test/zdtm/static/maps04.c:39:21:  [3] (random) lrand48:
  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.
		if (mprotect(m + (lrand48() * PAGE_SIZE % MEM_SIZE), PAGE_SIZE, PROT_NONE)) {
data/criu-3.15/test/zdtm/static/mem-touch.c:22: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(time(NULL));
data/criu-3.15/test/zdtm/static/mem-touch.c:37:9:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		pfn = random() % MEM_PAGES;
data/criu-3.15/test/zdtm/static/mmx00.c:74:12:  [3] (random) mrand48:
  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.
		rnd[i] = mrand48();
data/criu-3.15/test/zdtm/static/mnt_ext_auto.c:40:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char* zdtm_newns = getenv("ZDTM_NEWNS");
data/criu-3.15/test/zdtm/static/mnt_ext_auto.c:42:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	root = getenv("ZDTM_ROOT");
data/criu-3.15/test/zdtm/static/mnt_ext_dev.c:32:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	loop = getenv("ZDTM_MNT_EXT_DEV");
data/criu-3.15/test/zdtm/static/mnt_ext_master.c:25:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	root = getenv("ZDTM_ROOT");
data/criu-3.15/test/zdtm/static/mnt_ext_master.c:31:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	sprintf(dst, "%s/ext_mounts", getenv("ZDTM_ROOT"));
data/criu-3.15/test/zdtm/static/mnt_ext_master.c:33:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (strcmp(getenv("ZDTM_NEWNS"), "1"))
data/criu-3.15/test/zdtm/static/mnt_tracefs.c:23:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (strcmp(getenv("ZDTM_NEWNS"), "1"))
data/criu-3.15/test/zdtm/static/mntns_link_remap.c:186:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("ZDTM_NOSUBNS") == NULL) {
data/criu-3.15/test/zdtm/static/mntns_open.c:100:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("ZDTM_NOSUBNS") == NULL) {
data/criu-3.15/test/zdtm/static/mountpoints.c:225:6:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (getenv("ZDTM_NOSUBNS") == NULL) {
data/criu-3.15/test/zdtm/static/netns-dev.c:211:9:  [3] (random) lrand48:
  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.
	return lrand48() % (r->max - r->min + 1) + r->min;
data/criu-3.15/test/zdtm/static/netns-dev.c:222:6:  [3] (random) lrand48:
  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.
	if (lrand48() % 2) {
data/criu-3.15/test/zdtm/static/netns_sub_sysctl.c:29:24:  [3] (random) lrand48:
  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.
		p->old = (((unsigned)lrand48()) % 1023) + 1;
data/criu-3.15/test/zdtm/static/poll.c:84:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		deltaenv = getenv("ZDTM_DELTA");
data/criu-3.15/test/zdtm/static/sem.c:138:16:  [3] (random) lrand48:
  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.
		val[i].val = lrand48() & 0x7;
data/criu-3.15/test/zdtm/static/session03.c:82:6:  [3] (random) lrand48:
  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.
	m = lrand48() % sum_weight;
data/criu-3.15/test/zdtm/static/session03.c:307:15:  [3] (random) lrand48:
  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.
		int flags = lrand48() % 2;
data/criu-3.15/test/zdtm/static/session03.c:314:10:  [3] (random) lrand48:
  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.
				id = lrand48() % (nr_processes - 1) + 1;
data/criu-3.15/test/zdtm/static/session03.c:316:33:  [3] (random) lrand48:
  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.
			id = nr_processes * 9 / 10 + lrand48() % nr_processes / 10;
data/criu-3.15/test/zdtm/static/session03.c:320:9:  [3] (random) lrand48:
  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.
			id = lrand48() % nr_processes;
data/criu-3.15/test/zdtm/static/socket-ext.c:35:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	val = getenv("ZDTM_GID");
data/criu-3.15/test/zdtm/static/socket-ext.c:41:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	val = getenv("ZDTM_UID");
data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c:99:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *newns = getenv("ZDTM_NEWNS");
data/criu-3.15/test/zdtm/static/socket-tcp-closing.c:97:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *newns = getenv("ZDTM_NEWNS");
data/criu-3.15/test/zdtm/static/socket-tcp-fin-wait1.c:98:16:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	char *newns = getenv("ZDTM_NEWNS");
data/criu-3.15/test/zdtm/static/sockets02.c:26:15:  [3] (random) lrand48:
  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.
	data = (char)lrand48();
data/criu-3.15/test/zdtm/static/sse00.c:67:14:  [3] (random) drand48:
  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.
		input[i] = drand48();
data/criu-3.15/test/zdtm/static/sse20.c:68:14:  [3] (random) drand48:
  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.
		input[i] = drand48();
data/criu-3.15/test/zdtm/transition/epoll.c:76: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(tv.tv_sec + tv.tv_usec);
data/criu-3.15/test/zdtm/transition/maps007.c:99:17:  [3] (random) lrand48:
  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.
		p = start + ((lrand48() * PAGE_SIZE) % MEM_SIZE);
data/criu-3.15/test/zdtm/transition/maps007.c:100:10:  [3] (random) lrand48:
  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.
		size = lrand48() * PAGE_SIZE;
data/criu-3.15/test/zdtm/transition/maps007.c:106:7:  [3] (random) lrand48:
  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.
		if (lrand48() % 2)
data/criu-3.15/test/zdtm/transition/maps007.c:108:7:  [3] (random) lrand48:
  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.
		if (lrand48() % 2)
data/criu-3.15/test/zdtm/transition/maps007.c:110:7:  [3] (random) lrand48:
  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.
		if (lrand48() % 2)
data/criu-3.15/test/zdtm/transition/maps007.c:122:19:  [3] (random) lrand48:
  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.
		for (i = 0; i < lrand48() % 50; i++) {
data/criu-3.15/test/zdtm/transition/maps007.c:123:19:  [3] (random) lrand48:
  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.
			char *t = p + (lrand48() * PAGE_SIZE) % (size);
data/criu-3.15/test/zdtm/transition/maps007.c:124:11:  [3] (random) lrand48:
  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.
			t[0] = lrand48();
data/criu-3.15/test/zdtm/transition/thread-bomb.c:53:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	val = getenv("ZDTM_THREAD_BOMB");
data/criu-3.15/compel/arch/aarch64/src/lib/cpu.c:64: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(c, &rt_info, sizeof(rt_info));
data/criu-3.15/compel/arch/aarch64/src/lib/handle-elf.c:8:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char __maybe_unused
data/criu-3.15/compel/arch/aarch64/src/lib/handle-elf.c:14:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char __maybe_unused
data/criu-3.15/compel/arch/aarch64/src/lib/include/uapi/asm/sigframe.h:67: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(&sigframe->uc.uc_sigmask, from, sizeof(k_rtsigset_t))
data/criu-3.15/compel/arch/aarch64/src/lib/infect.c:40: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(sigframe->uc.uc_mcontext.regs, regs->regs, sizeof(regs->regs));
data/criu-3.15/compel/arch/aarch64/src/lib/infect.c:46: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(fpsimd->vregs, fpregs->vregs, 32 * sizeof(__uint128_t));
data/criu-3.15/compel/arch/arm/src/lib/handle-elf.c:8:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char __maybe_unused
data/criu-3.15/compel/arch/arm/src/lib/include/uapi/asm/sigframe.h:88: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(&sigframe->sig.uc.uc_sigmask, from, sizeof(k_rtsigset_t))
data/criu-3.15/compel/arch/mips/src/lib/handle-elf.c:8:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char __maybe_unused
data/criu-3.15/compel/arch/mips/src/lib/include/uapi/asm/sigframe.h:62: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(&sigframe->rs_uc.uc_sigmask, from, sizeof(k_rtsigset_t))
data/criu-3.15/compel/arch/mips/src/lib/include/uapi/asm/siginfo.h:64:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char _pad[sizeof( __ARCH_SI_UID_T) - sizeof(int)];
data/criu-3.15/compel/arch/ppc64/src/lib/cpu.c:79: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(c, &rt_info, sizeof(rt_info));
data/criu-3.15/compel/arch/ppc64/src/lib/handle-elf.c:8:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char __maybe_unused
data/criu-3.15/compel/arch/ppc64/src/lib/handle-elf.c:14:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char __maybe_unused
data/criu-3.15/compel/arch/ppc64/src/lib/include/uapi/asm/sigframe.h:43:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char				abigap[USER_REDZONE_SIZE];
data/criu-3.15/compel/arch/ppc64/src/lib/include/uapi/asm/sigframe.h:69: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(&sigframe->uc.uc_sigmask, from, sizeof(k_rtsigset_t))
data/criu-3.15/compel/arch/ppc64/src/lib/infect.c:44: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(dst->gp_regs, regs->gpr, sizeof(regs->gpr));
data/criu-3.15/compel/arch/ppc64/src/lib/infect.c:60: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(mcfp, fpregs, sizeof(*fpregs) * NFPREG);
data/criu-3.15/compel/arch/ppc64/src/lib/infect.c:67: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(&v_regs->vrregs[0][0], vrregs, sizeof(uint64_t) * 2 * (NVRREG - 1));
data/criu-3.15/compel/arch/ppc64/src/lib/infect.c:74: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((uint64_t *)(mc->v_regs + 1), vsxregs, sizeof(*vsxregs) * NVSXREG);
data/criu-3.15/compel/arch/s390/src/lib/cpu.c:77: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(c, &rt_info, sizeof(rt_info));
data/criu-3.15/compel/arch/s390/src/lib/handle-elf.c:8:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char __maybe_unused
data/criu-3.15/compel/arch/s390/src/lib/include/uapi/asm/sigframe.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 __reserved[128];
data/criu-3.15/compel/arch/s390/src/lib/include/uapi/asm/sigframe.h:45: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     __unused[128 - sizeof(sigset_t)];
data/criu-3.15/compel/arch/s390/src/lib/include/uapi/asm/sigframe.h:78: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(&sigframe->uc.uc_sigmask, from, sizeof(k_rtsigset_t))
data/criu-3.15/compel/arch/s390/src/lib/infect.c:136: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(dst->regs.gprs, regs->prstatus.gprs,
data/criu-3.15/compel/arch/s390/src/lib/infect.c:138: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(dst->regs.acrs, regs->prstatus.acrs,
data/criu-3.15/compel/arch/s390/src/lib/infect.c:140: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(&dst->regs.psw, &regs->prstatus.psw,
data/criu-3.15/compel/arch/s390/src/lib/infect.c:142: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(&dst->fpregs.fpc, &fpregs->prfpreg.fpc,
data/criu-3.15/compel/arch/s390/src/lib/infect.c:144: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(&dst->fpregs.fprs, &fpregs->prfpreg.fprs,
data/criu-3.15/compel/arch/s390/src/lib/infect.c:147: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(&dst_ext->vxrs_low, &fpregs->vxrs_low,
data/criu-3.15/compel/arch/s390/src/lib/infect.c:149: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(&dst_ext->vxrs_high, &fpregs->vxrs_high,
data/criu-3.15/compel/arch/s390/src/lib/infect.c:489: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 str[8];
data/criu-3.15/compel/arch/s390/src/lib/infect.c:507: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(str, "??");
data/criu-3.15/compel/arch/s390/src/lib/infect.c:510: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(str, "31");
data/criu-3.15/compel/arch/s390/src/lib/infect.c:512: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(str, "24");
data/criu-3.15/compel/arch/s390/src/lib/infect.c:538: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 line[128];
data/criu-3.15/compel/arch/s390/src/lib/infect.c:541: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/maps", "r");
data/criu-3.15/compel/arch/x86/src/lib/cpu.c:488: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(c, &rt_info, sizeof(rt_info));
data/criu-3.15/compel/arch/x86/src/lib/handle-elf.c:8:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char __maybe_unused
data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/cpu.h:333:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			x86_vendor_id[16];
data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/cpu.h:334:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			x86_model_id[64];
data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h:117:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			retcode[8];
data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h:147: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(&to->native.uc.uc_sigmask, from, sz);
data/criu-3.15/compel/arch/x86/src/lib/include/uapi/asm/sigframe.h:149: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(&to->compat.uc.uc_sigmask, from, sz);
data/criu-3.15/compel/arch/x86/src/lib/infect.c:138: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(&to[i], &from[i], sizeof(to[0]));
data/criu-3.15/compel/arch/x86/src/lib/infect.c:197: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(&fpu_state->fpu_state_64.xsave, fpregs, sizeof(*fpregs));
data/criu-3.15/compel/arch/x86/src/lib/infect.c:199: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(&fpu_state->fpu_state_ia32.xsave, fpregs, sizeof(*fpregs));
data/criu-3.15/compel/plugins/include/uapi/std/log.h:25:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern void std_sprintf(char output[STD_LOG_SIMPLE_CHUNK], const char *format, ...)
data/criu-3.15/compel/plugins/include/uapi/std/string.h:28:14:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
extern void *memcpy(void *dest, const void *src, size_t n);
data/criu-3.15/compel/plugins/std/log.c:10:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[STD_LOG_SIMPLE_CHUNK];
data/criu-3.15/compel/plugins/std/log.c:45: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 pbuf[12], *s;
data/criu-3.15/compel/plugins/std/log.c:65: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(b->bp + 1, s, n);
data/criu-3.15/compel/plugins/std/log.c:72:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(b->bp, s, n);
data/criu-3.15/compel/plugins/std/log.c:84: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(b->bp + 5, s, n);
data/criu-3.15/compel/plugins/std/log.c:190: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[12], *s;
data/criu-3.15/compel/plugins/std/log.c:199: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[22], *s;
data/criu-3.15/compel/plugins/std/log.c:237: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], *z = &buf[9];
data/criu-3.15/compel/plugins/std/log.c:257: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[19], *z = &buf[17];
data/criu-3.15/compel/plugins/std/log.c:358:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void std_sprintf(char output[STD_LOG_SIMPLE_CHUNK], const char *format, ...)
data/criu-3.15/compel/plugins/std/std.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/criu-3.15/compel/plugins/std/string.c:82:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[32], *t;
data/criu-3.15/compel/plugins/std/string.c:237:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
void *memcpy(void *to, const void *from, size_t n)
data/criu-3.15/compel/src/lib/infect.c:59: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 aux[128];
data/criu-3.15/compel/src/lib/infect.c:62: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(aux, "/proc/%d/status", pid);
data/criu-3.15/compel/src/lib/infect.c:63:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(aux, "r");
data/criu-3.15/compel/src/lib/infect.c:950: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(ctl->local_map, ctl->pblob.hdr.mem, ctl->pblob.hdr.bsize);
data/criu-3.15/compel/src/lib/infect.c:1072: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 aux[128];
data/criu-3.15/compel/src/lib/infect.c:1076: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(aux, "/proc/%d/maps", pid);
data/criu-3.15/compel/src/lib/infect.c:1077:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(aux, "r");
data/criu-3.15/compel/src/lib/infect.c:1108: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 p[32];
data/criu-3.15/compel/src/lib/infect.c:1112: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(p, "/proc/%d/ns/net", pid);
data/criu-3.15/compel/src/lib/infect.c:1113: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(p, O_RDONLY);
data/criu-3.15/compel/src/lib/infect.c:1119: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).
	mfd = open("/proc/self/ns/net", O_RDONLY);
data/criu-3.15/compel/src/lib/infect.c:1152: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[128];
data/criu-3.15/compel/src/lib/infect.c:1155:6:  [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.
	l = sprintf(path, "/proc/%d/", pid);
data/criu-3.15/compel/src/lib/infect.c:1161:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return open(path, mode);
data/criu-3.15/compel/src/lib/ptrace.c:107: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(src, t, bytes);
data/criu-3.15/compel/src/main.c:72: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(opts.input_filename, O_RDONLY);
data/criu-3.15/compel/src/main.c:83:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	opts.fout = fopen(opts.output_filename, "w");
data/criu-3.15/compel/src/main.c:345:16:  [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).
			log_level = atoi(optarg);
data/criu-3.15/compel/test/fdspy/spy.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char aux[4] = "0000";
data/criu-3.15/compel/test/fdspy/spy.c:126:8:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	pid = vfork();
data/criu-3.15/compel/test/infect/spy.c:108:8:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	pid = vfork();
data/criu-3.15/compel/test/rsys/spy.c:81:8:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	pid = vfork();
data/criu-3.15/criu/action-scripts.c:20: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 *action_names[ACT_MAX] = {
data/criu-3.15/criu/action-scripts.c:64: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 image_dir[PATH_MAX];
data/criu-3.15/criu/action-scripts.c:65: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(image_dir, "/proc/%ld/fd/%d", (long) getpid(), get_service_fd(IMG_FD_OFF));
data/criu-3.15/criu/action-scripts.c:78:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char root_item_pid[16];
data/criu-3.15/criu/arch/arm/crtools.c:53: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(CORE_THREAD_ARCH_INFO(core)->fpstate->vfp_regs, &fpregs->fpregs, sizeof(fpregs->fpregs));
data/criu-3.15/criu/arch/arm/vdso-pie.c:30: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((void *)from, &jmp, sizeof(jmp));
data/criu-3.15/criu/arch/mips/vdso-pie.c:28: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((void *)from, &jmp, sizeof(jmp));
data/criu-3.15/criu/arch/ppc64/crtools.c:106: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(&v_regs->vrregs[0][0], vse->vrregs,
data/criu-3.15/criu/arch/ppc64/vdso-pie.c:107: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((void *)trampoline, &vdso_trampoline,
data/criu-3.15/criu/arch/s390/cpu.c:20: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 *hwcap_str1[64] = {
data/criu-3.15/criu/arch/s390/cpu.c:36: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 *hwcap_str2[64] = { };
data/criu-3.15/criu/arch/s390/cpu.c:38: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 **hwcap_str[2] = { hwcap_str1, hwcap_str2 };
data/criu-3.15/criu/arch/s390/cpu.c:40:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static void print_hwcaps(const char *msg, unsigned long hwcap[2])
data/criu-3.15/criu/arch/s390/crtools.c:309: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(vxrs_low->regs, &f->vxrs_low, sizeof(f->vxrs_low));
data/criu-3.15/criu/arch/s390/crtools.c:310: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(vxrs_high->regs, &f->vxrs_high, sizeof(f->vxrs_high));
data/criu-3.15/criu/arch/s390/crtools.c:319: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(gs_cb->regs, &f->gs_cb, sizeof(f->gs_cb));
data/criu-3.15/criu/arch/s390/crtools.c:327: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(gs_bc->regs, &f->gs_bc, sizeof(f->gs_bc));
data/criu-3.15/criu/arch/s390/crtools.c:335: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(ri_cb->regs, &f->ri_cb, sizeof(f->ri_cb));
data/criu-3.15/criu/arch/s390/crtools.c:342: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(gpregs->gprs, u->prstatus.gprs, sizeof(u->prstatus.gprs));
data/criu-3.15/criu/arch/s390/crtools.c:346: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(gpregs->acrs, u->prstatus.acrs, sizeof(u->prstatus.acrs));
data/criu-3.15/criu/arch/s390/crtools.c:351: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(fpregs->fprs, f->prfpreg.fprs, sizeof(f->prfpreg.fprs));
data/criu-3.15/criu/arch/s390/vdso-pie.c:60: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((void *)(base_from + from->symbols[i].offset), &jmp,
data/criu-3.15/criu/arch/x86/cpu.c:369: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(cpu_info->x86_capability, img_x86_entry->capability, size);
data/criu-3.15/criu/arch/x86/cpu.c:371: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(&cpu_info->x86_capability[NCAPINTS_V1],
data/criu-3.15/criu/arch/x86/crtools.c:25:35:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define assign_array(dst, src, e)	memcpy(dst->e, &src.e, sizeof(src.e))
data/criu-3.15/criu/arch/x86/crtools.c:38: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(xsave->member, from, size);				\
data/criu-3.15/criu/arch/x86/crtools.c:454: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(to, from, size);						\
data/criu-3.15/criu/arch/x86/include/asm/parasite.h:71: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(&ptls->desc[i], d, sizeof(user_desc_t));
data/criu-3.15/criu/arch/x86/kerndat.c:205: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 stack[PAGE_SIZE];
data/criu-3.15/criu/arch/x86/restorer.c:97: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(stack32, desc, sizeof(user_desc_t));
data/criu-3.15/criu/arch/x86/sigaction_compat.c:44: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(stack32, act, sizeof(rt_sigaction_t_compat));
data/criu-3.15/criu/arch/x86/vdso-pie.c:30: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((void *)from, &jmp, sizeof(jmp));
data/criu-3.15/criu/arch/x86/vdso-pie.c:47: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((void *)from, &jmp, sizeof(jmp));
data/criu-3.15/criu/autofs.c:653:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/criu-3.15/criu/autofs.c:866: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(i->entry, info->entry, sizeof(*info->entry));
data/criu-3.15/criu/autofs.c:931: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(ops, pi->d.ops, sizeof(*ops));
data/criu-3.15/criu/bfd.c:267: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(b->data + b->sz, buf, size);
data/criu-3.15/criu/bfd.c:318: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(buf + filled, b->data, chunk);
data/criu-3.15/criu/bpfmap.c:96: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(keys, map_data->data, bde->keys_bytes);
data/criu-3.15/criu/bpfmap.c:104: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(values, map_data->data + bde->keys_bytes, bde->values_bytes);
data/criu-3.15/criu/cgroup-props.c:205: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(dst, from, p - from);
data/criu-3.15/criu/cgroup-props.c:373:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/criu-3.15/criu/cgroup.c:277: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[1024];
data/criu-3.15/criu/cgroup.c:281: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(fullpath, O_RDONLY);
data/criu-3.15/criu/cgroup.c:323:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(buf, "-1");
data/criu-3.15/criu/cgroup.c:372:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/criu-3.15/criu/cgroup.c:604: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 mopts[1024];
data/criu-3.15/criu/cgroup.c:640:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[PATH_MAX], *root;
data/criu-3.15/criu/cgroup.c:677:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char dir_path[PATH_MAX];
data/criu-3.15/criu/cgroup.c:688:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(dir_path, O_RDONLY | O_DIRECTORY, 0);
data/criu-3.15/criu/cgroup.c:1082: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 pidbuf[32];
data/criu-3.15/criu/cgroup.c:1113: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 aux[PATH_MAX];
data/criu-3.15/criu/cgroup.c:1185: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 aux[PATH_MAX];
data/criu-3.15/criu/cgroup.c:1376:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char freezer_path[PATH_MAX];
data/criu-3.15/criu/cgroup.c:1535: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 cname_path[PATH_MAX];
data/criu-3.15/criu/cgroup.c:1746: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 paux[PATH_MAX];
data/criu-3.15/criu/cgroup.c:1761: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.
		off = sprintf(paux, ".criu.cgyard.XXXXXX");
data/criu-3.15/criu/cgroup.c:1778:6:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	i = open(cg_yard, O_DIRECTORY);
data/criu-3.15/criu/cgroup.c:1792: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 opt[128], *yard;
data/criu-3.15/criu/config.c:119:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE* configfile = fopen(filepath, "r");
data/criu-3.15/criu/config.c:172:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char local_filepath[PATH_MAX + 1];
data/criu-3.15/criu/config.c:393:23:  [2] (integer) atol:
  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).
		return (size_t)KILO(atol(optarg));
data/criu-3.15/criu/config.c:395:23:  [2] (integer) atol:
  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).
		return (size_t)MEGA(atol(optarg));
data/criu-3.15/criu/config.c:397:23:  [2] (integer) atol:
  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).
		return (size_t)GIGA(atol(optarg));
data/criu-3.15/criu/config.c:398:17:  [2] (integer) atol:
  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).
	return (size_t)atol(optarg);
data/criu-3.15/criu/config.c:615:19:  [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).
			opts.tree_id = atoi(optarg);
data/criu-3.15/criu/config.c:647:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					opts.log_level = atoi(optarg);
data/criu-3.15/criu/config.c:654: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).
			fd = atoi(optarg);
data/criu-3.15/criu/config.c:687:16:  [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).
			opts.port = atoi(optarg);
data/criu-3.15/criu/config.c:779:19:  [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).
			opts.timeout = atoi(optarg);
data/criu-3.15/criu/config.c:844:21:  [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).
			opts.ps_socket = atoi(optarg);
data/criu-3.15/criu/cr-check.c:72: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).
	master = open("/dev/ptmx", O_RDWR);
data/criu-3.15/criu/cr-check.c:84:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	slave = open(slavename, O_RDWR);
data/criu-3.15/criu/cr-check.c:478:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[IFNAMSIZ];
data/criu-3.15/criu/cr-check.c:623: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];
data/criu-3.15/criu/cr-check.c:871: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];
data/criu-3.15/criu/cr-check.c:955: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 stack[128] __stack_aligned__;
data/criu-3.15/criu/cr-check.c:956: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 stack_ptr[0];
data/criu-3.15/criu/cr-check.c:980: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 str[1024];
data/criu-3.15/criu/cr-dump.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.
static char loc_buf[PERSONALITY_LENGTH];
data/criu-3.15/criu/cr-dump.c:225:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		(*dfds)->fds[n++] = atoi(de->d_name);
data/criu-3.15/criu/cr-dump.c:605:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		*personality = atoi(loc_buf);
data/criu-3.15/criu/cr-restore.c:470: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(&(act.rt_sa_mask.sig[0]), &e->mask, sizeof(act.rt_sa_mask.sig[0]));
data/criu-3.15/criu/cr-restore.c:471: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(&(act.rt_sa_mask.sig[1]), &e->mask_extended, sizeof(act.rt_sa_mask.sig[1]));
data/criu-3.15/criu/cr-restore.c:541: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(&sigchld_act, &act, sizeof(rt_sigaction_t_compat));
data/criu-3.15/criu/cr-restore.c:844: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/criu-3.15/criu/cr-restore.c:1344: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[32];
data/criu-3.15/criu/cr-restore.c:1721:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = ret = open("/proc", O_DIRECTORY);
data/criu-3.15/criu/cr-restore.c:1785:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[12];
data/criu-3.15/criu/cr-restore.c:1800:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		current->pid->real = atoi(buf);
data/criu-3.15/criu/cr-restore.c:2208: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", O_DIRECTORY | O_RDONLY);
data/criu-3.15/criu/cr-restore.c:2945: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(restorer, pbd.hdr.mem, pbd.hdr.bsize);
data/criu-3.15/criu/cr-restore.c:3111: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(t, info, sizeof(*info));
data/criu-3.15/criu/cr-restore.c:3373: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(args->groups, ce->groups, ce->n_groups * sizeof(u32));
data/criu-3.15/criu/cr-service.c:241:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char images_dir[PATH_MAX];
data/criu-3.15/criu/cr-service.c:248: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 images_dir_path[PATH_MAX];
data/criu-3.15/criu/cr-service.c:249:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char work_dir_path[PATH_MAX];
data/criu-3.15/criu/cr-service.c:250: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 status_fd[PATH_MAX];
data/criu-3.15/criu/cr-service.c:341: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(images_dir_path, "/proc/%d/fd/%d", ids.pid, req->images_dir_fd);
data/criu-3.15/criu/cr-service.c:370: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(work_dir_path, "/proc/%d/fd/%d", ids.pid, req->work_dir_fd);
data/criu-3.15/criu/cr-service.c:483: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(opts.exec_cmd, req->exec_cmd, req->n_exec_cmd * sizeof(char *));
data/criu-3.15/criu/cr-service.c:683: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(status_fd, "/proc/%d/fd/%d", ids.pid, req->status_fd);
data/criu-3.15/criu/cr-service.c:684:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		opts.status_fd = open(status_fd, O_WRONLY);
data/criu-3.15/criu/crtools.c:124:26:  [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).
		return cr_service_work(atoi(argv[optind+1]));
data/criu-3.15/criu/crtools.c:157: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(opts.exec_cmd, &argv[optind + 1], (argc - optind - 1) * sizeof(char *));
data/criu-3.15/criu/fault-injection.c:16:10:  [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).
	start = atoi(val);
data/criu-3.15/criu/file-lock.c:135:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link[PATH_MAX], t[32];
data/criu-3.15/criu/files-reg.c:272: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).
	gfd = open(path, O_WRONLY | O_CREAT | O_EXCL, gfe->mode);
data/criu-3.15/criu/files-reg.c:361:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/files-reg.c:714:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/files-reg.c:728:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	rmntns_root = open(path, O_RDONLY);
data/criu-3.15/criu/files-reg.c:788: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 pathbuf[PATH_MAX];
data/criu-3.15/criu/files-reg.c:969:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link_name[PATH_MAX], *tmp;
data/criu-3.15/criu/files-reg.c:992: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(link_name + 1, path, len);
data/criu-3.15/criu/files-reg.c:1440: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(*build_id, (void *) note_header, size);
data/criu-3.15/criu/files-reg.c:1534: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(*build_id, (void *) note_header, size);
data/criu-3.15/criu/files-reg.c:1547: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[SELFMAG+1];
data/criu-3.15/criu/files-reg.c:1627: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(rfe->build_id, (void *) build_id, build_id_size);
data/criu-3.15/criu/files-reg.c:1664: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 ext_id[64];
data/criu-3.15/criu/files-reg.c:1943:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char _path[PATH_MAX], *path = _path;
data/criu-3.15/criu/files-reg.c:1944: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 _rpath[PATH_MAX], *rpath = _rpath;
data/criu-3.15/criu/files-reg.c:2088:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/files-reg.c:2127: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.
			static char tmp_path[PATH_MAX];
data/criu-3.15/criu/files.c:293:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[PATH_MAX];
data/criu-3.15/criu/files.c:470: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 more[32];
data/criu-3.15/criu/files.c:480: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(more, "%d:%d", maj, minor(p->stat.st_rdev));
data/criu-3.15/criu/files.c:526:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char link[32];
data/criu-3.15/criu/files.c:673:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link[PATH_MAX], t[32];
data/criu-3.15/criu/files.c:717:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		if (predump_one_fd(pid, atoi(de->d_name)))
data/criu-3.15/criu/files.c:1157:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ret = d->ops->open(d, &new_fd);
data/criu-3.15/criu/files.c:1620:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX], *id_str;
data/criu-3.15/criu/filesystems.c:195:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX+1];
data/criu-3.15/criu/filesystems.c:199:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_WRONLY);
data/criu-3.15/criu/filesystems.c:216: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(path, O_WRONLY);
data/criu-3.15/criu/filesystems.c:257: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.
		buf += sprintf(buf, "\\x%c%c", bme->magic[i], bme->magic[i + 1]);
data/criu-3.15/criu/filesystems.c:264: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.
			buf += sprintf(buf, "\\x%c%c", bme->mask[i], bme->mask[i + 1]);
data/criu-3.15/criu/fsnotify.c:125:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[PATH_MAX], *__path;
data/criu-3.15/criu/fsnotify.c:541: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, "/proc/self/fd/%d", *target);
data/criu-3.15/criu/fsnotify.c:545:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char link[PATH_MAX];
data/criu-3.15/criu/fsnotify.c:561: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[PSFDS], *path;
data/criu-3.15/criu/fsnotify.c:613: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[PSFDS], *path = NULL;
data/criu-3.15/criu/image.c:54:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(root_ids, he->root_ids, sizeof(*root_ids));
data/criu-3.15/criu/image.c:326:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/image.c:406:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	path[PATH_MAX];
data/criu-3.15/criu/image.c:547: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(dir, O_RDONLY);
data/criu-3.15/criu/include/autofs.h:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[0];
data/criu-3.15/criu/include/file-lock.h:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		end[32];
data/criu-3.15/criu/include/files.h:29:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char	name[PATH_MAX];
data/criu-3.15/criu/include/files.h:114:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int			(*open)(struct file_desc *d, int *new_fd);
data/criu-3.15/criu/include/parasite.h:174: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				comm[TASK_COMM_LEN];
data/criu-3.15/criu/include/parasite.h:236: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 contents[1 << 12];
data/criu-3.15/criu/include/proc_parse.h:13:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			comm[PROC_TASK_COMM_LEN];
data/criu-3.15/criu/include/restorer.h:116:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char				comm[TASK_COMM_LEN];
data/criu-3.15/criu/include/restorer.h:198: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				comm[TASK_COMM_LEN];
data/criu-3.15/criu/include/util-vdso.h: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			name[32];
data/criu-3.15/criu/ipc_ns.c:631:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char mtext[MSGMAX];
data/criu-3.15/criu/kerndat.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[1024];
data/criu-3.15/criu/kerndat.c:190: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 maps[128];
data/criu-3.15/criu/kerndat.c:201: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(maps, "/proc/self/map_files/%lx-%lx",
data/criu-3.15/criu/kerndat.c:437:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PAGE_SIZE];
data/criu-3.15/criu/kerndat.c:516: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 *argv[4] = { "sh", "-c", "iptables -w -L", NULL };
data/criu-3.15/criu/kerndat.c:518: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/null", O_RDWR);
data/criu-3.15/criu/kerndat.c:640: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[1024];
data/criu-3.15/criu/kerndat.c:659: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).
	maps = fopen("/proc/self/maps", "r");
data/criu-3.15/criu/kerndat.c:832: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(KERNDAT_CACHE_FILE, O_RDONLY);
data/criu-3.15/criu/kerndat.c:867: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(KERNDAT_CACHE_FILE_TMP, O_CREAT | O_EXCL | O_WRONLY, 0600);
data/criu-3.15/criu/kerndat.c:967:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f.fd = open("/proc/self/smaps", O_RDONLY);
data/criu-3.15/criu/libnetlink.c:66:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[16384];
data/criu-3.15/criu/libnetlink.c:147: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(RTA_DATA(rta), data, alen);
data/criu-3.15/criu/log.c:39:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buffer[LOG_BUF_LEN];
data/criu-3.15/criu/log.c:45:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char early_log_buffer[EARLY_LOG_BUF_LEN];
data/criu-3.15/criu/log.c:111: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 s[1024];
data/criu-3.15/criu/log.c:222: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).
		new_logfd = open(output, O_CREAT|O_TRUNC|O_WRONLY|O_APPEND, 0600);
data/criu-3.15/criu/log.c:258:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/log.c:408: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(opts.pidfile, O_WRONLY | O_EXCL | O_CREAT, 0600);
data/criu-3.15/criu/mem.c:535: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(pargs_iovs(args), pp->iovs,
data/criu-3.15/criu/mem.c:1070:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char buf[PAGE_SIZE];
data/criu-3.15/criu/mem.c:1145:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(p, buf, PAGE_SIZE);
data/criu-3.15/criu/mount.c:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mkey[len + 6];
data/criu-3.15/criu/mount.c:164:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char _full_path[PATH_MAX];
data/criu-3.15/criu/mount.c:465: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 devstr[64];
data/criu-3.15/criu/mount.c:859: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 root_path_a[PATH_MAX], root_path_b[PATH_MAX];
data/criu-3.15/criu/mount.c:1345: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(mi->mountpoint, O_DIRECTORY|O_RDONLY);
data/criu-3.15/criu/mount.c:1377: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).
	cwd_fd = open(".", O_DIRECTORY);
data/criu-3.15/criu/mount.c:1897: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 *mpath, buf[PATH_MAX];
data/criu-3.15/criu/mount.c:2048:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char target[PSFDS];
data/criu-3.15/criu/mount.c:2117: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(mi->mountpoint, O_PATH);
data/criu-3.15/criu/mount.c:2207: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 mnt_fd_path[PSFDS];
data/criu-3.15/criu/mount.c:2208: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 *root, *cut_root, rpath[PATH_MAX];
data/criu-3.15/criu/mount.c:2309: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).
			int fd = open(root, O_WRONLY | O_CREAT | O_EXCL,
data/criu-3.15/criu/mount.c:2443:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char root_path[PATH_MAX];
data/criu-3.15/criu/mount.c:2524:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		mi->parent->fd = open(mi->parent->mountpoint, O_PATH);
data/criu-3.15/criu/mount.c:2544:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(mi->mountpoint, O_PATH);
data/criu-3.15/criu/mount.c:2699:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[PATH_MAX];
data/criu-3.15/criu/mount.c:2947: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 root[PATH_MAX] = ".";
data/criu-3.15/criu/mount.c:3213:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/mount.c:3350: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).
	old_cwd = open(".", O_PATH);
data/criu-3.15/criu/mount.c:3445:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[PATH_MAX];
data/criu-3.15/criu/mount.c:3532:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX + 1];
data/criu-3.15/criu/mount.c:3545: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("/", O_RDONLY | O_DIRECTORY);
data/criu-3.15/criu/namespaces.c:97: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).
		pid = atoi(ns_file);
data/criu-3.15/criu/namespaces.c:453: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 ns_path[32];
data/criu-3.15/criu/namespaces.c:529:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[64];
data/criu-3.15/criu/namespaces.c:599:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, nfi->nfe->flags);
data/criu-3.15/criu/namespaces.c:1087:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char id[64];
data/criu-3.15/criu/namespaces.c:1158: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/criu-3.15/criu/namespaces.c:1193: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 c[CMSG_SPACE(sizeof(struct ucred)) + CMSG_SPACE(sizeof(int))];
data/criu-3.15/criu/namespaces.c:1285:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		static char msg[MAX_UNSFD_MSG_SIZE];
data/criu-3.15/criu/namespaces.c:1617: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 nsf[32];
data/criu-3.15/criu/namespaces.c:1620:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	pid = atoi(jn->ns_file);
data/criu-3.15/criu/namespaces.c:1628: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(pnsf, O_RDONLY);
data/criu-3.15/criu/namespaces.c:1640: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[32];
data/criu-3.15/criu/namespaces.c:1684: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).
		uid = atoi(jn->extra_opts.user_extra.uid);
data/criu-3.15/criu/namespaces.c:1689: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).
		gid = atoi(jn->extra_opts.user_extra.gid);
data/criu-3.15/criu/namespaces.c:1861: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 id[64], *val;
data/criu-3.15/criu/net.c:230:24:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int net_conf_op(char *tgt, SysctlEntry **conf, int n, int op, char *proto,
data/criu-3.15/criu/net.c:230:70:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static int net_conf_op(char *tgt, SysctlEntry **conf, int n, int op, char *proto,
data/criu-3.15/criu/net.c:231:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		struct sysctl_req *req, char (*path)[MAX_CONF_OPT_PATH], int size,
data/criu-3.15/criu/net.c:342: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[ARRAY_SIZE(devconfs4)][MAX_CONF_OPT_PATH];
data/criu-3.15/criu/net.c:352: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[ARRAY_SIZE(devconfs6)][MAX_CONF_OPT_PATH];
data/criu-3.15/criu/net.c:362: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[ARRAY_SIZE(unix_conf_entries)][MAX_CONF_UNIX_PATH] = { };
data/criu-3.15/criu/net.c:437:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[ARRAY_SIZE(devconfs4)][MAX_CONF_OPT_PATH];
data/criu-3.15/criu/net.c:502: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 stable_secret[MAX_STR_CONF_LEN + 1] = {};
data/criu-3.15/criu/net.c:714:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *name = (char *)RTA_DATA(tb[IFLA_IFNAME]);
data/criu-3.15/criu/net.c:756:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char *name = (char *)RTA_DATA(tb[IFLA_IFNAME]);
data/criu-3.15/criu/net.c:882:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	name = (char *)RTA_DATA(tb[IFLA_IFNAME]);
data/criu-3.15/criu/net.c:1177: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[1024];
data/criu-3.15/criu/net.c:1290: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 key[100], *val;
data/criu-3.15/criu/net.c:1465: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 key[100], *val;
data/criu-3.15/criu/net.c:1970: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 def_stable_secret[MAX_STR_CONF_LEN + 1] = {};
data/criu-3.15/criu/net.c:1971: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 all_stable_secret[MAX_STR_CONF_LEN + 1] = {};
data/criu-3.15/criu/net.c:2079: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[1024];
data/criu-3.15/criu/net.c:2091:13:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
	tmp_file = tmpfile();
data/criu-3.15/criu/net.c:2177: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("/run/xtables.lock", O_RDONLY);
data/criu-3.15/criu/net.c:3085: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 id[64], *val;
data/criu-3.15/criu/net.c:3326: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 msg[128];
data/criu-3.15/criu/net.c:3350: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 msg[128];
data/criu-3.15/criu/netfilter.c:18:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[512];
data/criu-3.15/criu/netfilter.c:38:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/null", O_RDWR);
data/criu-3.15/criu/netfilter.c:60: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 sip[INET_ADDR_LEN], dip[INET_ADDR_LEN];
data/criu-3.15/criu/netfilter.c:62: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 *argv[4] = { "sh", "-c", buf, NULL };
data/criu-3.15/criu/page-pipe.c:375:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	prd->sink_fd = open("/dev/null", O_WRONLY);
data/criu-3.15/criu/page-xfer.c:931:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/pagemap.c:325: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(rio->iovs, piov->to, piov->nr * sizeof(struct iovec));
data/criu-3.15/criu/pagemap.c:878: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(dst, src, sizeof(*dst));
data/criu-3.15/criu/parasite-syscall.c:115: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(ce->cap_inh, c->cap_inh, sizeof(c->cap_inh[0]) * CR_CAP_SIZE);
data/criu-3.15/criu/parasite-syscall.c:116: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(ce->cap_prm, c->cap_prm, sizeof(c->cap_prm[0]) * CR_CAP_SIZE);
data/criu-3.15/criu/parasite-syscall.c:117: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(ce->cap_eff, c->cap_eff, sizeof(c->cap_eff[0]) * CR_CAP_SIZE);
data/criu-3.15/criu/parasite-syscall.c:118: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(ce->cap_bnd, c->cap_bnd, sizeof(c->cap_bnd[0]) * CR_CAP_SIZE);
data/criu-3.15/criu/parasite-syscall.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(&tc->blk_sigset_extended, (unsigned long *)compel_thread_sigmask(tctl)+1, sizeof(tc->blk_sigset));
data/criu-3.15/criu/parasite-syscall.c:185: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(&tc->blk_sigset, compel_thread_sigmask(tctl), sizeof(k_rtsigset_t));
data/criu-3.15/criu/parasite-syscall.c:251: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(&sa->mask_extended, &(args->sas[i].rt_sa_mask.sig[1]), sizeof(sa->mask));
data/criu-3.15/criu/parasite-syscall.c:406: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(&args->fds, dfds->fds + off, sizeof(int) * nr_fds);
data/criu-3.15/criu/parasite-syscall.c:585: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(&item->core[0]->tc->blk_sigset_extended, (unsigned long *)compel_task_sigmask(ctl)+1, sizeof(item->core[0]->tc->blk_sigset));
data/criu-3.15/criu/parasite-syscall.c:587: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(&item->core[0]->tc->blk_sigset, compel_task_sigmask(ctl), sizeof(k_rtsigset_t));
data/criu-3.15/criu/pie/parasite.c:438: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/criu-3.15/criu/pie/restorer.c:161: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[STD_LOG_SIMPLE_CHUNK];
data/criu-3.15/criu/pie/restorer.c:757: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[1];
data/criu-3.15/criu/pie/restorer.c:848: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((void *)ctx + i, (void *)ring + i, raio->len - i);
data/criu-3.15/criu/pie/restorer.c:1335: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[EVENT_BUFF_SIZE * 3];
data/criu-3.15/criu/pie/restorer.c:1792:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char last_pid_buf[16], *s;
data/criu-3.15/criu/pie/util-vdso.c:222: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 *vdso_symbols[VDSO_SYMBOL_MAX] = {
data/criu-3.15/criu/pie/util-vdso.c:268: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(t->symbols[i].name, name, vdso_symbol_length);
data/criu-3.15/criu/pie/util.c:32: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).
	fd = __sys(open)(dir, O_RDONLY | O_DIRECTORY, 0);
data/criu-3.15/criu/pipes.c:218: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[PSFDS];
data/criu-3.15/criu/pipes.c:221: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(path, "/proc/self/fd/%d", fd);
data/criu-3.15/criu/pipes.c:222:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ret = open(path, flags);
data/criu-3.15/criu/pipes.c:233: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[PSFDS];
data/criu-3.15/criu/pipes.c:235: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(path, "/proc/self/fd/%d", fd);
data/criu-3.15/criu/pipes.c:236:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	ret = open(path, flags);
data/criu-3.15/criu/plugin.c:228:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[PATH_MAX];
data/criu-3.15/criu/proc_parse.c:68: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[BUF_SIZE];
data/criu-3.15/criu/proc_parse.c:346: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(fname, O_RDONLY);
data/criu-3.15/criu/proc_parse.c:374: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[32];
data/criu-3.15/criu/proc_parse.c:872:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	s->pid = atoi(buf);
data/criu-3.15/criu/proc_parse.c:950: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]; /* 4294967295 is maximum for u32 */
data/criu-3.15/criu/proc_parse.c:1188: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.
		*uoff += sprintf(unknown + *uoff, "gid=%d", userns_gid(id));
data/criu-3.15/criu/proc_parse.c:1193: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.
		*uoff += sprintf(unknown + *uoff, "uid=%d", userns_uid(id));
data/criu-3.15/criu/proc_parse.c:1299:20:  [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).
			mi->shared_id = atoi(str + 7);
data/criu-3.15/criu/proc_parse.c:1302:20:  [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).
			mi->master_id = atoi(str + 7);
data/criu-3.15/criu/proc_parse.c:1490: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 clockid[10];
data/criu-3.15/criu/proc_parse.c:2130: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 fl_flag[10], fl_type[15], fl_option[10];
data/criu-3.15/criu/proc_parse.c:2287: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 sigpid[7];
data/criu-3.15/criu/proc_parse.c:2288: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 tidpid[4];
data/criu-3.15/criu/proc_parse.c:2303: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 pbuf[17]; /* 16 + eol */
data/criu-3.15/criu/proc_parse.c:2409:20:  [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).
		t[nr - 1].real = atoi(de->d_name);
data/criu-3.15/criu/proc_parse.c:2770:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/proc/uptime", "r");
data/criu-3.15/criu/protobuf.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char img_name_buf[PATH_MAX];
data/criu-3.15/criu/pstree.c:939: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[21];
data/criu-3.15/criu/seccomp.c:186: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(chain->filter.filter.data, buf, chain->filter.filter.len);
data/criu-3.15/criu/seccomp.c:500: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(f->sock_fprog.filter, sf->filter.data, sf->filter.len);
data/criu-3.15/criu/seize.c:45: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 state[32];
data/criu-3.15/criu/seize.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 path[PATH_MAX];
data/criu-3.15/criu/seize.c:109:10:  [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).
	event = fopen(path, "r");
data/criu-3.15/criu/seize.c:149: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 state[32] = {0};
data/criu-3.15/criu/seize.c:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/seize.c:193:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR);
data/criu-3.15/criu/seize.c:221:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/seize.c:226:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(path, "r");
data/criu-3.15/criu/seize.c:243:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/seize.c:258: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).
		pid = atoi(path);
data/criu-3.15/criu/seize.c:397:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/seize.c:407:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char stackbuf[2048];
data/criu-3.15/criu/seize.c:409: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).
		pid = atoi(path);
data/criu-3.15/criu/seize.c:914:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/shmem.c:445: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[128];
data/criu-3.15/criu/sk-inet.c:88: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 src_addr[INET_ADDR_LEN] = "<unknown>";
data/criu-3.15/criu/sk-inet.c:104:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char src_addr[INET_ADDR_LEN] = "<unknown>";
data/criu-3.15/criu/sk-inet.c:218: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(pb_addr, &sa->v4.sin_addr, sizeof(sa->v4.sin_addr));
data/criu-3.15/criu/sk-inet.c:223: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(pb_addr, &sa->v6.sin6_addr, sizeof(sa->v6.sin6_addr));
data/criu-3.15/criu/sk-inet.c:528: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 device[IFNAMSIZ];
data/criu-3.15/criu/sk-inet.c:566: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(ie.src_addr, sk->src_addr, pb_repeated_size(&ie, src_addr));
data/criu-3.15/criu/sk-inet.c:567: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(ie.dst_addr, sk->dst_addr, pb_repeated_size(&ie, dst_addr));
data/criu-3.15/criu/sk-inet.c:656: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(d->src_addr, m->id.idiag_src, sizeof(u32) * 4);
data/criu-3.15/criu/sk-inet.c:657: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(d->dst_addr, m->id.idiag_dst, sizeof(u32) * 4);
data/criu-3.15/criu/sk-netlink.c:62: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(sd->groups, groups, sd->gsize);
data/criu-3.15/criu/sk-packet.c:37: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	mr_address[MAX_ADDR_LEN];
data/criu-3.15/criu/sk-packet.c:97:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(im->addr.data, m->pdmc_addr, m->pdmc_alen);
data/criu-3.15/criu/sk-packet.c:252: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(sd->mreqs, nla_data(mc), nla_len(mc));
data/criu-3.15/criu/sk-packet.c:300: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(sd->rx, RTA_DATA(tb[PACKET_DIAG_RX_RING]), sizeof(*sd->rx));
data/criu-3.15/criu/sk-packet.c:307: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(sd->tx, RTA_DATA(tb[PACKET_DIAG_TX_RING]), sizeof(*sd->tx));
data/criu-3.15/criu/sk-packet.c:379: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(mreq.mr_address, ml->addr.data, ml->addr.len);
data/criu-3.15/criu/sk-packet.c:446: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(addr_spkt.sa_data, req.ifr_name, sa_data_size);
data/criu-3.15/criu/sk-queue.c:213: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 cmsg[CMSG_MAX_SIZE];
data/criu-3.15/criu/sk-unix.c:182: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 id[20];
data/criu-3.15/criu/sk-unix.c:292:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char dir[PATH_MAX], path[PATH_MAX];
data/criu-3.15/criu/sk-unix.c:567: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 rpath[PATH_MAX];
data/criu-3.15/criu/sk-unix.c:660: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(name, nla_data(tb[UNIX_DIAG_NAME]), len);
data/criu-3.15/criu/sk-unix.c:727: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(d->icons, nla_data(tb[UNIX_DIAG_ICONS]), len);
data/criu-3.15/criu/sk-unix.c:1217:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	*prev_cwd_fd = open(".", O_RDONLY);
data/criu-3.15/criu/sk-unix.c:1234:19:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		*prev_root_fd = open("/", O_RDONLY);
data/criu-3.15/criu/sk-unix.c:1329: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(&addr.sun_path, peer->name, peer->ue->name.len);
data/criu-3.15/criu/sk-unix.c:1371: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 fname[PATH_MAX];
data/criu-3.15/criu/sk-unix.c:1378: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(fname, ui->name, ui->ue->name.len);
data/criu-3.15/criu/sk-unix.c:1399:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(ui->name, O_PATH);
data/criu-3.15/criu/sk-unix.c:1421:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX], path_parked[PATH_MAX], *pos;
data/criu-3.15/criu/sk-unix.c:1432:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(path, ui->name, ui->ue->name.len);
data/criu-3.15/criu/sk-unix.c:1455:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(path, ui->name, ui->ue->name.len);
data/criu-3.15/criu/sk-unix.c:1470: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(&addr.sun_path, ui->name, ui->ue->name.len);
data/criu-3.15/criu/sk-unix.c:1552:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(path, ui->name, ui->ue->name.len);
data/criu-3.15/criu/sk-unix.c:1594: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(&addr.sun_path, ui->name, ui->ue->name.len);
data/criu-3.15/criu/sk-unix.c:2081: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 tp_name[32];
data/criu-3.15/criu/sk-unix.c:2082: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 st_name[32];
data/criu-3.15/criu/sk-unix.c:2196: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(skopts, ui->ue->opts, sizeof(SkOptsEntry));
data/criu-3.15/criu/sk-unix.c:2197: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(fown, ui->ue->fown, sizeof(FownEntry));
data/criu-3.15/criu/sk-unix.c:2198: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(peer_ue, ui->ue, sizeof(UnixSkEntry));
data/criu-3.15/criu/sockets.c:305: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 dev[IFNAMSIZ];
data/criu-3.15/criu/sockets.c:784: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 family[32], proto[32];
data/criu-3.15/criu/sockets.c:785: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[256];
data/criu-3.15/criu/string.c:27:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(dest, src, len);
data/criu-3.15/criu/string.c:56: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(dest, src, len);
data/criu-3.15/criu/sysctl.c:45: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[1024] = {0};						\
data/criu-3.15/criu/sysctl.c:77: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[1024];							\
data/criu-3.15/criu/sysctl.c:221: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).
	dir = open("/proc/sys", O_RDONLY, O_DIRECTORY);
data/criu-3.15/criu/sysctl.c:460: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(cur->arg, req[i].arg, arg_len);
data/criu-3.15/criu/sysfs_parse.c:74:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(sbinfo, "si_");
data/criu-3.15/criu/sysfs_parse.c:96: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 rpath[PATH_MAX];
data/criu-3.15/criu/sysfs_parse.c:138: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[AUFSBR_PATH_LEN];
data/criu-3.15/criu/sysfs_parse.c:225:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((fp = fopen(path, "r")) == NULL) {
data/criu-3.15/criu/sysfs_parse.c:277:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/criu/tty.c:165:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int				(*open)(struct tty_info *ti);
data/criu-3.15/criu/tty.c:268:10:  [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).
	index = atoi(pos + 1);
data/criu-3.15/criu/tty.c:289: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 id[42];
data/criu-3.15/criu/tty.c:377: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((d)->c_cc, (s)->c_cc,		\
data/criu-3.15/criu/tty.c:461:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
		strcpy(r->rfe->name, "/dev/ptmx");
data/criu-3.15/criu/tty.c:523: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(inverted_path, orig->rfe->name, slash_at + 1);
data/criu-3.15/criu/tty.c:526:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(inverted_path, "ptmx");
data/criu-3.15/criu/tty.c:1218:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		ret = info->driver->open(info);
data/criu-3.15/criu/tty.c:2459: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).
	dfd = open(pm->mountpoint, O_RDONLY);
data/criu-3.15/criu/tun.c:64:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(TUN_DEV_GEN_PATH, O_RDWR);
data/criu-3.15/criu/tun.c:83: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).
	tun = open(TUN_DEV_GEN_PATH, O_RDONLY);
data/criu-3.15/criu/tun.c:101:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char name[IFNAMSIZ];
data/criu-3.15/criu/tun.c:229: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(TUN_DEV_GEN_PATH, O_RDWR);
data/criu-3.15/criu/tun.c:456: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 spath[64];
data/criu-3.15/criu/tun.c:457: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[64];
data/criu-3.15/criu/util.c:196: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 opt[VMA_OPT_LEN];
data/criu-3.15/criu/util.c:354:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_DIRECTORY | O_PATH);
data/criu-3.15/criu/util.c:369: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[18];
data/criu-3.15/criu/util.c:414: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[128];
data/criu-3.15/criu/util.c:466:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char t[32];
data/criu-3.15/criu/util.c:485: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 aux[32];
data/criu-3.15/criu/util.c:695:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open("/dev/null", O_RDWR);
data/criu-3.15/criu/util.c:803: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 made_path[PATH_MAX], *pos;
data/criu-3.15/criu/util.c:1150: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 ipstr[INET6_ADDRSTRLEN];
data/criu-3.15/criu/vdso-compat.c:71: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(vdso_buf, vdso_addr, vdso_size);
data/criu-3.15/include/common/scm-code.c:62: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(cmsg_data, &fds[i], sizeof(int) * min_fd);
data/criu-3.15/include/common/scm-code.c:114: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(&fds[i], cmsg_data, sizeof(int) * min_fd);
data/criu-3.15/include/common/scm.h:23: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_buf[CR_SCM_MSG_SIZE];
data/criu-3.15/include/common/xmalloc.h:42: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(new, ptr, size);				\
data/criu-3.15/lib/c/criu.c:1212: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(&orphan_pts_master_fd, CMSG_DATA(cmsg), sizeof(int));
data/criu-3.15/lib/c/criu.c:1303: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 fds[11];
data/criu-3.15/lib/c/criu.c:1324: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(fds, "%d", sks[1]);
data/criu-3.15/lib/c/criu.c:1392: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(addr.sun_path, opts->service_address, addr_len);
data/criu-3.15/soccr/soccr.c:595:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char errbuf[LIBNET_ERRBUF_SIZE];
data/criu-3.15/soccr/test/tcp-conn.c:34: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] = "0123456789", *queue;
data/criu-3.15/soccr/test/tcp-constructor.c:60: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[1024];
data/criu-3.15/soccr/test/tcp-constructor.c:74:18:  [2] (integer) atol:
  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).
			tcp[i].port = atol(optarg);
data/criu-3.15/soccr/test/tcp-constructor.c:77:17:  [2] (integer) atol:
  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).
			tcp[i].seq = atol(optarg);
data/criu-3.15/test/compel/arch/aarch64/include/arch_test_handle_binary.h:13: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(mem, elf_ident_64_le, sizeof(elf_ident_64_le));
data/criu-3.15/test/compel/arch/aarch64/include/arch_test_handle_binary.h:15: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(mem, elf_ident_64_be, sizeof(elf_ident_64_be));
data/criu-3.15/test/compel/arch/arm/include/arch_test_handle_binary.h:12: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(mem, elf_ident_32, sizeof(elf_ident_32));
data/criu-3.15/test/compel/arch/ppc64/include/arch_test_handle_binary.h:13: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(mem, elf_ident_64_le, sizeof(elf_ident_64_le));
data/criu-3.15/test/compel/arch/ppc64/include/arch_test_handle_binary.h:15: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(mem, elf_ident_64_be, sizeof(elf_ident_64_be));
data/criu-3.15/test/compel/arch/x86/include/arch_test_handle_binary.h:12: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(mem, elf_ident_64_le, sizeof(elf_ident_64_le));
data/criu-3.15/test/compel/arch/x86/include/arch_test_handle_binary.h:27: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(mem, elf_ident_32, sizeof(elf_ident_32));
data/criu-3.15/test/others/app-emu/job/job.c:29: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[32];
data/criu-3.15/test/others/app-emu/job/job.c:65: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).
		_fd = atoi(de->d_name);
data/criu-3.15/test/others/bers/bers.c:138:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/others/bers/bers.c:264: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 workdir[PATH_MAX];
data/criu-3.15/test/others/bers/bers.c:266: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 pidbuf[32];
data/criu-3.15/test/others/bers/bers.c:298:32:  [2] (integer) atol:
  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).
			shared->opt_tasks = (size_t)atol(optarg);
data/criu-3.15/test/others/bers/bers.c:301:32:  [2] (integer) atol:
  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).
			shared->opt_files = (size_t)atol(optarg);
data/criu-3.15/test/others/bers/bers.c:305:30:  [2] (integer) atol:
  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).
			shared->opt_mem = (size_t)atol(optarg) << 20ul;
data/criu-3.15/test/others/bers/bers.c:308:37:  [2] (integer) atol:
  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).
			shared->opt_mem_chunks = (size_t)atol(optarg);
data/criu-3.15/test/others/bers/bers.c:324:45:  [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).
			shared->opt_refresh_time = (unsigned int)atoi(optarg);
data/criu-3.15/test/others/bers/bers.c:327:36:  [2] (integer) atol:
  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).
			shared->opt_file_size = (size_t)atol(optarg);
data/criu-3.15/test/others/libcriu/test_errno.c:21:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	dir_fd = open(argv[2], O_DIRECTORY);
data/criu-3.15/test/others/libcriu/test_errno.c:63:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(PID_MAX, "r");
data/criu-3.15/test/others/libcriu/test_errno.c:74:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	pid = atoi(buf);
data/criu-3.15/test/others/libcriu/test_iters.c:23: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 p[10];
data/criu-3.15/test/others/libcriu/test_iters.c:25: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(p, "%d", cur_iter);
data/criu-3.15/test/others/libcriu/test_iters.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 p[10];
data/criu-3.15/test/others/libcriu/test_iters.c:40: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(p, "../%d", cur_iter);
data/criu-3.15/test/others/libcriu/test_iters.c:55: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).
	wdir_fd = open(argv[2], O_DIRECTORY);
data/criu-3.15/test/others/libcriu/test_notify.c:76:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(argv[2], O_DIRECTORY);
data/criu-3.15/test/others/libcriu/test_self.c:19:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(argv[2], O_DIRECTORY);
data/criu-3.15/test/others/libcriu/test_sub.c:73:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(argv[2], O_DIRECTORY);
data/criu-3.15/test/others/mounts/ext/ext-mount.c:28: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 img[64];
data/criu-3.15/test/others/mounts/ext/ext-mount.c:64: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 img[64], src[256], *src_file;
data/criu-3.15/test/others/mounts/ext/ns_init.c:44:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open(argv[3], O_WRONLY|O_CREAT|O_TRUNC|O_APPEND, 0600);
data/criu-3.15/test/others/mounts/ext/ns_init.c:74:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		fd = atoi(argv[1]);
data/criu-3.15/test/others/mounts/ext/ns_init.c:85:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[128];
data/criu-3.15/test/others/mounts/ext/ns_init.c:87:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			f = fopen(argv[4], "r");
data/criu-3.15/test/others/mounts/ext/ns_init.c:110: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 *nargv[7], aux[10];
data/criu-3.15/test/others/mounts/ext/ns_init.c:113: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(aux, "%d", start[1]);
data/criu-3.15/test/others/mounts/ext/ns_init.c:137:10:  [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).
		pidf = fopen(argv[1], "w");
data/criu-3.15/test/others/pipes/pipe.c:110:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char pid_number[8];
data/criu-3.15/test/others/pipes/pipe.c:111:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char inh_pipe_opt[16];
data/criu-3.15/test/others/pipes/pipe.c:112:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char inh_pipe_arg[64];
data/criu-3.15/test/others/pipes/pipe.c:113:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char inh_file_opt[16];
data/criu-3.15/test/others/pipes/pipe.c:114:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char inh_file_arg[64];
data/criu-3.15/test/others/pipes/pipe.c:252:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char buf[128];
data/criu-3.15/test/others/pipes/pipe.c:277: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[32];
data/criu-3.15/test/others/pipes/pipe.c:278:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char old_pipe[32];
data/criu-3.15/test/others/pipes/pipe.c:419: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[64];
data/criu-3.15/test/others/pipes/pipe.c:491: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[16];	/* fit "hello d\n" for small d */
data/criu-3.15/test/others/pipes/pipe.c:506:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[128];
data/criu-3.15/test/others/pipes/pipe.c:521:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char pipe_name[64];
data/criu-3.15/test/others/pipes/pipe.c:522:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[64];
data/criu-3.15/test/others/pipes/pipe.c:536:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char pidstr1[64];
data/criu-3.15/test/others/pipes/pipe.c:537:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char pidstr2[64];
data/criu-3.15/test/others/pipes/pipe.c:590: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).
	if ((fd = open(pathname, flags, 0777)) == -1)
data/criu-3.15/test/others/rpc/test-c.c:15: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 buf[MAX_MSG_SIZE];
data/criu-3.15/test/others/rpc/test-c.c:36: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 buf[MAX_MSG_SIZE];
data/criu-3.15/test/others/rpc/test-c.c:74:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	dir_fd = open(argv[2], O_DIRECTORY);
data/criu-3.15/test/others/socketpairs/socketpair.c:67:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char pid_number[8];
data/criu-3.15/test/others/socketpairs/socketpair.c:68:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char inh_unixsk_opt[16];
data/criu-3.15/test/others/socketpairs/socketpair.c:69:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char inh_unixsk_arg[64];
data/criu-3.15/test/others/socketpairs/socketpair.c:70:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char external_sk_ino[32];
data/criu-3.15/test/others/socketpairs/socketpair.c:144:15:  [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).
			max_msgs = atoi(optarg);
data/criu-3.15/test/others/socketpairs/socketpair.c:182: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 unix_sk_ino[32] = {0};
data/criu-3.15/test/others/socketpairs/socketpair.c:216: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[32];
data/criu-3.15/test/others/socketpairs/socketpair.c:347: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[64];
data/criu-3.15/test/others/socketpairs/socketpair.c:393: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[16];	/* fit "hello d\n" for small d */
data/criu-3.15/test/others/socketpairs/socketpair.c:408:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[128];
data/criu-3.15/test/others/socketpairs/socketpair.c:420:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char sock_name[64];
data/criu-3.15/test/others/socketpairs/socketpair.c:421:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[64];
data/criu-3.15/test/others/socketpairs/socketpair.c:445:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char pidstr1[64];
data/criu-3.15/test/others/socketpairs/socketpair.c:446:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char pidstr2[64];
data/criu-3.15/test/others/socketpairs/socketpair.c:499: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).
	if ((fd = open(pathname, flags, 0777)) == -1)
data/criu-3.15/test/others/tcp/cln.c:13:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char rbuf[BUF_SIZE];
data/criu-3.15/test/others/tcp/cln.c:14:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[BUF_SIZE];
data/criu-3.15/test/others/tcp/cln.c:104: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).
	port = atoi(argv[2]);
data/criu-3.15/test/others/tcp/srv.c:14:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/criu-3.15/test/others/tcp/srv.c:68: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).
	port = atoi(argv[1]);
data/criu-3.15/test/others/unix-callback/syslog-lib.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 buf[4096];
data/criu-3.15/test/others/unix-callback/syslog-lib.c:31: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(buf, O_WRONLY | O_CREAT);
data/criu-3.15/test/others/unix-callback/syslog-lib.c:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/criu-3.15/test/others/unix-callback/syslog-lib.c:47:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(buf, O_RDONLY);
data/criu-3.15/test/others/unix-callback/unix-client.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 buf[4096];
data/criu-3.15/test/others/unix-callback/unix-client.c:55:8:  [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.
	ret = sprintf(buf, "t%d", val);
data/criu-3.15/test/others/unix-callback/unix-client.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/criu-3.15/test/others/unix-callback/unix-client.c:83:6:  [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).
	if (atoi(buf) != val)
data/criu-3.15/test/others/unix-callback/unix-client.c:99: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("pid", O_WRONLY | O_CREAT, 0666);
data/criu-3.15/test/others/unix-callback/unix-lib.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/criu-3.15/test/others/unix-callback/unix-lib.c:95:7:  [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).
	id = atoi(addr.sun_path + strlen(SK_NAME));
data/criu-3.15/test/others/unix-callback/unix-lib.c:97:8:  [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.
	ret = sprintf(buf, "d%d", id) + 1;
data/criu-3.15/test/others/unix-callback/unix-lib.c:108:10:  [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).
	e.val = atoi(buf);
data/criu-3.15/test/others/unix-callback/unix-lib.c:136:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/criu-3.15/test/others/unix-callback/unix-lib.c:162:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(addr.sun_path, e->name.data, e->name.len);
data/criu-3.15/test/others/unix-callback/unix-lib.c:180:8:  [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.
	ret = sprintf(buf, "t%d", e->val);
data/criu-3.15/test/others/unix-callback/unix-server.c:25:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/criu-3.15/test/others/unix-callback/unix-server.c:62: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.
			ret = sprintf(buf, "%ld", st.st_ino);
data/criu-3.15/test/others/unix-callback/unix-server.c:75:13:  [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).
			t->val = atoi(buf + 1);
data/criu-3.15/test/others/unix-callback/unix-server.c:77:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			t->id = atoi(addr.sun_path +strlen(SK_NAME));
data/criu-3.15/test/others/unix-callback/unix-server.c:82: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).
			id = atoi(buf + 1);
data/criu-3.15/test/others/unix-callback/unix-server.c:85:10:  [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).
				id = atoi(addr.sun_path + strlen(SK_NAME));
data/criu-3.15/test/others/unix-callback/unix-server.c:92: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.
			ret = sprintf(buf, "%d", t->val);
data/criu-3.15/test/zdtm/lib/bpfmap_zdtm.c:6: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 str[512];
data/criu-3.15/test/zdtm/lib/bpfmap_zdtm.c:9: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, "/proc/self/fdinfo/%d", fd);
data/criu-3.15/test/zdtm/lib/bpfmap_zdtm.c:10:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(str, "r");
data/criu-3.15/test/zdtm/lib/datagen.c:27: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(buffer + off, buffer, size);
data/criu-3.15/test/zdtm/lib/fs.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 str[1024], *cwd;
data/criu-3.15/test/zdtm/lib/fs.c:37: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 mountpoint[PATH_MAX];
data/criu-3.15/test/zdtm/lib/fs.c:38: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 root[PATH_MAX];
data/criu-3.15/test/zdtm/lib/fs.c:43:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/proc/self/mountinfo", "r");
data/criu-3.15/test/zdtm/lib/fs.h:44: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			root[PATH_MAX];
data/criu-3.15/test/zdtm/lib/fs.h:45: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			mountpoint[PATH_MAX];
data/criu-3.15/test/zdtm/lib/fs.h: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			fsname[64];
data/criu-3.15/test/zdtm/lib/groups.c:14:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sh[1024];
data/criu-3.15/test/zdtm/lib/msg.c:16:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/lib/msg.c:20:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	logfd = open(path, O_WRONLY | O_EXCL | O_CREAT | O_APPEND, 0644);
data/criu-3.15/test/zdtm/lib/msg.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 buf[TEST_MSG_BUFFER_SIZE];
data/criu-3.15/test/zdtm/lib/msg.c:59: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.
	off += sprintf(buf + off, ".%.3ld: ", tv.tv_usec / 1000);
data/criu-3.15/test/zdtm/lib/msg.c:60: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.
	off += sprintf(buf + off, "%5d: ", getpid());
data/criu-3.15/test/zdtm/lib/ns.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 path[PATH_MAX];
data/criu-3.15/test/zdtm/lib/ns.c:70: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).
	dfd = open(path, O_RDONLY | O_DIRECTORY);
data/criu-3.15/test/zdtm/lib/ns.c:166: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 stack[NS_STACK_SIZE] __stack_aligned__;
data/criu-3.15/test/zdtm/lib/ns.c:167: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 stack_ptr[0];
data/criu-3.15/test/zdtm/lib/ns.c:177:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128] = "";
data/criu-3.15/test/zdtm/lib/ns.c:219:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/criu-3.15/test/zdtm/lib/ns.c:226: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/timens_offsets", O_WRONLY);
data/criu-3.15/test/zdtm/lib/ns.c:249:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[4096];
data/criu-3.15/test/zdtm/lib/ns.c:294: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/ns/time_for_children", O_RDONLY);
data/criu-3.15/test/zdtm/lib/ns.c:311:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128], *x;
data/criu-3.15/test/zdtm/lib/ns.c:390: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(pidfile, O_RDONLY);
data/criu-3.15/test/zdtm/lib/ns.c:402:8:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	pid = atoi(buf);
data/criu-3.15/test/zdtm/lib/ns.c:467: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 pname[PATH_MAX];
data/criu-3.15/test/zdtm/lib/ns.c:471: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(pname, O_WRONLY);
data/criu-3.15/test/zdtm/lib/ns.c:483: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(pname, O_WRONLY);
data/criu-3.15/test/zdtm/lib/sysctl.c:10:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[16];
data/criu-3.15/test/zdtm/lib/sysctl.c:12: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(name, O_RDONLY);
data/criu-3.15/test/zdtm/lib/sysctl.c:38: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[16];
data/criu-3.15/test/zdtm/lib/sysctl.c:40: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(name, O_WRONLY);
data/criu-3.15/test/zdtm/lib/sysctl.c:46: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, "%d\n", val);
data/criu-3.15/test/zdtm/lib/test.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 path[PATH_MAX];
data/criu-3.15/test/zdtm/lib/test.c:82: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).
	cwd = open(".", O_RDONLY);
data/criu-3.15/test/zdtm/lib/test.c:100: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).
	nullfd = open("/dev/null", O_RDWR);
data/criu-3.15/test/zdtm/lib/test.c:130:19:  [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).
	criu_status_in = atoi(val);
data/criu-3.15/test/zdtm/lib/test.c:135:20:  [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).
	criu_status_out = atoi(val);
data/criu-3.15/test/zdtm/lib/test.c:180:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(tmp);
data/criu-3.15/test/zdtm/lib/test.c:249:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			groups[size - 1] = atoi(tok);
data/criu-3.15/test/zdtm/lib/test.c:260:21:  [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).
	if (val && (setgid(atoi(val)) == -1)) {
data/criu-3.15/test/zdtm/lib/test.c:266:21:  [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).
	if (val && (setuid(atoi(val)) == -1)) {
data/criu-3.15/test/zdtm/static/aio01.c:38: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[1];
data/criu-3.15/test/zdtm/static/aio01.c:49: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/null", O_WRONLY);
data/criu-3.15/test/zdtm/static/apparmor.c:20: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 profile[1024];
data/criu-3.15/test/zdtm/static/apparmor.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("/proc/self/attr/current", O_WRONLY);
data/criu-3.15/test/zdtm/static/apparmor.c:51:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX], profile[1024];
data/criu-3.15/test/zdtm/static/apparmor.c:54: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(path, "/proc/self/attr/current");
data/criu-3.15/test/zdtm/static/apparmor.c:56:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(path, "r");
data/criu-3.15/test/zdtm/static/auto_dev-ioctl.h:118: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/criu-3.15/test/zdtm/static/autofs.c:126:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	p->fd = open(path, O_CREAT | O_EXCL, 0600);
data/criu-3.15/test/zdtm/static/autofs.c:148:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	p->fd = open(path, O_CREAT | O_EXCL, 0600);
data/criu-3.15/test/zdtm/static/autofs.c:303: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(AUTOFS_DEV, O_RDONLY);
data/criu-3.15/test/zdtm/static/autofs.c:678:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	p->fd = open(path, O_CREAT | O_EXCL, 0600);
data/criu-3.15/test/zdtm/static/bind-mount.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 test_dir[PATH_MAX], test_bind[PATH_MAX];
data/criu-3.15/test/zdtm/static/bind-mount.c:20: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 test_file[PATH_MAX], test_bind_file[PATH_MAX];
data/criu-3.15/test/zdtm/static/bind-mount.c:43: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(test_file, O_CREAT | O_WRONLY | O_EXCL, 0600);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:25:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char NAME[2][PATH_MAX];
data/criu-3.15/test/zdtm/static/binfmt_misc.c:41: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.
		buf += sprintf(buf, "\\x%02x", rand() % 256);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:46: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.
		buf += sprintf(buf, "\\x%02x", rand() % 256);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:48: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, ":/bin/interpreter:OCP");
data/criu-3.15/test/zdtm/static/binfmt_misc.c:63: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.
		buf += sprintf(buf, "%c", c);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:66: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, "::/bin/bash:");
data/criu-3.15/test/zdtm/static/binfmt_misc.c:80:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:100: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[MAX_REG_STR + 1];
data/criu-3.15/test/zdtm/static/binfmt_misc.c:101:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX*2 + 1];
data/criu-3.15/test/zdtm/static/binfmt_misc.c:102:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *dump[2];
data/criu-3.15/test/zdtm/static/binfmt_misc.c:122:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_WRONLY);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:147:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_WRONLY);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:185: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(path, O_WRONLY);
data/criu-3.15/test/zdtm/static/caps00.c:46:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/proc/sys/kernel/cap_last_cap", "r");
data/criu-3.15/test/zdtm/static/cgroup00.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 paux[256];
data/criu-3.15/test/zdtm/static/cgroup00.c:29:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cgfd = open(paux, O_WRONLY);
data/criu-3.15/test/zdtm/static/cgroup00.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char paux[256], aux[128];
data/criu-3.15/test/zdtm/static/cgroup00.c:52:8:  [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).
	cgf = fopen("/proc/self/cgroup", "r");
data/criu-3.15/test/zdtm/static/cgroup00.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char aux[64];
data/criu-3.15/test/zdtm/static/cgroup01.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 aux[1024], paux[1024];
data/criu-3.15/test/zdtm/static/cgroup01.c:41:6:  [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.
	l = sprintf(aux, "%d", getpid());
data/criu-3.15/test/zdtm/static/cgroup01.c:44:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cgfd = open(paux, O_WRONLY);
data/criu-3.15/test/zdtm/static/cgroup01.c:69:8:  [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).
	cgf = fopen("/proc/self/mountinfo", "r");
data/criu-3.15/test/zdtm/static/cgroup02.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 aux[1024], paux[1024], subdir[1024];
data/criu-3.15/test/zdtm/static/cgroup02.c:48:6:  [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.
	l = sprintf(aux, "%d", getpid());
data/criu-3.15/test/zdtm/static/cgroup02.c:51:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cgfd = open(paux, O_WRONLY);
data/criu-3.15/test/zdtm/static/cgroup02.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char aux[1024], paux[1024];
data/criu-3.15/test/zdtm/static/cgroup02.c:97:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char paux[1024];
data/criu-3.15/test/zdtm/static/cgroup02.c:113: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(paux, O_DIRECTORY);
data/criu-3.15/test/zdtm/static/cgroup02.c:130:8:  [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).
	cgf = fopen("/proc/self/mountinfo", "r");
data/criu-3.15/test/zdtm/static/cgroup03.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 aux[1024], paux[1024], subdir[1024];
data/criu-3.15/test/zdtm/static/cgroup03.c:44:6:  [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.
	l = sprintf(aux, "%d", getpid());
data/criu-3.15/test/zdtm/static/cgroup03.c:47:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cgfd = open(paux, O_WRONLY);
data/criu-3.15/test/zdtm/static/cgroup03.c:73:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, flags);
data/criu-3.15/test/zdtm/static/cgroup03.c:125:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/cgroup04.c:26:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_WRONLY);
data/criu-3.15/test/zdtm/static/cgroup04.c:44: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 aux[1024], paux[1024], subdir[1024];
data/criu-3.15/test/zdtm/static/cgroup04.c:69: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(aux, "%d", getpid());
data/criu-3.15/test/zdtm/static/cgroup04.c:87: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[1024];
data/criu-3.15/test/zdtm/static/cgroup04.c:90:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/criu-3.15/test/zdtm/static/cgroup04.c:115: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[1024], path[PATH_MAX];
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mnt_point[BUF_SZ], subdir[BUF_SZ];
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char tasks_path[BUF_SZ], pid_str[BUF_SZ];
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:38: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(pid_str, "%d", getpid());
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:59:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(tasks_path, O_WRONLY);
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char mnt_point[BUF_SZ], subdir[BUF_SZ];
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_SZ];
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:125:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fpriomap = fopen(path, "r");
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:151: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[BUF_SZ];
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:156:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_WRONLY);
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:276:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *self_cgroup = fopen("/proc/self/cgroup", "r");
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:316: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 subdir[PATH_MAX];
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:317:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/cgroup_stray.c:25: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 aux[1024], subdir[1024];
data/criu-3.15/test/zdtm/static/cgroup_stray.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char aux[1024], paux[1024], subdir[1024];
data/criu-3.15/test/zdtm/static/cgroup_stray.c:59:6:  [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.
	l = sprintf(aux, "%d", getpid());
data/criu-3.15/test/zdtm/static/cgroup_stray.c:62:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cgfd = open(paux, O_WRONLY);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:80: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[2048];
data/criu-3.15/test/zdtm/static/cgroup_stray.c:84: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, "/proc/%d/cgroup", pid);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:85:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(buf, "r");
data/criu-3.15/test/zdtm/static/cgroup_stray.c:136:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX], c;
data/criu-3.15/test/zdtm/static/cgroupns.c:29: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 aux[1024], paux[1024], subdir[1024];
data/criu-3.15/test/zdtm/static/cgroupns.c:55:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	cgfd = open(paux, O_WRONLY);
data/criu-3.15/test/zdtm/static/cgroupns.c:78: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[2048];
data/criu-3.15/test/zdtm/static/cgroupns.c:82: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, "/proc/%d/cgroup", pid);
data/criu-3.15/test/zdtm/static/cgroupns.c:83:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(buf, "r");
data/criu-3.15/test/zdtm/static/cgroupns.c:133:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/cgroupns.c:169: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(path, "/proc/%d/ns/cgroup", 1);
data/criu-3.15/test/zdtm/static/cgroupns.c:170: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(path, O_RDONLY);
data/criu-3.15/test/zdtm/static/child_opened_proc.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 name[64];
data/criu-3.15/test/zdtm/static/child_opened_proc.c:34: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(name, "/proc/%d/stat", pid);
data/criu-3.15/test/zdtm/static/child_opened_proc.c:35: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).
	proc_fd = open(name, O_RDONLY);
data/criu-3.15/test/zdtm/static/chroot-file.c:25: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(name, O_RDWR | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/chroot-file.c:37: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 r[sizeof(MSG)];
data/criu-3.15/test/zdtm/static/chroot-file.c:153: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).
	fd2 = open(filename, O_RDWR);
data/criu-3.15/test/zdtm/static/chroot.c:26: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(name, O_RDWR | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/chroot.c:38: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 r[sizeof(MSG)];
data/criu-3.15/test/zdtm/static/chroot.c:150: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).
	fd2 = open(filepath, O_RDWR);
data/criu-3.15/test/zdtm/static/cmdlinenv00.c:27:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/criu-3.15/test/zdtm/static/cmdlinenv00.c:72: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 cmdline_orig[4096];
data/criu-3.15/test/zdtm/static/cmdlinenv00.c:73: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 cmdline[4096];
data/criu-3.15/test/zdtm/static/cmdlinenv00.c:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char env_orig[4096];
data/criu-3.15/test/zdtm/static/cmdlinenv00.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char env[4096];
data/criu-3.15/test/zdtm/static/cmdlinenv00.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 auxv_orig[1024];
data/criu-3.15/test/zdtm/static/cmdlinenv00.c:77: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 auxv[1024];
data/criu-3.15/test/zdtm/static/config_inotify_irmap.c:27:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char test_files[2][128] = {TDIR"/zdtm-test", TDIR"/zdtm-test1",};
data/criu-3.15/test/zdtm/static/config_inotify_irmap.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 buf[BUFF_SIZE];
data/criu-3.15/test/zdtm/static/config_inotify_irmap.c:60:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	configfile = fopen(CONFIG_PATH, "w");
data/criu-3.15/test/zdtm/static/config_inotify_irmap.c:73: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).
		wd = open(test_files[i], O_RDONLY);
data/criu-3.15/test/zdtm/static/console.c:31:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/criu-3.15/test/zdtm/static/cow00.c:18:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/criu-3.15/test/zdtm/static/cow00.c:24: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).
	fd1 = open(buf, O_RDONLY);
data/criu-3.15/test/zdtm/static/cow00.c:31: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).
	fd2 = open(buf, O_RDONLY);
data/criu-3.15/test/zdtm/static/cow01.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[PATH_MAX];
data/criu-3.15/test/zdtm/static/cow01.c:86: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).
	fd_child = open(buf, O_RDONLY);
data/criu-3.15/test/zdtm/static/cow01.c:93:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_parent = open(buf, O_RDONLY);
data/criu-3.15/test/zdtm/static/cow01.c:372:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_TRUNC | O_CREAT | O_RDWR, 0600);
data/criu-3.15/test/zdtm/static/criu-rtc.c:23: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 img_path[PATH_MAX];
data/criu-3.15/test/zdtm/static/criu-rtc.c:24: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 buf[4096];
data/criu-3.15/test/zdtm/static/criu-rtc.c:77: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 buf[4096];
data/criu-3.15/test/zdtm/static/criu-rtc.c:78: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 img_path[PATH_MAX];
data/criu-3.15/test/zdtm/static/criu-rtc.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("/dev/rtc", O_RDWR);
data/criu-3.15/test/zdtm/static/cwd00.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 cwd1[256], cwd2[256];
data/criu-3.15/test/zdtm/static/cwd00.c:24: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(".", O_DIRECTORY | O_RDONLY);
data/criu-3.15/test/zdtm/static/cwd01.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 cwd1[PATH_MAX], cwd2[PATH_MAX];
data/criu-3.15/test/zdtm/static/cwd01.c:36: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(".", O_DIRECTORY | O_RDONLY);
data/criu-3.15/test/zdtm/static/cwd02.c:33: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).
	cwd = open(".", O_DIRECTORY | O_RDONLY);
data/criu-3.15/test/zdtm/static/cwd02.c:44: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).
	if ((fd = open(dirname, O_DIRECTORY)) < 0) {
data/criu-3.15/test/zdtm/static/del_standalone_un.c:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char filename[PATH_MAX], temp[PATH_MAX];
data/criu-3.15/test/zdtm/static/deleted_dev.c:33:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR);
data/criu-3.15/test/zdtm/static/dumpable02.c:17: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];
data/criu-3.15/test/zdtm/static/dumpable02.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[256];
data/criu-3.15/test/zdtm/static/fanotify00.c:51: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		fhandle[512];
data/criu-3.15/test/zdtm/static/fanotify00.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 str[512];
data/criu-3.15/test/zdtm/static/fanotify00.c:159: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, "/proc/self/fdinfo/%d", fd);
data/criu-3.15/test/zdtm/static/fanotify00.c:160:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(str, "r");
data/criu-3.15/test/zdtm/static/fanotify00.c:219: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[BUFF_SIZE];
data/criu-3.15/test/zdtm/static/fanotify00.c:242:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	del_after = open(fanotify_path, O_CREAT | O_TRUNC);
data/criu-3.15/test/zdtm/static/fanotify00.c:280: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("/", O_RDONLY);
data/criu-3.15/test/zdtm/static/fanotify00.c:283: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(fanotify_path, O_RDWR);
data/criu-3.15/test/zdtm/static/fd.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 pfd[PATH_MAX];
data/criu-3.15/test/zdtm/static/fd.c:52: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).
			fd = atoi(de->d_name);
data/criu-3.15/test/zdtm/static/fd01.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 buf[16];
data/criu-3.15/test/zdtm/static/fd01.c:38:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/proc/sys/fs/nr_open", O_RDONLY);
data/criu-3.15/test/zdtm/static/fd01.c:51:25:  [2] (integer) atol:
  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).
	max_nr = (unsigned int)atol(buf);
data/criu-3.15/test/zdtm/static/fd01.c:73:14:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
		FILE *fp = tmpfile();
data/criu-3.15/test/zdtm/static/fdt_shared.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char stack[STACK_SIZE] __stack_aligned__;
data/criu-3.15/test/zdtm/static/fdt_shared.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[sizeof(TEST_STRING)];
data/criu-3.15/test/zdtm/static/fdt_shared.c:93: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[sizeof(TEST_STRING)];
data/criu-3.15/test/zdtm/static/fdt_shared.c:163:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/fifo-ghost.c:31:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR);
data/criu-3.15/test/zdtm/static/fifo-ghost.c:37:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_ro = open(filename, O_RDONLY);
data/criu-3.15/test/zdtm/static/fifo-rowo-pair.c:55: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).
	fd_slave = open(name_slave, O_RDWR);
data/criu-3.15/test/zdtm/static/fifo-rowo-pair.c:67: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).
		fd_master = open(name_master, O_WRONLY);
data/criu-3.15/test/zdtm/static/fifo-rowo-pair.c:104:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_master = open(name_master, O_RDONLY);
data/criu-3.15/test/zdtm/static/fifo.c:34:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR);
data/criu-3.15/test/zdtm/static/fifo_ro.c:34:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR);
data/criu-3.15/test/zdtm/static/fifo_ro.c:40:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_ro = open(filename, O_RDONLY);
data/criu-3.15/test/zdtm/static/fifo_wronly.c:44: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 rbuf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/fifo_wronly.c:46:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd1 = open(filename, O_RDONLY);
data/criu-3.15/test/zdtm/static/fifo_wronly.c:70: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_WRONLY);
data/criu-3.15/test/zdtm/static/file_append.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 tmp[3];
data/criu-3.15/test/zdtm/static/file_append.c:25:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT | O_APPEND, 0644);
data/criu-3.15/test/zdtm/static/file_append.c:29: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).
	fd2 = open(filename, O_RDWR, 0644);
data/criu-3.15/test/zdtm/static/file_attr.c:39:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/file_cloexec.c:36: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).
	fd1 = open("/", O_RDONLY | O_CLOEXEC);
data/criu-3.15/test/zdtm/static/file_cloexec.c:40: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).
	fd2 = open("/", O_RDONLY);
data/criu-3.15/test/zdtm/static/file_lease00.c:12:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char filename_rd[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_lease00.c:13:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char filename_wr[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_lease00.c:28:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	*fd_rd = open(filename_rd, O_RDONLY | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/file_lease00.c:29:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	*fd_wr = open(filename_wr, O_WRONLY | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/file_lease01.c:32: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).
		fds[i] = open(filename, O_RDONLY | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/file_lease02.c:17:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char filename1[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_lease02.c:18:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char filename2[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_lease02.c:19:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char filename3[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_lease02.c:55:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(file, file_type | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/file_lease02.c:70: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).
	fd_break = open(file, break_type | O_NONBLOCK);
data/criu-3.15/test/zdtm/static/file_lease03.c:50: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(file, file_type | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/file_lease03.c:65: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).
	fd_break = open(file, break_type | O_NONBLOCK);
data/criu-3.15/test/zdtm/static/file_lease04.c:50: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(file, file_type | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/file_lease04.c:65: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).
	fd_break = open(file, break_type | O_NONBLOCK);
data/criu-3.15/test/zdtm/static/file_locks00.c:19:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char file0[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_locks00.c:20:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char file1[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_locks00.c:109:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_0 = open(file0, O_RDWR | O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/file_locks00.c:116:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_1 = open(file1, O_RDWR | O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/file_locks00.c:140:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_0 = open(file0, O_RDWR | O_CREAT | O_EXCL, 0666);
data/criu-3.15/test/zdtm/static/file_locks00.c:146:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_1 = open(file1, O_RDWR | O_CREAT | O_EXCL, 0666);
data/criu-3.15/test/zdtm/static/file_locks01.c:27:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char file0[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_locks01.c:28:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char file1[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_locks01.c:29:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char file2[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_locks01.c:41:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	*fd_0 = open(file0, O_RDWR | O_CREAT | O_EXCL, 0666);
data/criu-3.15/test/zdtm/static/file_locks01.c:55:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	*fd_1 = open(file1, O_RDWR | O_CREAT | O_EXCL, 0666);
data/criu-3.15/test/zdtm/static/file_locks01.c:66:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	*fd_2 = open(file2, O_RDWR | O_CREAT | O_EXCL, 0666);
data/criu-3.15/test/zdtm/static/file_locks01.c:86:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100], fl_flag[16], fl_type[16], fl_option[16];
data/criu-3.15/test/zdtm/static/file_locks01.c:89:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_locks01.c:97:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp_locks = fopen(path, "r");
data/criu-3.15/test/zdtm/static/file_locks02.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 buf[100], fl_flag[16], fl_type[16], fl_option[16];
data/criu-3.15/test/zdtm/static/file_locks02.c:24:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_locks02.c:30:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp_locks = fopen(path, "r");
data/criu-3.15/test/zdtm/static/file_locks02.c:74:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_CREAT | O_RDWR, 0600);
data/criu-3.15/test/zdtm/static/file_locks03.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 buf[100], fl_flag[16], fl_type[16], fl_option[16];
data/criu-3.15/test/zdtm/static/file_locks03.c:24:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_locks03.c:30:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp_locks = fopen(path, "r");
data/criu-3.15/test/zdtm/static/file_locks03.c:76:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_CREAT | O_RDWR, 0600);
data/criu-3.15/test/zdtm/static/file_locks04.c:20:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char		path[PATH_MAX];
data/criu-3.15/test/zdtm/static/file_locks04.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		buf[100], fl_flag[16], fl_type[16], fl_option[16];
data/criu-3.15/test/zdtm/static/file_locks04.c:25: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(path, "/proc/%d/fdinfo/%d", child_pid, child_fd);
data/criu-3.15/test/zdtm/static/file_locks04.c:26:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fp_locks = fopen(path, "r");
data/criu-3.15/test/zdtm/static/file_locks04.c:75:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = child_fd = open(filename, O_CREAT | O_RDWR, 0600);
data/criu-3.15/test/zdtm/static/file_locks04.c:91:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/criu-3.15/test/zdtm/static/file_locks05.c:23:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_CREAT | O_RDWR, 0600);
data/criu-3.15/test/zdtm/static/file_locks05.c:29: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).
	fd2 = open(filename, O_RDWR);
data/criu-3.15/test/zdtm/static/file_locks06.c:17: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_RDWR | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/file_locks07.c:39: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).
		fds[i] = open(filename, O_RDWR | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/file_locks08.c:19: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_RDWR | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/file_shared.c:27:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/file_shared.c:35: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).
	fd3 = open(filename, O_RDWR | O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/fpu01.c:38:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 __aligned unsigned char ymm1[32 + 1] = "code9Ee5sohphie1ae1kaeMahngoh5oe";
data/criu-3.15/test/zdtm/static/fpu01.c:39:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 __aligned unsigned char ymm2[32 + 1] = "Tacuthahhien9Fi7aGhaa5toGh6vi7Ch";
data/criu-3.15/test/zdtm/static/fpu01.c:41:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 __aligned unsigned char ymm3[32 + 1];
data/criu-3.15/test/zdtm/static/fpu01.c:42:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 __aligned unsigned char ymm4[32 + 1];
data/criu-3.15/test/zdtm/static/get_smaps_bits.c:97:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/criu-3.15/test/zdtm/static/get_smaps_bits.c:103:10:  [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).
	smaps = fopen("/proc/self/smaps", "r");
data/criu-3.15/test/zdtm/static/ghost_holes00.c:20:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char buf4k[BUFSIZE];
data/criu-3.15/test/zdtm/static/ghost_holes00.c:55:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/ghost_on_rofs.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 ro_mount[PATH_MAX], ro_bind_mount[PATH_MAX];
data/criu-3.15/test/zdtm/static/ghost_on_rofs.c:20: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 ghost_file[PATH_MAX], ghost_file_bind[PATH_MAX];
data/criu-3.15/test/zdtm/static/ghost_on_rofs.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 buf[sizeof(GHOST_DATA)];
data/criu-3.15/test/zdtm/static/ghost_on_rofs.c:73: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(ghost_file, O_CREAT|O_WRONLY, 0600);
data/criu-3.15/test/zdtm/static/ghost_on_rofs.c:85:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_bind = open(ghost_file_bind, O_CREAT|O_WRONLY, 0600);
data/criu-3.15/test/zdtm/static/ghost_on_rofs.c:99: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(ghost_file, O_RDONLY);
data/criu-3.15/test/zdtm/static/ghost_on_rofs.c:105:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_bind = open(ghost_file_bind, O_RDONLY);
data/criu-3.15/test/zdtm/static/inotify00.c:34:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char *names[32] = {
data/criu-3.15/test/zdtm/static/inotify00.c:77: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[BUFF_SIZE * 8];
data/criu-3.15/test/zdtm/static/inotify00.c:94:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char emask[128];
data/criu-3.15/test/zdtm/static/inotify00.c:113: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 test_file_path[PATH_MAX];
data/criu-3.15/test/zdtm/static/inotify00.c:128:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[PATH_MAX];
data/criu-3.15/test/zdtm/static/inotify00.c:155: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(dirname, O_RDONLY);
data/criu-3.15/test/zdtm/static/inotify00.c:180: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).
	real_fd = open(test_file_path, O_CREAT | O_TRUNC | O_RDWR, 0644);
data/criu-3.15/test/zdtm/static/inotify00.c:211: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 emask_bits[128];
data/criu-3.15/test/zdtm/static/inotify00.c:227: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 emask_bits[128];
data/criu-3.15/test/zdtm/static/inotify00.c:235: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).
	real_fd = open(test_file_path, O_CREAT | O_TRUNC | O_RDWR, 0644);
data/criu-3.15/test/zdtm/static/inotify00.c:245: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 emask_bits[128];
data/criu-3.15/test/zdtm/static/inotify02.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[64];
data/criu-3.15/test/zdtm/static/inotify02.c:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512];
data/criu-3.15/test/zdtm/static/inotify02.c:35:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(path, "r");
data/criu-3.15/test/zdtm/static/inotify02.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char temp[nr_dirs][16];
data/criu-3.15/test/zdtm/static/inotify02.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 path[PATH_MAX];
data/criu-3.15/test/zdtm/static/inotify04.c:24: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[BUFF_SIZE * 8];
data/criu-3.15/test/zdtm/static/inotify04.c:55:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char test_file_path[PATH_MAX];
data/criu-3.15/test/zdtm/static/inotify04.c:68: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(test_file_path, O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/inotify_irmap.c:21:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char test_files[2][128] = {TDIR"/zdtm-test", TDIR"/zdtm-test1"};
data/criu-3.15/test/zdtm/static/inotify_irmap.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 buf[BUFF_SIZE];
data/criu-3.15/test/zdtm/static/inotify_irmap.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).
		wd = open(test_files[i], O_RDONLY);
data/criu-3.15/test/zdtm/static/inotify_system.c:78:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path,O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/inotify_system.c:112:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(path, O_RDWR | O_CREAT, 0700);
data/criu-3.15/test/zdtm/static/inotify_system.c:130: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[BUF_SIZE];
data/criu-3.15/test/zdtm/static/inotify_system.c:131:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int fd = open(path, O_RDONLY);
data/criu-3.15/test/zdtm/static/inotify_system.c:317:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link_path[BUF_SIZE];
data/criu-3.15/test/zdtm/static/inotify_system.c:318:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char file_path[BUF_SIZE];
data/criu-3.15/test/zdtm/static/inotify_system.c:369: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 etalon_event_set[EVENT_BUF_LEN];
data/criu-3.15/test/zdtm/static/inotify_system.c:370: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_set[EVENT_BUF_LEN];
data/criu-3.15/test/zdtm/static/ipc_namespace.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 buf[32];
data/criu-3.15/test/zdtm/static/ipc_namespace.c:78: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(name, O_RDONLY);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:224: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[32];
data/criu-3.15/test/zdtm/static/ipc_namespace.c:226: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(name, O_WRONLY);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:231: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, "%d\n", val);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:247:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[128];
data/criu-3.15/test/zdtm/static/ipc_namespace.c:250: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(name, O_WRONLY);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:255: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, "%d %d %d %d\n", (unsigned) lrand48(), (unsigned) lrand48(),
data/criu-3.15/test/zdtm/static/jobctl00.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char str[sizeof(rd_string) + 1];
data/criu-3.15/test/zdtm/static/jobctl00.c:91: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 str[sizeof(wr_string) + 1];
data/criu-3.15/test/zdtm/static/link10.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 filename2[256];
data/criu-3.15/test/zdtm/static/link10.c:32:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_EXCL, 0644);
data/criu-3.15/test/zdtm/static/link10.c:43: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).
	fd2 = open(filename2, O_RDONLY);
data/criu-3.15/test/zdtm/static/loginuid.c:23: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/criu-3.15/test/zdtm/static/loginuid.c:26:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/criu-3.15/test/zdtm/static/loginuid.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[11];
data/criu-3.15/test/zdtm/static/loginuid.c:52:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR);
data/criu-3.15/test/zdtm/static/maps00.c:58: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[256];
data/criu-3.15/test/zdtm/static/maps00.c:84: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).
		map->fd = open(map->filename, O_RDWR | O_CREAT, 0600);
data/criu-3.15/test/zdtm/static/maps00.c:176:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(map->ptr,test_func, getpagesize());
data/criu-3.15/test/zdtm/static/maps01.c:25:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/maps01.c:128:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR);
data/criu-3.15/test/zdtm/static/maps06.c:22:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/maps_file_prot.c:25:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/memfd00.c:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[5];
data/criu-3.15/test/zdtm/static/memfd01.c:47:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char fdpath[100];
data/criu-3.15/test/zdtm/static/memfd01.c:48:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1];
data/criu-3.15/test/zdtm/static/memfd01.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(fdpath, O_RDONLY | O_LARGEFILE);
data/criu-3.15/test/zdtm/static/memfd02.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[LEN];
data/criu-3.15/test/zdtm/static/memfd02.c:60:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(addr_shared, "write2");
data/criu-3.15/test/zdtm/static/memfd02.c:77:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(addr_private, "write3");
data/criu-3.15/test/zdtm/static/memfd03.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fdpath[100];
data/criu-3.15/test/zdtm/static/memfd03.c:70: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).
	fd2 = open(fdpath, O_RDWR);
data/criu-3.15/test/zdtm/static/mmx00.c:76: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((uint8_t *) bytes, (uint8_t *) rnd, sizeof(bytes));
data/criu-3.15/test/zdtm/static/mmx00.c:77: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((uint8_t *) words, (uint8_t *) rnd + sizeof(bytes), sizeof(words));
data/criu-3.15/test/zdtm/static/mnt_enablefs.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 fname[PATH_MAX];
data/criu-3.15/test/zdtm/static/mnt_ext_auto.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 src[PATH_MAX], dst[PATH_MAX], *root;
data/criu-3.15/test/zdtm/static/mnt_ext_auto.c:36: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 dst_bind[PATH_MAX], dst_private_shared_bind[PATH_MAX],
data/criu-3.15/test/zdtm/static/mnt_ext_dev.c:24: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 dname[PATH_MAX], dname2[PATH_MAX];
data/criu-3.15/test/zdtm/static/mnt_ext_dev.c:43: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).
	dfd = open(dirname, O_RDONLY);
data/criu-3.15/test/zdtm/static/mnt_ext_master.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 src[PATH_MAX], dst[PATH_MAX], *root;
data/criu-3.15/test/zdtm/static/mnt_ro_bind.c:24: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 rw_path[PATH_MAX], ro_path[PATH_MAX], rw_f[PATH_MAX], ro_f[PATH_MAX];
data/criu-3.15/test/zdtm/static/mnt_ro_bind.c:59:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(ro_f, O_CREAT | O_WRONLY, 0666);
data/criu-3.15/test/zdtm/static/mnt_ro_bind.c:65: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(rw_f, O_CREAT | O_WRONLY, 0666);
data/criu-3.15/test/zdtm/static/mnt_ro_bind.c:72: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(ro_f, O_RDONLY);
data/criu-3.15/test/zdtm/static/mnt_tracefs.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 dst[PATH_MAX];
data/criu-3.15/test/zdtm/static/mnt_tracefs.c:44:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(dst, "/tracing/README");
data/criu-3.15/test/zdtm/static/mntns_deleted.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 path_src[PATH_MAX], path_dst[PATH_MAX];
data/criu-3.15/test/zdtm/static/mntns_deleted.c:65:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd1 = open(TEST_FILE_SRC, O_WRONLY | O_CREAT | O_TRUNC, 0600) < 0)) {
data/criu-3.15/test/zdtm/static/mntns_deleted.c:71:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fd2 = open(TEST_FILE_DST, O_WRONLY | O_CREAT | O_TRUNC, 0600) < 0)) {
data/criu-3.15/test/zdtm/static/mntns_ghost.c:66: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("test.ghost", O_CREAT | O_WRONLY, 0600);
data/criu-3.15/test/zdtm/static/mntns_ghost01.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 ghost_path[PATH_MAX];
data/criu-3.15/test/zdtm/static/mntns_ghost01.c:37: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).
	pfd = open(ghost_path, O_CREAT | O_WRONLY, 0600);
data/criu-3.15/test/zdtm/static/mntns_ghost01.c:44: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).
	pfd = open(ghost_path, O_RDONLY);
data/criu-3.15/test/zdtm/static/mntns_ghost01.c:79: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(ghost_path, O_RDONLY);
data/criu-3.15/test/zdtm/static/mntns_link_remap.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 stack[NS_STACK_SIZE] __stack_aligned__;
data/criu-3.15/test/zdtm/static/mntns_link_remap.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char stack_ptr[0];
data/criu-3.15/test/zdtm/static/mntns_link_remap.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 str[256];
data/criu-3.15/test/zdtm/static/mntns_link_remap.c:47:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(str, "r");
data/criu-3.15/test/zdtm/static/mntns_link_remap.c:67: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 lpath[PATH_MAX], fpath[PATH_MAX];
data/criu-3.15/test/zdtm/static/mntns_link_remap.c:95: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).
	fd2 = open(fpath, O_RDWR);
data/criu-3.15/test/zdtm/static/mntns_link_remap.c:135: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 lpath[PATH_MAX], fpath[PATH_MAX];
data/criu-3.15/test/zdtm/static/mntns_link_remap.c:136:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/criu-3.15/test/zdtm/static/mntns_link_remap.c:189: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).
		args.fd = open(fpath, O_CREAT | O_RDWR, 0600);
data/criu-3.15/test/zdtm/static/mntns_open.c:26:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char fpath[PATH_MAX];
data/criu-3.15/test/zdtm/static/mntns_open.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 stack[NS_STACK_SIZE] __stack_aligned__;
data/criu-3.15/test/zdtm/static/mntns_open.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char stack_ptr[0];
data/criu-3.15/test/zdtm/static/mntns_open.c: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 str[256];
data/criu-3.15/test/zdtm/static/mntns_open.c:46:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(str, "r");
data/criu-3.15/test/zdtm/static/mntns_open.c:68: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).
	fd2 = open(fpath, O_RDWR);
data/criu-3.15/test/zdtm/static/mntns_open.c:101: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).
		args.fd = open(fpath, O_CREAT | O_RDWR, 0600);
data/criu-3.15/test/zdtm/static/mntns_overmount.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 d1[PATH_MAX], d2[PATH_MAX], f1[PATH_MAX], f2[PATH_MAX];
data/criu-3.15/test/zdtm/static/mntns_root_bind.c:29: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 subdir1[PATH_MAX], path[PATH_MAX], bpath[PATH_MAX], spath[PATH_MAX], bspath[PATH_MAX];
data/criu-3.15/test/zdtm/static/mntns_root_bind.c:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char subdir2[PATH_MAX], bsubdir2[PATH_MAX];
data/criu-3.15/test/zdtm/static/mntns_shared_bind.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX], bpath[PATH_MAX], spath[PATH_MAX];
data/criu-3.15/test/zdtm/static/mntns_shared_vs_private.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/mount_paths.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 test_dir[PATH_MAX], fname[PATH_MAX];
data/criu-3.15/test/zdtm/static/mountpoints.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 stack[NS_STACK_SIZE] __stack_aligned__;
data/criu-3.15/test/zdtm/static/mountpoints.c:23: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 stack_ptr[0];
data/criu-3.15/test/zdtm/static/mountpoints.c:43: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(MPTS_ROOT"/dev/mntns2/test/test.file", O_WRONLY | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/mountpoints.c:47: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).
	ufd = open(MPTS_ROOT"/dev/mntns2/test/test.file.unlinked", O_WRONLY | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/mountpoints.c:99: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).
	tmpfs_fd = open(MPTS_ROOT"/dev/test", O_WRONLY | O_CREAT);
data/criu-3.15/test/zdtm/static/mountpoints.c:107: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(MPTS_ROOT"/dev/overmount/test.over", O_WRONLY | O_CREAT);
data/criu-3.15/test/zdtm/static/mountpoints.c:193: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(MPTS_ROOT"/dev/bmfile", O_CREAT | O_WRONLY);
data/criu-3.15/test/zdtm/static/mountpoints.c:200: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(MPTS_ROOT"/dev/bmfile-mount", O_CREAT | O_WRONLY);
data/criu-3.15/test/zdtm/static/mountpoints.c:221: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(MPTS_ROOT"/kernel/meminfo", O_RDONLY);
data/criu-3.15/test/zdtm/static/msgque.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 mtext[30];
data/criu-3.15/test/zdtm/static/msgque.c:75: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(msgbuf.mtext, ANOTHER_TEST_STRING, sizeof(ANOTHER_TEST_STRING));
data/criu-3.15/test/zdtm/static/msgque.c:84: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(msgbuf.mtext, TEST_STRING, sizeof(TEST_STRING));
data/criu-3.15/test/zdtm/static/msgque.c:91: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(msgbuf.mtext, ANOTHER_TEST_STRING, sizeof(ANOTHER_TEST_STRING));
data/criu-3.15/test/zdtm/static/mtime_mmap.c:25: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[FILE_SIZE];
data/criu-3.15/test/zdtm/static/mtime_mmap.c:35:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT, 0666);
data/criu-3.15/test/zdtm/static/netns-dev.c:301:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/netns-dev.c:313:8:  [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(path, "r+");
data/criu-3.15/test/zdtm/static/netns-dev.c:328:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/netns-dev.c:340:8:  [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(path, "r+");
data/criu-3.15/test/zdtm/static/netns-dev.c:362:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/netns-dev.c:374: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(path, "r+");
data/criu-3.15/test/zdtm/static/netns-dev.c:394:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/netns-dev.c:395: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 val[MAX_STR_CONF_LEN+1];
data/criu-3.15/test/zdtm/static/netns-dev.c:407: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(path, "r+");
data/criu-3.15/test/zdtm/static/netns-nf.c:16:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[128];
data/criu-3.15/test/zdtm/static/netns-nft.c:16:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[128];
data/criu-3.15/test/zdtm/static/netns_sub.c:123:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd = open(ns, O_RDONLY);
data/criu-3.15/test/zdtm/static/netns_sub_veth.c:78:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char cmd[4096];
data/criu-3.15/test/zdtm/static/netns_sub_veth.c:102:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char name[43];
data/criu-3.15/test/zdtm/static/non_uniform_share_propagation.c:15:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char share1[PATH_MAX], share2[PATH_MAX];
data/criu-3.15/test/zdtm/static/non_uniform_share_propagation.c:16: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 child1[PATH_MAX], child2[PATH_MAX], child3[PATH_MAX];
data/criu-3.15/test/zdtm/static/ofd_file_locks.c:12:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fl_flag[10], fl_type[15], fl_option[10], fl_end[32];
data/criu-3.15/test/zdtm/static/ofd_file_locks.c:53:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/ofd_file_locks.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[100];
data/criu-3.15/test/zdtm/static/ofd_file_locks.c:58: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(path, "/proc/%i/fdinfo/%i", pid, fd);
data/criu-3.15/test/zdtm/static/ofd_file_locks.c:59:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	proc_file = fopen(path, "r");
data/criu-3.15/test/zdtm/static/ofd_file_locks.c:85:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR, 0666);
data/criu-3.15/test/zdtm/static/oom_score_adj.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 buf[11];
data/criu-3.15/test/zdtm/static/oom_score_adj.c:25:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/criu-3.15/test/zdtm/static/oom_score_adj.c:49:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[11];
data/criu-3.15/test/zdtm/static/oom_score_adj.c:51:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR);
data/criu-3.15/test/zdtm/static/opath_file.c:25:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX], line[BUF_SIZE];
data/criu-3.15/test/zdtm/static/opath_file.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(path, "r");
data/criu-3.15/test/zdtm/static/opath_file.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 test_file[PATH_MAX];
data/criu-3.15/test/zdtm/static/opath_file.c:75: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(test_file, O_PATH);
data/criu-3.15/test/zdtm/static/overmount_dev.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 path[256];
data/criu-3.15/test/zdtm/static/overmount_dev.c:45:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR);
data/criu-3.15/test/zdtm/static/overmount_fifo.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 path[256];
data/criu-3.15/test/zdtm/static/overmount_fifo.c:42:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR);
data/criu-3.15/test/zdtm/static/overmount_file.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 path[256];
data/criu-3.15/test/zdtm/static/overmount_file.c:35:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/overmount_sock.c:87: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[256];
data/criu-3.15/test/zdtm/static/overmount_with_shared_parent.c:15:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char dir_a[PATH_MAX], dir_b[PATH_MAX], dir_c[PATH_MAX];
data/criu-3.15/test/zdtm/static/overmount_with_shared_parent.c:16: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_d[PATH_MAX], dir_a_c[PATH_MAX];
data/criu-3.15/test/zdtm/static/overmounted_file.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 overmounted[PATH_MAX];
data/criu-3.15/test/zdtm/static/overmounted_file.c:20: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[sizeof(DATA)];
data/criu-3.15/test/zdtm/static/overmounted_file.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 file[PATH_MAX];
data/criu-3.15/test/zdtm/static/overmounted_file.c:53: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(file, O_CREAT|O_WRONLY, 0600);
data/criu-3.15/test/zdtm/static/overmounted_file.c:65: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(file, O_RDONLY);
data/criu-3.15/test/zdtm/static/packet_sock.c:66: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   mr_address[MAX_ADDR_LEN];
data/criu-3.15/test/zdtm/static/packet_sock_mmap.c:38: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 line[4096];
data/criu-3.15/test/zdtm/static/packet_sock_mmap.c:42:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen("/proc/self/maps", "r");
data/criu-3.15/test/zdtm/static/packet_sock_spkt.c:16:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char data[ETH_DATA_LEN];
data/criu-3.15/test/zdtm/static/packet_sock_spkt.c:24:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(addr.sa_data, "lo");
data/criu-3.15/test/zdtm/static/pid_file.c:20:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/proc/1/status", O_RDONLY);
data/criu-3.15/test/zdtm/static/pid_file.c:29: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).
	fd2 = open("/proc/1/status", O_RDONLY);
data/criu-3.15/test/zdtm/static/pipe00.c:20: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[sizeof(TEST_STRING)];
data/criu-3.15/test/zdtm/static/pipe01.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 path[PATH_MAX];
data/criu-3.15/test/zdtm/static/pipe01.c:42: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).
	pfd_rop[0] = open(path, O_RDONLY);
data/criu-3.15/test/zdtm/static/pipe01.c:44: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).
	pfd_rop[1] = open(path, O_WRONLY);
data/criu-3.15/test/zdtm/static/pipe02.c:20:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/pipe02.c:31:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDONLY);
data/criu-3.15/test/zdtm/static/poll.c:86:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			delta = atoi(deltaenv);
data/criu-3.15/test/zdtm/static/private_bind_propagation.c:15:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char share1[PATH_MAX], share2[PATH_MAX], source[PATH_MAX];
data/criu-3.15/test/zdtm/static/private_bind_propagation.c:16: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 child1[PATH_MAX], child2[PATH_MAX];
data/criu-3.15/test/zdtm/static/proc-self.c:23:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char t[32];
data/criu-3.15/test/zdtm/static/proc-self.c:38: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_orig[64], path_new[64];
data/criu-3.15/test/zdtm/static/proc-self.c:46:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_self = open(nspath, O_RDONLY);
data/criu-3.15/test/zdtm/static/proc-self.c:60:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd_new = open(nspath, O_RDONLY);
data/criu-3.15/test/zdtm/static/pthread00.c:27:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static __thread char tls_data[10];
data/criu-3.15/test/zdtm/static/pthread00.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char __tls_data[10] = "1122334455";
data/criu-3.15/test/zdtm/static/pthread00.c:78: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 __tls_data[10] = "3122131212";
data/criu-3.15/test/zdtm/static/pthread00.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 __tls_data[10] = "wasdfrdgdc";
data/criu-3.15/test/zdtm/static/pthread01.c:23: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		*rand_string[10];
data/criu-3.15/test/zdtm/static/pthread01.c:59: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[sizeof(sigset_t) * 2 + 1] = { };
data/criu-3.15/test/zdtm/static/pthread01.c:69: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 __tls_data[sizeof(tls_data.rand_string)] = "XM5o:?B*[a";
data/criu-3.15/test/zdtm/static/pthread01.c:115: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 __tls_data[sizeof(tls_data.rand_string)] = "pffYQSBo?6";
data/criu-3.15/test/zdtm/static/pty00.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 buf[4096];
data/criu-3.15/test/zdtm/static/pty00.c:45: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).
	fdm = open("/dev/ptmx", O_RDWR);
data/criu-3.15/test/zdtm/static/pty00.c:53: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).
	fds = open(slavename, O_RDWR);
data/criu-3.15/test/zdtm/static/pty00.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).
	tty = open("/dev/tty", O_RDWR);
data/criu-3.15/test/zdtm/static/pty01.c:23: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[sizeof(teststr)];
data/criu-3.15/test/zdtm/static/pty01.c:33: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).
	master = open("/dev/ptmx", O_RDWR);
data/criu-3.15/test/zdtm/static/pty01.c:43: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).
	slave1 = open(slavename, O_RDWR);
data/criu-3.15/test/zdtm/static/pty01.c:49: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).
	slave2 = open(slavename, O_RDWR);
data/criu-3.15/test/zdtm/static/pty01.c:58:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fd = open("/dev/console", O_CREAT | O_RDONLY, 0755);
data/criu-3.15/test/zdtm/static/pty02.c:25: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[sizeof(teststr)];
data/criu-3.15/test/zdtm/static/pty02.c:33: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).
	master = open("/dev/ptmx", O_RDWR);
data/criu-3.15/test/zdtm/static/pty02.c:43:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	slave = open(slavename, O_RDWR);
data/criu-3.15/test/zdtm/static/pty03.c:20: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[sizeof(teststr)];
data/criu-3.15/test/zdtm/static/pty03.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).
	master = open("/dev/ptmx", O_RDWR);
data/criu-3.15/test/zdtm/static/pty03.c:36:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	slave = open(slavename, O_RDWR);
data/criu-3.15/test/zdtm/static/pty03.c:52:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	slave = open("/dev/tty", O_RDWR);
data/criu-3.15/test/zdtm/static/pty04.c:23: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).
	master = open("/dev/ptmx", O_RDWR);
data/criu-3.15/test/zdtm/static/pty04.c:34: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).
	slave1 = open(slavename, O_RDWR);
data/criu-3.15/test/zdtm/static/pty04.c:40: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).
	slave2 = open(slavename, O_RDWR);
data/criu-3.15/test/zdtm/static/remap_dead_pid.c:44:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/remap_dead_pid.c:50: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(path, O_RDONLY);
data/criu-3.15/test/zdtm/static/rmdir_open.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 subdir[PATH_MAX];
data/criu-3.15/test/zdtm/static/rmdir_open.c:31: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(subdir, O_DIRECTORY);
data/criu-3.15/test/zdtm/static/rtc.c:25: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/rtc", O_RDWR);
data/criu-3.15/test/zdtm/static/s390x_regs_check.c:278: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 str[1024], *ptr = str;
data/criu-3.15/test/zdtm/static/s390x_regs_check.c:288: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.
			ptr += sprintf(ptr, "%08x: ", i);
data/criu-3.15/test/zdtm/static/s390x_regs_check.c:291: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.
		ptr += sprintf(ptr, "%02x", buf[i]);
data/criu-3.15/test/zdtm/static/sched_policy00.c:39: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("/sys/fs/cgroup/cpu/user.slice/cpu.rt_runtime_us", "r");
data/criu-3.15/test/zdtm/static/sched_policy00.c:45:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			file = fopen("/sys/fs/cgroup/cpu/user.slice/cpu.rt_runtime_us", "w");
data/criu-3.15/test/zdtm/static/sched_policy00.c:80:10:  [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("/sys/fs/cgroup/cpu/user.slice/cpu.rt_runtime_us", "w");
data/criu-3.15/test/zdtm/static/scm00.c:17: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[CMSG_SPACE(sizeof(int))], c = '\0';
data/criu-3.15/test/zdtm/static/scm00.c:44: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[CMSG_SPACE(sizeof(int))], c;
data/criu-3.15/test/zdtm/static/scm00.c:73: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[8]; /* bigger than the MSG to check boundaries */
data/criu-3.15/test/zdtm/static/scm03.c:18: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[2 * CMSG_SPACE(sizeof(int))];
data/criu-3.15/test/zdtm/static/scm03.c:20: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[CMSG_SPACE(2 * sizeof(int))];
data/criu-3.15/test/zdtm/static/scm03.c:66: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[CMSG_SPACE(2 * sizeof(int))];
data/criu-3.15/test/zdtm/static/scm03.c:104:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[8]; /* bigger than the MSG to check boundaries */
data/criu-3.15/test/zdtm/static/scm05.c:18: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[CMSG_SPACE(sizeof(int))];
data/criu-3.15/test/zdtm/static/scm05.c:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[CMSG_SPACE(sizeof(int))];
data/criu-3.15/test/zdtm/static/scm06.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 buf[CMSG_SPACE(sizeof(int))];
data/criu-3.15/test/zdtm/static/scm06.c:52:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[CMSG_SPACE(sizeof(int))];
data/criu-3.15/test/zdtm/static/seccomp_filter.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/criu-3.15/test/zdtm/static/seccomp_filter.c:31: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, "/proc/%d/status", pid);
data/criu-3.15/test/zdtm/static/seccomp_filter.c:32:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(buf, "r+");
data/criu-3.15/test/zdtm/static/seccomp_filter_inheritance.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/criu-3.15/test/zdtm/static/seccomp_filter_inheritance.c:31: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, "/proc/%d/status", pid);
data/criu-3.15/test/zdtm/static/seccomp_filter_inheritance.c:32:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(buf, "r+");
data/criu-3.15/test/zdtm/static/seccomp_filter_threads.c:47:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[PATH_MAX];
data/criu-3.15/test/zdtm/static/seccomp_filter_threads.c:49: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, "/proc/%d/status", pid);
data/criu-3.15/test/zdtm/static/seccomp_filter_threads.c:50:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(buf, "r");
data/criu-3.15/test/zdtm/static/seccomp_filter_tsync.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 buf[PATH_MAX];
data/criu-3.15/test/zdtm/static/seccomp_filter_tsync.c:44: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, "/proc/%d/status", pid);
data/criu-3.15/test/zdtm/static/seccomp_filter_tsync.c:45:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(buf, "r+");
data/criu-3.15/test/zdtm/static/seccomp_strict.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 buf[PATH_MAX];
data/criu-3.15/test/zdtm/static/seccomp_strict.c:28: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, "/proc/%d/status", pid);
data/criu-3.15/test/zdtm/static/seccomp_strict.c:29:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(buf, "r+");
data/criu-3.15/test/zdtm/static/selfexe00.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path_before[PATH_MAX];
data/criu-3.15/test/zdtm/static/selfexe00.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 path_after[PATH_MAX];
data/criu-3.15/test/zdtm/static/selinux00.c:40: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/attr/current", O_WRONLY);
data/criu-3.15/test/zdtm/static/selinux00.c:60: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 context[1024];
data/criu-3.15/test/zdtm/static/selinux00.c:64:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/proc/self/attr/current", O_RDONLY);
data/criu-3.15/test/zdtm/static/selinux00.c:89:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen("/proc/self/attr/sockcreate", "r");
data/criu-3.15/test/zdtm/static/selinux01.c:42: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/attr/current", O_WRONLY);
data/criu-3.15/test/zdtm/static/selinux01.c:63: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/attr/sockcreate", O_WRONLY);
data/criu-3.15/test/zdtm/static/selinux01.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char context[1024];
data/criu-3.15/test/zdtm/static/selinux01.c:87: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/attr/sockcreate", O_RDONLY);
data/criu-3.15/test/zdtm/static/selinux01.c:112:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen("/proc/self/attr/sockcreate", "r");
data/criu-3.15/test/zdtm/static/selinux01.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 ctx[1024];
data/criu-3.15/test/zdtm/static/session01.c:201: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(testcases, &__testcases, sizeof(__testcases));
data/criu-3.15/test/zdtm/static/session02.c:69: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 stack[CLONE_STACK_SIZE] __stack_aligned__;
data/criu-3.15/test/zdtm/static/session02.c:70:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char stack_ptr[0];
data/criu-3.15/test/zdtm/static/session03.c:111: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 stack[CLONE_STACK_SIZE] __stack_aligned__;
data/criu-3.15/test/zdtm/static/session03.c:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char stack_ptr[0];
data/criu-3.15/test/zdtm/static/shared_mount_propagation.c:16: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_a[PATH_MAX], dir_b[PATH_MAX], dir_c[PATH_MAX];
data/criu-3.15/test/zdtm/static/shared_mount_propagation.c:17: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_d[PATH_MAX], dir_e[PATH_MAX], dir_f[PATH_MAX];
data/criu-3.15/test/zdtm/static/shared_mount_propagation.c:18: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 test_file[PATH_MAX];
data/criu-3.15/test/zdtm/static/shared_mount_propagation.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 test_bind_file1[PATH_MAX];
data/criu-3.15/test/zdtm/static/shared_mount_propagation.c:20: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 test_bind_file2[PATH_MAX];
data/criu-3.15/test/zdtm/static/shared_mount_propagation.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 test_bind_file3[PATH_MAX];
data/criu-3.15/test/zdtm/static/shared_mount_propagation.c:68: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(test_file, O_CREAT | O_WRONLY | O_EXCL, 0600);
data/criu-3.15/test/zdtm/static/shared_slave_mount_children.c:15:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char share[PATH_MAX], slave1[PATH_MAX], slave2[PATH_MAX];
data/criu-3.15/test/zdtm/static/shared_slave_mount_children.c:16: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[PATH_MAX];
data/criu-3.15/test/zdtm/static/shmemfd-priv.c:20: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[4096];
data/criu-3.15/test/zdtm/static/shmemfd-priv.c:37:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR | O_LARGEFILE);
data/criu-3.15/test/zdtm/static/shmemfd.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 path[4096];
data/criu-3.15/test/zdtm/static/shmemfd.c:23: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[5];
data/criu-3.15/test/zdtm/static/shmemfd.c:36:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR | O_LARGEFILE);
data/criu-3.15/test/zdtm/static/sigaltstack.c:17:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char stack_thread[SIGSTKSZ + TEST_MSG_BUFFER_SIZE] __stack_aligned__;
data/criu-3.15/test/zdtm/static/sigaltstack.c:18:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char stack_main[SIGSTKSZ + TEST_MSG_BUFFER_SIZE] __stack_aligned__;
data/criu-3.15/test/zdtm/static/sk-netlink.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 buf[4096];
data/criu-3.15/test/zdtm/static/sk-unix-mntns.c:32:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/sk-unix-mntns.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sbuf[256], rbuf[256];
data/criu-3.15/test/zdtm/static/sk-unix-mntns.c:76: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(addr.sun_path, path, addrlen);
data/criu-3.15/test/zdtm/static/sk-unix-rel.c:34:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/sk-unix-rel.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 buf[64];
data/criu-3.15/test/zdtm/static/sk-unix-rel.c:54: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(addr.sun_path, filename, addrlen);
data/criu-3.15/test/zdtm/static/sk-unix-unconn.c:16:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/sk-unix-unconn.c:41: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(addr.sun_path, path, len);
data/criu-3.15/test/zdtm/static/sk-unix01.c:82: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[PATH_MAX];
data/criu-3.15/test/zdtm/static/sk-unix01.c:83:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char subdir_dg[PATH_MAX];
data/criu-3.15/test/zdtm/static/sk-unix01.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char subdir_st[PATH_MAX];
data/criu-3.15/test/zdtm/static/sock_opts01.c:17: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 dev[IFNAMSIZ], dev2[IFNAMSIZ];
data/criu-3.15/test/zdtm/static/socket-ext.c:36:21:  [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).
	if (val && (setgid(atoi(val)) == -1)) {
data/criu-3.15/test/zdtm/static/socket-ext.c:42:21:  [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).
	if (val && (setuid(atoi(val)) == -1)) {
data/criu-3.15/test/zdtm/static/socket-raw.c:188:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char datagram[512], *data, *pseudogram;
data/criu-3.15/test/zdtm/static/socket-raw.c:189: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 receiver[512];
data/criu-3.15/test/zdtm/static/socket-raw.c:328: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(pseudogram, (char *)&psh , sizeof(psh));
data/criu-3.15/test/zdtm/static/socket-raw.c:329: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(pseudogram + sizeof(psh), udph, sizeof(*udph) + strlen(string_data));
data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c:105: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[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket-tcp-closed.c:43:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[4096];
data/criu-3.15/test/zdtm/static/socket-tcp-closing.c:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket-tcp-fin-wait1.c:75:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket-tcp-fin-wait1.c:103:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket-tcp-listen.c:62: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 buf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket-tcp-reseted.c:39:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char cmd[4096], buf[10];
data/criu-3.15/test/zdtm/static/socket-tcp-reuseport.c:60: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 buf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket-tcp-syn-sent.c: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 c, cmd[4096];
data/criu-3.15/test/zdtm/static/socket-tcp.c:62: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 buf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket-tcpbuf.c:84:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket6_udp.c:19:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[64];
data/criu-3.15/test/zdtm/static/socket_aio.c:28: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[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket_close_data.c:16: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[1024];
data/criu-3.15/test/zdtm/static/socket_close_data01.c:50:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024];
data/criu-3.15/test/zdtm/static/socket_dgram_data.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 buf[1024];
data/criu-3.15/test/zdtm/static/socket_dgram_data.c:42: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(addr.sun_path, SK_SRV, sizeof(SK_SRV));
data/criu-3.15/test/zdtm/static/socket_listen.c:38: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 buf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/socket_queues.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_left[64], buf_right[64];
data/criu-3.15/test/zdtm/static/socket_snd_addr.c:16:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char sk_names[2][128] = {
data/criu-3.15/test/zdtm/static/socket_snd_addr.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 buf[1024];
data/criu-3.15/test/zdtm/static/socket_snd_addr.c:44: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(addr.sun_path, SK_SRV, sizeof(SK_SRV));
data/criu-3.15/test/zdtm/static/socket_snd_addr.c:58: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(addr.sun_path, sk_names[i], sizeof(SK_NAME));
data/criu-3.15/test/zdtm/static/socket_snd_addr.c:66: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(addr.sun_path, SK_SRV, sizeof(SK_SRV));
data/criu-3.15/test/zdtm/static/socket_udp.c:24:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[8];
data/criu-3.15/test/zdtm/static/socket_udp_shutdown.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 buf[512];
data/criu-3.15/test/zdtm/static/socket_udplite.c:24:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[8];
data/criu-3.15/test/zdtm/static/sockets00.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 path[PATH_MAX];
data/criu-3.15/test/zdtm/static/sockets00.c:36: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[64];
data/criu-3.15/test/zdtm/static/sockets00.c:58: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(addr.sun_path, path, addrlen);
data/criu-3.15/test/zdtm/static/sockets01.c:23:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[sizeof(TEST_MSG)];
data/criu-3.15/test/zdtm/static/sockets03.c:30:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/sockets03.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[64];
data/criu-3.15/test/zdtm/static/sockets03.c:52: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(addr.sun_path, path, addrlen);
data/criu-3.15/test/zdtm/static/sockets_dgram.c:38:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char path[PATH_MAX];
data/criu-3.15/test/zdtm/static/sockets_dgram.c:39: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[64];
data/criu-3.15/test/zdtm/static/sockets_spair.c:24: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[64];
data/criu-3.15/test/zdtm/static/symlink.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 test_symlink[PATH_MAX];
data/criu-3.15/test/zdtm/static/symlink.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 test_file[PATH_MAX];
data/criu-3.15/test/zdtm/static/symlink.c:23: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 pathbuf[PATH_MAX];
data/criu-3.15/test/zdtm/static/symlink.c:49: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(test_symlink, O_PATH | O_NOFOLLOW);
data/criu-3.15/test/zdtm/static/tempfs.c:23: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[1024], fname[PATH_MAX], overmount[PATH_MAX];
data/criu-3.15/test/zdtm/static/tempfs.c:34: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).
	fdo = open(fname, O_RDWR | O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/tempfs.c:49: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(fname, O_RDWR | O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/tempfs.c:87: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(fname, O_RDONLY);
data/criu-3.15/test/zdtm/static/tempfs_ro.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 buf[1024], fname[PATH_MAX];
data/criu-3.15/test/zdtm/static/tempfs_ro.c:33: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(fname, O_RDWR | O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/tempfs_ro.c:54: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(fname, O_RDONLY);
data/criu-3.15/test/zdtm/static/tempfs_ro02.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 buf[1024], fname[PATH_MAX];
data/criu-3.15/test/zdtm/static/tempfs_ro02.c:38:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(fname, O_RDWR | O_CREAT, 0777);
data/criu-3.15/test/zdtm/static/tempfs_subns.c:80: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("test", O_CREAT | O_RDWR | O_APPEND, 0666);
data/criu-3.15/test/zdtm/static/tempfs_subns.c:103: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("test", O_RDONLY | O_APPEND);
data/criu-3.15/test/zdtm/static/timens_nested.c:28: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/ns/time", O_RDONLY);
data/criu-3.15/test/zdtm/static/timerfd.c:39: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];
data/criu-3.15/test/zdtm/static/timerfd.c:43: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, "/proc/self/fdinfo/%d", fd);
data/criu-3.15/test/zdtm/static/timerfd.c:44:6:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	f = fopen(buf, "r");
data/criu-3.15/test/zdtm/static/tty00.c:34: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).
	fdm = open("/dev/ptmx", O_RDWR);
data/criu-3.15/test/zdtm/static/tty00.c:58:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fds = open(slavename, O_RDWR);
data/criu-3.15/test/zdtm/static/tty02.c:25: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).
	fdm = open("/dev/ptmx", O_RDWR);
data/criu-3.15/test/zdtm/static/tty02.c:36: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).
	fds = open(slavename, O_RDWR | O_NOCTTY);
data/criu-3.15/test/zdtm/static/tty03.c:31: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).
	fdm = open("/dev/ptmx", O_RDWR);
data/criu-3.15/test/zdtm/static/tty03.c:51:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		fds = open(slavename, O_RDWR | O_NOCTTY);
data/criu-3.15/test/zdtm/static/tun.c:33: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(TUN_DEVICE, O_RDWR);
data/criu-3.15/test/zdtm/static/tun.c:107: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(a, ifr.ifr_hwaddr.sa_data, ETH_ALEN);
data/criu-3.15/test/zdtm/static/tun.c:114: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 addr[ETH_ALEN], a2[ETH_ALEN];
data/criu-3.15/test/zdtm/static/unbindable.c:17: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 unbindable[PATH_MAX], bind_of_unbindable[PATH_MAX];
data/criu-3.15/test/zdtm/static/unbindable.c:18: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 auxiliary[PATH_MAX];
data/criu-3.15/test/zdtm/static/unhashed_proc.c:18: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 cwd1[PATH_MAX], cwd2[PATH_MAX];
data/criu-3.15/test/zdtm/static/unhashed_proc.c:31: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(cwd1, "/proc/%d", pid);
data/criu-3.15/test/zdtm/static/unlink_fifo.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(filename, O_RDWR);
data/criu-3.15/test/zdtm/static/unlink_fifo_wronly.c:27:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY | O_NONBLOCK);
data/criu-3.15/test/zdtm/static/unlink_fifo_wronly.c:34: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).
	fd1 = open(filename, O_WRONLY);
data/criu-3.15/test/zdtm/static/unlink_fstat00.c: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 filename[PATH_MAX];
data/criu-3.15/test/zdtm/static/unlink_fstat00.c:52:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/unlink_fstat00.c:54: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(dirname, O_RDWR | O_TMPFILE, 0644);
data/criu-3.15/test/zdtm/static/unlink_fstat01.c:25:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/unlink_fstat01.c:50: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).
	fdo = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/unlink_fstat02.c:15:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char link_name[1024];
data/criu-3.15/test/zdtm/static/unlink_fstat02.c:26:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd[0] = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/unlink_fstat02.c:38:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd[1] = open(link_name, O_RDONLY);
data/criu-3.15/test/zdtm/static/unlink_fstat03.c:17:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char link_name[1024];
data/criu-3.15/test/zdtm/static/unlink_fstat03.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(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/unlink_largefile.c:18: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[1000000];
data/criu-3.15/test/zdtm/static/unlink_largefile.c:24:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, 0644);
data/criu-3.15/test/zdtm/static/unlink_mmap00.c:41:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/unlink_mmap01.c:18:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char linkname[4096];
data/criu-3.15/test/zdtm/static/unlink_mmap01.c:44:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/unlink_mmap01.c:72: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(linkname, O_RDWR);
data/criu-3.15/test/zdtm/static/unlink_mmap02.c:41:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:112:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ebuf[BUFSIZE];
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:113: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 rbuf[BUFSIZE];
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:114: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 linkpath[PATH_MAX];
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:120: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(linkpath, O_RDONLY | O_LARGEFILE);
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:156: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 linkpath[PATH_MAX];
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:171: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[BUFSIZE];
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:172:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fnm[PATH_MAX];
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:175: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(fnm, O_WRONLY | O_CREAT | O_TRUNC | O_LARGEFILE, 0644);
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:211: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 links[NFILES][PATH_MAX];
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:212:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char link[PATH_MAX];
data/criu-3.15/test/zdtm/static/unlink_regular00.c:25: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 subdir[PATH_MAX], fname[PATH_MAX], lname[PATH_MAX];
data/criu-3.15/test/zdtm/static/unlink_regular00.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 buf[sizeof(MSG) + 1];
data/criu-3.15/test/zdtm/static/unlink_regular00.c:53: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(fname, O_RDWR | O_CREAT, 0644);
data/criu-3.15/test/zdtm/static/unsupported_children_collision.c:15:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char share1[PATH_MAX], share2[PATH_MAX];
data/criu-3.15/test/zdtm/static/unsupported_children_collision.c:16: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 child1[PATH_MAX], child2[PATH_MAX];
data/criu-3.15/test/zdtm/static/vdso-proxy.c:36:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char buf[BUF_SIZE];
data/criu-3.15/test/zdtm/static/vdso-proxy.c:43: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).
	maps = fopen("/proc/self/maps", "r");
data/criu-3.15/test/zdtm/static/vdso01.c:74:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char			name[32];
data/criu-3.15/test/zdtm/static/vdso01.c:95:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *vdso_symbols[VDSO_SYMBOL_MAX] = {
data/criu-3.15/test/zdtm/static/vdso01.c:247:32:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		k = elf_hash((const unsigned char *)vdso_symbols[i]);
data/criu-3.15/test/zdtm/static/vdso01.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 buf[512];
data/criu-3.15/test/zdtm/static/vdso01.c:290: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).
	maps = fopen("/proc/self/maps", "r");
data/criu-3.15/test/zdtm/static/vdso02.c:33:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[BUF_SZ];
data/criu-3.15/test/zdtm/static/vdso02.c:47: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).
	maps = fopen(buf, "r");
data/criu-3.15/test/zdtm/static/vfork00.c:33:9:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
		pid = vfork();
data/criu-3.15/test/zdtm/static/vsx.c:344:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char ibuffer[128/8*64]=
data/criu-3.15/test/zdtm/static/vsx.c:367: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 obuffer[128/8*64];
data/criu-3.15/test/zdtm/static/vt.c:36:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/criu-3.15/test/zdtm/static/write_read00.c:22:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/write_read00.c:40:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/criu-3.15/test/zdtm/static/write_read01.c:23:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/write_read01.c:38:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/criu-3.15/test/zdtm/static/write_read02.c:20: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 str[32];
data/criu-3.15/test/zdtm/static/write_read02.c:24:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/write_read02.c:36: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).
	fd1 = open(str, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/write_read02.c:59:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(filename, O_RDONLY);
data/criu-3.15/test/zdtm/static/write_read10.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(filename, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/static/write_read10.c:35: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).
	child_fd = open(filename, O_RDWR | O_CREAT | O_TRUNC, 0644);
data/criu-3.15/test/zdtm/transition/epoll.c:101:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[buf_size];
data/criu-3.15/test/zdtm/transition/fifo_dyn.c:28: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[PROCS_DEF][BUF_SIZE];
data/criu-3.15/test/zdtm/transition/fifo_dyn.c:57: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).
		readfd = open(file_path, O_RDONLY);
data/criu-3.15/test/zdtm/transition/fifo_dyn.c:64: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).
		writefd = open(file_path, O_WRONLY);
data/criu-3.15/test/zdtm/transition/fifo_dyn.c:81: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).
	writefd = open(file_path, O_WRONLY);
data/criu-3.15/test/zdtm/transition/fifo_dyn.c:89: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).
	readfd = open(file_path, O_RDONLY);
data/criu-3.15/test/zdtm/transition/fifo_loop.c:37: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[PROCS_DEF][BUF_SIZE];
data/criu-3.15/test/zdtm/transition/fifo_loop.c:72: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).
			readfd = open(file_path, O_RDONLY);
data/criu-3.15/test/zdtm/transition/fifo_loop.c:80: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).
			writefd = open(file_path, O_WRONLY);
data/criu-3.15/test/zdtm/transition/fifo_loop.c:109: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).
	writefd = open(file_path, O_WRONLY);
data/criu-3.15/test/zdtm/transition/fifo_loop.c:124: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).
	readfd = open(file_path, O_RDONLY);
data/criu-3.15/test/zdtm/transition/file_aio.c:20: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[BUF_SIZE];
data/criu-3.15/test/zdtm/transition/file_aio.c:24: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 tmpfname[256]="/tmp/file_aio.XXXXXX";
data/criu-3.15/test/zdtm/transition/file_aio.c:29:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(tmpfname);
data/criu-3.15/test/zdtm/transition/file_read.c:98:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rbuf[1024];
data/criu-3.15/test/zdtm/transition/file_read.c:121:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char chew_file[PATH_MAX];
data/criu-3.15/test/zdtm/transition/file_read.c:130: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(chew_file, O_CREAT | O_EXCL | O_RDWR, 0666);
data/criu-3.15/test/zdtm/transition/file_read.c:163:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char str[PATH_MAX];
data/criu-3.15/test/zdtm/transition/file_read.c:168:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			fd1 = open(str, O_WRONLY | O_CREAT | O_TRUNC, 0666);
data/criu-3.15/test/zdtm/transition/maps007.c:25: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 nop[PAGE_SIZE];
data/criu-3.15/test/zdtm/transition/maps007.c:146:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char rbuf[PAGE_SIZE], lbuf[PAGE_SIZE];
data/criu-3.15/test/zdtm/transition/maps008.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 path[PATH_MAX];
data/criu-3.15/test/zdtm/transition/maps008.c:83:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open(path, O_RDWR);
data/criu-3.15/test/zdtm/transition/netlink00.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		buf[8192];
data/criu-3.15/test/zdtm/transition/netlink00.c:47:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char buf[8192];
data/criu-3.15/test/zdtm/transition/netlink00.c:48:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
char dsts[24] = "192.168.0.255";
data/criu-3.15/test/zdtm/transition/netlink00.c:198: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 dsts[24], gws[24], ifs[16], ms[24];
data/criu-3.15/test/zdtm/transition/netlink00.c:237:6:  [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(ifs, "%d",
data/criu-3.15/test/zdtm/transition/netlink00.c:243: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(ms, "%d", rtp->rtm_dst_len);
data/criu-3.15/test/zdtm/transition/netlink00.c:291:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(((char *)rtap) + sizeof(struct rtattr),
data/criu-3.15/test/zdtm/transition/pid_reuse.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[32];
data/criu-3.15/test/zdtm/transition/pid_reuse.c:22: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/sys/kernel/ns_last_pid", O_WRONLY);
data/criu-3.15/test/zdtm/transition/ptrace.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 regs[PT_REGS_SIZE] __attribute__((aligned(PT_REGS_ALIGN)));
data/criu-3.15/test/zdtm/transition/thread-bomb.c:55:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		max_nr = atoi(val);
data/criu-3.15/test/zdtm_ct.c:20:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[4096];
data/criu-3.15/test/zdtm_ct.c:27:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open("/proc/self/timens_offsets", O_WRONLY);
data/criu-3.15/test/zdtm_ct.c:62: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/ns/time_for_children", O_RDONLY);
data/criu-3.15/compel/src/main.c:250: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(path);
data/criu-3.15/compel/test/fdspy/spy.c:104:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(rfd, aux, sizeof(aux));
data/criu-3.15/compel/test/fdspy/victim.c:8:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		i = read(0, &aux, 1);
data/criu-3.15/compel/test/infect/spy.c:89:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, &v, sizeof(v)) != sizeof(v))
data/criu-3.15/compel/test/infect/victim.c:8:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(0, &i, sizeof(i)) != sizeof(i))
data/criu-3.15/compel/test/rsys/spy.c:64:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(fd, &v, sizeof(v));
data/criu-3.15/compel/test/rsys/victim.c:8:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(0, &i, sizeof(i)) != sizeof(i))
data/criu-3.15/criu/arch/x86/cpu.c:388:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(cpu_info->x86_model_id, img_x86_entry->model_id, sizeof(cpu_info->x86_model_id) - 1);
data/criu-3.15/criu/autofs.c:72:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(opts[i], "pipe_ino=", strlen("pipe_ino=")))
data/criu-3.15/criu/autofs.c:73:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (xatol(opts[i] + strlen("pipe_ino="), &pipe_ino)) {
data/criu-3.15/criu/autofs.c:74:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				pr_err("pipe_ino (%s) mount option parse failed\n", opts[i] + strlen("pipe_ino="));
data/criu-3.15/criu/autofs.c:262:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(opt, "fd=", strlen("fd=")))
data/criu-3.15/criu/autofs.c:263:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			err = xatoi(opt + strlen("fd="), &entry->fd);
data/criu-3.15/criu/autofs.c:264:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (!strncmp(opt, "pipe_ino=", strlen("pipe_ino=")))
data/criu-3.15/criu/autofs.c:265:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			err = xatol(opt + strlen("pipe_ino="), pipe_ino);
data/criu-3.15/criu/autofs.c:266:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (!strncmp(opt, "pgrp=", strlen("pgrp=")))
data/criu-3.15/criu/autofs.c:267:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			err = xatoi(opt + strlen("pgrp="), &entry->pgrp);
data/criu-3.15/criu/autofs.c:268:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (!strncmp(opt, "timeout=", strlen("timeout=")))
data/criu-3.15/criu/autofs.c:269:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			err = xatoi(opt + strlen("timeout="), &entry->timeout);
data/criu-3.15/criu/autofs.c:270:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (!strncmp(opt, "minproto=", strlen("minproto=")))
data/criu-3.15/criu/autofs.c:271:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			err = xatoi(opt + strlen("minproto="), &entry->minproto);
data/criu-3.15/criu/autofs.c:272:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (!strncmp(opt, "maxproto=", strlen("maxproto=")))
data/criu-3.15/criu/autofs.c:273:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			err = xatoi(opt + strlen("maxproto="), &entry->maxproto);
data/criu-3.15/criu/autofs.c:280:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (!strncmp(opt, "uid=", strlen("uid=")))
data/criu-3.15/criu/autofs.c:281:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			err = xatoi(opt + strlen("uid="), &entry->uid);
data/criu-3.15/criu/autofs.c:282:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		else if (!strncmp(opt, "gid=", strlen("gid=")))
data/criu-3.15/criu/autofs.c:283:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			err = xatoi(opt + strlen("gid="), &entry->gid);
data/criu-3.15/criu/autofs.c:350: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).
		str[strlen(str)-1] = '\0';
data/criu-3.15/criu/autofs.c:717:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = sizeof(*param) + strlen(mnt_path) + 1;
data/criu-3.15/criu/autofs.c:856:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	i->mnt_path = shmalloc(strlen(mi->ns_mountpoint) + 1);
data/criu-3.15/criu/bfd.c:148:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(f->fd, b->mem + b->sz, BUFSIZE - b->sz);
data/criu-3.15/criu/bfd.c:308:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return read(bfd->fd, buf, size);
data/criu-3.15/criu/cgroup-props.c:494:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				strlen(predefined_stream));
data/criu-3.15/criu/cgroup.c:208: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).
				loc += strlen(controllers[i]);
data/criu-3.15/criu/cgroup.c:312:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof(buf) - 1);
data/criu-3.15/criu/cgroup.c:568:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				 "name", cc->name + strlen(namestr), 0)) {
data/criu-3.15/criu/cgroup.c:682:63:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				snprintf(dir_path + off, PATH_MAX - off, "%s", cc->name + strlen(namestr));
data/criu-3.15/criu/cgroup.c:772: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).
					if (strlen(stray->path) < root->cgns_prefix) {
data/criu-3.15/criu/cgroup.c:866:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (dump_cg_dirs(&cur->children, cur->n_children, &cde->children, strlen(cur->path)) < 0) {
data/criu-3.15/criu/cgroup.c:1155:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (userns_call(userns_move, 0, aux, strlen(aux) + 1, -1) < 0) {
data/criu-3.15/criu/cgroup.c:1213:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		err = userns_call(userns_move, 0, aux, strlen(aux) + 1, -1);
data/criu-3.15/criu/cgroup.c:1357:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = strlen(cg_prop_entry_p->value);
data/criu-3.15/criu/cgroup.c:1385:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	freezer_path_len = strlen(freezer_path);
data/criu-3.15/criu/cgroup.c:1397:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		max_len = strlen(freezer_path);
data/criu-3.15/criu/cgroup.c:1415:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(freezer_path, path, path_len);
data/criu-3.15/criu/cgroup.c:1449:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(out, line, len + 1);
data/criu-3.15/criu/cgroup.c:1467:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	priomap.value = xmalloc(strlen(cpe->value) + 1);
data/criu-3.15/criu/cgroup.c:1473:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(priomap.value))
data/criu-3.15/criu/cgroup.c:1825:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		yard = paux + strlen(cg_yard) + 1;
data/criu-3.15/criu/cgroup.c:1826:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		yard_off = ctl_off - (strlen(cg_yard) + 1);
data/criu-3.15/criu/cgroup.c:1843:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t dirlen = strlen(*dir_name);
data/criu-3.15/criu/cgroup.c:1898:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				cg->cgns_prefix = strlen(newroot);
data/criu-3.15/criu/config.c:72:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				offset += strlen("\"\"");
data/criu-3.15/criu/config.c:75:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				while (configuration[i][strlen(configuration[i]) - 1] == '\\') {
data/criu-3.15/criu/config.c:77: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).
					len = strlen(configuration[i]);
data/criu-3.15/criu/config.c:84:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					tmp_string = xmalloc(len + strlen(quoted) + 1);
data/criu-3.15/criu/config.c:89:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					memmove(tmp_string + len, quoted, strlen(quoted) + 1);
data/criu-3.15/criu/config.c:96:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		offset += strlen(configuration[i]);
data/criu-3.15/criu/config.c:100: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(configuration[i]);
data/criu-3.15/criu/config.c:101:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			tmp_string = xrealloc(configuration[i], len + strlen("--") + 1);
data/criu-3.15/criu/config.c:105:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(tmp_string + strlen("--"), tmp_string, len + 1);
data/criu-3.15/criu/config.c:106:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			memmove(tmp_string, "--", strlen("--"));
data/criu-3.15/criu/config.c:253:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			*cfg_file = argv[i] + strlen("--config=");
data/criu-3.15/criu/config.c:645:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					opts.log_level += strlen(optarg) + 1;
data/criu-3.15/criu/cr-check.c:565:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sk, &c, 1) != 1) {
data/criu-3.15/criu/cr-check.c:1509:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int sep_len = strlen(sep);
data/criu-3.15/criu/cr-check.c:1510: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).
	int offset_len = strlen(offset);
data/criu-3.15/criu/cr-check.c:1513:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen(fl->name);
data/criu-3.15/criu/cr-dump.c:299:19:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	fe.umask = misc->umask;
data/criu-3.15/criu/cr-dump.c:416: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).
		aufs_link.len = strlen(aufs_link.name);
data/criu-3.15/criu/cr-dump.c:452:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, mm_saved_auxv, sizeof(mm_saved_auxv));
data/criu-3.15/criu/cr-dump.c:600:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, loc_buf, sizeof(loc_buf) - 1);
data/criu-3.15/criu/cr-dump.c:1825: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).
		     strlen(opts.cgroup_props) : 0,
data/criu-3.15/criu/cr-restore.c:3298:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			lsm_profile_len = strlen(rendered);
data/criu-3.15/criu/cr-restore.c:3332:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			lsm_sockcreate_len = strlen(rendered);
data/criu-3.15/criu/cr-restore.c:3676:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(task_args->comm, core->tc->comm, TASK_COMM_LEN - 1);
data/criu-3.15/criu/cr-restore.c:3766:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(thread_args[i].comm, tcore->thread_core->comm, TASK_COMM_LEN - 1);
data/criu-3.15/criu/cr-restore.c:3768:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(thread_args[i].comm, core->tc->comm, TASK_COMM_LEN - 1);
data/criu-3.15/criu/cr-service.c:339:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(images_dir_path, opts.imgs_dir, PATH_MAX - 1);
data/criu-3.15/criu/cr-service.c:367:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(work_dir_path, opts.work_dir, PATH_MAX - 1);
data/criu-3.15/criu/cr-service.c:373:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(work_dir_path, opts.work_dir, PATH_MAX - 1);
data/criu-3.15/criu/cr-service.c:959:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	count = read(start_pipe[0], &info, sizeof(info));
data/criu-3.15/criu/cr-service.c:1353:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(server_addr.sun_path, opts.addr,
data/criu-3.15/criu/cr-service.c:1356:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		server_addr_len = strlen(server_addr.sun_path)
data/criu-3.15/criu/external.c:48: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(key);
data/criu-3.15/criu/external.c:63: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(key);
data/criu-3.15/criu/external.c:79:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int ln = strlen(type);
data/criu-3.15/criu/files-reg.c:1552:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, SELFMAG+1) != SELFMAG+1)
data/criu-3.15/criu/files-reg.c:1759: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).
	off = strlen(smi->ns_mountpoint + 1);
data/criu-3.15/criu/files-reg.c:1760:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	BUG_ON(strlen(smi->root) < strlen(dmi->root));
data/criu-3.15/criu/files-reg.c:1760:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	BUG_ON(strlen(smi->root) < strlen(dmi->root));
data/criu-3.15/criu/files-reg.c:1769:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				smi->root + strlen(dmi->root),
data/criu-3.15/criu/files.c:1385:42:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		pr_info("Restoring umask to %o\n", ri->umask);
data/criu-3.15/criu/files.c:1386:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(ri->umask);
data/criu-3.15/criu/files.c:1386:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(ri->umask);
data/criu-3.15/criu/files.c:1429:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	ri->umask = fe->umask;
data/criu-3.15/criu/files.c:1535: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).
		n = strlen(cp);
data/criu-3.15/criu/filesystems.c:82:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strncmp(str, key, strlen(key))) {			\
data/criu-3.15/criu/filesystems.c:83:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			bme->member = xstrdup(str + strlen(key));	\
data/criu-3.15/criu/filesystems.c:205:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(buf);
data/criu-3.15/criu/filesystems.c:246: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(bme->name) + 3 /* offset < 128 */ + 2 * strlen(bme->magic)
data/criu-3.15/criu/filesystems.c:246:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = strlen(bme->name) + 3 /* offset < 128 */ + 2 * strlen(bme->magic)
data/criu-3.15/criu/filesystems.c:247:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    + (bme->mask ? 2 * strlen(bme->mask) : 0) + strlen(bme->interpreter)
data/criu-3.15/criu/filesystems.c:247:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    + (bme->mask ? 2 * strlen(bme->mask) : 0) + strlen(bme->interpreter)
data/criu-3.15/criu/filesystems.c:248:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    + (bme->flags ? strlen(bme->flags) : 0) + strlen(":::::::");
data/criu-3.15/criu/filesystems.c:248:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    + (bme->flags ? strlen(bme->flags) : 0) + strlen(":::::::");
data/criu-3.15/criu/filesystems.c:255: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(bme->magic);
data/criu-3.15/criu/filesystems.c:259:9:  [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.
	buf += sprintf(buf, ":");
data/criu-3.15/criu/filesystems.c:262:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(bme->mask);
data/criu-3.15/criu/filesystems.c:624:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	bool equal;
data/criu-3.15/criu/filesystems.c:635:7:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (!equal)
data/criu-3.15/criu/filesystems.c:783: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(str);
data/criu-3.15/criu/include/parasite.h:125:6:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	u32 umask;
data/criu-3.15/criu/include/rst_info.h:57:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	u32			umask;
data/criu-3.15/criu/ipc_ns.c:768:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(ifd, data + off, size - off);
data/criu-3.15/criu/kerndat.c:345:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(pm2, &pmap, sizeof(pmap));
data/criu-3.15/criu/kerndat.c:452:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(pfd, buf, sizeof(buf) - 1);
data/criu-3.15/criu/kerndat.c:841:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, &kdat, sizeof(kdat));
data/criu-3.15/criu/mount.c:57:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	e_str = xmalloc(strlen(key) + strlen(val) + 8);
data/criu-3.15/criu/mount.c:57:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	e_str = xmalloc(strlen(key) + strlen(val) + 8);
data/criu-3.15/criu/mount.c:97: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(key);
data/criu-3.15/criu/mount.c:243: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).
	size_t pathlen = strlen(path);
data/criu-3.15/criu/mount.c:250: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).
			n = strlen(c->mountpoint + 1);
data/criu-3.15/criu/mount.c:486: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(val) + sizeof("dev[]");
data/criu-3.15/criu/mount.c:828: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).
	p_len = strlen(m->parent->mountpoint);
data/criu-3.15/criu/mount.c:829: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).
	m_len = strlen(m->mountpoint);
data/criu-3.15/criu/mount.c:1250: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).
	ovm_len = strlen(m->mountpoint) + 1;
data/criu-3.15/criu/mount.c:1255:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			int t_len = strlen(t->mountpoint);
data/criu-3.15/criu/mount.c:1478: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(root->mountpoint);
data/criu-3.15/criu/mount.c:1485:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mi->mountpoint = xmalloc(len + strlen(path) + 1);
data/criu-3.15/criu/mount.c:2265:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	mp_len = strlen(mi->bind->mountpoint);
data/criu-3.15/criu/mount.c:2702:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(path, m->mountpoint, PATH_MAX - 1);
data/criu-3.15/criu/mount.c:2921:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len  = strlen(mountpoint) + root_len + 1;
data/criu-3.15/criu/net.c:105:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	rlen = read(fd, buf, len);
data/criu-3.15/criu/net.c:1221:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	addattr_l(&req->h, sizeof(*req), IFLA_IFNAME, nde->name, strlen(nde->name));
data/criu-3.15/criu/net.c:1939:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (nft_run_cmd_from_buffer(nft, DUMP_NFTABLES_CMD, strlen(DUMP_NFTABLES_CMD)))
data/criu-3.15/criu/net.c:2097:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = read(sockfd, buf, 1024)) > 0) {
data/criu-3.15/criu/net.c:2274:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		nft_run_cmd_from_buffer(nft, buf, strlen(buf)))
data/criu-3.15/criu/page-xfer.c:1303:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(sk, &c, sizeof(c)) != 0) {
data/criu-3.15/criu/pagemap.c:434:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf + curr, len - curr);
data/criu-3.15/criu/path.c:51:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	rpath = m->mountpoint + strlen(pa->mountpoint);
data/criu-3.15/criu/path.c:86:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(pa->root) > strlen(p->root)) {
data/criu-3.15/criu/path.c:86:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(pa->root) > strlen(p->root)) {
data/criu-3.15/criu/path.c:91:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = strlen(cut_root);
data/criu-3.15/criu/path.c:94: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).
		rpath += strlen(cut_root);
data/criu-3.15/criu/pie/parasite.c:217:18:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	sys_umask(args->umask); /* never fails */
data/criu-3.15/criu/plugin.c:241:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(de->d_name);
data/criu-3.15/criu/proc_parse.c:310: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).
		link.len = strlen(fname);
data/criu-3.15/criu/proc_parse.c:856:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, buf, BUF_SIZE);
data/criu-3.15/criu/proc_parse.c:978:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	num = read(fd, buf, 10);
data/criu-3.15/criu/proc_parse.c:1003:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	num = read(fd, buf, 10);
data/criu-3.15/criu/proc_parse.c:1227: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).
			uoff += strlen(opt);
data/criu-3.15/criu/proc_parse.c:1330: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(path);
data/criu-3.15/criu/proc_parse.c:1374:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	root_link.len = strlen(new->root);
data/criu-3.15/criu/proc_parse.c:1385:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	new->mountpoint = xrealloc(new->mountpoint, strlen(new->mountpoint) + 1);
data/criu-3.15/criu/proc_parse.c:1431:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	new->options = xmalloc(strlen(opt) + 1);
data/criu-3.15/criu/proc_parse.c:1457:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(mountpoint) + 1);
data/criu-3.15/criu/proc_parse.c:1492:7:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
		if (sscanf(buf, "%9s %"PRId64" %"PRId64"\n", clockid, &sec, &nsec) != 3) {
data/criu-3.15/criu/proc_parse.c:2322:8:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
			if (sscanf(s, "signal: %d/%16s",
data/criu-3.15/criu/proc_parse.c:2520:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	f = fmemopen(args->contents, strlen(args->contents), "r");
data/criu-3.15/criu/proc_parse.c:2559:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pos = ext->path + strlen(ext->path) - strlen(intern->path+1);
data/criu-3.15/criu/proc_parse.c:2559:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			pos = ext->path + strlen(ext->path) - strlen(intern->path+1);
data/criu-3.15/criu/pstree.c:943:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf, sizeof(buf) - 1);
data/criu-3.15/criu/pstree.c:962:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (write(fd, buf, strlen(buf)) < 0) {
data/criu-3.15/criu/seize.c:53:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, state, sizeof(state) - 1);
data/criu-3.15/criu/seize.c:97:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, &state, 1);
data/criu-3.15/criu/seize.c:418:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(stack, stackbuf, sizeof(stackbuf) - 1);
data/criu-3.15/criu/sockets.c:333:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return do_restore_opt(sk, SOL_SOCKET, SO_BINDTODEVICE, n, strlen(n));
data/criu-3.15/criu/string.c:23:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t ret = strlen(src);
data/criu-3.15/criu/string.c:43:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t dsize = strlen(dest);
data/criu-3.15/criu/string.c:44:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(src);
data/criu-3.15/criu/sysctl.c:49:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof(buf));				\
data/criu-3.15/criu/sysctl.c:83: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).
		off += strlen(&buf[off]);				\
data/criu-3.15/criu/sysctl.c:132:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, arg, nr - 1);
data/criu-3.15/criu/sysctl.c:239:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int name_len = strlen((char *) &req[1]) + 1;
data/criu-3.15/criu/sysctl.c:444:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int name_len = strlen(req[i].name) + 1;
data/criu-3.15/criu/sysfs_parse.c:106: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).
		blen = strlen(aufs_branches[n]);
data/criu-3.15/criu/sysfs_parse.c:215:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	n = strlen(path);
data/criu-3.15/criu/tls.c:100:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		copied = read(fd, buf, min(len, buf_size));
data/criu-3.15/criu/tty.c:517:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = strlen(orig->rfe->name) + 1;
data/criu-3.15/criu/tty.c:2143:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(dinfo->lfd, &buf[off], size - off);
data/criu-3.15/criu/uffd.c:351:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = offsetof(struct sockaddr_un, sun_path) + strlen(sun.sun_path);
data/criu-3.15/criu/uffd.c:379:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = offsetof(struct sockaddr_un, sun_path) + strlen(saddr->sun_path);
data/criu-3.15/criu/uffd.c:1209:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(lpfd->fd, &msg, sizeof(msg));
data/criu-3.15/criu/util.c:112: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).
		offset = strlen(str);
data/criu-3.15/criu/util.c:113: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).
	delta = strlen(fmt) * 2;
data/criu-3.15/criu/util.c:805:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) >= PATH_MAX) {
data/criu-3.15/criu/util.c:816:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (; i < strlen(made_path); i++) {
data/criu-3.15/criu/util.c:838:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = strlen(prefix);
data/criu-3.15/criu/uts_ns.c:60:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	req[0].type = CTL_STR(strlen(ue->nodename));
data/criu-3.15/criu/uts_ns.c:62:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	req[1].type = CTL_STR(strlen(ue->domainname));
data/criu-3.15/criu/vdso-compat.c:14:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		syscall(__NR_write, err_fd, reason, strlen(reason));
data/criu-3.15/include/common/xmalloc.h:20:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define xstrdup(str)		__xalloc(strdup, strlen(str) + 1, str)
data/criu-3.15/lib/c/criu.c:1347:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sks[0], &pid, sizeof(pid)) != sizeof(pid)) {
data/criu-3.15/lib/c/criu.c:1385:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	addr_len = strlen(opts->service_address);
data/criu-3.15/soccr/test/tcp-conn.c:151:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(rst, &buf, sizeof(buf)) != sizeof(buf)) {
data/criu-3.15/soccr/test/tcp-conn.c:162:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(clnt, &buf, sizeof(buf)) != sizeof(buf)) {
data/criu-3.15/soccr/test/tcp-constructor.c:141:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(STDIN_FILENO, buf, 5) != 5)
data/criu-3.15/test/others/bers/bers.c:387:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write(pidfd, pidbuf, strlen(pidbuf));
data/criu-3.15/test/others/libcriu/test_iters.c:94:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p[0], &ret, sizeof(ret));
data/criu-3.15/test/others/libcriu/test_iters.c:101:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p[0], &ret, 1);
data/criu-3.15/test/others/libcriu/test_notify.c:59:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p[0], &ret, sizeof(ret));
data/criu-3.15/test/others/libcriu/test_notify.c:66:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p[0], &ret, 1);
data/criu-3.15/test/others/libcriu/test_sub.c:57:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p[0], &ret, sizeof(ret));
data/criu-3.15/test/others/libcriu/test_sub.c:64:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p[0], &ret, 1);
data/criu-3.15/test/others/mounts/ext/ns_init.c:128:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(start[0], &res, 1);
data/criu-3.15/test/others/pipes/pipe.c:501:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_safe(fd, buf, strlen(buf));
data/criu-3.15/test/others/pipes/pipe.c:613:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((n = read(fd, buf, count)) < 0)
data/criu-3.15/test/others/rpc/test-c.c:19:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(socket_fd, buf, MAX_MSG_SIZE);
data/criu-3.15/test/others/rpc/test-c.c:117:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	addr_len = strlen(addr.sun_path) + sizeof(addr.sun_family);
data/criu-3.15/test/others/socketpairs/socketpair.c:403:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	write_safe(fd, buf, strlen(buf));
data/criu-3.15/test/others/socketpairs/socketpair.c:522:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((n = read(fd, buf, count)) < 0)
data/criu-3.15/test/others/tcp/cln.c:26:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = read(sk, rbuf + rd, count - rd);
data/criu-3.15/test/others/tcp/cln.c:57:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rd = read(in_fd, buf, sizeof(buf));
data/criu-3.15/test/others/tcp/srv.c:19:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rd = read(sk, buf, sizeof(buf));
data/criu-3.15/test/others/unix-callback/syslog-lib.c:57:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	addr_len = strlen("/dev/log");
data/criu-3.15/test/others/unix-callback/syslog-lib.c:58:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
	strncpy(addr.sun_path, "/dev/log", addr_len);
data/criu-3.15/test/others/unix-callback/unix-lib.c:81:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (len != strlen(SK_NAME) ||
data/criu-3.15/test/others/unix-callback/unix-lib.c:82:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strncmp(addr.sun_path, SK_NAME, strlen(SK_NAME)))
data/criu-3.15/test/others/unix-callback/unix-lib.c:95:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	id = atoi(addr.sun_path + strlen(SK_NAME));
data/criu-3.15/test/others/unix-callback/unix-lib.c:144:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof(buf));
data/criu-3.15/test/others/unix-callback/unix-server.c:77:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			t->id = atoi(addr.sun_path +strlen(SK_NAME));
data/criu-3.15/test/others/unix-callback/unix-server.c:85:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				id = atoi(addr.sun_path + strlen(SK_NAME));
data/criu-3.15/test/zdtm/lib/fs.c:67:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(mountpoint);
data/criu-3.15/test/zdtm/lib/fs.c:76:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(m->root, root, sizeof(m->root));
data/criu-3.15/test/zdtm/lib/fs.c:77:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(m->mountpoint, mountpoint, sizeof(m->mountpoint));
data/criu-3.15/test/zdtm/lib/fs.c:78:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(m->fsname, fsname, sizeof(m->fsname) - 1);
data/criu-3.15/test/zdtm/lib/lock.c:42:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(t->pipes[0], &v, sizeof(v)) != sizeof(v))
data/criu-3.15/test/zdtm/lib/ns.c:263:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(STATUS_FD, buf, sizeof(buf));
data/criu-3.15/test/zdtm/lib/ns.c:341:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	x = malloc(strlen(pidfile) + 3);
data/criu-3.15/test/zdtm/lib/ns.c:395:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof(buf) - 1);
data/criu-3.15/test/zdtm/lib/ns.c:497: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).
	pidfile = malloc(strlen(pidfile) + 13);
data/criu-3.15/test/zdtm/lib/ns.c:505:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(args.status_pipe[0], &status, sizeof(status));
data/criu-3.15/test/zdtm/lib/ns.c:510:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(args.status_pipe[0], &status, sizeof(status));
data/criu-3.15/test/zdtm/lib/parseargs.c:135: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(argv[i]) < 2 || strncmp(argv[i], "--", 2)) {
data/criu-3.15/test/zdtm/lib/streamutil.c:31:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rlen = read(infd, buffer, length);
data/criu-3.15/test/zdtm/lib/streamutil.c:49:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf + cur, size - cur);
data/criu-3.15/test/zdtm/lib/sysctl.c:18:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof(buf) - 1);
data/criu-3.15/test/zdtm/lib/sysctl.c:48:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret = write(fd, buf, strlen(buf));
data/criu-3.15/test/zdtm/lib/test.c:373:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(criu_status_in, &ret, sizeof(ret)) != sizeof(ret)) {
data/criu-3.15/test/zdtm/static/autofs.c:43: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).
		offset = strlen(str);
data/criu-3.15/test/zdtm/static/autofs.c:44: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).
	delta = strlen(fmt) * 2;
data/criu-3.15/test/zdtm/static/autofs.c:317:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size = sizeof(struct autofs_dev_ioctl) + strlen(mountpoint) + 1;
data/criu-3.15/test/zdtm/static/autofs.c:475:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		bytes = read(pipe, packet, psize);
data/criu-3.15/test/zdtm/static/autofs.c:603:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	bytes = read(control_fd[0], &ret, sizeof(ret));
data/criu-3.15/test/zdtm/static/binfmt_misc.c:43:9:  [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.
	buf += sprintf(buf, ":");
data/criu-3.15/test/zdtm/static/binfmt_misc.c:86:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, p, PAGE_SIZE-1);
data/criu-3.15/test/zdtm/static/binfmt_misc.c:135:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(buf);
data/criu-3.15/test/zdtm/static/caps00.c:159:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(result_pipe[0], &res, 1);
data/criu-3.15/test/zdtm/static/caps00.c:164:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(result_pipe[0], data, sizeof(data));
data/criu-3.15/test/zdtm/static/caps00.c:165:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(result_pipe[0], data_2, sizeof(data_2));
data/criu-3.15/test/zdtm/static/cgroup00.c:123:5:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				read(pr[0], &status, sizeof(status));
data/criu-3.15/test/zdtm/static/cgroup00.c:146:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(pr[0], &status, sizeof(status));
data/criu-3.15/test/zdtm/static/cgroup00.c:159:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p1[0], &status, sizeof(status));
data/criu-3.15/test/zdtm/static/cgroup00.c:164:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p2[0], &status, sizeof(status));
data/criu-3.15/test/zdtm/static/cgroup00.c:179:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p1[0], &status, sizeof(status));
data/criu-3.15/test/zdtm/static/cgroup00.c:186:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p2[0], &status, sizeof(status));
data/criu-3.15/test/zdtm/static/cgroup04.c:32:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	l = write(fd, value, strlen(value));
data/criu-3.15/test/zdtm/static/cgroup04.c:96:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, buf, sizeof(buf) - 1);
data/criu-3.15/test/zdtm/static/cgroup04.c:153:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(buf, "\n");
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:64:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(fd, pid_str, strlen(pid_str)) != strlen(pid_str)) {
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:64:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(fd, pid_str, strlen(pid_str)) != strlen(pid_str)) {
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:112:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(out->ifname, prop_line, len);
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:171:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		written = write(fd, buf, strlen(buf));
data/criu-3.15/test/zdtm/static/cgroup_ifpriomap.c:260:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		int c = fgetc(fcgroup);
data/criu-3.15/test/zdtm/static/cgroup_stray.c:95: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).
		buf[strlen(buf)-1] = '\0';
data/criu-3.15/test/zdtm/static/cgroup_stray.c:167:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(sk, &c, 1) != 1) {
data/criu-3.15/test/zdtm/static/cgroup_stray.c:184:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((ret = read(sk, &c, 1)) != 1) {
data/criu-3.15/test/zdtm/static/cgroupns.c:93: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).
		buf[strlen(buf)-1] = '\0';
data/criu-3.15/test/zdtm/static/chroot-file.c:40:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, r, sizeof(r)) != sizeof(MSG))
data/criu-3.15/test/zdtm/static/chroot-file.c:76:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(pipe_prep[0], &res, 1);
data/criu-3.15/test/zdtm/static/chroot-file.c:77:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(pipe_prep[0], &res, 1); /* wait when a descriptor will be closed */
data/criu-3.15/test/zdtm/static/chroot-file.c:99:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(pipe_res[0], &res, 1);
data/criu-3.15/test/zdtm/static/chroot-file.c:146:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(pipe_goon[0], &res, 1);
data/criu-3.15/test/zdtm/static/chroot.c:41:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, r, sizeof(r)) != sizeof(MSG))
data/criu-3.15/test/zdtm/static/chroot.c:67:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	filepath = malloc(strlen(filename) + 2);
data/criu-3.15/test/zdtm/static/chroot.c:80:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(pipe_prep[0], &res, 1);
data/criu-3.15/test/zdtm/static/chroot.c:81:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(pipe_prep[0], &res, 1); /* wait when pipe_prep[] will be closed */
data/criu-3.15/test/zdtm/static/chroot.c:101:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(pipe_res[0], &res, 1);
data/criu-3.15/test/zdtm/static/chroot.c:143:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(pipe_goon[0], &res, 1);
data/criu-3.15/test/zdtm/static/cmdlinenv00.c:34:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf + r, size - r);
data/criu-3.15/test/zdtm/static/config_inotify_irmap.c:74:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, buf, sizeof(buf)) <= 0) {
data/criu-3.15/test/zdtm/static/cow00.c:45:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd1, &map1, sizeof(map1));
data/criu-3.15/test/zdtm/static/cow00.c:50:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd2, &map2, sizeof(map2));
data/criu-3.15/test/zdtm/static/cow01.c:120:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd_child, &map_child, sizeof(map_child));
data/criu-3.15/test/zdtm/static/cow01.c:127:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd_parent, &map_parent, sizeof(map_parent));
data/criu-3.15/test/zdtm/static/cow01.c:143:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, &p, sizeof(p)) != sizeof(p)) {
data/criu-3.15/test/zdtm/static/cow01.c:424:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, &p, sizeof(p));
data/criu-3.15/test/zdtm/static/criu-rtc.c:89:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(img_fd, &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/cwd01.c:31:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(p[0], &aux, sizeof(aux));
data/criu-3.15/test/zdtm/static/cwd02.c:28:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(p[0], &aux, sizeof(aux));
data/criu-3.15/test/zdtm/static/deleted_unix_sock.c:149:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sock, buf, sizeof(buf)) != sizeof(buf)) {
data/criu-3.15/test/zdtm/static/different_creds.c:77:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, &c, 1) != 1) {
data/criu-3.15/test/zdtm/static/different_creds.c:122:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(pipefd[1], &c, 1) != 1) {
data/criu-3.15/test/zdtm/static/dumpable02.c:21:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(0, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/dumpable02.c:39:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(pipe_output, buf, sizeof(buf) - 1);
data/criu-3.15/test/zdtm/static/epoll.c:126:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(pipes[i].pipefd[0], &cr, sizeof(cr)) != sizeof(cr)) {
data/criu-3.15/test/zdtm/static/epoll01.c:110:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(pipes[i].pipefd[0], &cr, sizeof(cr)) != sizeof(cr)) {
data/criu-3.15/test/zdtm/static/eventfs00.c:85:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(efd, &v, sizeof(v));
data/criu-3.15/test/zdtm/static/fanotify00.c:303:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	length = read(fa_fd, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/fd01.c:44:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/fdt_shared.c:41:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fork_pfd[0], &c, 1) != 1) {
data/criu-3.15/test/zdtm/static/fdt_shared.c:70:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(TEST_FD, buf, sizeof(TEST_STRING)) != sizeof(TEST_STRING)) {
data/criu-3.15/test/zdtm/static/fdt_shared.c:124:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(TEST_FD, buf, sizeof(TEST_STRING)) != sizeof(TEST_STRING)) {
data/criu-3.15/test/zdtm/static/fifo-rowo-pair.c:116:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd_master, &v, sizeof(v)) != sizeof(v)) {
data/criu-3.15/test/zdtm/static/fifo-rowo-pair.c:128:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd_slave, &v, sizeof(v)) != sizeof(v)) {
data/criu-3.15/test/zdtm/static/fifo_wronly.c:53:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = read(fd1, rbuf, 7);
data/criu-3.15/test/zdtm/static/file_append.c:47:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd2, tmp, 3);
data/criu-3.15/test/zdtm/static/file_attr.c:79:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(buf)) != sizeof(buf)) {
data/criu-3.15/test/zdtm/static/file_fown.c:163:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(pipes[0], &obtained, sizeof(obtained)) != sizeof(obtained)) {
data/criu-3.15/test/zdtm/static/ghost_on_rofs.c:138:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(GHOST_DATA)) != sizeof(GHOST_DATA)) {
data/criu-3.15/test/zdtm/static/ghost_on_rofs.c:148:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd_bind, buf, sizeof(GHOST_DATA)) != sizeof(GHOST_DATA)) {
data/criu-3.15/test/zdtm/static/helper_zombie_child.c:77:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sk_pair[0], &zombie, sizeof(zombie)) != sizeof(zombie)) {
data/criu-3.15/test/zdtm/static/inotify00.c:81:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(inotify_fd, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/inotify04.c:30:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(inotify_fd, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/inotify_irmap.c:60:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, buf, sizeof(buf)) <= 0) {
data/criu-3.15/test/zdtm/static/inotify_system.c:137:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, BUF_SIZE) == -1) {
data/criu-3.15/test/zdtm/static/inotify_system.c:297:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((len = read(inot_fd, event_set, EVENT_BUF_LEN)) < 0) {
data/criu-3.15/test/zdtm/static/ipc_namespace.c:83:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, buf, 32);
data/criu-3.15/test/zdtm/static/ipc_namespace.c:232:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	ret = write(fd, buf, strlen(buf));
data/criu-3.15/test/zdtm/static/jobctl00.c:71:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(0, str, sizeof(str)) < 0 ||
data/criu-3.15/test/zdtm/static/jobctl00.c:92:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(0, str, sizeof(str)) < 0) {
data/criu-3.15/test/zdtm/static/loginuid.c:32:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	num = read(fd, buf, 10);
data/criu-3.15/test/zdtm/static/memfd01.c:73:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, buf, 1) != 1)
data/criu-3.15/test/zdtm/static/mntns_link_remap.c:219:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(p[0], buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/oom_score_adj.c:31:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	num = read(fd, buf, 10);
data/criu-3.15/test/zdtm/static/overmount_sock.c:23:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(filename) >= sizeof(name->sun_path))
data/criu-3.15/test/zdtm/static/overmount_sock.c:172:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sock, buf, sizeof(buf)) != sizeof(buf)) {
data/criu-3.15/test/zdtm/static/overmounted_file.c:79:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(DATA)) != sizeof(DATA)) {
data/criu-3.15/test/zdtm/static/pdeath_sig.c:60:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read(pw[0], &ret, sizeof(ret));
data/criu-3.15/test/zdtm/static/pdeath_sig.c:81:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(pr[0], &ret, sizeof(ret));
data/criu-3.15/test/zdtm/static/pdeath_sig.c:101:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(pr[0], &ret, sizeof(ret));
data/criu-3.15/test/zdtm/static/pid00.c:40:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(f_p[0], &res, 1);
data/criu-3.15/test/zdtm/static/pid00.c:78:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(s_p[0], &res, 1);
data/criu-3.15/test/zdtm/static/pid00.c:86:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(r_p[0], &res, 1);
data/criu-3.15/test/zdtm/static/pipe00.c:65:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(12, buf, sizeof(TEST_STRING));
data/criu-3.15/test/zdtm/static/pipe00.c:76:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(12, buf, sizeof(TEST_STRING));
data/criu-3.15/test/zdtm/static/pipe00.c:100:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(12, buf, sizeof(TEST_STRING));
data/criu-3.15/test/zdtm/static/pipe01.c:107:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(pfd[0], buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/pipe03.c:47:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(p[0][0], buf, BUF_SIZE) != BUF_SIZE) {
data/criu-3.15/test/zdtm/static/posix_timers.c:421:2:  [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(500 * 1000);
data/criu-3.15/test/zdtm/static/pstree.c:34:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fp[0], &x, 1)) {
data/criu-3.15/test/zdtm/static/pstree.c:60:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sp[0], &x, 1)) {
data/criu-3.15/test/zdtm/static/pstree.c:69:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(rp[0], &x, 1) != 1) {
data/criu-3.15/test/zdtm/static/ptrace_sig.c:84:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(child_pipe[0], &status, sizeof(status));
data/criu-3.15/test/zdtm/static/ptrace_sig.c:139:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ret = read(child_pipe[0], &status, sizeof(status));
data/criu-3.15/test/zdtm/static/pty00.c:93:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fds, buf, sizeof(teststr) - 1);
data/criu-3.15/test/zdtm/static/pty00.c:111:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(tty, buf, sizeof(teststr) - 1);
data/criu-3.15/test/zdtm/static/pty01.c:96:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(slave1, buf, sizeof(teststr) - 1);
data/criu-3.15/test/zdtm/static/pty01.c:113:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(slave2, buf, sizeof(teststr) - 1);
data/criu-3.15/test/zdtm/static/pty02.c:86:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(slave, buf, sizeof(teststr) - 1);
data/criu-3.15/test/zdtm/static/pty03.c:66:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(slave, buf, sizeof(teststr) - 1);
data/criu-3.15/test/zdtm/static/rtc.c:46:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, &data, sizeof(unsigned long)) == -1)
data/criu-3.15/test/zdtm/static/s390x_regs_check.c:296: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.
			ptr += sprintf(ptr, " ");
data/criu-3.15/test/zdtm/static/s390x_regs_check.c:517:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(pipefd[0], &pid, sizeof(pid_t)) == -1) {
data/criu-3.15/test/zdtm/static/scm00.c:140:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(rfd, buf, sizeof(buf)) != sizeof(MSG)) {
data/criu-3.15/test/zdtm/static/scm03.c:140:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(p[0], buf, sizeof(buf)) != sizeof(MSG)) {
data/criu-3.15/test/zdtm/static/seccomp_filter.c:124:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(sk, &c, 1) != 1) {
data/criu-3.15/test/zdtm/static/seccomp_filter.c:136:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(sk, &c, 1) != 1) {
data/criu-3.15/test/zdtm/static/seccomp_filter.c:150:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((ret = read(sk, &c, 1)) != 1) {
data/criu-3.15/test/zdtm/static/seccomp_filter.c:162:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((ret = read(sk, &c, 1)) != 1) {
data/criu-3.15/test/zdtm/static/seccomp_filter_inheritance.c:121:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			if (read(sk, &c, 1) != 1) {
data/criu-3.15/test/zdtm/static/seccomp_filter_inheritance.c:147:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((ret = read(sk, &c, 1)) != 1) {
data/criu-3.15/test/zdtm/static/seccomp_filter_tsync.c:151:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(sk, &c, 1) != 1) {
data/criu-3.15/test/zdtm/static/seccomp_filter_tsync.c:175:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((ret = read(sk, &c, 1)) != 1) {
data/criu-3.15/test/zdtm/static/seccomp_strict.c:84:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(sk, &c, 1) != 1) {
data/criu-3.15/test/zdtm/static/seccomp_strict.c:96:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sk, &c, 1) != 1) {
data/criu-3.15/test/zdtm/static/selinux00.c:46: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).
	len = write(fd, CONTEXT, strlen(CONTEXT));
data/criu-3.15/test/zdtm/static/selinux00.c:70:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, context, strlen(CONTEXT));
data/criu-3.15/test/zdtm/static/selinux00.c:70:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = read(fd, context, strlen(CONTEXT));
data/criu-3.15/test/zdtm/static/selinux00.c:72:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (len != strlen(CONTEXT)) {
data/criu-3.15/test/zdtm/static/selinux00.c:74:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len, strlen(CONTEXT));
data/criu-3.15/test/zdtm/static/selinux00.c:78:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(context, CONTEXT, strlen(CONTEXT)) != 0) {
data/criu-3.15/test/zdtm/static/selinux01.c:48: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).
	len = write(fd, CONTEXT, strlen(CONTEXT));
data/criu-3.15/test/zdtm/static/selinux01.c:69: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).
	len = write(fd, CONTEXT, strlen(CONTEXT));
data/criu-3.15/test/zdtm/static/selinux01.c:93:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, context, strlen(CONTEXT));
data/criu-3.15/test/zdtm/static/selinux01.c:93:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	len = read(fd, context, strlen(CONTEXT));
data/criu-3.15/test/zdtm/static/selinux01.c:95:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (len != strlen(CONTEXT)) {
data/criu-3.15/test/zdtm/static/selinux01.c:97:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			len, strlen(CONTEXT));
data/criu-3.15/test/zdtm/static/selinux01.c:101:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(context, CONTEXT, strlen(CONTEXT)) != 0) {
data/criu-3.15/test/zdtm/static/selinux01.c:170:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(ctx, CONTEXT, strlen(CONTEXT)) != 0) {
data/criu-3.15/test/zdtm/static/selinux01.c:185:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strncmp(ctx, CONTEXT, strlen(CONTEXT)) != 0) {
data/criu-3.15/test/zdtm/static/session00.c:150:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(p[0], &testcases[i].pid, sizeof(pid));
data/criu-3.15/test/zdtm/static/session00.c:156:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(p[0], &testcases[i].pid, sizeof(pid));
data/criu-3.15/test/zdtm/static/session02.c:108:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(sk, &cmd, sizeof(cmd));
data/criu-3.15/test/zdtm/static/session02.c:194:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(sk, &status, sizeof(status));
data/criu-3.15/test/zdtm/static/session03.c:150:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(sk, &cmd, sizeof(cmd));
data/criu-3.15/test/zdtm/static/session03.c:238:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(sk, &status, sizeof(status));
data/criu-3.15/test/zdtm/static/signalfd00.c:50:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, &info, sizeof(info));
data/criu-3.15/test/zdtm/static/signalfd00.c:58:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(fd, &info, sizeof(info));
data/criu-3.15/test/zdtm/static/sk-unix-mntns.c:123:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(sk, &rbuf, sizeof(rbuf)) != len) {
data/criu-3.15/test/zdtm/static/sk-unix-rel.c:51: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).
	addrlen = strlen(filename);
data/criu-3.15/test/zdtm/static/sk-unix-rel.c:98:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ret, &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sk-unix01.c:73:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ssize_t __r = read(__f, __p, sizeof(*(__p)));	\
data/criu-3.15/test/zdtm/static/socket-ext.c:56:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	addrlen = sizeof(addr.sun_family) + strlen(path);
data/criu-3.15/test/zdtm/static/socket-raw.c:300:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	iph->tot_len	= sizeof(struct iphdr) + sizeof(struct udphdr) + strlen(string_data);
data/criu-3.15/test/zdtm/static/socket-raw.c:312:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	udph->len	= htons(8 + strlen(data));
data/criu-3.15/test/zdtm/static/socket-raw.c:319:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	psh.udp_length		= htons(sizeof(struct udphdr) + strlen(string_data));
data/criu-3.15/test/zdtm/static/socket-raw.c:321:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	psize = sizeof(psh) + sizeof(struct udphdr) + strlen(string_data);
data/criu-3.15/test/zdtm/static/socket-raw.c:329:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(pseudogram + sizeof(psh), udph, sizeof(*udph) + strlen(string_data));
data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c:78:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c:128:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(pfd[0], &port, sizeof(port)) != sizeof(port)) {
data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c:143:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(ctl_fd, &size, sizeof(size)) != sizeof(size)) {
data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c:162:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(ctl_fd, &c, 1) != 0) {
data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c:172:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fd, buf, sizeof(buf)) != sizeof(TEST_MSG) ||
data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c:233:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) {
data/criu-3.15/test/zdtm/static/socket-tcp-close-wait.c:274:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) {
data/criu-3.15/test/zdtm/static/socket-tcp-closed.c:109:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, &c, 1) != 0) {
data/criu-3.15/test/zdtm/static/socket-tcp-closed.c:113:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(clt, &c, 1) != 0) {
data/criu-3.15/test/zdtm/static/socket-tcp-closing.c:78:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/socket-tcp-closing.c:123:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(pfd[0], &port, sizeof(port)) != sizeof(port)) {
data/criu-3.15/test/zdtm/static/socket-tcp-closing.c:150:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(ctl_fd, &c, 1) != 0) {
data/criu-3.15/test/zdtm/static/socket-tcp-closing.c:204:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) {
data/criu-3.15/test/zdtm/static/socket-tcp-closing.c:221:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, &ret, sizeof(ret))) {
data/criu-3.15/test/zdtm/static/socket-tcp-closing.c:231:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) {
data/criu-3.15/test/zdtm/static/socket-tcp-fin-wait1.c:79:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/socket-tcp-fin-wait1.c:125:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(pfd[0], &port, sizeof(port)) != sizeof(port)) {
data/criu-3.15/test/zdtm/static/socket-tcp-fin-wait1.c:139:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(ctl_fd, &c, 1) != 0) {
data/criu-3.15/test/zdtm/static/socket-tcp-fin-wait1.c:220:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(ctl_fd, &ret, sizeof(ret)) != sizeof(ret)) {
data/criu-3.15/test/zdtm/static/socket-tcp-listen.c:36:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf + cur, size - cur);
data/criu-3.15/test/zdtm/static/socket-tcp-reseted.c:84:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(buf)) != 3) {
data/criu-3.15/test/zdtm/static/socket-tcp-reuseport.c:31:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf + cur, size - cur);
data/criu-3.15/test/zdtm/static/socket-tcp-syn-sent.c:123:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, &c, 1) != 1 || c != 5) {
data/criu-3.15/test/zdtm/static/socket-tcp-syn-sent.c:135:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sock, &c, 1) != 1 || c != 6) {
data/criu-3.15/test/zdtm/static/socket-tcp.c:36:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf + cur, size - cur);
data/criu-3.15/test/zdtm/static/socket-tcp.c:102:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(pfd[0], &port, sizeof(port)) != sizeof(port)) {
data/criu-3.15/test/zdtm/static/socket-tcpbuf.c:30:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, size) != size) {
data/criu-3.15/test/zdtm/static/socket-tcpbuf.c:88:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(fd, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/socket-tcpbuf.c:184:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(ctl_fd, &c, 1) != 0) {
data/criu-3.15/test/zdtm/static/socket_close_data.c:34:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(sks[0], buf, sizeof(MSG));
data/criu-3.15/test/zdtm/static/socket_close_data01.c:87:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(srv, buf, sizeof(MSG));
data/criu-3.15/test/zdtm/static/socket_dgram_data.c:66:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(srv, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/socket_dgram_data.c:73:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(srv, buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/socket_listen.c:78:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = read(fd, buf, BUF_SIZE);
data/criu-3.15/test/zdtm/static/socket_queues.c:58:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_pair_s[1], buf_left, strlen(SK_DATA_S1) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:58:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	read(ssk_pair_s[1], buf_left, strlen(SK_DATA_S1) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:63:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_pair_s[1], buf_right, strlen(SK_DATA_S2) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:63:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	read(ssk_pair_s[1], buf_right, strlen(SK_DATA_S2) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:70:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_pair_s[0], buf_left, strlen(SK_DATA_S2) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:70:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	read(ssk_pair_s[0], buf_left, strlen(SK_DATA_S2) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:75:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_pair_s[0], buf_right, strlen(SK_DATA_S1) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:75:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	read(ssk_pair_s[0], buf_right, strlen(SK_DATA_S1) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:82:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_pair_d[1], buf_left, strlen(SK_DATA_D1) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:82:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	read(ssk_pair_d[1], buf_left, strlen(SK_DATA_D1) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:87:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_pair_d[1], buf_right, strlen(SK_DATA_D2) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:87:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	read(ssk_pair_d[1], buf_right, strlen(SK_DATA_D2) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:94:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_pair_d[0], buf_left, strlen(SK_DATA_D2) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:94:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	read(ssk_pair_d[0], buf_left, strlen(SK_DATA_D2) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:99:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_pair_d[0], buf_right,strlen(SK_DATA_D1) + 1);
data/criu-3.15/test/zdtm/static/socket_queues.c:99:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	read(ssk_pair_d[0], buf_right,strlen(SK_DATA_D1) + 1);
data/criu-3.15/test/zdtm/static/sockets00.c:55: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).
	addrlen = strlen(path);
data/criu-3.15/test/zdtm/static/sockets00.c:146:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ret, &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets00.c:155:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_icon[3], &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets01.c:84:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(spu[1], buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets01.c:113:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(dpu[1], buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets01.c:138:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(dpd[1], buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets02.c:43:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(ssk_pair[0], &aux, sizeof(aux));
data/criu-3.15/test/zdtm/static/sockets02.c:50:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(ssk_pair[0], &aux, sizeof(aux));
data/criu-3.15/test/zdtm/static/sockets02.c:57:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ret = read(ssk_pair[1], &aux, sizeof(aux));
data/criu-3.15/test/zdtm/static/sockets03.c:49: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).
	addrlen = strlen(path);
data/criu-3.15/test/zdtm/static/sockets03.c:100:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(sk[2], &buf, sizeof(buf)) < 0) {
data/criu-3.15/test/zdtm/static/sockets_dgram.c:77:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) >= sizeof(name_bound.sun_path)) {
data/criu-3.15/test/zdtm/static/sockets_dgram.c:83:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(name_bound.sun_path, path, sizeof(name_bound.sun_path));
data/criu-3.15/test/zdtm/static/sockets_dgram.c:87:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) >= sizeof(name_conn.sun_path)) {
data/criu-3.15/test/zdtm/static/sockets_dgram.c:93:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(name_conn.sun_path, path, sizeof(name_conn.sun_path));
data/criu-3.15/test/zdtm/static/sockets_dgram.c:97: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).
       if (strlen(path) >= sizeof(name_bound_conn.sun_path)) {
data/criu-3.15/test/zdtm/static/sockets_dgram.c:103:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(name_bound_conn.sun_path, path, sizeof(name_bound_conn.sun_path));
data/criu-3.15/test/zdtm/static/sockets_dgram.c:145:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(sk_dgram_bound_server, &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets_dgram.c:154:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(sk_dgram_conn_server, &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets_dgram.c:163:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(sk_dgram_bound_conn, &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets_dgram.c:176:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(sk_dgram_bound_server, &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets_dgram.c:185:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(sk_dgram_conn_server, &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets_dgram.c:194:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(sk_dgram_bound_conn, &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets_spair.c:35:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_pair[1], &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/sockets_spair.c:47:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(ssk_pair[1], &buf, sizeof(buf));
data/criu-3.15/test/zdtm/static/stopped.c:33:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(p[0], &c, 1);
data/criu-3.15/test/zdtm/static/tempfs.c:76:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fdo, buf, sizeof(TEST_WORD)) != sizeof(TEST_WORD)) {
data/criu-3.15/test/zdtm/static/tempfs.c:94:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(TEST_WORD2)) != sizeof(TEST_WORD2)) {
data/criu-3.15/test/zdtm/static/tempfs_ro.c:61:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(TEST_WORD)) != sizeof(TEST_WORD)) {
data/criu-3.15/test/zdtm/static/tempfs_subns.c:114:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(fds[0], &fd, sizeof(fd)) != sizeof(fd)) {
data/criu-3.15/test/zdtm/static/tty03.c:87:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(pfd[0], &sid_a, 1) != 0) {
data/criu-3.15/test/zdtm/static/tun.c:56:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(ifr.ifr_name, name, sizeof(ifr.ifr_name)-1);
data/criu-3.15/test/zdtm/static/umask00.c:17:13:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	cur_mask = umask(mask);
data/criu-3.15/test/zdtm/static/umask00.c:22:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mask2 = umask(0);
data/criu-3.15/test/zdtm/static/umask00.c:28:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(cur_mask);
data/criu-3.15/test/zdtm/static/unlink_fstat00.c:154:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(buf)) != sizeof(buf)) {
data/criu-3.15/test/zdtm/static/unlink_multiple_largefiles.c:136:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, rbuf, BUFSIZE) != BUFSIZE) {
data/criu-3.15/test/zdtm/static/unlink_regular00.c:85:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(MSG)) != sizeof(MSG)) {
data/criu-3.15/test/zdtm/static/write_read00.c:46:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(buf)) != sizeof(buf)) {
data/criu-3.15/test/zdtm/static/write_read01.c:45:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, len) != len) {
data/criu-3.15/test/zdtm/static/write_read01.c:54:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf + len, sizeof(buf) - len) != (sizeof(buf) - len)) {
data/criu-3.15/test/zdtm/static/write_read02.c:65:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, full_len) != full_len) {
data/criu-3.15/test/zdtm/static/write_read10.c:101:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, buf, sizeof(buf)) != sizeof(buf)) {
data/criu-3.15/test/zdtm/static/xids00.c:71:3:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		read(tmp_pipe_sub[0], &stat, 1);
data/criu-3.15/test/zdtm/static/xids00.c:99:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(syncfd[0], &stat, 1);
data/criu-3.15/test/zdtm/static/xids00.c:101:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	read(syncfd[1], &stat, 1);
data/criu-3.15/test/zdtm/transition/epoll.c:167:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while (read(events[i].data.fd, buf, buf_size) > 0);
data/criu-3.15/test/zdtm/transition/fifo_dyn.c:114:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rlen = read(readfd, p, len);
data/criu-3.15/test/zdtm/transition/fifo_loop.c:156:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rlen = read(readfd, p, len);
data/criu-3.15/test/zdtm/transition/file_read.c:106:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		rv = read(fd, rbuf, 1024);
data/criu-3.15/test/zdtm/transition/fork.c:43:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ret = read(p[0], &children, sizeof(children));
data/criu-3.15/test/zdtm/transition/fork.c:58:5:  [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(10000);
data/criu-3.15/test/zdtm/transition/pipe_loop00.c:123:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rlen = read(in, p, len);
data/criu-3.15/test/zdtm/transition/pipe_shared00.c:68:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				int rlen = read(pipes[0], buf, sizeof(buf));
data/criu-3.15/test/zdtm/transition/socket_loop00.c:125:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			rlen = read(in, p, len);
data/criu-3.15/test/zdtm/transition/unix_sock.c:33:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(filename) >= sizeof(name->sun_path))
data/criu-3.15/test/zdtm/transition/unix_sock.c:228:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				if (read(child_desc[i].sock, buf, sizeof(buf)) < 0) {

ANALYSIS SUMMARY:

Hits = 2287
Lines analyzed = 156572 in approximately 3.85 seconds (40712 lines/second)
Physical Source Lines of Code (SLOC) = 117005
Hits@level = [0] 720 [1] 507 [2] 1323 [3] 110 [4] 318 [5]  29
Hits@level+ = [0+] 3007 [1+] 2287 [2+] 1780 [3+] 457 [4+] 347 [5+]  29
Hits/KSLOC@level+ = [0+] 25.6998 [1+] 19.5462 [2+] 15.213 [3+] 3.90582 [4+] 2.96569 [5+] 0.247853
Symlinks skipped = 84 (--allowlink overrides but see doc for security issue)
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.