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/mpfr4-4.1.0/tune/speed.c
Examining data/mpfr4-4.1.0/tune/tuneup.c
Examining data/mpfr4-4.1.0/tune/bidimensional_sample.c
Examining data/mpfr4-4.1.0/src/fits_sint.c
Examining data/mpfr4-4.1.0/src/cmp2.c
Examining data/mpfr4-4.1.0/src/div_d.c
Examining data/mpfr4-4.1.0/src/csc.c
Examining data/mpfr4-4.1.0/src/get_f.c
Examining data/mpfr4-4.1.0/src/cmpabs_ui.c
Examining data/mpfr4-4.1.0/src/gen_inverse.h
Examining data/mpfr4-4.1.0/src/setmax.c
Examining data/mpfr4-4.1.0/src/invsqrt_limb.h
Examining data/mpfr4-4.1.0/src/fits_slong.c
Examining data/mpfr4-4.1.0/src/set_sj.c
Examining data/mpfr4-4.1.0/src/inp_str.c
Examining data/mpfr4-4.1.0/src/get_float128.c
Examining data/mpfr4-4.1.0/src/ui_div.c
Examining data/mpfr4-4.1.0/src/get_ld.c
Examining data/mpfr4-4.1.0/src/mul_d.c
Examining data/mpfr4-4.1.0/src/strtofr.c
Examining data/mpfr4-4.1.0/src/set_z_exp.c
Examining data/mpfr4-4.1.0/src/isinf.c
Examining data/mpfr4-4.1.0/src/exceptions.c
Examining data/mpfr4-4.1.0/src/set_d64.c
Examining data/mpfr4-4.1.0/src/erandom.c
Examining data/mpfr4-4.1.0/src/ieee_floats.h
Examining data/mpfr4-4.1.0/src/const_euler.c
Examining data/mpfr4-4.1.0/src/sec.c
Examining data/mpfr4-4.1.0/src/powerof2.c
Examining data/mpfr4-4.1.0/src/add1sp1_extracted.c
Examining data/mpfr4-4.1.0/src/sum.c
Examining data/mpfr4-4.1.0/src/yn.c
Examining data/mpfr4-4.1.0/src/set_exp.c
Examining data/mpfr4-4.1.0/src/div_2si.c
Examining data/mpfr4-4.1.0/src/sub1.c
Examining data/mpfr4-4.1.0/src/add1sp.c
Examining data/mpfr4-4.1.0/src/lngamma.c
Examining data/mpfr4-4.1.0/src/volatile.c
Examining data/mpfr4-4.1.0/src/grandom.c
Examining data/mpfr4-4.1.0/src/arm/mparam.h
Examining data/mpfr4-4.1.0/src/gmp_op.c
Examining data/mpfr4-4.1.0/src/acos.c
Examining data/mpfr4-4.1.0/src/set_prec.c
Examining data/mpfr4-4.1.0/src/cmp.c
Examining data/mpfr4-4.1.0/src/pow_si.c
Examining data/mpfr4-4.1.0/src/round_prec.c
Examining data/mpfr4-4.1.0/src/eint.c
Examining data/mpfr4-4.1.0/src/mpfr-cvers.h
Examining data/mpfr4-4.1.0/src/get_q.c
Examining data/mpfr4-4.1.0/src/total_order.c
Examining data/mpfr4-4.1.0/src/ui_pow_ui.c
Examining data/mpfr4-4.1.0/src/get_z.c
Examining data/mpfr4-4.1.0/src/jn.c
Examining data/mpfr4-4.1.0/src/exp.c
Examining data/mpfr4-4.1.0/src/inits.c
Examining data/mpfr4-4.1.0/src/print_raw.c
Examining data/mpfr4-4.1.0/src/get_d128.c
Examining data/mpfr4-4.1.0/src/fits_u.h
Examining data/mpfr4-4.1.0/src/set_d.c
Examining data/mpfr4-4.1.0/src/const_pi.c
Examining data/mpfr4-4.1.0/src/sub1sp1_extracted.c
Examining data/mpfr4-4.1.0/src/get_exp.c
Examining data/mpfr4-4.1.0/src/init2.c
Examining data/mpfr4-4.1.0/src/fits_intmax.c
Examining data/mpfr4-4.1.0/src/get_uj.c
Examining data/mpfr4-4.1.0/src/x86_64/core2/mparam.h
Examining data/mpfr4-4.1.0/src/x86_64/mparam.h
Examining data/mpfr4-4.1.0/src/swap.c
Examining data/mpfr4-4.1.0/src/fits_uintmax.c
Examining data/mpfr4-4.1.0/src/ubf.c
Examining data/mpfr4-4.1.0/src/log2.c
Examining data/mpfr4-4.1.0/src/cmp_ld.c
Examining data/mpfr4-4.1.0/src/set_si_2exp.c
Examining data/mpfr4-4.1.0/src/gamma_inc.c
Examining data/mpfr4-4.1.0/src/sparc64/mparam.h
Examining data/mpfr4-4.1.0/src/set_z.c
Examining data/mpfr4-4.1.0/src/set_uj.c
Examining data/mpfr4-4.1.0/src/get_z_exp.c
Examining data/mpfr4-4.1.0/src/set.c
Examining data/mpfr4-4.1.0/src/set_ld.c
Examining data/mpfr4-4.1.0/src/log_ui.c
Examining data/mpfr4-4.1.0/src/sqrt.c
Examining data/mpfr4-4.1.0/src/constant.c
Examining data/mpfr4-4.1.0/src/nrandom.c
Examining data/mpfr4-4.1.0/src/set_flt.c
Examining data/mpfr4-4.1.0/src/sinh.c
Examining data/mpfr4-4.1.0/src/log10.c
Examining data/mpfr4-4.1.0/src/urandom.c
Examining data/mpfr4-4.1.0/src/frac.c
Examining data/mpfr4-4.1.0/src/set_inf.c
Examining data/mpfr4-4.1.0/src/uceil_log2.c
Examining data/mpfr4-4.1.0/src/tan.c
Examining data/mpfr4-4.1.0/src/rint.c
Examining data/mpfr4-4.1.0/src/generic/mparam.h
Examining data/mpfr4-4.1.0/src/generic/coverage/mparam.h
Examining data/mpfr4-4.1.0/src/cos.c
Examining data/mpfr4-4.1.0/src/mpfr-longlong.h
Examining data/mpfr4-4.1.0/src/agm.c
Examining data/mpfr4-4.1.0/src/set_str_raw.c
Examining data/mpfr4-4.1.0/src/pow.c
Examining data/mpfr4-4.1.0/src/get_flt.c
Examining data/mpfr4-4.1.0/src/isinteger.c
Examining data/mpfr4-4.1.0/src/erfc.c
Examining data/mpfr4-4.1.0/src/expm1.c
Examining data/mpfr4-4.1.0/src/print_rnd_mode.c
Examining data/mpfr4-4.1.0/src/exp10.c
Examining data/mpfr4-4.1.0/src/tanh.c
Examining data/mpfr4-4.1.0/src/set_dfl_prec.c
Examining data/mpfr4-4.1.0/src/factorial.c
Examining data/mpfr4-4.1.0/src/ui_pow.c
Examining data/mpfr4-4.1.0/src/eq.c
Examining data/mpfr4-4.1.0/src/digamma.c
Examining data/mpfr4-4.1.0/src/isnan.c
Examining data/mpfr4-4.1.0/src/log1p.c
Examining data/mpfr4-4.1.0/src/get_ui.c
Examining data/mpfr4-4.1.0/src/add_ui.c
Examining data/mpfr4-4.1.0/src/fms.c
Examining data/mpfr4-4.1.0/src/li2.c
Examining data/mpfr4-4.1.0/src/hypot.c
Examining data/mpfr4-4.1.0/src/set_float128.c
Examining data/mpfr4-4.1.0/src/sqrt_ui.c
Examining data/mpfr4-4.1.0/src/mul_2exp.c
Examining data/mpfr4-4.1.0/src/logging.c
Examining data/mpfr4-4.1.0/src/clear.c
Examining data/mpfr4-4.1.0/src/fits_sshort.c
Examining data/mpfr4-4.1.0/src/ui_sub.c
Examining data/mpfr4-4.1.0/src/fpif.c
Examining data/mpfr4-4.1.0/src/zeta.c
Examining data/mpfr4-4.1.0/src/signbit.c
Examining data/mpfr4-4.1.0/src/get_si.c
Examining data/mpfr4-4.1.0/src/modf.c
Examining data/mpfr4-4.1.0/src/gamma.c
Examining data/mpfr4-4.1.0/src/cmpabs.c
Examining data/mpfr4-4.1.0/src/sub_d.c
Examining data/mpfr4-4.1.0/src/cot.c
Examining data/mpfr4-4.1.0/src/get_str.c
Examining data/mpfr4-4.1.0/src/fits_ulong.c
Examining data/mpfr4-4.1.0/src/round_p.c
Examining data/mpfr4-4.1.0/src/set_rnd.c
Examining data/mpfr4-4.1.0/src/div_2exp.c
Examining data/mpfr4-4.1.0/src/div_2ui.c
Examining data/mpfr4-4.1.0/src/urandomb.c
Examining data/mpfr4-4.1.0/src/pow_z.c
Examining data/mpfr4-4.1.0/src/set_d128.c
Examining data/mpfr4-4.1.0/src/init.c
Examining data/mpfr4-4.1.0/src/mpfr-impl.h
Examining data/mpfr4-4.1.0/src/minmax.c
Examining data/mpfr4-4.1.0/src/mpfr-gmp.c
Examining data/mpfr4-4.1.0/src/round_raw_generic.c
Examining data/mpfr4-4.1.0/src/gammaonethird.c
Examining data/mpfr4-4.1.0/src/rem1.c
Examining data/mpfr4-4.1.0/src/root.c
Examining data/mpfr4-4.1.0/src/int_ceil_log2.c
Examining data/mpfr4-4.1.0/src/scale2.c
Examining data/mpfr4-4.1.0/src/copysign.c
Examining data/mpfr4-4.1.0/src/mpfr-thread.h
Examining data/mpfr4-4.1.0/src/mpfr-mini-gmp.c
Examining data/mpfr4-4.1.0/src/set_ui_2exp.c
Examining data/mpfr4-4.1.0/src/rndna.c
Examining data/mpfr4-4.1.0/src/mul.c
Examining data/mpfr4-4.1.0/src/abort_prec_max.c
Examining data/mpfr4-4.1.0/src/d_div.c
Examining data/mpfr4-4.1.0/src/neg.c
Examining data/mpfr4-4.1.0/src/div.c
Examining data/mpfr4-4.1.0/src/exp_2.c
Examining data/mpfr4-4.1.0/src/cbrt.c
Examining data/mpfr4-4.1.0/src/cmp_ui.c
Examining data/mpfr4-4.1.0/src/csch.c
Examining data/mpfr4-4.1.0/src/dump.c
Examining data/mpfr4-4.1.0/src/add_d.c
Examining data/mpfr4-4.1.0/src/log.c
Examining data/mpfr4-4.1.0/src/iszero.c
Examining data/mpfr4-4.1.0/src/fmma.c
Examining data/mpfr4-4.1.0/src/stack_interface.c
Examining data/mpfr4-4.1.0/src/exp3.c
Examining data/mpfr4-4.1.0/src/asin.c
Examining data/mpfr4-4.1.0/src/mp_clz_tab.c
Examining data/mpfr4-4.1.0/src/sech.c
Examining data/mpfr4-4.1.0/src/add1.c
Examining data/mpfr4-4.1.0/src/round_near_x.c
Examining data/mpfr4-4.1.0/src/erf.c
Examining data/mpfr4-4.1.0/src/isregular.c
Examining data/mpfr4-4.1.0/src/const_catalan.c
Examining data/mpfr4-4.1.0/src/set_f.c
Examining data/mpfr4-4.1.0/src/fits_s.h
Examining data/mpfr4-4.1.0/src/const_log2.c
Examining data/mpfr4-4.1.0/src/setsign.c
Examining data/mpfr4-4.1.0/src/ai.c
Examining data/mpfr4-4.1.0/src/zeta_ui.c
Examining data/mpfr4-4.1.0/src/mpfr.h
Examining data/mpfr4-4.1.0/src/set_ui.c
Examining data/mpfr4-4.1.0/src/bernoulli.c
Examining data/mpfr4-4.1.0/src/check.c
Examining data/mpfr4-4.1.0/src/mpf2mpfr.h
Examining data/mpfr4-4.1.0/src/asinh.c
Examining data/mpfr4-4.1.0/src/mulders.c
Examining data/mpfr4-4.1.0/src/random_deviate.h
Examining data/mpfr4-4.1.0/src/ufloor_log2.c
Examining data/mpfr4-4.1.0/src/set_str.c
Examining data/mpfr4-4.1.0/src/cmp_d.c
Examining data/mpfr4-4.1.0/src/mpfr-intmax.h
Examining data/mpfr4-4.1.0/src/mul_1_extracted.c
Examining data/mpfr4-4.1.0/src/setmin.c
Examining data/mpfr4-4.1.0/src/x86/mparam.h
Examining data/mpfr4-4.1.0/src/mips/mparam.h
Examining data/mpfr4-4.1.0/src/isnum.c
Examining data/mpfr4-4.1.0/src/sqr.c
Examining data/mpfr4-4.1.0/src/sinh_cosh.c
Examining data/mpfr4-4.1.0/src/beta.c
Examining data/mpfr4-4.1.0/src/rec_sqrt.c
Examining data/mpfr4-4.1.0/src/invert_limb.h
Examining data/mpfr4-4.1.0/src/pool.c
Examining data/mpfr4-4.1.0/src/fits_ushort.c
Examining data/mpfr4-4.1.0/src/amd/mparam.h
Examining data/mpfr4-4.1.0/src/mpfr-gmp.h
Examining data/mpfr4-4.1.0/src/frexp.c
Examining data/mpfr4-4.1.0/src/set_q.c
Examining data/mpfr4-4.1.0/src/fma.c
Examining data/mpfr4-4.1.0/src/sgn.c
Examining data/mpfr4-4.1.0/src/uceil_exp2.c
Examining data/mpfr4-4.1.0/src/exp2.c
Examining data/mpfr4-4.1.0/src/si_op.c
Examining data/mpfr4-4.1.0/src/min_prec.c
Examining data/mpfr4-4.1.0/src/set_zero.c
Examining data/mpfr4-4.1.0/src/d_sub.c
Examining data/mpfr4-4.1.0/src/dot.c
Examining data/mpfr4-4.1.0/src/mpn_exp.c
Examining data/mpfr4-4.1.0/src/get_d64.c
Examining data/mpfr4-4.1.0/src/set_si.c
Examining data/mpfr4-4.1.0/src/get_sj.c
Examining data/mpfr4-4.1.0/src/next.c
Examining data/mpfr4-4.1.0/src/atan2.c
Examining data/mpfr4-4.1.0/src/clears.c
Examining data/mpfr4-4.1.0/src/vasprintf.c
Examining data/mpfr4-4.1.0/src/cmp_si.c
Examining data/mpfr4-4.1.0/src/powerpc64/mparam.h
Examining data/mpfr4-4.1.0/src/set_prc_raw.c
Examining data/mpfr4-4.1.0/src/inits2.c
Examining data/mpfr4-4.1.0/src/mul_2ui.c
Examining data/mpfr4-4.1.0/src/acosh.c
Examining data/mpfr4-4.1.0/src/odd_p.c
Examining data/mpfr4-4.1.0/src/cosh.c
Examining data/mpfr4-4.1.0/src/cache.c
Examining data/mpfr4-4.1.0/src/atan.c
Examining data/mpfr4-4.1.0/src/sub_ui.c
Examining data/mpfr4-4.1.0/src/random_deviate.c
Examining data/mpfr4-4.1.0/src/div_ui.c
Examining data/mpfr4-4.1.0/src/mpfr-sassert.h
Examining data/mpfr4-4.1.0/src/mul_ui.c
Examining data/mpfr4-4.1.0/src/mpfr-mini-gmp.h
Examining data/mpfr4-4.1.0/src/fits_uint.c
Examining data/mpfr4-4.1.0/src/atanh.c
Examining data/mpfr4-4.1.0/src/comparisons.c
Examining data/mpfr4-4.1.0/src/sub.c
Examining data/mpfr4-4.1.0/src/printf.c
Examining data/mpfr4-4.1.0/src/sin_cos.c
Examining data/mpfr4-4.1.0/src/coth.c
Examining data/mpfr4-4.1.0/src/pow_ui.c
Examining data/mpfr4-4.1.0/src/nbits_ulong.c
Examining data/mpfr4-4.1.0/src/get_d.c
Examining data/mpfr4-4.1.0/src/subnormal.c
Examining data/mpfr4-4.1.0/src/reldiff.c
Examining data/mpfr4-4.1.0/src/dim.c
Examining data/mpfr4-4.1.0/src/out_str.c
Examining data/mpfr4-4.1.0/src/isqrt.c
Examining data/mpfr4-4.1.0/src/buildopt.c
Examining data/mpfr4-4.1.0/src/set_nan.c
Examining data/mpfr4-4.1.0/src/free_cache.c
Examining data/mpfr4-4.1.0/src/version.c
Examining data/mpfr4-4.1.0/src/sub1sp.c
Examining data/mpfr4-4.1.0/src/extract.c
Examining data/mpfr4-4.1.0/src/mul_2si.c
Examining data/mpfr4-4.1.0/src/add.c
Examining data/mpfr4-4.1.0/src/sin.c
Examining data/mpfr4-4.1.0/src/jyn_asympt.c
Examining data/mpfr4-4.1.0/tests/tget_f.c
Examining data/mpfr4-4.1.0/tests/mpfr_compat.c
Examining data/mpfr4-4.1.0/tests/mpf_compat.c
Examining data/mpfr4-4.1.0/tests/tlog10.c
Examining data/mpfr4-4.1.0/tests/tlog2.c
Examining data/mpfr4-4.1.0/tests/memory.c
Examining data/mpfr4-4.1.0/tests/tasin.c
Examining data/mpfr4-4.1.0/tests/texp10.c
Examining data/mpfr4-4.1.0/tests/tset_d.c
Examining data/mpfr4-4.1.0/tests/tui_sub.c
Examining data/mpfr4-4.1.0/tests/tset_sj.c
Examining data/mpfr4-4.1.0/tests/tpow_z.c
Examining data/mpfr4-4.1.0/tests/tset_z.c
Examining data/mpfr4-4.1.0/tests/tui_pow.c
Examining data/mpfr4-4.1.0/tests/tj1.c
Examining data/mpfr4-4.1.0/tests/tsgn.c
Examining data/mpfr4-4.1.0/tests/cmp_str.c
Examining data/mpfr4-4.1.0/tests/tacos.c
Examining data/mpfr4-4.1.0/tests/tcbrt.c
Examining data/mpfr4-4.1.0/tests/tcsc.c
Examining data/mpfr4-4.1.0/tests/tinp_str.c
Examining data/mpfr4-4.1.0/tests/tgrandom.c
Examining data/mpfr4-4.1.0/tests/troot.c
Examining data/mpfr4-4.1.0/tests/tdiv.c
Examining data/mpfr4-4.1.0/tests/terf.c
Examining data/mpfr4-4.1.0/tests/tisnan.c
Examining data/mpfr4-4.1.0/tests/ty0.c
Examining data/mpfr4-4.1.0/tests/tdigamma.c
Examining data/mpfr4-4.1.0/tests/rnd_mode.c
Examining data/mpfr4-4.1.0/tests/texpm1.c
Examining data/mpfr4-4.1.0/tests/random2.c
Examining data/mpfr4-4.1.0/tests/terandom_chisq.c
Examining data/mpfr4-4.1.0/tests/tl2b.c
Examining data/mpfr4-4.1.0/tests/tcopysign.c
Examining data/mpfr4-4.1.0/tests/tfmma.c
Examining data/mpfr4-4.1.0/tests/toutimpl.c
Examining data/mpfr4-4.1.0/tests/tminmax.c
Examining data/mpfr4-4.1.0/tests/tversion.c
Examining data/mpfr4-4.1.0/tests/texceptions.c
Examining data/mpfr4-4.1.0/tests/turandom.c
Examining data/mpfr4-4.1.0/tests/tset_exp.c
Examining data/mpfr4-4.1.0/tests/tdim.c
Examining data/mpfr4-4.1.0/tests/tlngamma.c
Examining data/mpfr4-4.1.0/tests/tadd.c
Examining data/mpfr4-4.1.0/tests/tcoth.c
Examining data/mpfr4-4.1.0/tests/tstckintc.c
Examining data/mpfr4-4.1.0/tests/tcan_round.c
Examining data/mpfr4-4.1.0/tests/taway.c
Examining data/mpfr4-4.1.0/tests/tsinh.c
Examining data/mpfr4-4.1.0/tests/texp2.c
Examining data/mpfr4-4.1.0/tests/tprintf.c
Examining data/mpfr4-4.1.0/tests/tlog_ui.c
Examining data/mpfr4-4.1.0/tests/tadd_d.c
Examining data/mpfr4-4.1.0/tests/tsin_cos.c
Examining data/mpfr4-4.1.0/tests/tlog.c
Examining data/mpfr4-4.1.0/tests/tset_str.c
Examining data/mpfr4-4.1.0/tests/ttan.c
Examining data/mpfr4-4.1.0/tests/tswap.c
Examining data/mpfr4-4.1.0/tests/tcmp_ui.c
Examining data/mpfr4-4.1.0/tests/tcsch.c
Examining data/mpfr4-4.1.0/tests/trandom_deviate.c
Examining data/mpfr4-4.1.0/tests/tconst_pi.c
Examining data/mpfr4-4.1.0/tests/tsum.c
Examining data/mpfr4-4.1.0/tests/tassert.c
Examining data/mpfr4-4.1.0/tests/trandom.c
Examining data/mpfr4-4.1.0/tests/trootn_ui.c
Examining data/mpfr4-4.1.0/tests/tconst_log2.c
Examining data/mpfr4-4.1.0/tests/tacosh.c
Examining data/mpfr4-4.1.0/tests/td_sub.c
Examining data/mpfr4-4.1.0/tests/tabort_defalloc1.c
Examining data/mpfr4-4.1.0/tests/ttotal_order.c
Examining data/mpfr4-4.1.0/tests/tout_str.c
Examining data/mpfr4-4.1.0/tests/tcos.c
Examining data/mpfr4-4.1.0/tests/tfpif.c
Examining data/mpfr4-4.1.0/tests/tget_set_d128.c
Examining data/mpfr4-4.1.0/tests/tsub_d.c
Examining data/mpfr4-4.1.0/tests/tmodf.c
Examining data/mpfr4-4.1.0/tests/teint.c
Examining data/mpfr4-4.1.0/tests/trec_sqrt.c
Examining data/mpfr4-4.1.0/tests/tabort_prec_max.c
Examining data/mpfr4-4.1.0/tests/tconst_catalan.c
Examining data/mpfr4-4.1.0/tests/trint.c
Examining data/mpfr4-4.1.0/tests/tsubnormal.c
Examining data/mpfr4-4.1.0/tests/tsub1sp.c
Examining data/mpfr4-4.1.0/tests/tconst_euler.c
Examining data/mpfr4-4.1.0/tests/tinits.c
Examining data/mpfr4-4.1.0/tests/terandom.c
Examining data/mpfr4-4.1.0/tests/mpf_compat.h
Examining data/mpfr4-4.1.0/tests/tsub.c
Examining data/mpfr4-4.1.0/tests/tadd_ui.c
Examining data/mpfr4-4.1.0/tests/tstrtofr.c
Examining data/mpfr4-4.1.0/tests/tcmp2.c
Examining data/mpfr4-4.1.0/tests/tsi_op.c
Examining data/mpfr4-4.1.0/tests/tpow.c
Examining data/mpfr4-4.1.0/tests/tget_d.c
Examining data/mpfr4-4.1.0/tests/tsub_ui.c
Examining data/mpfr4-4.1.0/tests/tsin.c
Examining data/mpfr4-4.1.0/tests/tset_si.c
Examining data/mpfr4-4.1.0/tests/tget_set_d64.c
Examining data/mpfr4-4.1.0/tests/tzeta.c
Examining data/mpfr4-4.1.0/tests/tfactorial.c
Examining data/mpfr4-4.1.0/tests/tget_ld_2exp.c
Examining data/mpfr4-4.1.0/tests/texp.c
Examining data/mpfr4-4.1.0/tests/tlog1p.c
Examining data/mpfr4-4.1.0/tests/tisqrt.c
Examining data/mpfr4-4.1.0/tests/tabs.c
Examining data/mpfr4-4.1.0/tests/teq.c
Examining data/mpfr4-4.1.0/tests/tmin_prec.c
Examining data/mpfr4-4.1.0/tests/tasinh.c
Examining data/mpfr4-4.1.0/tests/tcmpabs.c
Examining data/mpfr4-4.1.0/tests/tatanh.c
Examining data/mpfr4-4.1.0/tests/tzeta_ui.c
Examining data/mpfr4-4.1.0/tests/tgeneric_ui.c
Examining data/mpfr4-4.1.0/tests/tsech.c
Examining data/mpfr4-4.1.0/tests/tgmpop.c
Examining data/mpfr4-4.1.0/tests/tsec.c
Examining data/mpfr4-4.1.0/tests/td_div.c
Examining data/mpfr4-4.1.0/tests/talloc-cache.c
Examining data/mpfr4-4.1.0/tests/tcot.c
Examining data/mpfr4-4.1.0/tests/tget_flt.c
Examining data/mpfr4-4.1.0/tests/tbeta.c
Examining data/mpfr4-4.1.0/tests/tmul_2exp.c
Examining data/mpfr4-4.1.0/tests/tget_sj.c
Examining data/mpfr4-4.1.0/tests/tlgamma.c
Examining data/mpfr4-4.1.0/tests/tset_z_exp.c
Examining data/mpfr4-4.1.0/tests/tfms.c
Examining data/mpfr4-4.1.0/tests/tsprintf.c
Examining data/mpfr4-4.1.0/tests/tcmp_ld.c
Examining data/mpfr4-4.1.0/tests/tsinh_cosh.c
Examining data/mpfr4-4.1.0/tests/thyperbolic.c
Examining data/mpfr4-4.1.0/tests/tfits.c
Examining data/mpfr4-4.1.0/tests/tdot.c
Examining data/mpfr4-4.1.0/tests/tget_q.c
Examining data/mpfr4-4.1.0/tests/tvalist.c
Examining data/mpfr4-4.1.0/tests/tsqrt.c
Examining data/mpfr4-4.1.0/tests/tatan.c
Examining data/mpfr4-4.1.0/tests/tfmod.c
Examining data/mpfr4-4.1.0/tests/tget_d_2exp.c
Examining data/mpfr4-4.1.0/tests/tadd1sp.c
Examining data/mpfr4-4.1.0/tests/tnrandom.c
Examining data/mpfr4-4.1.0/tests/tdiv_ui.c
Examining data/mpfr4-4.1.0/tests/tset.c
Examining data/mpfr4-4.1.0/tests/tfprintf.c
Examining data/mpfr4-4.1.0/tests/tyn.c
Examining data/mpfr4-4.1.0/tests/tpow3.c
Examining data/mpfr4-4.1.0/tests/tfma.c
Examining data/mpfr4-4.1.0/tests/tremquo.c
Examining data/mpfr4-4.1.0/tests/tgamma_inc.c
Examining data/mpfr4-4.1.0/tests/tjn.c
Examining data/mpfr4-4.1.0/tests/tpow_all.c
Examining data/mpfr4-4.1.0/tests/tstdint.c
Examining data/mpfr4-4.1.0/tests/talloc.c
Examining data/mpfr4-4.1.0/tests/ty1.c
Examining data/mpfr4-4.1.0/tests/tabort_defalloc2.c
Examining data/mpfr4-4.1.0/tests/tcosh.c
Examining data/mpfr4-4.1.0/tests/tests.c
Examining data/mpfr4-4.1.0/tests/tbuildopt.c
Examining data/mpfr4-4.1.0/tests/ttanh.c
Examining data/mpfr4-4.1.0/tests/tj0.c
Examining data/mpfr4-4.1.0/tests/tcmp.c
Examining data/mpfr4-4.1.0/tests/tset_f.c
Examining data/mpfr4-4.1.0/tests/tagm.c
Examining data/mpfr4-4.1.0/tests/mpfr-test.h
Examining data/mpfr4-4.1.0/tests/tsqr.c
Examining data/mpfr4-4.1.0/tests/reuse.c
Examining data/mpfr4-4.1.0/tests/tai.c
Examining data/mpfr4-4.1.0/tests/tnrandom_chisq.c
Examining data/mpfr4-4.1.0/tests/tui_div.c
Examining data/mpfr4-4.1.0/tests/tset_ld.c
Examining data/mpfr4-4.1.0/tests/ttrunc.c
Examining data/mpfr4-4.1.0/tests/tgamma.c
Examining data/mpfr4-4.1.0/tests/tmul_ui.c
Examining data/mpfr4-4.1.0/tests/tdiv_d.c
Examining data/mpfr4-4.1.0/tests/tmul.c
Examining data/mpfr4-4.1.0/tests/tcheck.c
Examining data/mpfr4-4.1.0/tests/tsqrt_ui.c
Examining data/mpfr4-4.1.0/tests/tget_z.c
Examining data/mpfr4-4.1.0/tests/trndna.c
Examining data/mpfr4-4.1.0/tests/tset_q.c
Examining data/mpfr4-4.1.0/tests/tinternals.c
Examining data/mpfr4-4.1.0/tests/tprec_round.c
Examining data/mpfr4-4.1.0/tests/tcmp_d.c
Examining data/mpfr4-4.1.0/tests/tfrac.c
Examining data/mpfr4-4.1.0/tests/tgeneric.c
Examining data/mpfr4-4.1.0/tests/tget_str.c
Examining data/mpfr4-4.1.0/tests/tcomparisons.c
Examining data/mpfr4-4.1.0/tests/tfrexp.c
Examining data/mpfr4-4.1.0/tests/tli2.c
Examining data/mpfr4-4.1.0/tests/tset_float128.c
Examining data/mpfr4-4.1.0/tests/tmul_d.c
Examining data/mpfr4-4.1.0/tests/tnext.c
Examining data/mpfr4-4.1.0/tests/thypot.c
Examining data/mpfr4-4.1.0/tools/bench/mpfrbench.c
Examining data/mpfr4-4.1.0/tools/bench/benchtime.h
Examining data/mpfr4-4.1.0/tools/check_mparam.c
Examining data/mpfr4-4.1.0/examples/sample.c
Examining data/mpfr4-4.1.0/examples/can_round.c
Examining data/mpfr4-4.1.0/examples/threads.c
Examining data/mpfr4-4.1.0/examples/divworst.c
Examining data/mpfr4-4.1.0/examples/rndo-add.c
Examining data/mpfr4-4.1.0/examples/version.c

