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/pcc-1.2.0~DEVEL+20200630/arch/aarch64/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/amd64/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/amd64/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/amd64/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/amd64/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/arm/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/arm/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/arm/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/arm/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/arm/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/hppa/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/hppa/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/hppa/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/hppa/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i386/flocal.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i386/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i386/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/i386/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i386/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i86/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i86/flocal.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i86/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i86/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i86/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/i86/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/i86/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/m16c/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/m16c/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/m16c/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/m16c/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/m16c/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/m16c/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/m68k/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/m68k/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/m68k/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/m68k/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips64/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips64/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips64/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/mips64/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/nova/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/nova/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/nova/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/nova/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/nova/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/nova/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/table.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/vax/code.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/vax/local.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/vax/local2.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/vax/macdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/arch/vax/order.c Examining data/pcc-1.2.0~DEVEL+20200630/arch/vax/table.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/builtins.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.h Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/gcc_compat.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/inline.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/main.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/optim.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pass1.h Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/softfloat.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/stabs.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/symtabs.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/ccom/trees.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpc.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.h Examining data/pcc-1.2.0~DEVEL+20200630/cc/cpp/token.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/builtins.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/cxxcode.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/cxxdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/gcc_compat.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/init.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/inline.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/main.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/optim.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/pass1.h Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/pftn.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/softfloat.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/stabs.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/symtabs.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/trees.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.h Examining data/pcc-1.2.0~DEVEL+20200630/cc/driver/platform.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/driver/strlist.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/driver/strlist.h Examining data/pcc-1.2.0~DEVEL+20200630/cc/driver/xalloc.c Examining data/pcc-1.2.0~DEVEL+20200630/cc/driver/xalloc.h Examining data/pcc-1.2.0~DEVEL+20200630/common/compat.c Examining data/pcc-1.2.0~DEVEL+20200630/common/compat.h Examining data/pcc-1.2.0~DEVEL+20200630/common/softfloat.h Examining data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c Examining data/pcc-1.2.0~DEVEL+20200630/common/unicode.c Examining data/pcc-1.2.0~DEVEL+20200630/common/unicode.h Examining data/pcc-1.2.0~DEVEL+20200630/common/softfloat.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/data.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/defines.h Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/defs.h Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/equiv.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/error.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/exec.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/expr.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/ftypes.h Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/init.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/intr.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/io.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/lex.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/misc.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/proc.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/put.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/putscj.c Examining data/pcc-1.2.0~DEVEL+20200630/f77/fcom/scjdefs.h Examining data/pcc-1.2.0~DEVEL+20200630/mip/common.c Examining data/pcc-1.2.0~DEVEL+20200630/mip/manifest.h Examining data/pcc-1.2.0~DEVEL+20200630/mip/match.c Examining data/pcc-1.2.0~DEVEL+20200630/mip/mkext.c Examining data/pcc-1.2.0~DEVEL+20200630/mip/node.h Examining data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c Examining data/pcc-1.2.0~DEVEL+20200630/mip/pass2.h Examining data/pcc-1.2.0~DEVEL+20200630/mip/reader.c Examining data/pcc-1.2.0~DEVEL+20200630/mip/regs.c Examining data/pcc-1.2.0~DEVEL+20200630/os/android/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/bsd/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/darwin/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/dragonfly/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/freebsd/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/inc/amd64.h Examining data/pcc-1.2.0~DEVEL+20200630/os/linux/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/litebsd/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/midnightbsd/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/minix/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/mirbsd/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/netbsd/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/nextstep/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/none/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/openbsd/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/openbsd/f77config.h Examining data/pcc-1.2.0~DEVEL+20200630/os/sunos/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/sysv4/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/win32/ccconfig.h Examining data/pcc-1.2.0~DEVEL+20200630/os/win32/config.h FINAL RESULTS: data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/code.c:86:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local.c:413:6: [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("+" LABFMT, q->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local.c:482:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ",0%o\n", sp->soffset, off); data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c:673: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(CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c:701:5: [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(fp, CONFMT, (CONSZ)val); data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c:737: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(CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c:759:5: [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(io, CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c:887:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(c = tmpalloc(32), 32, PRTLAB ":\n", lab); data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c:940: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(PRTLAB ":\n\t.dword %s+%lld\n", data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c:943:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTLAB ":\n\t.dword %s\n", data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c:950:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(el->str, 32, PRTLAB, lab); data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c:1195: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/code.c:156:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/code.c:412:14: [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 P(x) printf(x "\n") data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:528: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(LABFMT ":\n", fltxor); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:732: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(LABFMT, sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local2.c:39: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local2.c:437:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT, ap->iarg(0)); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local2.c:591: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("$" CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local2.c:643:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("$" CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local2.c:662:5: [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(io, CONFMT "+", getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local2.c:665:4: [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(io, CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/arm/code.c:98:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local.c:439: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("+" LABFMT, q->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local.c:528:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ",0%o\n", sp->soffset, off); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:444:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT COM "64-bit left-shift\n", 32 - getlval(r)); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:452: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(",asl " CONFMT, getlval(r) - 32); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:459:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT COM "64-bit right-shift\n", 32 - getlval(r)); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:477: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(",%s " CONFMT, shifttype, getlval(r) - 32); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:858: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(CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:891:4: [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(fp, CONFMT, (CONSZ)val); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:927:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:951:4: [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(io, CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:1064:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(c = tmpalloc(32), 32, PRTLAB ":\n", lab); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:1118: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(PRTLAB ":\n\t.word %s+%lld\n", data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:1121: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(PRTLAB ":\n\t.word %s\n", data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:1128:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(el->str, 32, PRTLAB, lab); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:1519: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local.c:661: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("+" LABFMT, q->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local.c:746:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ",0%o\n", sp->soffset, off); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local2.c:464: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(CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local2.c:477:5: [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(fp, "+" CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local2.c:479:4: [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(fp, CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local2.c:519: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("+" CONFMT, p->n_lval); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local2.c:521: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("L%%" CONFMT, p->n_lval >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local2.c:544:5: [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(io, "+" CONFMT, p->n_lval); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local2.c:546:4: [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(io, "R%%" CONFMT, p->n_lval); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local2.c:554:5: [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(io, "+" CONFMT, p->n_lval); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:78:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.section %s,\"a%c\",@progbits\n", name, data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:82: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(PRTPREF "\t%s\n", name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:89: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(PRTPREF "\t.align %d\n", ispow2(al/ALCHAR)); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:104:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF " .globl %s\n", name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:106:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.type %s,@%s\n", name, data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:113: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(PRTPREF "\t.size %s,%d\n", name, data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:116: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(PRTPREF "\t.size " LABFMT ",%d\n", sp->soffset, data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:121:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "%s:\n", name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:123:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:411: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(PRTPREF "\t.section __IMPORT,__jump_table,symbol_stubs,self_modifying_code+pure_instructions,5\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:412: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(PRTPREF "L%s$stub:\n", p->name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:413: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(PRTPREF "\t.indirect_symbol %s\n", p->name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:414: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(PRTPREF "\thlt ; hlt ; hlt ; hlt ; hlt\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:415: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(PRTPREF "\t.subsections_via_symbols\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:418:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.section __IMPORT,__pointers,non_lazy_symbol_pointers\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:420: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(PRTPREF "L%s$non_lazy_ptr:\n", p->name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:421: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(PRTPREF "\t.indirect_symbol %s\n", p->name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:422: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(PRTPREF "\t.long 0\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:428: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(PRTPREF "\t.ident \"PCC: %s\"\n", VERSSTR); data/pcc-1.2.0~DEVEL+20200630/arch/i386/flocal.c:79: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(LABFMT ":\n", k); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:246:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, 32, LABFMT, (int)p->n_sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:270:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf1, 32, LABFMT, (int)p->n_sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:469: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(PRTPREF "\t.hidden %s\n", getsoname(q)); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1036: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(PRTPREF "\t.lcomm %s,0%o,%d\n", name, off, al); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1038: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(PRTPREF "\t.lcomm " LABFMT ",0%o,%d\n", sp->soffset, off, al); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1041: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(PRTPREF "\t.comm %s,0%o,%d\n", name, off, al); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1043: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(PRTPREF "\t.comm " LABFMT ",0%o,%d\n", sp->soffset, off, al); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1052: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(PRTPREF "\t.local %s\n", name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1054: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(PRTPREF "\t.local " LABFMT "\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1057:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.comm %s,0%o,%d\n", name, off, al); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1059:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.comm " LABFMT ",0%o,%d\n", sp->soffset, off, al); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1064:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.%scomm %s,0%o\n", data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1067:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.%scomm " LABFMT ",0%o\n", data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1154: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(PRTPREF "\t.weak %s\n", sn); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1156: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(PRTPREF "\t.weakref %s,%s\n", sn, wr); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1165:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.%s %s\n", v, sn); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1166:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.set %s,%s\n", sn, an); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1171:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.globl %s\n", name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1172:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "%s = ", name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1178:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.section .%ctors,\"aw\",@progbits\n", data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1181:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.section .%ctors,\"w\"\n", data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1186: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(PRTPREF "\t.mod_init_func\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1188: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(PRTPREF "\t.mod_term_func\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1191: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(PRTPREF "\t.constructor\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1193: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(PRTPREF "\t.destructor\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1198:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.p2align 2\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1199:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.long %s\n", exname(sp->sname)); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1201:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.previous\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1203:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.text\n"); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local2.c:46: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local2.c:154:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ": .long 0x5f800000\n", loadlab); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local2.c:371: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(LABFMT ":\n", jmplab); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local2.c:721: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("$" CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local2.c:772:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("$" CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local2.c:791:5: [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(io, "+" CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local2.c:793:4: [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(io, CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/i86/code.c:78:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/i86/flocal.c:79: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(LABFMT ":\n", k); data/pcc-1.2.0~DEVEL+20200630/arch/i86/local2.c:43: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/i86/local2.c:330: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(LABFMT ":\n", jmplab); data/pcc-1.2.0~DEVEL+20200630/arch/i86/local2.c:722: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("$" CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/i86/local2.c:773:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("#"CONFMT, getlval(p) >> 16); data/pcc-1.2.0~DEVEL+20200630/arch/i86/local2.c:804:5: [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(io, "+" CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/i86/local2.c:806:4: [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(io, "#"CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/m16c/local.c:237: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("+" LABFMT, q->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/m16c/local.c:358: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/m16c/local2.c:42: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/m16c/local2.c:252: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(LABFMT, (int)p->n_lval); data/pcc-1.2.0~DEVEL+20200630/arch/m16c/local2.c:345: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("$" CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/m16c/local2.c:396:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("#" CONFMT, p->n_lval >> 16); data/pcc-1.2.0~DEVEL+20200630/arch/m16c/local2.c:417:4: [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(io, "+" CONFMT, p->n_lval); data/pcc-1.2.0~DEVEL+20200630/arch/m68k/code.c:92:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local.c:130:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, 32, LABFMT, (int)p->n_sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local2.c:36: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local2.c:332: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("#" CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local2.c:400:4: [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(io, CONFMT "%s", getlval(p), data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local2.c:412:4: [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(io, CONFMT "%s", getlval(p), data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local2.c:430:4: [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(io, "#" CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/mips/code.c:101:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local.c:435:17: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("\t.word " CONFMT, (CONSZ)glval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local.c:438:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("+" LABFMT, q->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local.c:503:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ",0%o\n", sp->soffset, off); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local.c:540: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local2.c:55: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local2.c:375:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT "\t# 64-bit left-shift\n", 32 - getlval(r)); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local2.c:382:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT "\n", getlval(r) - 32); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local2.c:388:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT "\t# 64-bit right-shift\n", 32 - getlval(r)); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local2.c:403:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT "\n", getlval(r) - 32); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local2.c:746:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, (getlval(p) >> 32) & 0xffffffff); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local2.c:850: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(CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local2.c:922:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/mips/local2.c:943:4: [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(io, "+" CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/code.c:103:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local.c:415:17: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("\t.word " CONFMT, (CONSZ)glval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local.c:418:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("+" LABFMT, q->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local.c:483:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ",0%o\n", sp->soffset, off); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local.c:520: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local2.c:57: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local2.c:352:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT "\t# 64-bit left-shift\n", 32 - getlval(r)); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local2.c:359:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT "\n", getlval(r) - 32); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local2.c:364:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT "\t# 64-bit right-shift\n", 32 - getlval(r)); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local2.c:379:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT "\n", getlval(r) - 32); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local2.c:719:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, (getlval(p) >> 32) & 0xffffffff); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local2.c:823: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(CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local2.c:895:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/mips64/local2.c:916:4: [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(io, "+" CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/nova/code.c:91:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/nova/local.c:297:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.TXT \""); data/pcc-1.2.0~DEVEL+20200630/arch/nova/local.c:305: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("\r\n" PRTPREF); data/pcc-1.2.0~DEVEL+20200630/arch/nova/local.c:419: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/nova/local2.c:46: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/nova/local2.c:92: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(CONFMT "%s", w->l, ch); data/pcc-1.2.0~DEVEL+20200630/arch/nova/local2.c:279: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(CONFMT "%s", w->l, ch); data/pcc-1.2.0~DEVEL+20200630/arch/nova/local2.c:422:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("$" CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/nova/local2.c:450:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("." LABFMT, i = getlab2()); data/pcc-1.2.0~DEVEL+20200630/arch/nova/local2.c:466:5: [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(io, "+" CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/nova/local2.c:468:4: [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(io, CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/code.c:72:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local.c:800:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ",0%o\n", sp->soffset, off); data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local2.c:45:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local2.c:420: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("+" CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local2.c:980:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, getlval(p) >> (36 * size)); data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local2.c:1002:4: [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(fp, "+" CONFMT, getlval(p) & 0777777777777LL); data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local2.c:1043:4: [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(fp, "+" LABFMT, offlab); data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local2.c:1082:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, "-" CONFMT, -getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local2.c:1084:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/code.c:89:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/local.c:451: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(LABFMT ":", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/local.c:460:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ",0%o\n", sp->soffset, off); data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/local2.c:38:2: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/local2.c:382: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("$" CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/code.c:61:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.section %s,\"a%c\",@progbits\n", name, data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/code.c:65: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(PRTPREF "\t%s\n", name); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/code.c:88: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(PRTPREF "\t.local %s\n", name); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/code.c:89:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "%s:\t", name); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/code.c:92:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF LABFMT ":\t", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/code.c:135:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ": 0\n", sp[i]->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local.c:235: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("+" LABFMT, (int)sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local.c:249: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(LABFMT, (int)sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local.c:292: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(b+1, p); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local.c:340: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(PRTPREF "\t.local %s\n", name); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local.c:343:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local.c:396: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(LABFMT ": 0\n", l->lab); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local2.c:58: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local2.c:294: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("$" CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local2.c:345:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("$" CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local2.c:368:5: [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(io, "+" CONFMT, l); data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local2.c:371:4: [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(io, CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/code.c:117:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/code.c:783:32: [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 DPRINTF(x) if (xdebug) printf x data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:171:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, 64, LABFMT, (int)p->n_sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:194:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf1, 64, LABFMT, (int)p->n_sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:780: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(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:873: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("+" LABFMT, q->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:966:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ",%d\n", sp->soffset, off); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:1002: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:93: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:584: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(COM "start conversion float/(l)double to int\n"); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:607: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(COM "end conversion\n"); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:618: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(COM "start conversion of float/(l)double to unsigned\n"); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:623:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\t.long 0x41e00000\n\t.long 0\n", lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:647:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT, lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:650:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT, lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:655:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT "\n", lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:664: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(LABFMT "@l", lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:671: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(LABFMT, lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:676: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(LABFMT, lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:706: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(COM "end conversion\n"); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:717: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(COM "start conversion (u)int to float/(l)double\n"); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:722:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\t.long 0x43300000\n\t.long 0x80000000\n", labi); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:727:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\t.long 0x43300000\n\t.long 0x00000000\n", labu); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:749:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT, lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:752:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT, lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:757:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT "\n", lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:766: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(LABFMT "@l", lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:773: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(LABFMT, lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:778: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(LABFMT, lab); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:789: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(COM "end conversion\n"); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:893:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, (**cp == 'M' ? val : ~val) & 0xffffffff); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:956: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( CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:972:5: [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(fp, CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:1031:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, getlval(p) >> 32); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:1053:5: [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(io, "+" CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:1055:4: [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(io, CONFMT, getlval(p)); data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/code.c:72:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/local2.c:46: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(LABFMT ":\n", label); data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/local2.c:201:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(str); data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/local2.c:267:4: [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(fp, CONFMT, p->n_lval); data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/local2.c:269:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(fp, CONFMT, p->n_lval); data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/local2.c:306:4: [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(io, CONFMT, (long long int)off); data/pcc-1.2.0~DEVEL+20200630/arch/sparc64/local2.c:317:4: [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(io, CONFMT, (CONSZ)off); data/pcc-1.2.0~DEVEL+20200630/arch/vax/code.c:119:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\n", sp->soffset); data/pcc-1.2.0~DEVEL+20200630/arch/vax/code.c:307:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf( CONFMT, p[i].sval ); data/pcc-1.2.0~DEVEL+20200630/arch/vax/local2.c:59:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(LABFMT ":\t.long\t0\n", i); data/pcc-1.2.0~DEVEL+20200630/arch/vax/local2.c:588:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("$" CONFMT, m - getlval(p->n_right)); data/pcc-1.2.0~DEVEL+20200630/arch/vax/local2.c:874: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( CONFMT, val ); data/pcc-1.2.0~DEVEL+20200630/arch/vax/local2.c:924:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf("$" CONFMT, (getlval(p) >> 32) & 0xffffffff); data/pcc-1.2.0~DEVEL+20200630/arch/vax/local2.c:977: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( CONFMT, getlval(p) ); data/pcc-1.2.0~DEVEL+20200630/arch/vax/local2.c:1046:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, v); data/pcc-1.2.0~DEVEL+20200630/arch/vax/local2.c:1051:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, v); data/pcc-1.2.0~DEVEL+20200630/arch/vax/order.c:532: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(LABFMT ":\n", l); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1228:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, s, ap); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1251:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(f, mode) == 0) data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1548:3: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(argv[0], argv); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:81: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(PRTPREF DLABEL ":\n", lbl); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:87: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(PRTPREF "%s 0x%x\n", astypnames[CHAR], v); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:93: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(PRTPREF "%s 0x%x\n", astypnames[SHORT], v); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:123: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(PRTPREF "\t.ascii \"%s\\0\"\n", s); /* XXX common code? */ data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:145: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(PRTPREF "%s " DLABEL "\n", astypnames[LONG], l); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:160:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "%s 0xffffff00\n", astypnames[INT]); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:161: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(PRTPREF "%s " DLABEL "\n", astypnames[LONG], lbl); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:234: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(PRTPREF DLABEL ":\n", dwbtext); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:252: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(PRTPREF DLABEL ":\n", dwetext); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:255: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(PRTPREF "\t.set " DLABEL ",%d\n", data/pcc-1.2.0~DEVEL+20200630/cc/ccom/gcc_compat.c:301:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(tlbuf, TLLEN, TS, lineno); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c:138:27: [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 ID(x) if (idebug) printf x data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c:263:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "%s ",astypnames[t]); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c:265: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(CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c:272: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(LABFMT, o < 0 ? -o : o); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c:285: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(PRTPREF "%s %u\n", astypnames[INT], data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c:313:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "%s " CONFMT "\n", data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c:327:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "%s " CONFMT "\n", data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c:364: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(PRTPREF "%s " CONFMT "\n", data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c:377: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(PRTPREF "%s " CONFMT "\n", data/pcc-1.2.0~DEVEL+20200630/cc/ccom/init.c:384:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "%s " CONFMT "\n", asspace, (CONSZ)(fsz/SZCHAR)); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/inline.c:70:31: [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 SDEBUG(x) if (sdebug) printf x data/pcc-1.2.0~DEVEL+20200630/cc/ccom/inline.c:423:19: [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. case IP_DEFLAB: printf(LABFMT "\n", ip->ip_lbl); break; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c:1271:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.ascii \""); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/stabs.c:437:7: [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. if (vsnprintf(buf, CPBSZ, fmt, ap) >= CPBSZ) data/pcc-1.2.0~DEVEL+20200630/cc/ccom/stabs.c:454:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, ap); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/symtabs.c:438:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.align %d\n", P2ALIGN(al/ALCHAR)); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/symtabs.c:455:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.weak %s\n", name); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/symtabs.c:458:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.%s %s\n", ga->sarg(0), name); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/symtabs.c:460:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.weak %s\n", ga->sarg(0)); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/symtabs.c:461:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(PRTPREF "\t.set %s,%s\n", ga->sarg(0), name); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/trees.c:1976:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, glval(p)); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/trees.c:2712:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT " ", glval(p)); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/trees.c:2816:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(cp, 32, LABFMT, n); data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.c:88:30: [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 DPRINT(x) if (dflag) printf x data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.c:884:6: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access((char *)ob->buf, R_OK) == 0) data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.c:1346:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.c:1365:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/gcc_compat.c:159:3: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(tlbuf, TLLEN, TS, lineno); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/init.c:244: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(CONFMT, val); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/init.c:249: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(LABFMT, sp->soffset); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/inline.c:70:31: [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 SDEBUG(x) if (sdebug) printf x data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/inline.c:347:19: [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. case IP_DEFLAB: printf(LABFMT "\n", ip->ip_lbl); break; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/stabs.c:439:7: [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. if (vsnprintf(buf, CPBSZ, fmt, ap) >= CPBSZ) data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/stabs.c:456:3: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, ap); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/trees.c:1912:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, glval(p)); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/trees.c:2687:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, glval(p)); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/trees.c:2708: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(LABFMT, q->soffset); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/trees.c:2726:3: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. printf(CONFMT, (CONSZ)tsize(STRTY, p->n_left->n_df, data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/trees.c:2752:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(cp, 32, LABFMT, n); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:111:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, arg); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:122:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, arg); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:204:3: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(argv[0], argv); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:243:7: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if (access(f, mode) == 0) data/pcc-1.2.0~DEVEL+20200630/common/compat.c:820:1: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(char *str, size_t count, const char *fmt, va_list args) data/pcc-1.2.0~DEVEL+20200630/common/compat.c:831:1: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(char *str,size_t count,const char *fmt,...) data/pcc-1.2.0~DEVEL+20200630/common/compat.c:836:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. (void) vsnprintf(str, count, fmt, ap); data/pcc-1.2.0~DEVEL+20200630/common/compat.h:37:5: [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. int snprintf(char *str, size_t count, const char *fmt, ...); data/pcc-1.2.0~DEVEL+20200630/common/compat.h:43:5: [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. int vsnprintf(char *str, size_t count, const char *fmt, va_list args); data/pcc-1.2.0~DEVEL+20200630/common/softfloat.c:47: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 SD(x) if (sfdebug) printf x data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c:1949: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(decimalpoint_cache, s0); data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c:2564: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(decimalpoint_cache, s0); data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:277:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, xxxvers); data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:502:5: [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(a, v); data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:506:3: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(f, v); data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:508:4: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp(s+1, v); data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:603:2: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(f, av+1); data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:607: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(shellname, av); data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:775:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(diagfile, fmt, ap); data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:792:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(diagfile, fmt, ap); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/data.c:286:3: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(initfile, datafmt, varname, offset, vlen, type); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/data.c:304:4: [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(initfile, datafmt, varname, offset, vlen, type); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/data.c:317:4: [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(initfile, datafmt, varname, offset++, vlen, TYCHAR); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/data.c:323:4: [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(initfile, datafmt, varname, offset++, vlen, TYCHAR); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/error.c:51:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(diagfile, s, ap); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/error.c:64:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(diagfile, s, ap); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/error.c:84:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buff, "Declaration error for %s: %s", data/pcc-1.2.0~DEVEL+20200630/f77/fcom/error.c:100:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(diagfile, s, ap); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/error.c:113:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(diagfile, s, ap); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:79:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "sort > %s", file); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:80:13: [4] (shell) popen: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. initfile = popen(buf, "w"); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:379: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(ovarname, varname); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:393: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(LABELFMT, varname); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:397:5: [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(asmfile, LABELFMT, varname); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:399: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(LABELFMT, varname); data/pcc-1.2.0~DEVEL+20200630/mip/common.c:104:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, s, ap); data/pcc-1.2.0~DEVEL+20200630/mip/common.c:127: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, s, ap); data/pcc-1.2.0~DEVEL+20200630/mip/common.c:144:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, s, ap); data/pcc-1.2.0~DEVEL+20200630/mip/common.c:169:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, s, ap); data/pcc-1.2.0~DEVEL+20200630/mip/common.c:324:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, Warnings[type].fmt, ap); data/pcc-1.2.0~DEVEL+20200630/mip/common.c:720:21: [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 ALLDEBUG(x) printf x data/pcc-1.2.0~DEVEL+20200630/mip/match.c:319: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(LABFMT, p->n_label); data/pcc-1.2.0~DEVEL+20200630/mip/match.c:321: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(LABFMT, (int)getlval(getlr(p,*cp))); data/pcc-1.2.0~DEVEL+20200630/mip/match.c:336: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( CONFMT, val ); data/pcc-1.2.0~DEVEL+20200630/mip/match.c:396:33: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define F2DEBUG(x) if (f2debug) printf x data/pcc-1.2.0~DEVEL+20200630/mip/mkext.c:465:14: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define P(x) fprintf x data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:42:32: [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 BDEBUG(x) if (b2debug) printf x data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:44:9: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). #define mktemp(n, t) mklnode(TEMP, 0, n, t) data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1505:13: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). mktemp(phi->newtmpregno, n_type), data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1506:13: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). mktemp(phi->intmpregno[i],n_type), data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1528:13: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). mktemp(phi->newtmpregno, n_type), data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1529:13: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). mktemp(phi->intmpregno[i],n_type), data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1566:9: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). mktemp(phi->newtmpregno, n_type), data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1567:9: [4] (tmpfile) mktemp: Temporary file race condition (CWE-377). mktemp(phi->intmpregno[i],n_type), data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1665:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. case IP_DEFLAB: printf(LABFMT "\n", ip->ip_lbl); break; data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:506:4: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. sscanf(p, "%d %d %d %d %d %s", &ipp->ipp_type, data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:934:32: [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 CDEBUG(x) if (c2debug) printf x data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:1069: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(CONFMT, getlval(q->n_left)); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:1581:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, str, ap); data/pcc-1.2.0~DEVEL+20200630/mip/regs.c:56:32: [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 RDEBUG(x) if (r2debug) printf x data/pcc-1.2.0~DEVEL+20200630/mip/regs.c:57:37: [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 RRDEBUG(x) if (r2debug > 1) printf x data/pcc-1.2.0~DEVEL+20200630/mip/regs.c:60:32: [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 UDEBUG(x) if (u2debug) printf x data/pcc-1.2.0~DEVEL+20200630/mip/regs.c:61:32: [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 BDEBUG(x) if (b2debug) printf x data/pcc-1.2.0~DEVEL+20200630/mip/regs.c:62:37: [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 BBDEBUG(x) if (b2debug > 1) printf x data/pcc-1.2.0~DEVEL+20200630/os/win32/config.h:31:14: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #if !defined(vsnprintf) data/pcc-1.2.0~DEVEL+20200630/os/win32/config.h:32:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. #define vsnprintf _vsnprintf data/pcc-1.2.0~DEVEL+20200630/os/win32/config.h:36:14: [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. #if !defined(snprintf) data/pcc-1.2.0~DEVEL+20200630/os/win32/config.h:37:9: [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. #define snprintf _snprintf data/pcc-1.2.0~DEVEL+20200630/os/win32/config.h:37:18: [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. #define snprintf _snprintf data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1503:7: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. ok = CreateProcess(NULL, // the executable program data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1503:7: [3] (shell) CreateProcess: This causes a new process to execute and is difficult to use safely (CWE-78). Specify the application path in the first argument, NOT as part of the second, or embedded spaces could allow an attacker to force a different program to run. ok = CreateProcess(NULL, // the executable program data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1607:14: [3] (tmpfile) GetTempFileName: Temporary file race condition in certain cases (e.g., if run as SYSTEM in many versions of Windows) (CWE-377). uniqueNum = GetTempFileName(pathBuffer, "ctm", 0, tempFilename); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/main.c:146:15: [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 ((ch = getopt(argc, argv, "OT:VW:X:Z:f:gkm:psvwx:")) != -1) { data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.c:212:15: [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 ((ch = getopt(argc, argv, "ACD:d:EI:i:MPS:tU:Vvx:")) != -1) { data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/main.c:140:15: [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 ((ch = getopt(argc, argv, "OT:VW:X:Z:f:gkm:psvwx:")) != -1) { data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:281: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. template = getenv("TMPDIR"); data/pcc-1.2.0~DEVEL+20200630/common/compat.c:141:1: [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. getopt(int argc, char * const argv[], const char *args) data/pcc-1.2.0~DEVEL+20200630/common/compat.h:24:5: [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. int getopt(int, char * const [], const char *); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:86:15: [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 ((ch = getopt(argc, argv, "qw:UuOdpC1I:Z:X:")) != -1) data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:543: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(s, "@PLTOFF", sizeof("@PLTOFF")); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:545: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(s, "@PLT", sizeof("@PLT")); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:664:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 text[NCHNAM+1]; data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:761: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(s, name, len); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:762: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(s + len, postfix, sizeof(postfix)); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local2.c:918: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 *rnames[MAXREGS] = { data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *ch, name[16], *n; data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local.c:519: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. NODE *memcpy, *args, *t, *u; data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local.c:528: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. defid(memcpy, EXTERN); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local.c:536:35: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. (u = block(UMUL, block(CALL, memcpy, args, LONG, 0, 0), data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local.c:759: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(s, name, len); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local.c:760: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(s + len, postfix, sizeof(postfix)); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local2.c:752: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 * rnames[MAXREGS] = { data/pcc-1.2.0~DEVEL+20200630/arch/i386/code.c:376:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:195:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[256], *name, *pspn; data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:243:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:264:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[256]; data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:269: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 buf1[32]; data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:797: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(c, "@PLT", sizeof("@PLT")); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:809: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(c, "$stub", sizeof("$stub")); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:969:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 text[NCHNAM+1]; data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1240: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[256]; data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:1261: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(l->n_name, buf, size); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local2.c:413:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[3]; data/pcc-1.2.0~DEVEL+20200630/arch/i86/local.c:447:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 text[NCHNAM+1]; data/pcc-1.2.0~DEVEL+20200630/arch/i86/local2.c:384:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[3]; data/pcc-1.2.0~DEVEL+20200630/arch/m16c/code.c:45: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(s, "\t.align %d\n", n); data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local.c:127:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local.c:662: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, "\t.long 0%llo\n", word); data/pcc-1.2.0~DEVEL+20200630/arch/pdp10/local.c:730: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, "\t.long 0%llo\n", word); data/pcc-1.2.0~DEVEL+20200630/arch/pdp11/local.c:378:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char text[NCHNAM+1]; data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local.c:291:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 b[100] = "_"; data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/local2.c:482: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->n_name, "LT%d", w->tno); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:121:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[64]; data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:170: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/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:186:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[64]; data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:193: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 buf1[64]; data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:628: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(c, "@plt", sizeof("@plt")); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:640: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(c, "$stub", sizeof("$stub")); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:898:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char text[NCHNAM+1]; data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:500:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local2.c:565:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1247: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(f, s->value, lp); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1250: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(f + lp + need_sep, file, lf + 1); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1404:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 ld_name[8]; data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1600:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pathBuffer[MAX_PATH + 1]; data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1601:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tempFilename[MAX_PATH]; data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1622:12: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). if ((fd = mkstemp(sfn)) == -1) data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1651: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(path, sysroots[i], sysroot_len); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1652: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(path + sysroot_len, s->value + 1, value_len); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1881: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[100]; /* larger than needed */ data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:2143:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char env[1024]; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:191:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAXPATHLEN]; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/gcc_compat.c:270:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tlbuf[TLLEN], *tw; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/gcc_compat.c:800:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[12]; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/inline.c:329: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(pp, ip, sizeof(struct interpass_prolog)); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/main.c:66:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/main.c:121:42: [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). pragma_allpacked = (strlen(str) > 12 ? atoi(str+12) : 1); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c:1103:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. argptr = memcpy(tmpalloc(maxastore*2 * sizeof(struct symtab *)), data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c:2130:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. idp->n_df = memcpy(a, dfs, sizeof(union dimfun) * numdfs); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c:2805:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[12]; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c:3438: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 elm[MAXSZ]; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/stabs.c:275:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MAXPSTR]; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/stabs.c:330:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ostr[MAXPSTR]; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/stabs.c:427:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[CPBSZ]; data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.c:385:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (open(argv[1], O_WRONLY|O_CREAT, 0600) < 0) data/pcc-1.2.0~DEVEL+20200630/cc/cpp/token.c:1035:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((ic->infil = open((const char *)file, O_RDONLY)) < 0) data/pcc-1.2.0~DEVEL+20200630/cc/cpp/token.c:1574: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. strcmp((char *)bp, ppd[i].name) == 0) { data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/builtins.c:569:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&d, v ## TYP, x); \ data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/builtins.c:600: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(&FCAST(a->n_dcon)->fp, nLDOUBLE, sizeof(long double)); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/cxxcode.c:232: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 nmblk[MAXNM]; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/gcc_compat.c:131:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tlbuf[TLLEN], *tw; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/inline.c:258: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(pp, ip, sizeof(struct interpass_prolog)); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/main.c:65:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/main.c:117:42: [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). pragma_allpacked = (strlen(str) > 12 ? atoi(str+12) : 1); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/pftn.c:856:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nbuf[20]; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/pftn.c:2827:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[12]; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/stabs.c:275:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-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[MAXPSTR]; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/stabs.c:331:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ostr[MAXPSTR]; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/stabs.c:429:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[CPBSZ]; data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:158: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(path, sysroots[i], sysroot_len); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:159: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(path + sysroot_len, s->value + 1, value_len); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:239: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(f, s->value, lp); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:242: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(f + lp + need_sep, file, lf + 1); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:271: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(name, file, lf); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:272: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(name + lf, new_suffix, ls + 1); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:290:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(path, template, template_len); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:293:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(path + template_len + need_sep, "pcc-XXXXXX", 11); data/pcc-1.2.0~DEVEL+20200630/common/compat.c:185:1: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). mkstemp(char *path) data/pcc-1.2.0~DEVEL+20200630/common/compat.c:193:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 xtra[2] = "aa"; data/pcc-1.2.0~DEVEL+20200630/common/compat.c:228:9: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open(path, O_CREAT | O_EXCL | O_RDWR, 0600); data/pcc-1.2.0~DEVEL+20200630/common/compat.c:590:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char convert[20]; data/pcc-1.2.0~DEVEL+20200630/common/compat.c:695:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char iconvert[20], fconvert[20]; data/pcc-1.2.0~DEVEL+20200630/common/compat.h:28:5: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). int mkstemp(char *); data/pcc-1.2.0~DEVEL+20200630/common/softfloat.c:1248:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). exp10 += atoi(str); data/pcc-1.2.0~DEVEL+20200630/common/softfloat.c:1320: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). exp2 = atoi(str) + e3; data/pcc-1.2.0~DEVEL+20200630/common/softfloat.c:1595:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. a->val = memcpy(stmtalloc(newsz * 2), a->val, a->allo * 2); data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c:592:20: [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 Bcopy(x,y) memcpy(&x->sign,&y->sign,y->wds*sizeof(ULong) + 2*sizeof(int)) data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c:650: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. extern const char *InfName[6], *NanName[3]; data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c:1877: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 hexdig[256]; data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c:1901: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 hexdig[256] = { data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:88: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 asmfname[15]; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:89: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 prepfname[15]; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:93: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 *ffary[MAXARGS]; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:94: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 eflags[30] = ""; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:95:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char rflags[30] = ""; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:96: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 lflag[3] = "-x"; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:141:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fortfile[20], *t; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:142:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[100]; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:387:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *params[MAXARGS]; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:412:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *params[MAXARGS]; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:438:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *params[MAXARGS]; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:532:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *argv[100], path[100]; data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:675:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((fp = fopen(s, "r"))) { data/pcc-1.2.0~DEVEL+20200630/f77/fcom/data.c:242: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 varname[XL+2]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/defs.h:63: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. extern char token [ ]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/defs.h:174:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char extname[XL]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/defs.h:238:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char varname[VL]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/defs.h:257:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char varname[VL]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/defs.h:415: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 litcstr[XL]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/defs.h:511: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. int intrfunct(char s[VL]), eqn(int, char *, char *); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/error.c:81:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[100]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/expr.c:2069: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 *powint[ ] = { "pow_ii", "pow_ri", "pow_di", "pow_ci", "pow_zi" }; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/init.c:44: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 token[100]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/init.c:269: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 buff[100]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/init.c:275: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, "characters out of order in implicit:%c-%c", c1, c2); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/intr.c:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char intrfname[VL]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/intr.c:201:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char spxname[XL]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/intr.c:322: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 callbyvalue[ ][XL] = data/pcc-1.2.0~DEVEL+20200630/f77/fcom/intr.c:492: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 s[VL]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/intr.c:495: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 nm[VL]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/io.c:58: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. LOCAL char ioroutine[XL+1]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/lex.c:72: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. LOCAL char s[1390]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/lex.c:163:8: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(name, "r"); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/lex.c:319: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 a[6]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:77:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[100]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:78:8: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). close(mkstemp(file)); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:350:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char varname[XL+1], ovarname[XL+1]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:367:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( (sortfile = fopen(file, "r")) == NULL) data/pcc-1.2.0~DEVEL+20200630/f77/fcom/misc.c:165: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 name[XL+1]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/misc.c:183: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 name[XL+1]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/misc.c:202: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 name[XL+1]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/misc.c:252: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 s[20]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/misc.c:272: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 v[100]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/misc.c:295: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 n[VL]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/misc.c:364: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 n[XL]; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/misc.c:698: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 p0[17] = "0123456789abcdef"; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/put.c:45: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 *ops [ ] = data/pcc-1.2.0~DEVEL+20200630/mip/common.c:510: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 *opst[DSIZE]; data/pcc-1.2.0~DEVEL+20200630/mip/common.c:514:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char opst[8]; data/pcc-1.2.0~DEVEL+20200630/mip/common.c:591:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 * tnames[BTMASK+1] = { data/pcc-1.2.0~DEVEL+20200630/mip/common.c:713:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy(tmpalloc(len), str, len); data/pcc-1.2.0~DEVEL+20200630/mip/common.c:732: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 elm[MAXSZ]; data/pcc-1.2.0~DEVEL+20200630/mip/common.c:972:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. return memcpy(apd, aps, sz); data/pcc-1.2.0~DEVEL+20200630/mip/common.c:982: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. ap = memcpy(permalloc(sz), ap, sz); data/pcc-1.2.0~DEVEL+20200630/mip/mkext.c:174:7: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). i = atoi(argv[1]); data/pcc-1.2.0~DEVEL+20200630/mip/mkext.c:191:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fc = fopen(cname, "w")) == NULL) { data/pcc-1.2.0~DEVEL+20200630/mip/mkext.c:195:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((fh = fopen(hname, "w")) == NULL) { data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1781:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). flowdiagramfile = fopen(filename,"w"); data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:2223: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(bb->in, bb->gen, BIT2BYTE(xbits)); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:328: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 inpbuf[SZIBUF]; data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:354:7: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). rv = atoi(p); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:397:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(t, *p, sz); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:428:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->n_name, s, i); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:447:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p->n_name, s, i); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:472:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nam[SZIBUF], *p, *b; data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:488:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). lineno = atoi(p); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:499: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). ip->ip_lbl = atoi(p); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:763:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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[50]; data/pcc-1.2.0~DEVEL+20200630/mip/regs.c:1686: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(in[bbnum], gen[bbnum], BIT2BYTE(xbits)); data/pcc-1.2.0~DEVEL+20200630/os/darwin/ccconfig.h:89: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[10]; \ data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local.c:631: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). nextsect = newstring(a2, strlen(a2)); data/pcc-1.2.0~DEVEL+20200630/arch/aarch64/local2.c:876: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 l = 32+strlen(el->name); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:91:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:91: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). size_t len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:91: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 len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:162:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s1) + strlen(s2) + strlen(s3) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:162:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s1) + strlen(s2) + strlen(s3) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:162: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). size_t len = strlen(s1) + strlen(s2) + strlen(s3) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local.c:754:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(name); data/pcc-1.2.0~DEVEL+20200630/arch/amd64/local2.c:752:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(s); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local.c:677: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). nextsect = newstring(a2, strlen(a2)); data/pcc-1.2.0~DEVEL+20200630/arch/arm/local2.c:1053: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 l = 32+strlen(el->name); data/pcc-1.2.0~DEVEL+20200630/arch/hppa/local.c:752:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(name); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:97: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). s->name = newstring(name, strlen(name)); data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:112:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:112: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). size_t len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/i386/local.c:112: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 len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local.c:57:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local.c:57: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). size_t len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/m68k/local.c:57: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 len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/pdp7/code.c:121: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). l = strlen(cftnsp->sname)+10; data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:70: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). s->name = newstring(name, strlen(name)); data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:84:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:84: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). size_t len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/arch/powerpc/local.c:84: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 len = strlen(p) + strlen(s) + strlen(s2) + 1; data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:333:2: [1] (buffer) strlen: Does not handle 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(string) >= sizeof(suffix) - 1 && \ data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:334: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). !strcmp(string + strlen(string) - sizeof(suffix) + 1, suffix) \ data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:374:34: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. #error WCHAR_TYPE vs. WCHAR_SIZE mismatch data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:380:34: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. #error WCHAR_TYPE vs. WCHAR_SIZE mismatch data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:386:34: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. #error WCHAR_TYPE vs. WCHAR_SIZE mismatch data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1242: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). lf = strlen(file); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1244:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lp = strlen(s->value); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1550: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). result = write(STDERR_FILENO, argv[0], strlen(argv[0])); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1581:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (a ? strlen(a) : 0) + (b ? strlen(b) : 0) + 1; data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1581:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (a ? strlen(a) : 0) + (b ? strlen(b) : 0) + 1; data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1647: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). sysroot_len = strlen(sysroots[i]); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1649: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). value_len = strlen(s->value); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1672: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). if (strncmp(str, m, strlen(m))) data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1674: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). return str + strlen(m); data/pcc-1.2.0~DEVEL+20200630/cc/cc/cc.c:1686: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). l = strlen(o); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/dwarf.c:131: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). debug_info_sz += (strlen(str) + 1); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/gcc_compat.c:302: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). tw = &tlbuf[strlen(tlbuf)]; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/gcc_compat.c:461:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(s); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/main.c:70:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)write(STDERR_FILENO, buf, strlen(buf)); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/main.c:121:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pragma_allpacked = (strlen(str) > 12 ? atoi(str+12) : 1); data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c:244:8: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c:248:8: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c:264:10: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c:286:9: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/pcc-1.2.0~DEVEL+20200630/cc/ccom/pftn.c:401:2: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. mismatch: data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.c:288:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = (int)strlen(optarg+3) + 2; data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.c:533: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). iob = giob(BNORMAL, s, strlen((char *)s)); data/pcc-1.2.0~DEVEL+20200630/cc/cpp/cpp.c:794: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). p = nm + strlen((char *)nm) - 1; data/pcc-1.2.0~DEVEL+20200630/cc/cpp/token.c:373:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((len = (int)read(ifiles->infil, ninp, pend - ninp)) < 0) data/pcc-1.2.0~DEVEL+20200630/cc/cpp/token.c:416:19: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if ((len = (int)read(ifiles->infil, pend, ninp-pend)) < 0) data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/cxxcode.c:248:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int i, j, ln = (int)strlen(c); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/gcc_compat.c:160: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). tw = &tlbuf[strlen(tlbuf)]; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/gcc_compat.c:304:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = (int)strlen(s); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/gcc_compat.c:323: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). aa->sarg = newstring(p->n_name, strlen(p->n_name)); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/main.c:69:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (void)write(STDERR_FILENO, buf, strlen(buf)); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/main.c:117: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). pragma_allpacked = (strlen(str) > 12 ? atoi(str+12) : 1); data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/pftn.c:216:8: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/pftn.c:220:8: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/pftn.c:236:10: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/pftn.c:258:9: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. goto mismatch; data/pcc-1.2.0~DEVEL+20200630/cc/cxxcom/pftn.c:367:2: [1] (buffer) mismatch: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. mismatch: data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:154: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). sysroot_len = strlen(sysroots[i]); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:156: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). value_len = strlen(s->value); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:206: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). result = write(STDERR_FILENO, argv[0], strlen(argv[0])); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:234: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). lf = strlen(file); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:236:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lp = strlen(s->value); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:265: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). old_suffix = file + strlen(file); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:267: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). ls = strlen(new_suffix); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:284: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). template_len = strlen(template); data/pcc-1.2.0~DEVEL+20200630/cc/driver/driver.c:298: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). lf = strlen(temp_directory); data/pcc-1.2.0~DEVEL+20200630/common/compat.c:89: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). return(dlen + strlen(s)); data/pcc-1.2.0~DEVEL+20200630/common/compat.c:144:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int nlen = strlen(args); data/pcc-1.2.0~DEVEL+20200630/common/compat.c:825: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). return(strlen(str)); data/pcc-1.2.0~DEVEL+20200630/common/compat.c:839: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). return(strlen(str)); data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c:1948: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 ((decimalpoint_cache = (char*)MALLOC(strlen(s0) + 1))) { data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c:2556: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 dplen = strlen(decimalpoint); data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c:2563: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 ((decimalpoint_cache = (char*)MALLOC(strlen(s0) + 1))) { data/pcc-1.2.0~DEVEL+20200630/common/strtodg.c:2567: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). dplen = strlen(s0); data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:268: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). *loadp++ = copyn(strlen(lflag), lflag); data/pcc-1.2.0~DEVEL+20200630/f77/f77/f77.c:493: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(Bflag) + 8; data/pcc-1.2.0~DEVEL+20200630/f77/fcom/defines.h:260: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). #define CHCON(z) mkstrcon(strlen(z), z) data/pcc-1.2.0~DEVEL+20200630/f77/fcom/exec.c:267: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(q); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/expr.c:262: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). e->b_const.fconst.ccp = copyn(1+strlen(e->b_const.fconst.ccp), e->b_const.fconst.ccp); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/io.c:338: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). if(toklen==(int)strlen(ioc[i].iocname) && eqn(toklen, token, ioc[i].iocname)) { data/pcc-1.2.0~DEVEL+20200630/f77/fcom/lex.c:327:11: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (c = getc(infile)) == '&') data/pcc-1.2.0~DEVEL+20200630/f77/fcom/lex.c:336:15: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while( (c = getc(infile)) != '\n') data/pcc-1.2.0~DEVEL+20200630/f77/fcom/lex.c:347:25: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(p=a; p<aend && (c=getc(infile)) != '\n' && c!=EOF; ) data/pcc-1.2.0~DEVEL+20200630/f77/fcom/lex.c:370:27: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while( endcd<bend && (c=getc(infile)) != '\n' && c!=EOF ) data/pcc-1.2.0~DEVEL+20200630/f77/fcom/lex.c:376:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while( (c=getc(infile)) != '\n') data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:290:10: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (c = getc(sortfile)) == EOF) data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:296:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( (c = getc(sortfile)) == EOF) data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:310:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(c = getc(sortfile) ; c!=EOF && isspace(c) ; c = getc(sortfile) ); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:310:53: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(c = getc(sortfile) ; c!=EOF && isspace(c) ; c = getc(sortfile) ); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:315:31: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for(*n = 0 ; isdigit(c) ; c = getc(sortfile) ) data/pcc-1.2.0~DEVEL+20200630/f77/fcom/main.c:417:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( putc( getc(sortfile), stdout) != '\n') data/pcc-1.2.0~DEVEL+20200630/f77/fcom/misc.c:233: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). return(copyn(strlen(s)+1 , s)); data/pcc-1.2.0~DEVEL+20200630/f77/fcom/proc.c:666:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(s); data/pcc-1.2.0~DEVEL+20200630/mip/common.c:712:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(str) + 1; data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1777: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). filenamesize = (int)(strlen(name)+1+strlen(type)+strlen(ext)+1); data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1777: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). filenamesize = (int)(strlen(name)+1+strlen(type)+strlen(ext)+1); data/pcc-1.2.0~DEVEL+20200630/mip/optim2.c:1777:51: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filenamesize = (int)(strlen(name)+1+strlen(type)+strlen(ext)+1); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:337: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). l = strlen(inpbuf); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:426:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int i = strlen(s); data/pcc-1.2.0~DEVEL+20200630/mip/reader.c:445:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int i = strlen(s); ANALYSIS SUMMARY: Hits = 661 Lines analyzed = 140546 in approximately 3.30 seconds (42627 lines/second) Physical Source Lines of Code (SLOC) = 105574 Hits@level = [0] 2387 [1] 109 [2] 171 [3] 10 [4] 371 [5] 0 Hits@level+ = [0+] 3048 [1+] 661 [2+] 552 [3+] 381 [4+] 371 [5+] 0 Hits/KSLOC@level+ = [0+] 28.8707 [1+] 6.26101 [2+] 5.22856 [3+] 3.60884 [4+] 3.51412 [5+] 0 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.