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-libs-1.2.0~DEVEL+20200614/csu/darwin/common.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/common.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/macho.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/i386/crt0.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/i386/dylib1.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/powerpc/crt0.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/powerpc/dylib1.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/linux/common.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/linux/common.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/linux/crtbegin.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/linux/crtend.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/linux/amd64/crt0.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/linux/amd64/crti.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/linux/amd64/crtn.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/linux/i386/crt0.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/linux/i386/crti.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/linux/i386/crtn.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/netbsd/common.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/netbsd/crtbegin.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/csu/netbsd/crtend.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/abort_.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/c_abs.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/c_cos.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/c_div.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/c_exp.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/c_log.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/c_sin.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/c_sqrt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/cabs.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_abs.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_acos.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_asin.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_atan.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_atn2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_cnjg.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_cos.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_cosh.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_dim.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_erf.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_erfc.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_exp.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_imag.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_int.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_lg10.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_log.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_mod.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_nint.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_prod.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_sign.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_sin.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_sinh.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_sqrt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_tan.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/d_tanh.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/erf.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/f77lib.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/getarg_.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/h_abs.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/h_dim.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/h_dnnt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/h_indx.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/h_len.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/h_mod.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/h_nint.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/h_sign.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/hl_ge.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/hl_gt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/hl_le.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/hl_lt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/i_abs.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/i_dim.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/i_dnnt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/i_indx.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/i_len.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/i_mod.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/i_nint.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/i_sign.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/iargc_.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/l_ge.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/l_gt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/l_le.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/l_lt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/main.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/pow_ci.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/pow_dd.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/pow_di.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/pow_hh.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/pow_ii.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/pow_ri.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/pow_zi.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/pow_zz.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_abs.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_acos.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_asin.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_atan.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_atn2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_cnjg.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_cos.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_cosh.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_dim.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_erf.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_erfc.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_exp.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_imag.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_int.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_lg10.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_log.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_mod.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_nint.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_sign.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_sin.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_sinh.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_sqrt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_tan.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/r_tanh.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/s_cat.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/s_cmp.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/s_copy.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/s_paus.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/s_rnge.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/s_stop.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/signal_.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/sinh.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/tanh.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/z_abs.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/z_cos.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/z_div.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/z_exp.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/z_log.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/z_sin.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libF77/z_sqrt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/backspace.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/close.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/dfe.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/due.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/endfile.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/err.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/fio.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/fmt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/fmt.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/fmtlib.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/iio.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/inquire.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/lib.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/lio.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/lio.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/lread.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/pwd.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/rdfmt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/rewind.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/rsfe.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/sfe.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/sue.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/uio.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/wrtfmt.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libI77/wsfe.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/_alloca.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/_ftol.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/adddi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/anddi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/ashldi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/ashrdi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/cmpdi2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/cxmuldiv.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/divdi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/fixdfdi.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/fixsfdi.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/fixunsdfdi.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/fixunssfdi.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/floatdidf.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/floatdisf.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/floatunsdidf.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/iordi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/lshldi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/lshrdi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/moddi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/muldi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/negdi2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/notdi2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/qdivrem.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/quad.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/signbit.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/ssp.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/subdi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/ucmpdi2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/udivdi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/umoddi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/unwind.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/xordi3.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/float.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/iso646.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/libpcc_float.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/libpcc_limits.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/libpcc_stdarg.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/libpcc_stdbool.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/libpcc_stddef.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/limits.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/stdarg.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/stdbool.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/include/stddef.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/eqdf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/eqsf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/fpgetmask.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/fpgetround.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/fpgetsticky.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/fpsetmask.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/fpsetround.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/fpsetsticky.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/gedf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/gesf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/gexf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/gtdf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/gtsf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/gtxf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/ledf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/lesf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/ltdf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/ltsf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/namespace.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/nedf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/negdf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/negsf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/negxf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/nesf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/nexf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/softfloat-for-gcc.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/timesoftfloat.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/unorddf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/unordsf2.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/aarch64/aarch64-gcc.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/aarch64/ieeefp.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/aarch64/milieu.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/aarch64/softfloat.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/amd64/ieeefp.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/amd64/milieu.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/amd64/softfloat.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/amd64/x86_64-gcc.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/arm/arm-gcc.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/arm/milieu.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/arm/softfloat.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/i386/i386-gcc.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/i386/ieeefp.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/i386/milieu.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/i386/softfloat.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/m68k/milieu.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/m68k/softfloat.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/m68k/m68k-gcc.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/mips/ieeefp.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/mips/milieu.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/mips/mips-gcc.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/mips/softfloat.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/powerpc/ieeefp.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/powerpc/milieu.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/powerpc/softfloat.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/powerpc/powerpc-gcc.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/sh3/milieu.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/sh3/softfloat.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/sh3/sh3-gcc.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/sparc64/ieeefp.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/sparc64/milieu.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/sparc64/softfloat-qp.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/sparc64/softfloat.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/arch/sparc64/sparc64-gcc.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/bits32/softfloat.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/bits64/softfloat.c Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/templates/milieu.h Examining data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/templates/softfloat.h FINAL RESULTS: data/pcc-libs-1.2.0~DEVEL+20200614/libI77/endfile.c:89:4: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl("/bin/cp","cp",nm,b->ufnm,NULL); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/endfile.c:90:4: [4] (shell) execl: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execl("/usr/bin/cp","cp",nm,b->ufnm,NULL); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:78:34: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. if(a->osta && *a->osta=='o' && access(buf,0)) data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:83:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(b->ufnm,buf); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:114: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(buf, 0) == 0) creat(buf, 0666); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:124: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(bufpos,name); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:160:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(b,a2); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:164:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(b, a1); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:166:2: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(b,npart); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/wrtfmt.c:237: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(nr, MXSTR, fmt, value); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/wrtfmt.c:331: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(nr, MXSTR, fmt, value); data/pcc-libs-1.2.0~DEVEL+20200614/libsoftfloat/timesoftfloat.c:51:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf( stderr, message, varArgs ); data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/macho.h:35:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/macho.h:49:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/macho.h:61:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/macho.h:62:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/macho.h:75:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sectname[16]; data/pcc-libs-1.2.0~DEVEL+20200614/csu/darwin/macho.h:76:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char segname[16]; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/backspace.c:43:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[32]; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/endfile.c:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[128],nm[16]; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/endfile.c:71:2: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(nm,"tmp.FXXXXXX"); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/endfile.c:73:7: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). fd = mkstemp(nm); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/fmtlib.c:41:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { static char buf[MAXINTLENGTH+1]; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/inquire.c:43:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/lio.c:84:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[LINTW],*p; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/lio.c:85:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf," %ld",(long)n); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/lread.c:61: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 ltab[128+1] = /* offset one for EOF */ data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:53:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:86:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). { b->ufd = fopen(buf,"r"); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:91:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). { b->ufd = fopen(buf, "a"); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:93:22: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). else if((b->ufd = fopen(buf, "r")) != NULL) data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:106:3: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(buf,"tmp.FXXXXXX"); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:107:9: [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(buf)); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:135:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nbuf[10]; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:137: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(nbuf,"fort.%ld",n); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/pwd.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 name[512]; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/pwd.c:55:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ((file = open(dotdot,0)) < 0) prname(); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/pwd.c:72:52: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of 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 (stat(y.d_name,&x)<0 || chdir(root)<0 || (file=open(root,0))<0) data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:95:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. { char name[256],*bufpos = name; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:101:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((file=open("..",0))<0) goto done; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:112:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). || (file=open("/",0))<0) goto done; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/wrtfmt.c:222: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 nr[MXSTR]; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/wrtfmt.c:230:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fmt[10]; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/wrtfmt.c:240: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). *decpt = atoi(&nr[ndigit+3]) + 1; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/wrtfmt.c:324:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fmt[10]; data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/ssp.c:24: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). #define open(f,m) _open(f,m) data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/ssp.c:66:7: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = open("/dev/urandom", 0); data/pcc-libs-1.2.0~DEVEL+20200614/libF77/s_paus.c:59:7: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( getchar()!='g' || getchar()!='o' || getchar()!='\n' ) { data/pcc-libs-1.2.0~DEVEL+20200614/libF77/s_paus.c:59:25: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( getchar()!='g' || getchar()!='o' || getchar()!='\n' ) { data/pcc-libs-1.2.0~DEVEL+20200614/libF77/s_paus.c:59:43: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if( getchar()!='g' || getchar()!='o' || getchar()!='\n' ) { data/pcc-libs-1.2.0~DEVEL+20200614/libI77/dfe.c:118:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((ch=getc(cf))!=EOF) data/pcc-libs-1.2.0~DEVEL+20200614/libI77/lib.c:56:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). x->ofnmlen=strlen(fname); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/lio.c:86:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(recpos+strlen(buf)>=LINE) data/pcc-libs-1.2.0~DEVEL+20200614/libI77/lread.c:79:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((ch=getc(cf))!=EOF) return(ch); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:81: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). b->ufnm=(char *) calloc(strlen(buf)+1,sizeof(char)); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/open.c:141: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). a.ofnmlen=strlen(nbuf); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/pwd.c:57:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(file, &y, sizeof(y)) < sizeof(y)) data/pcc-libs-1.2.0~DEVEL+20200614/libI77/pwd.c:76:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if (read(file,&y,sizeof(y)) < sizeof(y)) data/pcc-libs-1.2.0~DEVEL+20200614/libI77/rsfe.c:74:13: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((ch=getc(cf))!='\n' && ch!=EOF); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/rsfe.c:83:9: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((ch=getc(cf))!=EOF && ch!='\n') data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:103:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { if(read(file,&y,sizeof(y))<sizeof(y)) goto done; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:115:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). { if(read(file,&y,sizeof(y))<sizeof(y)) goto done; data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:123: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). bufpos=calloc(strlen(name)+1,1); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:134:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i=strlen(b); data/pcc-libs-1.2.0~DEVEL+20200614/libI77/util.c:135:4: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j=strlen(a); data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/ssp.c:25:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define read(h,b,n) _read(h,b,n) data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/ssp.c:68:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sz = read(fd, (char *)&__stack_chk_guard, data/pcc-libs-1.2.0~DEVEL+20200614/libpcc/ssp.c:82:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). write(2, __progname, strlen(__progname)); ANALYSIS SUMMARY: Hits = 68 Lines analyzed = 30214 in approximately 1.00 seconds (30231 lines/second) Physical Source Lines of Code (SLOC) = 17267 Hits@level = [0] 40 [1] 21 [2] 35 [3] 0 [4] 12 [5] 0 Hits@level+ = [0+] 108 [1+] 68 [2+] 47 [3+] 12 [4+] 12 [5+] 0 Hits/KSLOC@level+ = [0+] 6.25471 [1+] 3.93815 [2+] 2.72196 [3+] 0.694967 [4+] 0.694967 [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.