FINAL RESULTS:

data/mpfr4-4.1.0/examples/version.c:82: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 (COMP "ICC %d.%d.%d" ICCV "\n", __INTEL_COMPILER / 100,
data/mpfr4-4.1.0/examples/version.c:90: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 (COMP2 "%s\n", __VERSION__);
data/mpfr4-4.1.0/src/get_str.c:2625:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (s, (neg) ? "-@Inf@" : "@Inf@");
data/mpfr4-4.1.0/src/mpfr-impl.h:2081:7:  [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 (mpfr_log_file,                                           \
data/mpfr4-4.1.0/src/out_str.c:30:11:  [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.
      r = fprintf (stream, (S));                \
data/mpfr4-4.1.0/src/out_str.c:79:7:  [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.
  r = fprintf (stream, (base <= 10 ?
data/mpfr4-4.1.0/src/printf.c:133:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  ret = sprintf (buf, "%s", str);
data/mpfr4-4.1.0/src/printf.c:146:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  ret = sprintf (buf, "%s", str);
data/mpfr4-4.1.0/src/vasprintf.c:1225:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    if (MPFR_UNLIKELY (sprintf (str, exp_fmt, (mpfr_eexp_t) exp) < 0))
data/mpfr4-4.1.0/src/vasprintf.c:1358:24:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    if (MPFR_UNLIKELY (sprintf (str, exp_fmt, (mpfr_eexp_t) exp) < 0))
data/mpfr4-4.1.0/src/vasprintf.c:1715:11:  [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 (str, uppercase ? MPFR_NAN_STRING_UC : MPFR_NAN_STRING_LC);
data/mpfr4-4.1.0/src/vasprintf.c:1730:11:  [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 (str, uppercase ? MPFR_INF_STRING_UC : MPFR_INF_STRING_LC);
data/mpfr4-4.1.0/src/vasprintf.c:1791:17:  [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 (str, uppercase ? "E+00" : "e+00");
data/mpfr4-4.1.0/src/vasprintf.c:1793:17:  [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 (str, uppercase ? "P+0" : "p+0");
data/mpfr4-4.1.0/src/vasprintf.c:1812:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (str, uppercase ? "UBF" : "ubf");
data/mpfr4-4.1.0/src/vasprintf.c:2334:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf (format, "%%%s%s%s%s%s%s*.*" MPFR_PREC_FORMAT_TYPE "%c",
data/mpfr4-4.1.0/tests/mpfr-test.h:241:15:  [4] (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 ((wd & t) == 0 ? "0" : "1");
data/mpfr4-4.1.0/tests/reuse.c:28:7:  [4] (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);                                       \
data/mpfr4-4.1.0/tests/taway.c:28:7:  [4] (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);                                       \
data/mpfr4-4.1.0/tests/tests.c:642:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buffer, "%s/%s", srcdir, filename);
data/mpfr4-4.1.0/tests/tfma.c:457: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.
                  printf (STRTU1 "NaN flag is set\n", signy, signz,
data/mpfr4-4.1.0/tests/tfma.c:467: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.
                  printf (STRTU1 "wrong overflow flag\n", signy, signz,
data/mpfr4-4.1.0/tests/tfma.c:473: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.
                  printf (STRTU1 "underflow flag is set\n", signy, signz,
data/mpfr4-4.1.0/tests/tfma.c:479: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.
                  printf (STRTU1 "got        ", signy, signz,
data/mpfr4-4.1.0/tests/tfma.c:490: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.
                  printf (STRTU1 "ternary value = %d instead of < 0\n",
data/mpfr4-4.1.0/tests/tfma.c:499: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.
                  printf (STRTU1 "ternary value = %d instead of > 0\n",
data/mpfr4-4.1.0/tests/tfms.c:225: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.
                  printf (STRTU1 "NaN flag is set\n", signy, signz,
data/mpfr4-4.1.0/tests/tfms.c:236: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.
                  printf (STRTU1 "wrong overflow flag\n", signy, signz,
data/mpfr4-4.1.0/tests/tfms.c:242: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.
                  printf (STRTU1 "underflow flag is set\n", signy, signz,
data/mpfr4-4.1.0/tests/tfms.c:248: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.
                  printf (STRTU1 "got        ", signy, signz,
data/mpfr4-4.1.0/tests/tfms.c:259: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.
                  printf (STRTU1 "ternary value = %d instead of < 0\n",
data/mpfr4-4.1.0/tests/tfms.c:268: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.
                  printf (STRTU1 "ternary value = %d instead of > 0\n",
data/mpfr4-4.1.0/tests/tfms.c:308:15:  [4] (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 (STRTU2 "flags = %u instead of %u\n", b, i,
data/mpfr4-4.1.0/tests/tfms.c:316:15:  [4] (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 (STRTU2 "incorrect ternary value (%d instead of %c 0)\n",
data/mpfr4-4.1.0/tests/tfms.c:325:15:  [4] (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 (STRTU2 "expected ", b, i);
data/mpfr4-4.1.0/tests/trint.c:426: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 (&strData[GMP_NUMB_BITS+1], &strData[precIn+1]);
data/mpfr4-4.1.0/tests/tsprintf.c:211:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, "%s", s);
data/mpfr4-4.1.0/tests/tsprintf.c:214:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf (buf, "--%s++", "");
data/mpfr4-4.1.0/tests/tsprintf.c:1613:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (buf, ",0" + (j % 3 != 0));
data/mpfr4-4.1.0/tests/tsprintf.c:1633:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (buf, ",0" + (j % 3 != 0));
data/mpfr4-4.1.0/tests/turandom.c:582:11:  [4] (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 (i < 5 * N - 1 ? "\",\n" : "\"\n");
data/mpfr4-4.1.0/tests/tversion.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 (COMP "ICC %d.%d.%d" ICCV "\n", __INTEL_COMPILER / 100,
data/mpfr4-4.1.0/tests/tversion.c:94: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 (COMP2 "%s\n", __VERSION__);
data/mpfr4-4.1.0/tests/tversion.c:291: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) ("[tversion] MPFR_ALLOCA_MAX = %ld\n", (long) MPFR_ALLOCA_MAX);
data/mpfr4-4.1.0/tests/tversion.c:305: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) ("[tversion] TLS = %s, float128 = %s, decimal = %s,"
data/mpfr4-4.1.0/tests/tversion.c:324: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) ("[tversion] Shared cache = %s\n",
data/mpfr4-4.1.0/tests/tversion.c:403: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) ("[tversion] sizeof(long) = %ld, sizeof(mpfr_intmax_t) = %ld"
data/mpfr4-4.1.0/tests/tversion.c:434: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) ("[tversion] Within limb: long = %s"
data/mpfr4-4.1.0/tests/tversion.c:468: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 ("[tversion] Precision" RANGE,
data/mpfr4-4.1.0/tests/tversion.c:487: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 ("[tversion] Max exponent" RANGE,
data/mpfr4-4.1.0/src/logging.c:55:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  var = getenv ("MPFR_LOG_LEVEL");
data/mpfr4-4.1.0/src/logging.c:59:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  var = getenv ("MPFR_LOG_PREC");
data/mpfr4-4.1.0/src/logging.c:64:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_LOG_INPUT") != NULL)
data/mpfr4-4.1.0/src/logging.c:66:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_LOG_OUTPUT") != NULL)
data/mpfr4-4.1.0/src/logging.c:68:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_LOG_TIME") != NULL)
data/mpfr4-4.1.0/src/logging.c:70:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_LOG_INTERNAL") != NULL)
data/mpfr4-4.1.0/src/logging.c:72:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_LOG_MSG") != NULL)
data/mpfr4-4.1.0/src/logging.c:74:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_LOG_ZIV") != NULL)
data/mpfr4-4.1.0/src/logging.c:76:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_LOG_STAT") != NULL)
data/mpfr4-4.1.0/src/logging.c:78:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_LOG_ALL") != NULL)
data/mpfr4-4.1.0/src/logging.c:82:20:  [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.
  mpfr_log_flush = getenv ("MPFR_LOG_FLUSH") != NULL;
data/mpfr4-4.1.0/src/logging.c:85:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  var = getenv ("MPFR_LOG_FILE");
data/mpfr4-4.1.0/src/mpfr-impl.h:576:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *q = getenv ("MPFR_QUIET");      \
data/mpfr4-4.1.0/src/mpfr-mini-gmp.c:71:23:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (mp_limb_t) (lrand48 () >> (31 - GMP_NUMB_BITS));
data/mpfr4-4.1.0/src/mpfr-mini-gmp.c:74:11:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (lrand48 () >> 15) + ((lrand48 () >> 15) << 16);
data/mpfr4-4.1.0/src/mpfr-mini-gmp.c:74:33:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (lrand48 () >> 15) + ((lrand48 () >> 15) << 16);
data/mpfr4-4.1.0/src/mpfr-mini-gmp.c:77:11:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (lrand48 () >> 15) + ((((mp_limb_t) lrand48 ()) >> 15) << 16)
data/mpfr4-4.1.0/src/mpfr-mini-gmp.c:77:46:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  return (lrand48 () >> 15) + ((((mp_limb_t) lrand48 ()) >> 15) << 16)
data/mpfr4-4.1.0/src/mpfr-mini-gmp.c:78:22:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    + ((((mp_limb_t) lrand48 ()) >> 15) << 32)
data/mpfr4-4.1.0/src/mpfr-mini-gmp.c:79:22:  [3] (random) lrand48:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    + ((((mp_limb_t) lrand48 ()) >> 15) << 48);
data/mpfr4-4.1.0/tests/memory.c:281:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  p = getenv ("MPFR_TESTS_MEMORY_LIMIT");
data/mpfr4-4.1.0/tests/tests.c:358: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.
  timeoutp = getenv ("MPFR_TESTS_TIMEOUT");
data/mpfr4-4.1.0/tests/tests.c:399:18:  [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.
  perform_seed = getenv ("GMP_CHECK_RANDOMIZE");
data/mpfr4-4.1.0/tests/tests.c:996:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  dbgenv = getenv ("MPFR_DEBUG_BADCASES");
data/mpfr4-4.1.0/tests/tests.c:1123:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_CHECK_BADCASES") && n - cnt > n/10)
data/mpfr4-4.1.0/tests/tests.c:1189:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  p = getenv ("LD_PRELOAD");
data/mpfr4-4.1.0/tests/tgamma.c:1132:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_CHECK_EXPENSIVE") != NULL &&
data/mpfr4-4.1.0/tests/tgamma.c:1133:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      getenv ("MPFR_CHECK_LARGEMEM") != NULL)
data/mpfr4-4.1.0/tests/tgeneric.c:756:20:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
          else if (getenv ("MPFR_SUSPICIOUS_OVERFLOW") != NULL)
data/mpfr4-4.1.0/tests/tinits.c:41:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_CHECK_LARGEMEM") != NULL)
data/mpfr4-4.1.0/tests/tjn.c:64:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_CHECK_EXPENSIVE") != NULL)
data/mpfr4-4.1.0/tests/tprintf.c:517:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if (getenv ("MPFR_CHECK_LOCALES") == NULL)
data/mpfr4-4.1.0/tests/tprintf.c:585:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_CHECK_LOCALES") != NULL)
data/mpfr4-4.1.0/tests/tprintf.c:630:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_CHECK_LARGEMEM") != NULL)
data/mpfr4-4.1.0/tests/tsprintf.c:935:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if (getenv ("MPFR_CHECK_LOCALES") == NULL)
data/mpfr4-4.1.0/tests/tsprintf.c:1589:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if (getenv ("MPFR_CHECK_LOCALES") == NULL)
data/mpfr4-4.1.0/tests/tsprintf.c:1665:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_CHECK_LOCALES") != NULL)
data/mpfr4-4.1.0/tests/tsprintf.c:1698:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      if (getenv ("MPFR_CHECK_LOCALES") != NULL)
data/mpfr4-4.1.0/tests/tsprintf.c:1716:7:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  if (getenv ("MPFR_CHECK_LIBC_PRINTF"))
data/mpfr4-4.1.0/tests/turandom.c:568: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.
  generate = getenv ("MPFR_REPROD_ABI_OUTPUT") != NULL;
data/mpfr4-4.1.0/examples/divworst.c:64:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  dmax = atoi (argv[1]);
data/mpfr4-4.1.0/examples/divworst.c:65: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).
  n = atoi (argv[2]);
data/mpfr4-4.1.0/examples/divworst.c:66:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  p = argc == 3 ? n : atoi (argv[3]);
data/mpfr4-4.1.0/examples/rndo-add.c:51:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  prec = atoi (argv[1]);
data/mpfr4-4.1.0/examples/threads.c:66:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      (m = atoi (argv[1]), m < 1) ||
data/mpfr4-4.1.0/examples/threads.c:67:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      (n = atoi (argv[2]), n < 1 || n > MAX_THREADS))
data/mpfr4-4.1.0/src/dump.c:61:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char invalid[4];
data/mpfr4-4.1.0/src/fpif.c:137: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 (result, data, data_size);
data/mpfr4-4.1.0/src/fpif.c:171: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 (result, data, data_size);
data/mpfr4-4.1.0/src/fpif.c:229:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buffer[BUFFER_SIZE];
data/mpfr4-4.1.0/src/fpif.c:381:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char buffer[sizeof(mpfr_exp_t)];
data/mpfr4-4.1.0/src/get_d128.c:101: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 m[35];
data/mpfr4-4.1.0/src/get_d128.c:103: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 *endptr[1];
data/mpfr4-4.1.0/src/get_d128.c:385:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char s[42];
data/mpfr4-4.1.0/src/get_d128.c:418:15:  [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 + negative + digits + 1, "%ld",
data/mpfr4-4.1.0/src/get_d128.c:435:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (s + 35 + negative, "%ld", (long int) e - 34);
data/mpfr4-4.1.0/src/get_d64.c:190: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 m[17];
data/mpfr4-4.1.0/src/get_d64.c:192: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 *endptr[1];
data/mpfr4-4.1.0/src/get_d64.c:326: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 m[17];
data/mpfr4-4.1.0/src/get_d64.c:328:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *endptr[1];
data/mpfr4-4.1.0/src/get_d64.c:556:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char s[23];
data/mpfr4-4.1.0/src/get_d64.c:589:15:  [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 + negative + digits + 1, "%ld",
data/mpfr4-4.1.0/src/get_d64.c:606:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (s + 17 + negative, "%ld", (long int)e - 16);
data/mpfr4-4.1.0/src/get_str.c:2613:7:  [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 (s, "@NaN@");
data/mpfr4-4.1.0/src/ieee_floats.h:37:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char b[8];
data/mpfr4-4.1.0/src/logging.c:56:51:  [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).
  mpfr_log_level = var == NULL || *var == 0 ? 7 : atoi (var);
data/mpfr4-4.1.0/src/logging.c:60:37:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  mpfr_log_prec = var == NULL ? 6 : atol (var);
data/mpfr4-4.1.0/src/logging.c:90:23:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      mpfr_log_file = fopen (var, "w");
data/mpfr4-4.1.0/src/mp_clz_tab.c:32: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.
unsigned char __clz_tab[129] =
data/mpfr4-4.1.0/src/mpfr-gmp.h:129: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.
          memcpy ((dst), (src), (n) * MPFR_BYTES_PER_MP_LIMB);        \
data/mpfr4-4.1.0/src/mpfr-longlong.h:2182:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern const unsigned char __MPFR_DECLSPEC __clz_tab[129];
data/mpfr4-4.1.0/src/mpfr-mini-gmp.c:299: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.
              char s[17];
data/mpfr4-4.1.0/src/mpfr-mini-gmp.c:301:15:  [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, "%lx", (unsigned long) z->_mp_d[n-1]);
data/mpfr4-4.1.0/src/pool.c:46:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (z, &mpz_tab[--n_alloc], sizeof (mpz_t));
data/mpfr4-4.1.0/src/pool.c:73:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (z, &mpz_tab[--n_alloc], sizeof (mpz_t));
data/mpfr4-4.1.0/src/pool.c:95:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&mpz_tab[n_alloc++], z, sizeof (mpz_t));
data/mpfr4-4.1.0/src/rec_sqrt.c:135:19:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static unsigned char T2[384] = {
data/mpfr4-4.1.0/src/set_d128.c:147:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (s, "NaN");
data/mpfr4-4.1.0/src/set_d128.c:153:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (s, "Inf");
data/mpfr4-4.1.0/src/set_d128.c:155:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (s, "-Inf");
data/mpfr4-4.1.0/src/set_d128.c:192: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 (t, "%1u%3u%3u%3u%3u%3u%3u%3u%3u%3u%3u%3u", D[0], T[D[1]], T[D[2]],
data/mpfr4-4.1.0/src/set_d128.c:248: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 (t, "E%d", exp);
data/mpfr4-4.1.0/src/set_d128.c:281:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (s, "NaN"); /* sprintf puts a final '\0' */
data/mpfr4-4.1.0/src/set_d128.c:286:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (s, "Inf");
data/mpfr4-4.1.0/src/set_d128.c:291:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (s, "-Inf");
data/mpfr4-4.1.0/src/set_d128.c:471:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (s, "E%d", exp); /* adds a final '\0' */
data/mpfr4-4.1.0/src/set_d128.c:483:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[44]; /* need 1 character for sign,
data/mpfr4-4.1.0/src/set_d64.c:162:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (s, "NaN");
data/mpfr4-4.1.0/src/set_d64.c:168:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (s, "Inf");
data/mpfr4-4.1.0/src/set_d64.c:170:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf (s, "-Inf");
data/mpfr4-4.1.0/src/set_d64.c:202: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 (t, "%1u%3u%3u%3u%3u%3u", d0, T[d1], T[d2], T[d3], T[d4], T[d5]);
data/mpfr4-4.1.0/src/set_d64.c:275: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 (t, "E%d", exp);
data/mpfr4-4.1.0/src/set_d64.c:292:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (s, "NaN"); /* sprintf puts a final '\0' */
data/mpfr4-4.1.0/src/set_d64.c:297:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (s, "Inf");
data/mpfr4-4.1.0/src/set_d64.c:302:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (s, "-Inf");
data/mpfr4-4.1.0/src/set_d64.c:473:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf (s, "E%d", exp); /* adds a final '\0' */
data/mpfr4-4.1.0/src/set_d64.c:485:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[25]; /* need 1 character for sign,
data/mpfr4-4.1.0/src/vasprintf.c:70: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.
  do { memcpy(&(dst), &(src), sizeof(va_list)); } while (0)
data/mpfr4-4.1.0/src/vasprintf.c:752:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (b->curr, str, r);
data/mpfr4-4.1.0/src/vasprintf.c:764:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (b->curr, str, len);
data/mpfr4-4.1.0/src/vasprintf.c:776: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.
          memcpy (b->curr, str, step);
data/mpfr4-4.1.0/src/vasprintf.c:784: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.
          memcpy (b->curr, str, len);
data/mpfr4-4.1.0/src/vasprintf.c:1218:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char exp_fmt[8];  /* contains at most 7 characters like in "p%+.1i",
data/mpfr4-4.1.0/src/vasprintf.c:1223:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat (exp_fmt, "%+.1" MPFR_EXP_FSPEC "d");
data/mpfr4-4.1.0/src/vasprintf.c:1352:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char exp_fmt[8];  /* e.g. "e%+.2i", or "E%+.2li" */
data/mpfr4-4.1.0/src/vasprintf.c:1356:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat (exp_fmt, "%+.2" MPFR_EXP_FSPEC "d");
data/mpfr4-4.1.0/src/vasprintf.c:2289: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.
          char format[MPFR_PREC_FORMAT_SIZE + 12]; /* e.g. "%0#+ -'*.*ld\0" */
data/mpfr4-4.1.0/tests/mpf_compat.h:176:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen ("/dev/null", "w");
data/mpfr4-4.1.0/tests/tabs.c:216:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  n = (argc==1) ? 25000 : atoi(argv[1]);
data/mpfr4-4.1.0/tests/tconst_euler.c:61:28:  [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).
  prec = (argc < 2) ? 53 : atoi(argv[1]);
data/mpfr4-4.1.0/tests/tconst_log2.c:178:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  p = (argc>1) ? atoi(argv[1]) : 53;
data/mpfr4-4.1.0/tests/tconst_log2.c:179:33:  [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).
  rnd = (argc>2) ? (mpfr_rnd_t) atoi(argv[2]) : MPFR_RNDN;
data/mpfr4-4.1.0/tests/tconst_pi.c:207:16:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      long a = atol (argv[1]);
data/mpfr4-4.1.0/tests/tconst_pi.c:212:35:  [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).
  rnd = (argc > 2) ? (mpfr_rnd_t) atoi(argv[2]) : MPFR_RNDZ;
data/mpfr4-4.1.0/tests/tconst_pi.c:218:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      if (argc < 4 || atoi (argv[3]) != 0)
data/mpfr4-4.1.0/tests/teint.c:226:29:  [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).
      p = (argc < 3) ? 53 : atoi (argv[2]);
data/mpfr4-4.1.0/tests/terandom.c:115:16:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      long a = atol (argv[1]);
data/mpfr4-4.1.0/tests/terandom_chisq.c:340:16:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      long a = atol (argv[1]);
data/mpfr4-4.1.0/tests/tests.c:145: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 buffer[256];
data/mpfr4-4.1.0/tests/tests.c:149: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 (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
data/mpfr4-4.1.0/tests/tests.c:153:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
       (sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR),
data/mpfr4-4.1.0/tests/tests.c:196:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (buffer, "%d.%d.%d", MPFR_VERSION_MAJOR, MPFR_VERSION_MINOR,
data/mpfr4-4.1.0/tests/tests.c:359:32:  [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).
  timeout = timeoutp != NULL ? atoi (timeoutp) : MPFR_TESTS_TIMEOUT;
data/mpfr4-4.1.0/tests/tests.c:555:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char  b[sizeof(double)];
data/mpfr4-4.1.0/tests/tests.c:578:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char  b[sizeof(long double)];
data/mpfr4-4.1.0/tests/tests.c:628:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return fopen (filename, mode);
data/mpfr4-4.1.0/tests/tests.c:643:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen (buffer, mode);
data/mpfr4-4.1.0/tests/tests.c:833: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 (f, "r");
data/mpfr4-4.1.0/tests/tests.c:997:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  dbg = dbgenv != 0 ? atoi (dbgenv) : 0;  /* debug level */
data/mpfr4-4.1.0/tests/tfpif.c:64: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).
  fh = fopen (filenameCompressed, "w");
data/mpfr4-4.1.0/tests/tfpif.c:99: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).
  fh = fopen (filenameCompressed, "r");
data/mpfr4-4.1.0/tests/tfpif.c:221:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char badData[BAD][10] =
data/mpfr4-4.1.0/tests/tfpif.c:259: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).
  fh = fopen (filenameCompressed, "w+");
data/mpfr4-4.1.0/tests/tfpif.c:367: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).
  fh = fopen (filenameCompressed, "r");
data/mpfr4-4.1.0/tests/tfprintf.c:328:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fmt[FMT_SIZE]; /* at most something like "%-+ #0'.*R*f" */
data/mpfr4-4.1.0/tests/tfprintf.c:412: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).
      fout = fopen ("/dev/null", "w");
data/mpfr4-4.1.0/tests/tfprintf.c:416: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).
          fout = fopen ("tfprintf_out.txt", "w");
data/mpfr4-4.1.0/tests/tfprintf.c:428: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).
      N = atoi (argv[1]);
data/mpfr4-4.1.0/tests/tgamma.c:1107:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      mpfr_prec_t p = atoi (argv[2]);
data/mpfr4-4.1.0/tests/tgamma_inc.c:375:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      mpfr_prec_t p = atoi (argv[3]);
data/mpfr4-4.1.0/tests/tget_set_d128.c:526:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char c[16];
data/mpfr4-4.1.0/tests/tget_set_d64.c:504: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 (&x, &y, 8);
data/mpfr4-4.1.0/tests/tget_set_d64.c:512:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy (&y, &x, 8);
data/mpfr4-4.1.0/tests/tget_set_d64.c:537:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char c[8];
data/mpfr4-4.1.0/tests/tget_str.c:888:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *s, s1[7];
data/mpfr4-4.1.0/tests/tget_str.c:1083:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[MAX_DIGITS + 2], s2[MAX_DIGITS + 2], c;
data/mpfr4-4.1.0/tests/tget_str.c:1217:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char *s[2];
data/mpfr4-4.1.0/tests/tget_str.c:1256:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char *s, s2[16] = "7B000000000000", s3[16] = "74000000000000";
data/mpfr4-4.1.0/tests/tget_str.c:1274:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[42];
data/mpfr4-4.1.0/tests/tget_str.c:1412:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          ret = sprintf (s + oprec + 1, "%ld", (long) e);
data/mpfr4-4.1.0/tests/tget_str.c:1420:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          ret = sprintf (t + oprec + 1, "%ld", (long) (f - oprec));
data/mpfr4-4.1.0/tests/tget_str.c:1447:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[MAX_DIGITS + 2];
data/mpfr4-4.1.0/tests/tgrandom.c:125:16:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      long a = atol (argv[1]);
data/mpfr4-4.1.0/tests/tinternals.c:53: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 buffer[7], *p;
data/mpfr4-4.1.0/tests/tjn.c:53:22:  [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).
      mpfr_init2 (x, atoi (argv[1]));
data/mpfr4-4.1.0/tests/tjn.c:55:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      mpfr_jn (x, atoi (argv[2]), x, MPFR_RNDN);
data/mpfr4-4.1.0/tests/tl2b.c:37:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char temp[16]; /* buffer for the base-256 string */
data/mpfr4-4.1.0/tests/tl2b.c:44:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char prefix[12];        /* "0x" or "UINT64_C(0x" */
data/mpfr4-4.1.0/tests/tl2b.c:45:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char suffix[2];         /* "" or ")" */
data/mpfr4-4.1.0/tests/tl2b.c:53:11:  [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 (prefix, "UINT64_C(0x");
data/mpfr4-4.1.0/tests/tl2b.c:58:11:  [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 (prefix, "0x");
data/mpfr4-4.1.0/tests/tl2b.c:99: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 buffer[256];  /* larger than needed, for maintainability */
data/mpfr4-4.1.0/tests/tl2b.c:127:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (buffer, "mpfr_l2b_%d_%d", beta, i);
data/mpfr4-4.1.0/tests/tlog.c:279: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).
              (argc == 4) ? (mpfr_rnd_t) atoi (argv[3]) : MPFR_RNDN);
data/mpfr4-4.1.0/tests/tlog_ui.c:77:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    argc > 3 ? (mpfr_rnd_t) atoi (argv[3]) : MPFR_RNDN);
data/mpfr4-4.1.0/tests/tmul.c:476:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[BUFSIZE];
data/mpfr4-4.1.0/tests/tmul_2exp.c:261:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char *sop[4] = { "mul_2ui", "mul_2si", "div_2ui", "div_2si" };
data/mpfr4-4.1.0/tests/tnrandom.c:115:16:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      long a = atol (argv[1]);
data/mpfr4-4.1.0/tests/tnrandom_chisq.c:341:16:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      long a = atol (argv[1]);
data/mpfr4-4.1.0/tests/tout_str.c:119: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).
      fout = fopen (fname, "w");
data/mpfr4-4.1.0/tests/tout_str.c:130: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).
      N = atoi (argv[1]);
data/mpfr4-4.1.0/tests/toutimpl.c:121:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen (FILE_NAME, "r");
data/mpfr4-4.1.0/tests/tpow.c:726:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static const char *name[11] = {
data/mpfr4-4.1.0/tests/tpow_all.c:494:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char sy[256];  /* larger than needed, for maintainability */
data/mpfr4-4.1.0/tests/tpow_all.c:506:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (sy, "emin - %d/4", i);
data/mpfr4-4.1.0/tests/tpow_all.c:580:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char sy[256];
data/mpfr4-4.1.0/tests/tpow_all.c:585:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (sy, "%lu", (unsigned long) n);
data/mpfr4-4.1.0/tests/tprintf.c:421:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char fmt[FMT_SIZE]; /* at most something like "%-+ #0'.*R*f" */
data/mpfr4-4.1.0/tests/tprintf.c:548:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char s[N0+4];
data/mpfr4-4.1.0/tests/tprintf.c:564:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat (s + (i + 1), ".5");
data/mpfr4-4.1.0/tests/tprintf.c:623: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).
      N = atoi (argv[1]);
data/mpfr4-4.1.0/tests/trandom.c:157:16:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      long a = atol (argv[1]);
data/mpfr4-4.1.0/tests/trandom.c:165:12:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    prec = atol (argv[2]);
data/mpfr4-4.1.0/tests/trandom_deviate.c:304:11:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      a = atol (argv[1]);
data/mpfr4-4.1.0/tests/trint.c:388: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 strData[(GMP_NUMB_BITS * 4)+256];
data/mpfr4-4.1.0/tests/trint.c:398: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 (strData, "0.1E%d", precIn+2);
data/mpfr4-4.1.0/tests/trint.c:405: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 (&strData[precIn+1], "1E%d", precIn+2);
data/mpfr4-4.1.0/tests/tset_d.c:196:28:  [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).
  n = (argc==1) ? 500000 : atoi(argv[1]);
data/mpfr4-4.1.0/tests/tset_si.c:479:30:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  N = (argc == 1) ? 100000 : atol (argv[1]);
data/mpfr4-4.1.0/tests/tset_str.c:124:28:  [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).
      prec = (argc >= 3) ? atoi (argv[2]) : 53;
data/mpfr4-4.1.0/tests/tset_str.c:125:28:  [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).
      base = (argc >= 4) ? atoi (argv[3]) : 2;
data/mpfr4-4.1.0/tests/tset_str.c:126:29:  [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).
      obase = (argc >= 5) ? atoi (argv[4]) : 10;
data/mpfr4-4.1.0/tests/tset_str.c:135:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  nc = (argc > 1) ? atoi(argv[1]) : 53;
data/mpfr4-4.1.0/tests/tset_str.c:179:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf (str2, "%" MPFR_EXP_FSPEC "d", i < NR/2 ?
data/mpfr4-4.1.0/tests/tset_str.c:784:15:  [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 (str1, "@%i", (int) exp);
data/mpfr4-4.1.0/tests/tsin_cos.c:681:28:  [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).
      large_test (argv[1], atoi (argv[2]), (argc > 3) ? atoi (argv[3]) : 1);
data/mpfr4-4.1.0/tests/tsin_cos.c:681:57:  [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).
      large_test (argv[1], atoi (argv[2]), (argc > 3) ? atoi (argv[3]) : 1);
data/mpfr4-4.1.0/tests/tsprintf.c:61: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 buffer[BUF_SIZE];
data/mpfr4-4.1.0/tests/tsprintf.c:102:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char part_expected[BUF_SIZE];
data/mpfr4-4.1.0/tests/tsprintf.c:120: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 buffer[BUF_SIZE];
data/mpfr4-4.1.0/tests/tsprintf.c:166:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char part_expected[BUF_SIZE];
data/mpfr4-4.1.0/tests/tsprintf.c:188: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[255];
data/mpfr4-4.1.0/tests/tsprintf.c:190:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%c", c);
data/mpfr4-4.1.0/tests/tsprintf.c:193:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%d", i);
data/mpfr4-4.1.0/tests/tsprintf.c:196:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%e", d);
data/mpfr4-4.1.0/tests/tsprintf.c:199:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%f", d);
data/mpfr4-4.1.0/tests/tsprintf.c:202:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%i", i);
data/mpfr4-4.1.0/tests/tsprintf.c:205:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%g", d);
data/mpfr4-4.1.0/tests/tsprintf.c:208:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%o", i);
data/mpfr4-4.1.0/tests/tsprintf.c:217:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%u", ui);
data/mpfr4-4.1.0/tests/tsprintf.c:220:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "%x", ui);
data/mpfr4-4.1.0/tests/tsprintf.c:1025: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 fmt_mpfr[FMT_MPFR_SIZE];
data/mpfr4-4.1.0/tests/tsprintf.c:1031: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 fmt[FMT_SIZE];
data/mpfr4-4.1.0/tests/tsprintf.c:1213:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[100];
data/mpfr4-4.1.0/tests/tsprintf.c:1235: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 *s1, s2[256];
data/mpfr4-4.1.0/tests/tsprintf.c:1301: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 *s1, s2[256];
data/mpfr4-4.1.0/tests/tsprintf.c:1364: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/mpfr4-4.1.0/tests/tsprintf.c:1440:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[12];
data/mpfr4-4.1.0/tests/tsprintf.c:1480: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 buffer[64];
data/mpfr4-4.1.0/tests/tsprintf.c:1608:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[64];
data/mpfr4-4.1.0/tests/tsprintf.c:1611:7:  [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, "(4) 10^i=1");
data/mpfr4-4.1.0/tests/tsprintf.c:1623:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char s[N0+4], buf[64];
data/mpfr4-4.1.0/tests/tsprintf.c:1631:7:  [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, "(5) 10^i=1");
data/mpfr4-4.1.0/tests/tsprintf.c:1644:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat (s + (i + 1), ".5");
data/mpfr4-4.1.0/tests/tstrtofr.c:1155:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[64], *p;
data/mpfr4-4.1.0/tests/tstrtofr.c:1164: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 (p + 1, "%d", (int) e - 1);
data/mpfr4-4.1.0/tests/tstrtofr.c:1187:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char s[48] = "1e-1";
data/mpfr4-4.1.0/tests/tstrtofr.c:1356: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 s0[BSIZE], s1[BSIZE], s2[BSIZE+64];
data/mpfr4-4.1.0/tests/tstrtofr.c:1455:11:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
          sprintf (s2 + (j+2), "@%" MPFR_EXP_FSPEC "d", (mpfr_eexp_t) e0);
data/mpfr4-4.1.0/tests/tsum.c:288: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.
  const char *str[NC] = { "NaN", "+Inf", "-Inf", "+0", "-0", "+1", "-1" };
data/mpfr4-4.1.0/tests/tsum.c:727: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.
  const char *s[4] = {
data/mpfr4-4.1.0/tests/tsum.c:774: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.
  const char *s[3] = {
data/mpfr4-4.1.0/tests/tsum.c:1275: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.
  const char *s[4] = { "0.10E20", "0", "0.11E382", "0.10E826" };
data/mpfr4-4.1.0/tests/tsum.c:1307:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      check_random (atoi (argv[1]), atoi (argv[2]), atoi (argv[3]),
data/mpfr4-4.1.0/tests/tsum.c:1307:37:  [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).
      check_random (atoi (argv[1]), atoi (argv[2]), atoi (argv[3]),
data/mpfr4-4.1.0/tests/tsum.c:1307:53:  [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).
      check_random (atoi (argv[1]), atoi (argv[2]), atoi (argv[3]),
data/mpfr4-4.1.0/tests/tsum.c:1308:34:  [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).
                    (mpfr_rnd_t) atoi (argv[4]));
data/mpfr4-4.1.0/tests/turandom.c:529: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.
  const char *t[5 * N] = {
data/mpfr4-4.1.0/tests/turandom.c:619:16:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      long a = atol(argv[1]);
data/mpfr4-4.1.0/tests/turandom.c:627:12:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    prec = atol(argv[2]);
data/mpfr4-4.1.0/tests/turandom.c:633:19:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      bit_index = atol(argv[3]);
data/mpfr4-4.1.0/tests/tyn.c:44: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).
      n = atoi (argv[1]);
data/mpfr4-4.1.0/tests/tyn.c:45:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      prec = atoi (argv[3]);
data/mpfr4-4.1.0/tests/tzeta.c:271:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      prec = atoi(argv[2]);
data/mpfr4-4.1.0/tests/tzeta.c:275:31:  [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).
      rnd_mode = (mpfr_rnd_t) atoi(argv[3]);
data/mpfr4-4.1.0/tests/tzeta_ui.c:51:25:  [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).
      mpfr_set_prec (x, atoi (argv[2]));
data/mpfr4-4.1.0/tests/tzeta_ui.c:52:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      mpfr_zeta_ui (x, atoi (argv[1]),
data/mpfr4-4.1.0/tests/tzeta_ui.c:53:45:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                    argc > 3 ? (mpfr_rnd_t) atoi (argv[3]) : MPFR_RNDN);
data/mpfr4-4.1.0/tune/bidimensional_sample.c:442:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char filename[256] = "airy.dat";
data/mpfr4-4.1.0/tune/bidimensional_sample.c:447: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).
  output = fopen (filename, "w");
data/mpfr4-4.1.0/tune/tuneup.c:1004:7:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  f = fopen (filename, "w");
data/mpfr4-4.1.0/src/get_str.c:2901:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  mpfr_free_func (str, strlen (str) + 1);
data/mpfr4-4.1.0/src/inp_str.c:48:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc (stream);
data/mpfr4-4.1.0/src/inp_str.c:74:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      c = getc (stream);
data/mpfr4-4.1.0/src/mpfr-mini-gmp.c:302:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              len = strlen (s);
data/mpfr4-4.1.0/src/out_str.c:64: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 (s) + 1; /* size of allocated block returned by mpfr_get_str
data/mpfr4-4.1.0/src/strtofr.c:326:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pstr->alloc = (size_t) strlen (str) + 1;
data/mpfr4-4.1.0/src/vasprintf.c:536:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (fmt_copy, (start), n);                                 \
data/mpfr4-4.1.0/src/vasprintf.c:639:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  MPFR_ASSERTD (len <= strlen (s));
data/mpfr4-4.1.0/src/vasprintf.c:653:7:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
      strncat (b->curr, s, len);
data/mpfr4-4.1.0/src/vasprintf.c:719:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  MPFR_ASSERTD (len <= strlen (str));
data/mpfr4-4.1.0/src/vasprintf.c:1169: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).
      str_len = strlen (str);
data/mpfr4-4.1.0/src/vasprintf.c:1293: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).
      str_len = strlen (str);
data/mpfr4-4.1.0/src/vasprintf.c:1538:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                  str_len = strlen (str); /* the sign has been skipped */
data/mpfr4-4.1.0/src/vasprintf.c:1603: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).
      str_len = strlen (str);
data/mpfr4-4.1.0/src/vasprintf.c:2406:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      MPFR_ASSERTD (nbchar == strlen (buf.start));
data/mpfr4-4.1.0/src/vasprintf.c:2413:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy (Buf, buf.start, nbchar);
data/mpfr4-4.1.0/src/vasprintf.c:2418:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy (Buf, buf.start, size - 1);
data/mpfr4-4.1.0/tests/tbuildopt.c:128: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).
    (void) strlen (s);
data/mpfr4-4.1.0/tests/tests.c:635: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).
  buffsize = strlen (filename) + strlen (srcdir) + 2;
data/mpfr4-4.1.0/tests/tests.c:635: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).
  buffsize = strlen (filename) + strlen (srcdir) + 2;
data/mpfr4-4.1.0/tests/tests.c:872:16:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if ((c = getc (fp)) == EOF)
data/mpfr4-4.1.0/tests/tests.c:887:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
              c = getc (fp);
data/mpfr4-4.1.0/tests/tests.c:943:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          if (getc (fp) != '\n')
data/mpfr4-4.1.0/tests/tget_str.c:1418:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          MPFR_ASSERTN(strlen (t) == oprec);
data/mpfr4-4.1.0/tests/tinp_str.c:59:3:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getc (f);
data/mpfr4-4.1.0/tests/tinp_str.c:67:3:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  getc (f);
data/mpfr4-4.1.0/tests/tinp_str.c:82:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      getc (f);
data/mpfr4-4.1.0/tests/tl2b.c:54:11:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
          strcpy (suffix, ")");
data/mpfr4-4.1.0/tests/tl2b.c:59:11:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
          strcpy (suffix, "");
data/mpfr4-4.1.0/tests/tmul.c:453:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((c = getc (fp)) != '\n')
data/mpfr4-4.1.0/tests/toutimpl.c:134:24:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      if (Buffer[i] != fgetc (f))
data/mpfr4-4.1.0/tests/tset_str.c:268: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).
        MPFR_EXP(y) += logbase * (e - strlen (str));
data/mpfr4-4.1.0/tests/tsin.c:213: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).
  p = strlen (xs) - 2 - 3;
data/mpfr4-4.1.0/tests/tsprintf.c:103:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (part_expected, expected, randsize);
data/mpfr4-4.1.0/tests/tsprintf.c:168:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy (part_expected, expected, randsize);
data/mpfr4-4.1.0/tests/tsprintf.c:1614:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat (buf, " ");
data/mpfr4-4.1.0/tests/tsprintf.c:1634:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat (buf, " ");

ANALYSIS SUMMARY:

Hits = 338
Lines analyzed = 138459 in approximately 4.37 seconds (31652 lines/second)
Physical Source Lines of Code (SLOC) = 99481
Hits@level = [0] 4695 [1]  37 [2] 211 [3]  40 [4]  50 [5]   0
Hits@level+ = [0+] 5033 [1+] 338 [2+] 301 [3+]  90 [4+]  50 [5+]   0
Hits/KSLOC@level+ = [0+] 50.5926 [1+] 3.39763 [2+] 3.0257 [3+] 0.904695 [4+] 0.502609 [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.