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/cde-0.1+git9-g551e54d/first-draft/cde-exec.c Examining data/cde-0.1+git9-g551e54d/first-draft/cde.c Examining data/cde-0.1+git9-g551e54d/first-draft/cde.h Examining data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c Examining data/cde-0.1+git9-g551e54d/first-draft/paths-test.c Examining data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/alloca-conf.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/ansidecl.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/aout/ar.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/bfd.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/bfdver.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/binary-io.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/bucomm.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/config.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/alpha.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/arc.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/arm.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/avr.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/bfin.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/common.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/cr16.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/cris.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/crx.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/d10v.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/d30v.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/dlx.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/fr30.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/frv.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/h8.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/hppa.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/i370.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/i386.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/i860.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/i960.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/ia64.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/internal.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/ip2k.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/iq2000.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/lm32.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/m32c.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/m32r.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/m68hc11.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/m68k.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mcore.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mep.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/microblaze.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mmix.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mn10200.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mn10300.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/msp430.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mt.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/or32.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/pj.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/ppc.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/ppc64.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/reloc-macros.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/s390.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/score.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/sh.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/sparc.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/spu.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/v850.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/vax.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/x86-64.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/xstormy16.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/xtensa.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/filenames.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/fopen-same.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/getopt.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/libiberty.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/safe-ctype.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/symcat.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/sysdep.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/include/unwind-ia64.h Examining data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c Examining data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c Examining data/cde-0.1+git9-g551e54d/readelf-mini/version.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/bjm.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/block.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/cde.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/cde.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/count.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/defs.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/desc.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/file.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/freebsd/i386/errnoent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/freebsd/i386/ioctlent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/freebsd/i386/signalent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/freebsd/i386/syscall.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/freebsd/i386/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/io.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/ioctl.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/ioctlsort.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/ipc.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/alpha/errnoent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/alpha/signalent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/alpha/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/arm/errnoent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/arm/ioctlent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/arm/signalent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/arm/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/arm/syscallent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/avr32/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/bfin/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/dummy.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/errnoent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/hppa/errnoent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/hppa/signalent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/hppa/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/i386/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/ia64/signalent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/ia64/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/ioctlsort.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/m68k/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/microblaze/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/mips/errnoent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/mips/signalent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/mips/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/powerpc/errnoent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/powerpc/ioctlent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/powerpc/signalent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/powerpc/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/powerpc/syscallent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/s390/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/s390x/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sh/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sh64/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/signalent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc/dummy2.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc/errnoent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc/errnoent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc/ioctlent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc/signalent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc/signalent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc/syscall1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc/syscallent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/dummy2.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/errnoent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/errnoent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/errnoent2.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/ioctlent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/ioctlent2.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/signalent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/signalent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/signalent2.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/syscall1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/syscallent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/sparc64/syscallent2.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/syscall.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/tile/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/x86_64/errnoent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/x86_64/ioctlent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/x86_64/signalent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/x86_64/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/linux/x86_64/syscallent1.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/mem.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/net.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/okapi.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/proc.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/process.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/quota.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/resource.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/scsi.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/signal.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/sock.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/strace.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/stream.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/sunos4/dummy.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/sunos4/errnoent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/sunos4/ioctlent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/sunos4/signalent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/sunos4/syscall.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/sunos4/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/svr4/dummy.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/svr4/errnoent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/svr4/ioctlent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/svr4/signalent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/svr4/syscall.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/svr4/syscallent.h Examining data/cde-0.1+git9-g551e54d/strace-4.6/syscall.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/system.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/term.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/time.c Examining data/cde-0.1+git9-g551e54d/strace-4.6/util.c Examining data/cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c Examining data/cde-0.1+git9-g551e54d/tests/path-library-test/paths_test.c Examining data/cde-0.1+git9-g551e54d/tests/pwd_exec_test/hello-world.c Examining data/cde-0.1+git9-g551e54d/tests/static_binary_test/hello-world-static.c FINAL RESULTS: data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2290:15: [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. int len = readlink(cwd_symlink_name, tcp->current_dir, MAXPATHLEN); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2913:15: [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. int len = readlink("/proc/self/exe", data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3243:5: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(progname_redirected, 0777); // now make the script executable data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3268:5: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(toplevel_script_name, 0777); // now make the script executable data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:92:13: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. int len = readlink(filename, path, sizeof path); data/cde-0.1+git9-g551e54d/first-draft/cde-exec.c:57:5: [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(target_program_argv[0], target_program_argv); data/cde-0.1+git9-g551e54d/first-draft/cde.c:18:5: [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(target_program_argv[0], target_program_argv); data/cde-0.1+git9-g551e54d/first-draft/cde.c:98:19: [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(rel_path, filename); data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:181:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(ret->stack[pos]->str, path->stack[pos]->str); data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:334:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(base->stack[base->depth]->str, path); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3831:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmp, "%s%+d", regname (fc->cfa_reg, 1), fc->cfa_offset); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3853:8: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (tmp, "%s", regname (fc->col_offset[r], 0)); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4724:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (stderr, message, args); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4735:3: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (stderr, message, args); data/cde-0.1+git9-g551e54d/readelf-mini/include/libiberty.h:613: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. extern int snprintf (char *, size_t, const char *, ...) ATTRIBUTE_PRINTF_3; data/cde-0.1+git9-g551e54d/readelf-mini/include/libiberty.h:618:12: [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. extern int vsnprintf (char *, size_t, const char *, va_list) ATTRIBUTE_PRINTF(3,0); data/cde-0.1+git9-g551e54d/readelf-mini/include/sysdep.h:97:12: [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. extern int fprintf (FILE *, const char *, ...); data/cde-0.1+git9-g551e54d/readelf-mini/include/sysdep.h:101: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. extern int snprintf(char *, size_t, const char *, ...); data/cde-0.1+git9-g551e54d/readelf-mini/include/sysdep.h:105:12: [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. extern int vsnprintf(char *, size_t, const char *, va_list); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:980:4: [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 (do_wide data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:986:4: [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 (do_wide data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:991:4: [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 (do_wide data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:997:4: [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 (do_wide data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1242: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 (do_wide ? "%-22.22s" : "%-17.17s", rtype); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1311:5: [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 (is_32bit_elf ? " " : " "); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2192:8: [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, isa); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2194: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, additional); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2212:5: [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, mac); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:3610:12: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (fscanf (file, fmt, program_interpreter) <= 0) data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:4385: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 ((do_wide ? " [%2u] %-17s %-15s " data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:5424:28: [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 PF(_m) if (tp->_m) printf (#_m " "); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:5425:28: [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 PV(_m) if (tp->_m) printf (#_m "=%d ", tp->_m); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7697:5: [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 ((vers_data & 0x8000) data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11691:13: [4] (buffer) fscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. If the scanf format is influenceable by an attacker, it's exploitable. if (fscanf (file, fmt, program_interpreter) <= 0) { data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:137:7: [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 (cp, special_reg[abreg & 0xf]); data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:204: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 (maskstr, sep); \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:210: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 (maskstr, sep); \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:216: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 (maskstr, sep); \ data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:556: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(tcp->localshm, redirected_filename); // hopefully this doesn't overflow :0 data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:623:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tcp->localshm, redirected_filename1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:627:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(redirect_file2_begin, redirected_filename2); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:657:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tcp->localshm, redirected_filename1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:678:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tcp->localshm, redirected_filename2); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:725:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tcp->localshm, redirected_filename1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:729:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(redirect_file2_begin, redirected_filename2); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:753:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tcp->localshm, redirected_filename1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:774:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tcp->localshm, redirected_filename2); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:821:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tcp->localshm, redirected_filename1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:825:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(redirect_file2_begin, redirected_filename2); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:849:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tcp->localshm, redirected_filename1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:870:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tcp->localshm, redirected_filename2); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1533:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(base, ld_linux_fullpath); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1564:13: [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_loc, program_full_path_in_cderoot); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1575:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cur_loc, p); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1723:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(base, ld_linux_fullpath); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1793:7: [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(real_program_path_base, tcp->perceived_program_fullpath); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2650:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dst, redirected_src); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2654:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(dst, src); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2727:7: [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(tcp->current_dir, tmp); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2848:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(tcp->current_dir, tcp->parent->current_dir); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2922:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cde_pseudo_root_dir, toplevel_cde_root_path); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2932:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cde_pseudo_root_dir, tmp); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3570: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(cde_full_environment_abspath, cde_pseudo_root_dir); data/cde-0.1+git9-g551e54d/strace-4.6/defs.h:681:26: [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. __attribute__ ((format (printf, 1, 2))) data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:565:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str, "%s%s [%u", sep, data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:576:7: [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(outstr, str); data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:591:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str, "%sleft ", sep); data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:594:5: [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(outstr, str); data/cde-0.1+git9-g551e54d/strace-4.6/file.c:804:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s%s%s%s", s, data/cde-0.1+git9-g551e54d/strace-4.6/file.c:1817:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "\"%s\"", s); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:194:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(base->stack[base->depth]->str, path); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:356:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cano_dir, fake_cano_dir); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:382:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(cano_filename, fake_cano_filename); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:652:5: [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(relative_symlink_target, orig_symlink_target_suffix); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:322: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(outstr, str); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:355:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s, format, signalent[i] + 3); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:361:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s, format, tsig); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:367:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(s, format, tsig); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:379: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(_PATH_BSHELL, "sh", "-c", command, NULL); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:496:6: [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, ntid > 1 data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:556: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(pathname, filename); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:565: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(pathname, filename); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:591: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(pathname + len, filename); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:598:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(path_to_search, pathname); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:618:7: [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_to_search, pathname); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:739: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(pathname, argv); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:2913:11: [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. int n = vfprintf(outf, fmt, args); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:410:5: [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(outstr, str); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:411:5: [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(outstr, flagstr); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:424:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(str, "%sleft ", cumlen ? ", " : ""); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:427:5: [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(outstr, str); data/cde-0.1+git9-g551e54d/strace-4.6/syscall.c:355: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(buf, s); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:322: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(outstr, prefix); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:328: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(outstr, xlat->str); data/cde-0.1+git9-g551e54d/readelf-mini/include/getopt.h:113:12: [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. extern int getopt (int argc, char *const *argv, const char *shortopts); data/cde-0.1+git9-g551e54d/readelf-mini/include/getopt.h:116:12: [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. extern int getopt (); data/cde-0.1+git9-g551e54d/readelf-mini/include/getopt.h:121:12: [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. extern int getopt_long (int argc, char *const *argv, const char *shortopts, data/cde-0.1+git9-g551e54d/readelf-mini/include/getopt.h:133:12: [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. extern int getopt (); data/cde-0.1+git9-g551e54d/readelf-mini/include/getopt.h:134:12: [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. extern int getopt_long (); data/cde-0.1+git9-g551e54d/readelf-mini/include/sysdep.h:89: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. extern char *getenv (); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:3044:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2748:12: [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. for (p = getenv("PATH"); p && *p; p += m) { data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:81:15: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. char* ret = realpath(filename, path); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:571: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. for (path = getenv("PATH"); path && *path; path += m) { data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:898:14: [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 ((c = getopt(argc, argv, data/cde-0.1+git9-g551e54d/first-draft/cde-exec.c:69: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 filename[255]; // hope this is big enough! data/cde-0.1+git9-g551e54d/first-draft/cde-exec.c:107:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(child_pcb->localshm, "infile2.txt"); data/cde-0.1+git9-g551e54d/first-draft/cde-exec.c:117:15: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(child_pcb->localshm, "/home/pgbovine/ptrace-test/libs/libpython2.5.so.1.0"); data/cde-0.1+git9-g551e54d/first-draft/cde.c:30: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 filename[255]; // hope this is big enough! data/cde-0.1+git9-g551e54d/first-draft/cde.c:97:19: [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(rel_path, "cde-root"); data/cde-0.1+git9-g551e54d/first-draft/cde.h:138: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 str[0]; data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:58: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 filename[20]; data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:59: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 s[80]; data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:62:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename, "/proc/%d/maps", pid); data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:64:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "r"); data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:244: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(dest, path->stack[i]->str, path->stack[i]->len); data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:358: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[4096]; data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:360: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). EXITIF((inF = open(src_filename, O_RDONLY)) < 0); data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:362: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). EXITIF((outF = open(dst_filename, O_WRONLY | O_CREAT, 0777)) < 0); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:220: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 buff[18]; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:646:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[100]; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:682:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[100]; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:1778:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[100]; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:1988: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. ((unsigned char *) debug_displays [abbrev].section.start data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:1990: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. (unsigned char *) debug_displays [abbrev].section.start data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2606:39: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (do_wide || strlen ((char *) directory_table[0]) < 76) data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2789:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *fileName = (char *)file_table[state_machine_regs.file - 1].name; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3783: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 reg[64]; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3802:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp[100]; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3829:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (tmp, "exp"); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3847: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. sprintf (tmp, "c%+d", fc->col_offset[r]); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3850: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. sprintf (tmp, "v%+d", fc->col_offset[r]); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3856:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (tmp, "exp"); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3859:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (tmp, "vexp"); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3862:8: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy (tmp, "n/a"); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4086:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fc->col_type, cie->col_type, fc->ncols * sizeof (short int)); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4087:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (fc->col_offset, cie->col_offset, fc->ncols * sizeof (int)); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4464:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (rs->col_type, fc->col_type, rs->ncols); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4465:8: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (rs->col_offset, fc->col_offset, rs->ncols * sizeof (int)); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4478: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 (fc->col_type, rs->col_type, rs->ncols); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4479: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 (fc->col_offset, rs->col_offset, data/cde-0.1+git9-g551e54d/readelf-mini/include/aout/ar.h:45: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 ar_name[16]; /* Name of this member. */ data/cde-0.1+git9-g551e54d/readelf-mini/include/aout/ar.h:46: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 ar_date[12]; /* File mtime. */ data/cde-0.1+git9-g551e54d/readelf-mini/include/aout/ar.h: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 ar_uid[6]; /* Owner uid; printed as decimal. */ data/cde-0.1+git9-g551e54d/readelf-mini/include/aout/ar.h: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 ar_gid[6]; /* Owner gid; printed as decimal. */ data/cde-0.1+git9-g551e54d/readelf-mini/include/aout/ar.h:49: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 ar_mode[8]; /* File mode, printed as octal. */ data/cde-0.1+git9-g551e54d/readelf-mini/include/aout/ar.h:50:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ar_size[10]; /* File size, printed as decimal. */ data/cde-0.1+git9-g551e54d/readelf-mini/include/aout/ar.h:51: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 ar_fmag[2]; /* Should contain ARFMAG. */ data/cde-0.1+git9-g551e54d/readelf-mini/include/bfd.h:72:30: [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 LITMEMCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2) - 1) data/cde-0.1+git9-g551e54d/readelf-mini/include/bfd.h:73:30: [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 LITSTRCPY(DEST,STR2) memcpy ((DEST), (STR2), sizeof (STR2)) data/cde-0.1+git9-g551e54d/readelf-mini/include/bfd.h:149:26: [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. #define sprintf_vma(s,x) sprintf (s, "%016" BFD_VMA_FMT "x", x) data/cde-0.1+git9-g551e54d/readelf-mini/include/bfd.h:172:26: [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. #define sprintf_vma(s,x) sprintf (s, "%08" BFD_VMA_FMT "x", x) data/cde-0.1+git9-g551e54d/readelf-mini/include/bfd.h:977: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). void *(*open) (struct bfd *nbfd, data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:52:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char li_length [4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:53:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char li_version [2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:54:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char li_prologue_length [4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:55:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char li_min_insn_length [1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:56:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char li_default_is_stmt [1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:57:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char li_line_base [1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:58:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char li_line_range [1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:59:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char li_opcode_base [1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:79:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char pn_length [4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:80:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char pn_version [2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:81:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char pn_offset [4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:82:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char pn_size [4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:98:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char cu_length [4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:99:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char cu_version [2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:100:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char cu_abbrev_offset [4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:101:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char cu_pointer_size [1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:116:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ar_length [4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:117:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ar_version [2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:118:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ar_info_offset [4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:119:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ar_pointer_size [1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/dwarf2.h:120:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ar_segment_size [1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:54:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_ident[16]; /* ELF "magic number" */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:55:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_type[2]; /* Identifies object file type */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:56:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_machine[2]; /* Specifies required architecture */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:57:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_version[4]; /* Identifies object file version */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:58:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_entry[4]; /* Entry point virtual address */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:59:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_phoff[4]; /* Program header table file offset */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:60:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_shoff[4]; /* Section header table file offset */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:61:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_flags[4]; /* Processor-specific flags */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:62:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_ehsize[2]; /* ELF header size in bytes */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:63:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_phentsize[2]; /* Program header table entry size */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:64:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_phnum[2]; /* Program header table entry count */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:65:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_shentsize[2]; /* Section header table entry size */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:66:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_shnum[2]; /* Section header table entry count */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:67:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_shstrndx[2]; /* Section header string table index */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:71:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_ident[16]; /* ELF "magic number" */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:72:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_type[2]; /* Identifies object file type */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:73:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_machine[2]; /* Specifies required architecture */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:74:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_version[4]; /* Identifies object file version */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:75:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_entry[8]; /* Entry point virtual address */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:76:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_phoff[8]; /* Program header table file offset */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:77:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_shoff[8]; /* Section header table file offset */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:78:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_flags[4]; /* Processor-specific flags */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:79:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_ehsize[2]; /* ELF header size in bytes */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:80:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_phentsize[2]; /* Program header table entry size */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:81:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_phnum[2]; /* Program header table entry count */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:82:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_shentsize[2]; /* Section header table entry size */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:83:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_shnum[2]; /* Section header table entry count */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:84:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_shstrndx[2]; /* Section header string table index */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:90:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_type[4]; /* Identifies program segment type */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:91:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_offset[4]; /* Segment file offset */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:92:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_vaddr[4]; /* Segment virtual address */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:93:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_paddr[4]; /* Segment physical address */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:94:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_filesz[4]; /* Segment size in file */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:95:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_memsz[4]; /* Segment size in memory */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:96:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_flags[4]; /* Segment flags */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:97:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_align[4]; /* Segment alignment, file & memory */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:101:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_type[4]; /* Identifies program segment type */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:102:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_flags[4]; /* Segment flags */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:103:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_offset[8]; /* Segment file offset */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:104:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_vaddr[8]; /* Segment virtual address */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:105:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_paddr[8]; /* Segment physical address */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:106:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_filesz[8]; /* Segment size in file */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:107:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_memsz[8]; /* Segment size in memory */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:108:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char p_align[8]; /* Segment alignment, file & memory */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:114:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_name[4]; /* Section name, index in string tbl */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:115:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_type[4]; /* Type of section */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:116:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_flags[4]; /* Miscellaneous section attributes */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:117:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_addr[4]; /* Section virtual addr at execution */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:118:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_offset[4]; /* Section file offset */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:119:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_size[4]; /* Size of section in bytes */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:120:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_link[4]; /* Index of another section */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:121:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_info[4]; /* Additional section information */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:122:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_addralign[4]; /* Section alignment */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:123:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_entsize[4]; /* Entry size if section holds table */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:127:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_name[4]; /* Section name, index in string tbl */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:128:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_type[4]; /* Type of section */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:129:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_flags[8]; /* Miscellaneous section attributes */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:130:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_addr[8]; /* Section virtual addr at execution */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:131:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_offset[8]; /* Section file offset */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:132:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_size[8]; /* Size of section in bytes */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:133:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_link[4]; /* Index of another section */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:134:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_info[4]; /* Additional section information */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:135:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_addralign[8]; /* Section alignment */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:136:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char sh_entsize[8]; /* Entry size if section holds table */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:142:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_name[4]; /* Symbol name, index in string tbl */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:143:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_value[4]; /* Value of the symbol */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:144:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_size[4]; /* Associated symbol size */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:145:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_info[1]; /* Type and binding attributes */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:146:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_other[1]; /* No defined meaning, 0 */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:147:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_shndx[2]; /* Associated section index */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:151:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_name[4]; /* Symbol name, index in string tbl */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:152:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_info[1]; /* Type and binding attributes */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:153:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_other[1]; /* No defined meaning, 0 */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:154:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_shndx[2]; /* Associated section index */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:155:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_value[8]; /* Value of the symbol */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:156:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char st_size[8]; /* Associated symbol size */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:160:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char est_shndx[4]; /* Section index */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:166:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char namesz[4]; /* Size of entry's owner string */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:167:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char descsz[4]; /* Size of the note descriptor */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:168:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char type[4]; /* Interpretation of the descriptor */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:169:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[1]; /* Start of the name+desc data */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:174:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_offset[4]; /* Location at which to apply the action */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:175:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_info[4]; /* index and type of relocation */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:179:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_offset[4]; /* Location at which to apply the action */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:180:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_info[4]; /* index and type of relocation */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:181:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_addend[4]; /* Constant addend used to compute value */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:185:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_offset[8]; /* Location at which to apply the action */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:186:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_info[8]; /* index and type of relocation */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:190:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_offset[8]; /* Location at which to apply the action */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:191:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_info[8]; /* index and type of relocation */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:192:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_addend[8]; /* Constant addend used to compute value */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:198:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char d_tag[4]; /* entry tag value */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:200: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. unsigned char d_val[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:201: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. unsigned char d_ptr[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:206:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char d_tag[8]; /* entry tag value */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:208: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. unsigned char d_val[8]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:209: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. unsigned char d_ptr[8]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:220:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vd_version[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:221:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vd_flags[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:222:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vd_ndx[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:223:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vd_cnt[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:224:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vd_hash[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:225:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vd_aux[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:226:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vd_next[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:232:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vda_name[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:233:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vda_next[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:239:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vn_version[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:240:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vn_cnt[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:241:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vn_file[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:242:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vn_aux[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:243:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vn_next[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:249:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vna_hash[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:250:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vna_flags[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:251:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vna_other[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:252:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vna_name[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:253:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vna_next[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:260:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char vs_vers[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:266:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char si_boundto[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:267:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char si_flags[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:274:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char a_type[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:275:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char a_val[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:280:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char a_type[8]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/external.h:281:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char a_val[8]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/internal.h:70:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char e_ident[EI_NIDENT]; /* ELF "magic number" */ data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:392:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char l_name[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:393:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char l_time_stamp[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:394:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char l_checksum[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:395:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char l_version[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:396:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char l_flags[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:424: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. typedef unsigned char Elf32_External_Conflict[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:427: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. typedef unsigned char Elf64_External_Conflict[8]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:461:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char gt_current_g_value[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:462:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char gt_unused[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:466:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char gt_g_value[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:467:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char gt_bytes[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:486:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ri_gprmask[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:487:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ri_cprmask[4][4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:488:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ri_gp_value[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:772:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_offset[8]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:774:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_sym[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:776:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_ssym[1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:778:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_type3[1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:780:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_type2[1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:782:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_type[1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:806:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_offset[8]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:808:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_sym[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:810:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_ssym[1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:812:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_type3[1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:814:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_type2[1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:816:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_type[1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:818:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char r_addend[8]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:865:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char kind[1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:867:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char size[1]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:869:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char section[2]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:871:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char info[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:935:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ri_gprmask[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:937:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ri_pad[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:939:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ri_cprmask[4][4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:941:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ri_gp_value[8]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:960:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ms_hash_value[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/elf/mips.h:968:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char ms_info[4]; data/cde-0.1+git9-g551e54d/readelf-mini/include/libiberty.h:360: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. extern const unsigned char _hex_value[_hex_array_size]; data/cde-0.1+git9-g551e54d/readelf-mini/include/libiberty.h:643:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len); })) data/cde-0.1+git9-g551e54d/readelf-mini/include/libiberty.h:657:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (char *) memcpy (libiberty_nptr, libiberty_optr, libiberty_len)) data/cde-0.1+git9-g551e54d/readelf-mini/include/safe-ctype.h:110: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. extern const unsigned char _sch_toupper[256]; data/cde-0.1+git9-g551e54d/readelf-mini/include/safe-ctype.h:111: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. extern const unsigned char _sch_tolower[256]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:185: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 program_interpreter[PATH_MAX]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:335:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. ((char *) mvar)[size * nmemb] = '\0'; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1317: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 name_buf[40]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1349: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 (name_buf, "<section 0x%x>", data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1618: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 buff[64]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1771: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1795: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 buff[64]; /* XXX */ data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1927:7: [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 (buf, ", relocatable executable"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1933:7: [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 (buf, ", has entry point"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1941:7: [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 (buf, ", <unrecognized EABI>"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1947:7: [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 (buf, ", Version1 EABI"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1959:8: [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 (buf, ", sorted symbol tables"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1970:7: [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 (buf, ", Version2 EABI"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1982:8: [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 (buf, ", sorted symbol tables"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1986:8: [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 (buf, ", dynamic symbols use segment index"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:1990:8: [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 (buf, ", mapping symbols precede others"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2001:7: [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 (buf, ", Version3 EABI"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2005:7: [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 (buf, ", Version4 EABI"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2009:7: [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 (buf, ", Version5 EABI"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2022:8: [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 (buf, ", BE8"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2026:8: [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 (buf, ", LE8"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2037:7: [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 (buf, ", GNU EABI"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2049:8: [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 (buf, ", interworking enabled"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2053:8: [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 (buf, ", uses APCS/26"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2057:8: [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 (buf, ", uses APCS/float"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2061:8: [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 (buf, ", position independent"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2065:8: [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 (buf, ", 8 bit structure alignment"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2069:8: [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 (buf, ", uses new ABI"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2073:8: [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 (buf, ", uses old ABI"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2077:8: [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 (buf, ", software FP"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2081:8: [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 (buf, ", VFP"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2085:8: [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 (buf, ", Maverick FP"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2096:5: [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 (buf,", <unknown>"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2102: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 buf[1024]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2124:8: [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 (buf, ", fr???"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2128:8: [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 (buf, ", fr300"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2132:8: [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 (buf, ", fr400"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2135:8: [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 (buf, ", fr405"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2139:8: [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 (buf, ", fr450"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2143:8: [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 (buf, ", fr500"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2146:8: [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 (buf, ", fr550"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2150:8: [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 (buf, ", simple"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2153:8: [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 (buf, ", tomcat"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2160:6: [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 (buf, ", m68000"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2162:6: [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 (buf, ", cpu32"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2164:6: [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 (buf, ", fido_a"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2191:8: [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 (buf, ", cf, isa "); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2196:3: [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 (buf, ", float"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2211:5: [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 (buf, ", "); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2219:6: [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 (buf, ", emb"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2222:6: [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 (buf, ", relocatable"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2225:6: [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 (buf, ", relocatable-lib"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2233:8: [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 (buf, ", v850e1"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2236:8: [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 (buf, ", v850e"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2239:8: [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 (buf, ", v850"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2242:8: [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 (buf, ", unknown v850 architecture variant"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2250:6: [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 (buf, ", m32r"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2256:6: [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 (buf, ", noreorder"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2259:6: [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 (buf, ", pic"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2262:6: [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 (buf, ", cpic"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2265:6: [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 (buf, ", ugen_reserved"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2268:6: [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 (buf, ", abi2"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2271:6: [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 (buf, ", odk first"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2274:6: [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 (buf, ", 32bitmode"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2278:29: [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. case E_MIPS_MACH_3900: strcat (buf, ", 3900"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2279:29: [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. case E_MIPS_MACH_4010: strcat (buf, ", 4010"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2280:29: [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. case E_MIPS_MACH_4100: strcat (buf, ", 4100"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2281:29: [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. case E_MIPS_MACH_4111: strcat (buf, ", 4111"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2282:29: [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. case E_MIPS_MACH_4120: strcat (buf, ", 4120"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2283:29: [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. case E_MIPS_MACH_4650: strcat (buf, ", 4650"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2284:29: [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. case E_MIPS_MACH_5400: strcat (buf, ", 5400"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2285:29: [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. case E_MIPS_MACH_5500: strcat (buf, ", 5500"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2286:29: [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. case E_MIPS_MACH_SB1: strcat (buf, ", sb1"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2287:29: [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. case E_MIPS_MACH_9000: strcat (buf, ", 9000"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2288:31: [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. case E_MIPS_MACH_LS2E: strcat (buf, ", loongson-2e"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2289:31: [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. case E_MIPS_MACH_LS2F: strcat (buf, ", loongson-2f"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2290:31: [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. case E_MIPS_MACH_OCTEON: strcat (buf, ", octeon"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2291:29: [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. case E_MIPS_MACH_XLR: strcat (buf, ", xlr"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2297:15: [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. default: strcat (buf, ", unknown CPU"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2302:27: [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. case E_MIPS_ABI_O32: strcat (buf, ", o32"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2303:27: [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. case E_MIPS_ABI_O64: strcat (buf, ", o64"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2304:30: [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. case E_MIPS_ABI_EABI32: strcat (buf, ", eabi32"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2305:30: [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. case E_MIPS_ABI_EABI64: strcat (buf, ", eabi64"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2312:15: [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. default: strcat (buf, ", unknown ABI"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2316:6: [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 (buf, ", mdmx"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2319:6: [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 (buf, ", mips16"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2323:26: [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. case E_MIPS_ARCH_1: strcat (buf, ", mips1"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2324:26: [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. case E_MIPS_ARCH_2: strcat (buf, ", mips2"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2325:26: [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. case E_MIPS_ARCH_3: strcat (buf, ", mips3"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2326:26: [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. case E_MIPS_ARCH_4: strcat (buf, ", mips4"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2327:26: [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. case E_MIPS_ARCH_5: strcat (buf, ", mips5"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2328:27: [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. case E_MIPS_ARCH_32: strcat (buf, ", mips32"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2329:29: [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. case E_MIPS_ARCH_32R2: strcat (buf, ", mips32r2"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2330:27: [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. case E_MIPS_ARCH_64: strcat (buf, ", mips64"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2331:29: [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. case E_MIPS_ARCH_64R2: strcat (buf, ", mips64r2"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2332:15: [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. default: strcat (buf, ", unknown ISA"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2340:19: [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. case EF_SH1: strcat (buf, ", sh1"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2341:19: [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. case EF_SH2: strcat (buf, ", sh2"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2342:19: [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. case EF_SH3: strcat (buf, ", sh3"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2343:22: [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. case EF_SH_DSP: strcat (buf, ", sh-dsp"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2344:23: [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. case EF_SH3_DSP: strcat (buf, ", sh3-dsp"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2345:25: [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. case EF_SH4AL_DSP: strcat (buf, ", sh4al-dsp"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2346:20: [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. case EF_SH3E: strcat (buf, ", sh3e"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2347:19: [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. case EF_SH4: strcat (buf, ", sh4"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2348:19: [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. case EF_SH5: strcat (buf, ", sh5"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2349:20: [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. case EF_SH2E: strcat (buf, ", sh2e"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2350:20: [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. case EF_SH4A: strcat (buf, ", sh4a"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2351:20: [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. case EF_SH2A: strcat (buf, ", sh2a"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2352:25: [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. case EF_SH4_NOFPU: strcat (buf, ", sh4-nofpu"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2353:26: [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. case EF_SH4A_NOFPU: strcat (buf, ", sh4a-nofpu"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2354:26: [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. case EF_SH2A_NOFPU: strcat (buf, ", sh2a-nofpu"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2355:25: [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. case EF_SH3_NOMMU: strcat (buf, ", sh3-nommu"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2356:31: [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. case EF_SH4_NOMMU_NOFPU: strcat (buf, ", sh4-nommu-nofpu"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2357:30: [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. case EF_SH2A_SH4_NOFPU: strcat (buf, ", sh2a-nofpu-or-sh4-nommu-nofpu"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2358:30: [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. case EF_SH2A_SH3_NOFPU: strcat (buf, ", sh2a-nofpu-or-sh3-nommu"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2359:24: [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. case EF_SH2A_SH4: strcat (buf, ", sh2a-or-sh4"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2360:25: [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. case EF_SH2A_SH3E: strcat (buf, ", sh2a-or-sh3e"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2361:15: [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. default: strcat (buf, ", unknown ISA"); break; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2368:6: [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 (buf, ", v8+"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2371:6: [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 (buf, ", ultrasparcI"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2374:6: [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 (buf, ", ultrasparcIII"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2377:6: [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 (buf, ", halr1"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2380:6: [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 (buf, ", ledata"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2383:6: [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 (buf, ", tso"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2386:6: [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 (buf, ", pso"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2389:6: [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 (buf, ", rmo"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2396:8: [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, ", PA-RISC 1.0"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2399:8: [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, ", PA-RISC 1.1"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2402:8: [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, ", PA-RISC 2.0"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2408:6: [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 (buf, ", trapnil"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2410:6: [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 (buf, ", ext"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2412:6: [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 (buf, ", lsb"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2414:6: [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 (buf, ", wide"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2416:6: [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 (buf, ", no kabp"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2418:6: [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 (buf, ", lazyswap"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2424:6: [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 (buf, ", new calling convention"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2427:6: [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 (buf, ", gnu calling convention"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2432:6: [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 (buf, ", 64-bit"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2434:6: [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 (buf, ", 32-bit"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2436:6: [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 (buf, ", reduced fp model"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2438:6: [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 (buf, ", no function descriptors, constant gp"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2440:6: [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 (buf, ", constant gp"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2442:6: [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 (buf, ", absolute"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2447:6: [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 (buf, ", non-PIC"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2449:6: [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 (buf, ", D-Float"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2451:6: [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 (buf, ", G-Float"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2462: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2573: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2619: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 (buff, "LOPROC+%lx", p_type - PT_LOPROC); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2641: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 (buff, "LOOS+%lx", p_type - PT_LOOS); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2774: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2837: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 (buff, "LOPROC+%x", sh_type - SHT_LOPROC); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2856: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 (buff, "LOOS+%x", sh_type - SHT_LOOS); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2859: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 (buff, "LOUSER+%x", sh_type - SHT_LOUSER); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:2981: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_dump_sects, dump_sects, num_dump_sects * sizeof (* dump_sects)); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:3190: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:3206: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:3603: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. char fmt [32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:3907: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 buff[1024]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:3948:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (buff, "[%*.*lx]: ", data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:4085: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 (p, "OS (%*.*lx)", field_size, field_size, data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:4100: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 (p, "PROC (%*.*lx)", field_size, field_size, data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:4115: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 (p, "UNKNOWN (%*.*lx)", field_size, field_size, data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:4551: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:5744:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char timebuf[20]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:6555: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:6563:5: [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 (buff, "BASE "); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:6568: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 (buff, "| "); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:6570:7: [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 (buff, "WEAK "); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:6574:5: [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 (buff, "| <unknown>"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7031: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7060: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7141: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 buff [32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7164: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 buff[32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7187: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 (buff, "PRC[0x%04x]", type & 0xffff); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7189: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 (buff, "OS [0x%04x]", type & 0xffff); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7191: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 (buff, "RSV[0x%04x]", type & 0xffff); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7193: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 (buff, "%3d", type); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7291:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char nb[8]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7292:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char nc[8]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7347:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char nb[16]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:7572: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. unsigned char data[2]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:8742:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf [64]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9722: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. char timebuf[20]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9968:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. if (((char *) option)[len] >= ' ' data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9969:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. && ((char *) option)[len] < 0x7f) data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9970:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. printf ("%c", ((char *) option)[len++]); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9972: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. printf ("\\%03o", ((char *) option)[len++]); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:10261: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. char timebuf[20]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:10297: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 buff[64]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:10351: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 buff[64]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:10374: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 buff[64]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:10772:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dump_sects, cmdline_dump_sects, data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:10911:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (member_file_name, name, name_len); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:10925:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (member_file_name, file_name, prefix_len); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:10926:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (member_file_name + prefix_len, name, name_len); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11002: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 integer_buffer[SIZEOF_AR_INDEX_NUMBERS]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11162:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). member_file = fopen (member_file_name, "rb"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11465:25: [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). member_file = fopen (member_file_name, "rb"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11522: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 armag[SARMAG]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11541: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 (file_name, "rb"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11603:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* file = fopen (file_name, "rb"); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11633:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (dump_sects, cmdline_dump_sects, data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11682:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fmt [32]; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11782:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* file = fopen(file_name, "rb"); data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:115:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const char *special_reg[16] = data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:125:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (cp, "r%u", (abreg & 0x1f)); data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:129:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (cp, "f%u", (abreg & 0x1f)); data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:133:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (cp, "b%u", (abreg & 0x1f)); data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:148:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (cp, "r%u", (ytreg & 0x1f)); data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:152:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (cp, "f%u", (ytreg & 0x1f)); data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:156:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (cp, "b%u", (ytreg & 0x1f)); data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:190:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char regname[16], maskstr[64], *sep; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:199: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 (maskstr, "rp"); \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:205: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 (maskstr, "ar.pfs"); \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:211: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 (maskstr, "psp"); \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:217: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 (maskstr, "pr"); \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:219:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (regname, "r%u", grsave); \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:228:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char frstr[200]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:238:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char grstr[200]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:248:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char frstr[200], grstr[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:259:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char brstr[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:269:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char brstr[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:296:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char grstr[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:310:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:316: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, "0x%x", abi); \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:375:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char regname[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:386:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char regname[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:397:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char regname[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:408:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char abregname[20], tregname[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:420:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char regname[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:431:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char regname[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:442:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char regname[20]; \ data/cde-0.1+git9-g551e54d/readelf-mini/unwind-ia64.c:453:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char regname[20], tregname[20]; \ data/cde-0.1+git9-g551e54d/strace-4.6/block.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 name[BLKTRACE_BDEV_SIZE]; /* output */ data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:170: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 cde_starting_pwd[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:203: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 cde_pseudo_root_dir[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1172:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char readlink_target[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1329:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* f = fopen(path_to_executable, "rb"); // open in binary mode data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1331: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 header[5]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1366: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). FILE* f = fopen(path_to_executable, "rb"); // open in binary mode data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2391: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 filename[20]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2392: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 s[80]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2395:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(filename, "/proc/%d/maps", pid); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2397:7: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). f = fopen(filename, "r"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2501: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(&tcp->saved_regs, &cur_regs, sizeof(cur_regs)); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2660: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[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2691:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[4]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2746:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmp_buf[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2779: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(tmp_buf, "/usr/lib"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2911: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 proc_self_exe[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2977:25: [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). cached_files_fp = fopen(p, "r"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2996:25: [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). cached_files_fp = fopen(p, "a"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3028:23: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* uname_f = fopen(fn, "w"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3047:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE* f = fopen("cde.options", "w"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3165: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). log_f = fopen(log_filename, "w"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3170: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). log_f = fopen(log_filename, "a"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3223: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 dot_dots[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3225:5: [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(dot_dots, ".."); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3228:7: [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(dot_dots, "/.."); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3232: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). FILE* f = fopen(progname_redirected, "w"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3250: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). FILE* f = fopen(toplevel_script_name, "w"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3374: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). f = fopen(options_file, "r"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3384: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). f = fopen("cde.options", "r"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3569: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 cde_full_environment_abspath[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3571:3: [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(cde_full_environment_abspath, "/../cde.full-environment"); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3579:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). int full_environment_fd = open(cde_full_environment_abspath, O_RDONLY); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3683: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 pad[128]; data/cde-0.1+git9-g551e54d/strace-4.6/count.c:165:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char error_str[16]; data/cde-0.1+git9-g551e54d/strace-4.6/count.c:207:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(error_str, "%d", counts[j].errors); data/cde-0.1+git9-g551e54d/strace-4.6/count.c:224: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(error_str, "%d", error_cum); data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:496:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 outstr[1024]; data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:562:6: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[11 + 3 * sizeof(int)]; data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:573:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(str, " %u", j); data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:589: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[128]; data/cde-0.1+git9-g551e54d/strace-4.6/file.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 d_name[1]; data/cde-0.1+git9-g551e54d/strace-4.6/file.c:413:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 outstr[1024]; data/cde-0.1+git9-g551e54d/strace-4.6/file.c:443: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, "%#x", flags); data/cde-0.1+git9-g551e54d/strace-4.6/file.c:795:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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/cde-0.1+git9-g551e54d/strace-4.6/file.c:801:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%#o", mode); data/cde-0.1+git9-g551e54d/strace-4.6/file.c:810:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf + strlen(buf), "|%#o", mode); data/cde-0.1+git9-g551e54d/strace-4.6/file.c:819:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[32]; data/cde-0.1+git9-g551e54d/strace-4.6/file.c:858:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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_fstype[16]; data/cde-0.1+git9-g551e54d/strace-4.6/file.c:1184: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 __pad0[4]; data/cde-0.1+git9-g551e54d/strace-4.6/file.c:1191: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 __pad3[4]; data/cde-0.1+git9-g551e54d/strace-4.6/file.c:1811:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[32]; data/cde-0.1+git9-g551e54d/strace-4.6/file.c:1821: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, "%#x", magic); data/cde-0.1+git9-g551e54d/strace-4.6/net.c:1208: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 pad[128]; data/cde-0.1+git9-g551e54d/strace-4.6/net.c:1225:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string_addr[100]; data/cde-0.1+git9-g551e54d/strace-4.6/net.c:1278: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 scopebuf[IFNAMSIZ + 1]; data/cde-0.1+git9-g551e54d/strace-4.6/net.c:1762:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 str[128]; data/cde-0.1+git9-g551e54d/strace-4.6/net.c:1799: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(str, "left "); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:79: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[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:90: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[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:321: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(dest, path->stack[i]->str, path->stack[i]->len); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:634: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 relative_symlink_target[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:638:5: [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(relative_symlink_target, "./"); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:643:7: [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(relative_symlink_target, "../"); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:781: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[4096]; // TODO: consider using BUFSIZ if it works better data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:801: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). inF = open(src_filename, O_RDONLY); // note that we might not have permission to open src_filename data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:802: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). if ((outF = open(dst_filename, O_WRONLY | O_CREAT, perms)) < 0) { data/cde-0.1+git9-g551e54d/strace-4.6/okapi.h:76: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 str[0]; data/cde-0.1+git9-g551e54d/strace-4.6/process.c:263:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[16]; data/cde-0.1+git9-g551e54d/strace-4.6/process.c:277: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, "%x", ctl); data/cde-0.1+git9-g551e54d/strace-4.6/process.c:859: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(tcpchild->inst, tcp->inst, data/cde-0.1+git9-g551e54d/strace-4.6/process.c:1050: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(tcpchild->inst, tcp->inst, data/cde-0.1+git9-g551e54d/strace-4.6/process.c:1080: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 idstr[16]; data/cde-0.1+git9-g551e54d/strace-4.6/process.c:1087: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(idstr, "ppid %lu", getrval2(tcp)); data/cde-0.1+git9-g551e54d/strace-4.6/process.c:1099: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(idstr, "euid %lu", getrval2(tcp)); data/cde-0.1+git9-g551e54d/strace-4.6/process.c:1111: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(idstr, "egid %lu", getrval2(tcp)); data/cde-0.1+git9-g551e54d/strace-4.6/process.c:1700:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char data[sizeof(long)]; data/cde-0.1+git9-g551e54d/strace-4.6/quota.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 d_padding4[8]; /* yet more padding */ data/cde-0.1+git9-g551e54d/strace-4.6/resource.c:114:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[32]; data/cde-0.1+git9-g551e54d/strace-4.6/resource.c:117:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "RLIM_INFINITY"); data/cde-0.1+git9-g551e54d/strace-4.6/resource.c:119:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ld*1024", lim/1024); data/cde-0.1+git9-g551e54d/strace-4.6/resource.c:121:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%ld", lim); data/cde-0.1+git9-g551e54d/strace-4.6/resource.c:202:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buf[64]; data/cde-0.1+git9-g551e54d/strace-4.6/resource.c:205:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "RLIM64_INFINITY"); data/cde-0.1+git9-g551e54d/strace-4.6/resource.c:207:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%lld*1024", (long long) lim/1024); data/cde-0.1+git9-g551e54d/strace-4.6/resource.c:209:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%lld", (long long) lim); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:265:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[30]; data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:270:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "SIGRT_%ld", (long)(sig - __SIGRTMIN)); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:274:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%d", sig); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:320:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 outstr[8 * sizeof(sigset_t) * 8]; data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:359:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tsig[40]; data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:360:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tsig, "RT_%u", i - __SIGRTMIN); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:365: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 tsig[32]; data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:366:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(tsig, "%u", i); data/cde-0.1+git9-g551e54d/strace-4.6/signal.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 sname[32]; data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:860:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/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/cde-0.1+git9-g551e54d/strace-4.6/signal.c:896: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(sname, "/proc/%d/status", tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:897: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 ((sfd = open(sname, O_RDONLY)) == -1) { data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:1292: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(&tcp->u_arg[1],&sc.oldmask[0],sizeof(sigset_t)); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:1337: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(tcp->u_arg + 1, &sc.sc_mask, sizeof(sc.sc_mask)); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:1548: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(tcp->u_arg + 1, &uc.uc_sigmask, sizeof(uc.uc_sigmask)); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:2032: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(&sigset, &sa.sa_mask, tcp->u_arg[4]); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:2035: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(&sigset, &sa.sa_mask, tcp->u_arg[3]); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:248:25: [2] (race) vfork: On some old systems, vfork() permits race conditions, and it's very difficult to use correctly (CWE-362). Use fork() instead. # define fork() vfork() data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:299:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). # define fopen_for_output fopen data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:390:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[520 + sizeof(int) * 3]; data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:393: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(name, "%.512s.%u", outfname, tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:455: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 procdir[sizeof("/proc/%d/task") + sizeof(int) * 3]; data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:458: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(procdir, "/proc/%d/task", tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:467: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). tid = atoi(de->d_name); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:541:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pathname[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:546: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_to_search[MAXPATHLEN]; data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:840:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[BUFSIZ]; data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:907:34: [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). CDE_copied_files_logfile = fopen("cde-copied-files.log", "w"); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:985:14: [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). acolumn = atoi(optarg); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:996:17: [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). set_overhead(atoi(optarg)); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1291:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char proc[32]; data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1305: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(proc, "/proc/%d/ctl", tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1306: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). if ((tcp->pfd = open(proc, O_WRONLY|O_EXCL)) < 0) { data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1313: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(proc, "/proc/%d/status", tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1314: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). if ((tcp->pfd_stat = open(proc, O_RDONLY|O_EXCL)) < 0) { data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1321: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(proc, "/proc/%d/as", tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1322:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((tcp->pfd_as = open(proc, O_RDONLY|O_EXCL)) < 0) { data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1332: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(proc, "/proc/%d", tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1333: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). tcp->pfd = open(proc, O_RDWR|O_EXCL); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1335: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(proc, "/proc/%d/mem", tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1336: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). tcp->pfd = open(proc, O_RDWR); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1347: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(proc, "/proc/%d/regs", tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1348:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((tcp->pfd_reg = open(proc, O_RDONLY)) < 0) { data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1353: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(proc, "/proc/%d/status", tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1354:26: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((tcp->pfd_status = open(proc, O_RDONLY)) < 0) { data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1541: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 wchan[20]; /* should be enough */ data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1543: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(proc, "/proc/%d/status", tcp->pid); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1544: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). status = fopen(proc, "r"); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1983:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1986:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "Unknown error %d", errno); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:2007:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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/cde-0.1+git9-g551e54d/strace-4.6/strace.c:2010:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "Unknown signal %d", sig); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:2373: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[1024]; data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:2948: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 str[sizeof("HH:MM:SS")]; data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:353: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 outstr[1024]; data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:354: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 str[64]; data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:398:6: [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(outstr, ", "); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:403:6: [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(outstr, "..."); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:406: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, "{fd=%d, revents=", fds.fd); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:422: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[128]; data/cde-0.1+git9-g551e54d/strace-4.6/syscall.c:309: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). int i = atoi(s); data/cde-0.1+git9-g551e54d/strace-4.6/syscall.c:344:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/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/cde-0.1+git9-g551e54d/strace-4.6/syscall.c:347: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). int signo = atoi(s); data/cde-0.1+git9-g551e54d/strace-4.6/syscall.c:377:14: [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). int desc = atoi(s); data/cde-0.1+git9-g551e54d/strace-4.6/syscall.c:2331: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(tcp->u_arg, &tcp->status.pr_reg[CTX_A0], data/cde-0.1+git9-g551e54d/strace-4.6/syscall.c:2337: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(tcp->u_arg, &tcp->status.pr_reg[CTX_A0], data/cde-0.1+git9-g551e54d/strace-4.6/system.c:518:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char type[4]; data/cde-0.1+git9-g551e54d/strace-4.6/system.c:1449: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 fstyp [FSTYPSZ]; data/cde-0.1+git9-g551e54d/strace-4.6/system.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 ctl[1024]; data/cde-0.1+git9-g551e54d/strace-4.6/system.c:2367: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 nodename[__NEW_UTS_LEN + 1]; data/cde-0.1+git9-g551e54d/strace-4.6/time.c:117: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, "NULL"); data/cde-0.1+git9-g551e54d/strace-4.6/time.c:119:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%#lx", addr); data/cde-0.1+git9-g551e54d/strace-4.6/time.c:132:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "{%u, %u}", data/cde-0.1+git9-g551e54d/strace-4.6/time.c:138:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "{%lu, %lu}", data/cde-0.1+git9-g551e54d/strace-4.6/time.c:143:4: [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, "{...}"); data/cde-0.1+git9-g551e54d/strace-4.6/time.c:181: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, "NULL"); data/cde-0.1+git9-g551e54d/strace-4.6/time.c:183:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "%#lx", addr); data/cde-0.1+git9-g551e54d/strace-4.6/time.c:192:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "{%u, %u}", data/cde-0.1+git9-g551e54d/strace-4.6/time.c:200:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "{%lu, %lu}", data/cde-0.1+git9-g551e54d/strace-4.6/time.c:205:4: [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, "{...}"); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:319:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char outstr[1024]; data/cde-0.1+git9-g551e54d/strace-4.6/util.c:336: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(outstr + strlen(outstr), "%#x", flags); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:433: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 path[MAXPATHLEN + 1]; data/cde-0.1+git9-g551e54d/strace-4.6/util.c:484: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(s, "\\x%02x", c); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:528:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "\\%03o", c); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:531:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, "\\%o", c); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:568: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 outstr[4*(sizeof path - 1) + sizeof "\"...\""]; data/cde-0.1+git9-g551e54d/strace-4.6/util.c:575: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(outstr, "..."); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:635:3: [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(outstr, "..."); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:703:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 outstr[80]; data/cde-0.1+git9-g551e54d/strace-4.6/util.c:722: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(s, " | %05x ", i); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:728:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(s, " %02x", str[i + j]); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:766: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 x[sizeof(long)]; data/cde-0.1+git9-g551e54d/strace-4.6/util.c:786: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(laddr, &u.x[n], m = MIN(sizeof(long) - n, len)); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:802: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(laddr, u.x, m = MIN(sizeof(long), len)); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:884: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 x[sizeof(long)]; data/cde-0.1+git9-g551e54d/strace-4.6/util.c:903: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(laddr, &u.x[n], m = MIN(sizeof(long)-n,len)); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:922: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(laddr, u.x, m = MIN(sizeof(long), len)); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:954: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 x[sizeof(long)]; data/cde-0.1+git9-g551e54d/strace-4.6/util.c:975: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(&u.x[n], laddr, m = MIN(sizeof(long) - n, len)); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:985: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(u.x, laddr, m = MIN(sizeof(long), len)); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:1053: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[60]; data/cde-0.1+git9-g551e54d/strace-4.6/util.c:1054: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(buf,"upeek: ptrace(PTRACE_PEEKUSER,%d,%lu,0)", tcp->pid, off); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:1705: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(((char *) hdr) + n, &res, 4); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:1756:4: [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(cp, "_fork"); data/cde-0.1+git9-g551e54d/tests/at_syscalls_test/at_syscalls_test.c:62: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 res[300]; data/cde-0.1+git9-g551e54d/first-draft/cde.c:96: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). char* rel_path = malloc(strlen(filename) + strlen("cde-root") + 1); data/cde-0.1+git9-g551e54d/first-draft/cde.c:96:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* rel_path = malloc(strlen(filename) + strlen("cde-root") + 1); data/cde-0.1+git9-g551e54d/first-draft/cde.h:92:9: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). int umask; data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:178: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). strlen(path->stack[pos]->str) + 1); data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:332:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (struct namecomp *)malloc(sizeof(struct namecomp) + strlen(path) + 1); data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:335: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). base->stack[base->depth]->len = strlen(path); data/cde-0.1+git9-g551e54d/first-draft/cde_utils.c:364:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((bytes = read(inF, buf, sizeof(buf))) > 0) { data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:341: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). data += strlen ((char *) data) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:1268: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). data += strlen ((char *) data) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2259: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). data += strlen ((char *) data) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2282: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). data += strlen ((char *) data) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2531: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). data += strlen ((char *) data) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2543: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). ptr_directory_table += strlen ((char *) ptr_directory_table) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2563: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). data += strlen ((char *) data) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2583: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). ptr_file_name_table += strlen ((char *) ptr_file_name_table) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2606:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (do_wide || strlen ((char *) directory_table[0]) < 76) data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2678: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). op_code_data += strlen ((char *) op_code_data) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2791: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). size_t fileNameLength = strlen (fileName); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2797:19: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (newFileName, data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2804:19: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (newFileName, fileName, fileNameLength + 1); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:2965: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). data += strlen ((char *) data) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3019: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). curr += strlen (string) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3028: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). curr += strlen (string) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3040: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). curr += strlen (string) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3841:8: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (tmp, "u"); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:3844:8: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy (tmp, "s"); data/cde-0.1+git9-g551e54d/readelf-mini/dwarf.c:4813: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 len = strlen (entry->option); data/cde-0.1+git9-g551e54d/readelf-mini/include/libiberty.h:641: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). const unsigned long libiberty_len = strlen (libiberty_optr) + 1; \ data/cde-0.1+git9-g551e54d/readelf-mini/include/libiberty.h:655: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). libiberty_len = strlen (libiberty_optr) + 1, \ data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:6170: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). - (int) strlen (dtype)), data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:6944: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). 12 - (int) strlen (name), data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:6999: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). 12 - (int) strlen (name), data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:8561: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). data += strlen (data); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9141: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). p += strlen ((char *) p) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9200: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). p += strlen ((char *) p) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9231: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). p += strlen ((char *) p) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9247: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). p += strlen ((char *) p) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9351: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). p += strlen ((char *) p) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9409: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). p += strlen ((char *) p) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:9484: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). namelen = strlen ((char *) p) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:10536:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy (temp, inote.namedata, inote.namesz); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11124:2: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). getc (file); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11276: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 (arch->file_name) + strlen (member_name) + 3; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11276:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (arch->file_name) + strlen (member_name) + 3; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11278: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 (nested_arch->file_name) + 2; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11373:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l += strlen (arch.sym_table + l) + 1; data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11400: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). file_name_size = strlen (file_name); data/cde-0.1+git9-g551e54d/readelf-mini/readelf-mini.c:11444: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). namelen = strlen (name); data/cde-0.1+git9-g551e54d/strace-4.6/bjm.c:147: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). mod += strlen(mod)+1; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:245: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). int cde_pseudo_root_dir_len = strlen(cde_pseudo_root_dir); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:248: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). ((strlen(real_pwd) >= cde_pseudo_root_dir_len) && data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:283: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(sandboxed_pwd) == 0) { data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:330:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strncmp(path, cde_pseudo_root_dir, strlen(cde_pseudo_root_dir)) == 0) { data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:421: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(filename, p, strlen(p)) == 0) { data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:439:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(filename, p, strlen(p)) == 0) { data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:457:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(filename, p, strlen(p)) == 0) { data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:625: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 len1 = strlen(redirected_filename1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:727: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 len1 = strlen(redirected_filename1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:823: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 len1 = strlen(redirected_filename1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1099:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(tcp->perceived_program_fullpath) + 1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1108: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). cur_regs.eax = (long)strlen(tcp->perceived_program_fullpath); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1110: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). cur_regs.rax = (long)strlen(tcp->perceived_program_fullpath); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1124: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). sandboxed_pwd, strlen(sandboxed_pwd) + 1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1133: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). cur_regs.eax = (long)strlen(sandboxed_pwd); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1135: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). cur_regs.rax = (long)strlen(sandboxed_pwd); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1198: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). suffix, strlen(suffix) + 1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1205: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). cur_regs.eax = (long)strlen(suffix); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1207: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). cur_regs.rax = (long)strlen(suffix); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1369:13: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1372:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read > 2) { data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1534: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). ld_linux_offset = strlen(ld_linux_fullpath) + 1; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1566: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). cur_loc += (strlen(program_full_path_in_cderoot) + 1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1578: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). cur_loc += (strlen(p) + 1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1724: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). int offset1 = strlen(ld_linux_fullpath) + 1; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:1795: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). int offset2 = strlen(tcp->perceived_program_fullpath) + 1; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2718: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). sandboxed_pwd, strlen(sandboxed_pwd) + 1); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2754: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). m = n = strlen(p); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2757:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp_buf, p, n); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2952:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0000); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2961: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). tmp[strlen(tmp) - strlen(CDE_ROOT_NAME)] = '\0'; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2961: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). tmp[strlen(tmp) - strlen(CDE_ROOT_NAME)] = '\0'; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:2982:17: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3402:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ssize_t read; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3412: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 last = strlen(line) - 1; data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3420:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strncmp(line, CDE_OPTIONS_VERSION_NUM, strlen(CDE_OPTIONS_VERSION_NUM)) != 0) { data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3586: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). int environ_strlen = strlen(environ_str); data/cde-0.1+git9-g551e54d/strace-4.6/cde.c:3719: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). unsigned long new_pathlen = strlen(redirected_path); data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:574: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). cumlen += strlen(str); data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:581:5: [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(outstr, "]"); data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:592: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). sprinttv(tcp, args[4], bitness, str + strlen(str)); data/cde-0.1+git9-g551e54d/strace-4.6/desc.c:593:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((cumlen += strlen(str)) < sizeof(outstr)) data/cde-0.1+git9-g551e54d/strace-4.6/file.c:810:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sprintf(buf + strlen(buf), "|%#o", mode); data/cde-0.1+git9-g551e54d/strace-4.6/file.c:822:3: [1] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant character. strcpy(buf, "0"); data/cde-0.1+git9-g551e54d/strace-4.6/net.c:1256: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). printpathn(tcp, addr + 2, strlen(addrbuf.sau.sun_path)); data/cde-0.1+git9-g551e54d/strace-4.6/net.c:1259: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). printpathn(tcp, addr + 3, strlen(addrbuf.sau.sun_path + 1)); data/cde-0.1+git9-g551e54d/strace-4.6/net.c:1800: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). sprint_timespec(str + strlen(str), tcp, tcp->u_arg[4]); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:192:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (struct namecomp *)malloc(sizeof(struct namecomp) + strlen(path) + 1); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:195: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). base->stack[base->depth]->len = strlen(path); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:351: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). int fake_cano_dir_len = strlen(fake_cano_dir); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:364: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). int cano_dir_len = strlen(cano_dir); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:377: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). int fake_cano_filename_len = strlen(fake_cano_filename); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:390: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). int cano_filename_len = strlen(cano_filename); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:588: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). int src_prefix_len = strlen(src_prefix); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:628:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert((strlen(dir_realpath) >= src_prefix_len) && data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:647:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert((strlen(orig_symlink_target) >= src_prefix_len) && data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:685: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). assert((strlen(symlink_target_abspath) >= src_prefix_len) && data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:732:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). assert((strlen(symlink_dst_original_path) >= src_prefix_len) && data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:809:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ((bytes = read(inF, buf, sizeof(buf))) > 0) { data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:827:3: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). umask(0000); data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:840:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(argv[2]) == 0) { // argv[2] can be "" data/cde-0.1+git9-g551e54d/strace-4.6/okapi.c:847:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(argv[3]) == 0) { data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:323: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). s = outstr + strlen(outstr); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:369: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). s += strlen(s); data/cde-0.1+git9-g551e54d/strace-4.6/signal.c:901:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). i = read(sfd, buf, sizeof(buf)); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:551: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(filename) > sizeof pathname - 1) { data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:577: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). m = n = strlen(path); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:581: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). len = strlen(pathname); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:586:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(pathname, path, n); data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:1546:9: [1] (buffer) fscanf: 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. (fscanf(status, "%*s %*d %*d %*d %*d %*d,%*d %*s %*d,%*d" data/cde-0.1+git9-g551e54d/strace-4.6/strace.c:2079:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((n = read(proc_poll_pipe[0], &pollinfo, sizeof(pollinfo))) < 0) data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:386:6: [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(outstr, "?"); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:394:5: [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(outstr, "["); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:408: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). cumlen += strlen(str) + strlen(flagstr) + 1; data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:408: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). cumlen += strlen(str) + strlen(flagstr) + 1; data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:412:5: [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(outstr, "}"); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:419:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(outstr, "]"); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:425: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). sprint_timespec(str + strlen(str), tcp, pts); data/cde-0.1+git9-g551e54d/strace-4.6/stream.c:426:19: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((cumlen += strlen(str)) < sizeof(outstr)) data/cde-0.1+git9-g551e54d/strace-4.6/syscall.c:353: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(s) >= sizeof buf) data/cde-0.1+git9-g551e54d/strace-4.6/syscall.c:415: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(p); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:327:5: [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(outstr, "|"); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:335:4: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(outstr, "|"); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:336: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). sprintf(outstr + strlen(outstr), "%#x", flags); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:532: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). s += strlen(s); data/cde-0.1+git9-g551e54d/strace-4.6/util.c:835:6: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(fd, laddr, len) == -1) data/cde-0.1+git9-g551e54d/strace-4.6/util.c:870:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((move = read(fd, laddr, move)) <= 0) data/cde-0.1+git9-g551e54d/strace-4.6/util.c:1759: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). cp += strlen(cp)+1; ANALYSIS SUMMARY: Hits = 903 Lines analyzed = 100245 in approximately 4.09 seconds (24481 lines/second) Physical Source Lines of Code (SLOC) = 80925 Hits@level = [0] 1199 [1] 137 [2] 661 [3] 11 [4] 89 [5] 5 Hits@level+ = [0+] 2102 [1+] 903 [2+] 766 [3+] 105 [4+] 94 [5+] 5 Hits/KSLOC@level+ = [0+] 25.9747 [1+] 11.1585 [2+] 9.46555 [3+] 1.2975 [4+] 1.16157 [5+] 0.0617856 Symlinks skipped = 2 (--allowlink overrides but see doc for security issue) Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.