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/pari-2.13.0/examples/pari-mt.c
Examining data/pari-2.13.0/examples/openmp.c
Examining data/pari-2.13.0/examples/extgcd.c
Examining data/pari-2.13.0/examples/thread.c
Examining data/pari-2.13.0/examples/minigp.c
Examining data/pari-2.13.0/config/has_mmap.c
Examining data/pari-2.13.0/config/has_strftime.c
Examining data/pari-2.13.0/config/has_opendir.c
Examining data/pari-2.13.0/config/has_Qt4.c
Examining data/pari-2.13.0/config/has_times.c
Examining data/pari-2.13.0/config/has_getrusage.c
Examining data/pari-2.13.0/config/has_dlopen.c
Examining data/pari-2.13.0/config/has_stat.c
Examining data/pari-2.13.0/config/has_clock_gettime.c
Examining data/pari-2.13.0/config/has_alarm.c
Examining data/pari-2.13.0/config/kernel.c
Examining data/pari-2.13.0/config/has_getenv.c
Examining data/pari-2.13.0/config/mpi.c
Examining data/pari-2.13.0/config/has_gettimeofday.c
Examining data/pari-2.13.0/config/has_setsid.c
Examining data/pari-2.13.0/config/has_isatty.c
Examining data/pari-2.13.0/config/pthread.c
Examining data/pari-2.13.0/config/has_log2.c
Examining data/pari-2.13.0/config/gmp_mismatch.c
Examining data/pari-2.13.0/config/has_getrlimit.c
Examining data/pari-2.13.0/config/has_TIOCGWINSZ.c
Examining data/pari-2.13.0/config/has_X11.c
Examining data/pari-2.13.0/config/has_fltk.c
Examining data/pari-2.13.0/config/gnu.c
Examining data/pari-2.13.0/config/has_waitpid.c
Examining data/pari-2.13.0/config/rl_version.c
Examining data/pari-2.13.0/config/ansi.c
Examining data/pari-2.13.0/config/has_vsnprintf.c
Examining data/pari-2.13.0/config/endian.c
Examining data/pari-2.13.0/config/has_wait.c
Examining data/pari-2.13.0/config/has_sse2.c
Examining data/pari-2.13.0/config/has_sigaction.c
Examining data/pari-2.13.0/config/has_system.c
Examining data/pari-2.13.0/config/has_ftime.c
Examining data/pari-2.13.0/config/has_exp2.c
Examining data/pari-2.13.0/config/gmp_version.c
Examining data/pari-2.13.0/src/headers/pariinl.h
Examining data/pari-2.13.0/src/headers/parigen.h
Examining data/pari-2.13.0/src/headers/parierr.h
Examining data/pari-2.13.0/src/headers/paricom.h
Examining data/pari-2.13.0/src/headers/parisys.h
Examining data/pari-2.13.0/src/headers/pari.h
Examining data/pari-2.13.0/src/headers/paridecl.h
Examining data/pari-2.13.0/src/headers/paristio.h
Examining data/pari-2.13.0/src/headers/paricast.h
Examining data/pari-2.13.0/src/headers/paripriv.h
Examining data/pari-2.13.0/src/headers/pariold.h
Examining data/pari-2.13.0/src/headers/paritune.h
Examining data/pari-2.13.0/src/headers/parinf.h
Examining data/pari-2.13.0/src/graph/plotnone.c
Examining data/pari-2.13.0/src/graph/rect.h
Examining data/pari-2.13.0/src/graph/plotport.c
Examining data/pari-2.13.0/src/graph/plotX.c
Examining data/pari-2.13.0/src/graph/plotsvg.c
Examining data/pari-2.13.0/src/graph/plotfltk.c
Examining data/pari-2.13.0/src/graph/plotWin32.c
Examining data/pari-2.13.0/src/graph/plotQt4.c
Examining data/pari-2.13.0/src/graph/plotps.c
Examining data/pari-2.13.0/src/graph/plottty.c
Examining data/pari-2.13.0/src/mt/pthread.h
Examining data/pari-2.13.0/src/mt/mpi.h
Examining data/pari-2.13.0/src/mt/mt.h
Examining data/pari-2.13.0/src/mt/single.h
Examining data/pari-2.13.0/src/mt/mpi.c
Examining data/pari-2.13.0/src/mt/single.c
Examining data/pari-2.13.0/src/mt/pthread.c
Examining data/pari-2.13.0/src/mt/mt.c
Examining data/pari-2.13.0/src/gp/texmacs.c
Examining data/pari-2.13.0/src/gp/gp_init.h
Examining data/pari-2.13.0/src/gp/gp.h
Examining data/pari-2.13.0/src/gp/gp.c
Examining data/pari-2.13.0/src/gp/whatnow.c
Examining data/pari-2.13.0/src/gp/gp_rl.c
Examining data/pari-2.13.0/src/gp/whatnow.h
Examining data/pari-2.13.0/src/gp/emacs.c
Examining data/pari-2.13.0/src/modules/mpqs.h
Examining data/pari-2.13.0/src/modules/forsubset.c
Examining data/pari-2.13.0/src/modules/genus2red.c
Examining data/pari-2.13.0/src/modules/ratpoints.c
Examining data/pari-2.13.0/src/modules/groupid.c
Examining data/pari-2.13.0/src/modules/krasner.c
Examining data/pari-2.13.0/src/modules/thue.c
Examining data/pari-2.13.0/src/modules/algebras.c
Examining data/pari-2.13.0/src/modules/galpol.c
Examining data/pari-2.13.0/src/modules/elldata.c
Examining data/pari-2.13.0/src/modules/mpqs.c
Examining data/pari-2.13.0/src/modules/part.c
Examining data/pari-2.13.0/src/modules/stark.c
Examining data/pari-2.13.0/src/modules/ellfromeqn.c
Examining data/pari-2.13.0/src/modules/forperm.c
Examining data/pari-2.13.0/src/modules/galois.c
Examining data/pari-2.13.0/src/systems/darwin/dlfcn.h
Examining data/pari-2.13.0/src/systems/darwin/darwin.c
Examining data/pari-2.13.0/src/systems/mingw/mingw.h
Examining data/pari-2.13.0/src/systems/mingw/mingw.c
Examining data/pari-2.13.0/src/systems/mingw/pwinver.h
Examining data/pari-2.13.0/src/systems/emscripten/emscripten.h
Examining data/pari-2.13.0/src/systems/emscripten/emscripten.c
Examining data/pari-2.13.0/src/systems/win32/pariinl.h
Examining data/pari-2.13.0/src/systems/os2/os2.c
Examining data/pari-2.13.0/src/systems/os2/dlfcn.h
Examining data/pari-2.13.0/src/systems/cygwin/cygwin.c
Examining data/pari-2.13.0/src/language/hash.c
Examining data/pari-2.13.0/src/language/parse.h
Examining data/pari-2.13.0/src/language/tree.h
Examining data/pari-2.13.0/src/language/str.c
Examining data/pari-2.13.0/src/language/intnum.c
Examining data/pari-2.13.0/src/language/init.h
Examining data/pari-2.13.0/src/language/es.c
Examining data/pari-2.13.0/src/language/anal.c
Examining data/pari-2.13.0/src/language/opcode.h
Examining data/pari-2.13.0/src/language/default.c
Examining data/pari-2.13.0/src/language/init.c
Examining data/pari-2.13.0/src/language/parsec.h
Examining data/pari-2.13.0/src/language/members.c
Examining data/pari-2.13.0/src/language/sumiter.c
Examining data/pari-2.13.0/src/language/paricfg.c
Examining data/pari-2.13.0/src/language/forprime.c
Examining data/pari-2.13.0/src/language/readline.c
Examining data/pari-2.13.0/src/language/gplib.c
Examining data/pari-2.13.0/src/language/anal.h
Examining data/pari-2.13.0/src/language/eval.c
Examining data/pari-2.13.0/src/language/default.h
Examining data/pari-2.13.0/src/language/pariinl.c
Examining data/pari-2.13.0/src/language/compile.c
Examining data/pari-2.13.0/src/language/parse.c
Examining data/pari-2.13.0/src/test/kerntest.c
Examining data/pari-2.13.0/src/test/dummy.c
Examining data/pari-2.13.0/src/test/tune.c
Examining data/pari-2.13.0/src/basemath/elltors.c
Examining data/pari-2.13.0/src/basemath/arith1.c
Examining data/pari-2.13.0/src/basemath/FpXQX_factor.c
Examining data/pari-2.13.0/src/basemath/RgV.c
Examining data/pari-2.13.0/src/basemath/ellanal.c
Examining data/pari-2.13.0/src/basemath/ecpp.c
Examining data/pari-2.13.0/src/basemath/hypergeom.c
Examining data/pari-2.13.0/src/basemath/Ser.c
Examining data/pari-2.13.0/src/basemath/F2x.c
Examining data/pari-2.13.0/src/basemath/polarit2.c
Examining data/pari-2.13.0/src/basemath/buch2.c
Examining data/pari-2.13.0/src/basemath/bern.c
Examining data/pari-2.13.0/src/basemath/ellsea.c
Examining data/pari-2.13.0/src/basemath/FpE.c
Examining data/pari-2.13.0/src/basemath/polmodular.c
Examining data/pari-2.13.0/src/basemath/map.c
Examining data/pari-2.13.0/src/basemath/FpX_factor.c
Examining data/pari-2.13.0/src/basemath/base4.c
Examining data/pari-2.13.0/src/basemath/ellpadic.c
Examining data/pari-2.13.0/src/basemath/RgX.c
Examining data/pari-2.13.0/src/basemath/alglin2.c
Examining data/pari-2.13.0/src/basemath/base1.c
Examining data/pari-2.13.0/src/basemath/bibli1.c
Examining data/pari-2.13.0/src/basemath/Flx.c
Examining data/pari-2.13.0/src/basemath/polarit1.c
Examining data/pari-2.13.0/src/basemath/bb_hnf.c
Examining data/pari-2.13.0/src/basemath/subfield.c
Examining data/pari-2.13.0/src/basemath/FF.c
Examining data/pari-2.13.0/src/basemath/bb_group.c
Examining data/pari-2.13.0/src/basemath/bnfunits.c
Examining data/pari-2.13.0/src/basemath/lfunquad.c
Examining data/pari-2.13.0/src/basemath/buch3.c
Examining data/pari-2.13.0/src/basemath/concat.c
Examining data/pari-2.13.0/src/basemath/FpV.c
Examining data/pari-2.13.0/src/basemath/ellisog.c
Examining data/pari-2.13.0/src/basemath/random.c
Examining data/pari-2.13.0/src/basemath/nffactor.c
Examining data/pari-2.13.0/src/basemath/char.c
Examining data/pari-2.13.0/src/basemath/F2xqE.c
Examining data/pari-2.13.0/src/basemath/subcyclo.c
Examining data/pari-2.13.0/src/basemath/FpXX.c
Examining data/pari-2.13.0/src/basemath/alglin3.c
Examining data/pari-2.13.0/src/basemath/prime.c
Examining data/pari-2.13.0/src/basemath/elliptic.c
Examining data/pari-2.13.0/src/basemath/gen2.c
Examining data/pari-2.13.0/src/basemath/FpX.c
Examining data/pari-2.13.0/src/basemath/msfarey.c
Examining data/pari-2.13.0/src/basemath/matperm.c
Examining data/pari-2.13.0/src/basemath/trans1.c
Examining data/pari-2.13.0/src/basemath/buch4.c
Examining data/pari-2.13.0/src/basemath/Fle.c
Examining data/pari-2.13.0/src/basemath/buch1.c
Examining data/pari-2.13.0/src/basemath/crvwtors.c
Examining data/pari-2.13.0/src/basemath/polclass.c
Examining data/pari-2.13.0/src/basemath/base3.c
Examining data/pari-2.13.0/src/basemath/bibli2.c
Examining data/pari-2.13.0/src/basemath/polarit3.c
Examining data/pari-2.13.0/src/basemath/alglin1.c
Examining data/pari-2.13.0/src/basemath/lll.c
Examining data/pari-2.13.0/src/basemath/Hensel.c
Examining data/pari-2.13.0/src/basemath/lfunutils.c
Examining data/pari-2.13.0/src/basemath/hnf_snf.c
Examining data/pari-2.13.0/src/basemath/ZG.c
Examining data/pari-2.13.0/src/basemath/mftrace.c
Examining data/pari-2.13.0/src/basemath/ZV.c
Examining data/pari-2.13.0/src/basemath/perm.c
Examining data/pari-2.13.0/src/basemath/trans3.c
Examining data/pari-2.13.0/src/basemath/galconj.c
Examining data/pari-2.13.0/src/basemath/bit.c
Examining data/pari-2.13.0/src/basemath/base2.c
Examining data/pari-2.13.0/src/basemath/ifactor1.c
Examining data/pari-2.13.0/src/basemath/dirichlet.c
Examining data/pari-2.13.0/src/basemath/arith2.c
Examining data/pari-2.13.0/src/basemath/Flxq_log.c
Examining data/pari-2.13.0/src/basemath/modsym.c
Examining data/pari-2.13.0/src/basemath/F2v.c
Examining data/pari-2.13.0/src/basemath/rootpol.c
Examining data/pari-2.13.0/src/basemath/gen1.c
Examining data/pari-2.13.0/src/basemath/gen3.c
Examining data/pari-2.13.0/src/basemath/QX_factor.c
Examining data/pari-2.13.0/src/basemath/kummer.c
Examining data/pari-2.13.0/src/basemath/qfsolve.c
Examining data/pari-2.13.0/src/basemath/Flv.c
Examining data/pari-2.13.0/src/basemath/qfisom.c
Examining data/pari-2.13.0/src/basemath/Qfb.c
Examining data/pari-2.13.0/src/basemath/subgroup.c
Examining data/pari-2.13.0/src/basemath/trans2.c
Examining data/pari-2.13.0/src/basemath/mellininv.c
Examining data/pari-2.13.0/src/basemath/FlxqE.c
Examining data/pari-2.13.0/src/basemath/base5.c
Examining data/pari-2.13.0/src/basemath/FlxX.c
Examining data/pari-2.13.0/src/basemath/ZX.c
Examining data/pari-2.13.0/src/basemath/zetamult.c
Examining data/pari-2.13.0/src/basemath/ellpadiclambdamu.c
Examining data/pari-2.13.0/src/basemath/bnflog.c
Examining data/pari-2.13.0/src/basemath/volcano.c
Examining data/pari-2.13.0/src/basemath/aprcl.c
Examining data/pari-2.13.0/src/basemath/lfun.c
Examining data/pari-2.13.0/src/basemath/hyperell.c
Examining data/pari-2.13.0/src/kernel/aarch64/asm0.h
Examining data/pari-2.13.0/src/kernel/ix86/asm0.h
Examining data/pari-2.13.0/src/kernel/none/divll.h
Examining data/pari-2.13.0/src/kernel/none/tune.h
Examining data/pari-2.13.0/src/kernel/none/add.c
Examining data/pari-2.13.0/src/kernel/none/ratlift.c
Examining data/pari-2.13.0/src/kernel/none/asm0.h
Examining data/pari-2.13.0/src/kernel/none/bfffo.h
Examining data/pari-2.13.0/src/kernel/none/halfgcd.c
Examining data/pari-2.13.0/src/kernel/none/mp_indep.c
Examining data/pari-2.13.0/src/kernel/none/tune-gen.h
Examining data/pari-2.13.0/src/kernel/none/gcdext.c
Examining data/pari-2.13.0/src/kernel/none/mulll.h
Examining data/pari-2.13.0/src/kernel/none/mpinl.c
Examining data/pari-2.13.0/src/kernel/none/divll_pre.h
Examining data/pari-2.13.0/src/kernel/none/level1.h
Examining data/pari-2.13.0/src/kernel/none/gcdll.c
Examining data/pari-2.13.0/src/kernel/none/int.h
Examining data/pari-2.13.0/src/kernel/none/gcd.c
Examining data/pari-2.13.0/src/kernel/none/mp.c
Examining data/pari-2.13.0/src/kernel/none/addll.h
Examining data/pari-2.13.0/src/kernel/none/invmod.c
Examining data/pari-2.13.0/src/kernel/none/cmp.c
Examining data/pari-2.13.0/src/kernel/ppc/asm0.h
Examining data/pari-2.13.0/src/kernel/ia64/asm0.h
Examining data/pari-2.13.0/src/kernel/ia64/asm1.h
Examining data/pari-2.13.0/src/kernel/hppa/asm0.h
Examining data/pari-2.13.0/src/kernel/hppa64/asm0.h
Examining data/pari-2.13.0/src/kernel/ppc64/asm0.h
Examining data/pari-2.13.0/src/kernel/sparcv8_micro/asm0.h
Examining data/pari-2.13.0/src/kernel/sparcv8_micro/asm0-common.h
Examining data/pari-2.13.0/src/kernel/x86_64/asm0.h
Examining data/pari-2.13.0/src/kernel/alpha/asm0.h
Examining data/pari-2.13.0/src/kernel/alpha/asm1.h
Examining data/pari-2.13.0/src/kernel/m68k/asm0.h
Examining data/pari-2.13.0/src/kernel/gmp/tune.h
Examining data/pari-2.13.0/src/kernel/gmp/gcdext.c
Examining data/pari-2.13.0/src/kernel/gmp/int.h
Examining data/pari-2.13.0/src/kernel/gmp/gcd.c
Examining data/pari-2.13.0/src/kernel/gmp/mp.c
Examining data/pari-2.13.0/src/kernel/sparcv8_super/asm0.h
Examining data/pari-2.13.0/src/kernel/mips64/asm0.h
Examining data/pari-2.13.0/src/kernel/mips/asm0.h
Examining data/pari-2.13.0/src/kernel/arm/asm0.h
Examining data/pari-2.13.0/misc/cook.c

FINAL RESULTS:

data/pari-2.13.0/config/has_system.c:2:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
int (*f)(const char*) = system;
data/pari-2.13.0/config/has_system.c:3:25:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
int main(){ return f != system; }
data/pari-2.13.0/misc/cook.c:133:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            (void)system("stty -isig -icanon -echo");
data/pari-2.13.0/misc/cook.c:150:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
            (void)system("stty sane pass8"); /* Before opening stderr */
data/pari-2.13.0/misc/cook.c:158:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp(argv[0], argv);
data/pari-2.13.0/src/basemath/buch2.c:3914:25:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          char str[64]; sprintf(str,"Buchall_param (%s)",precpb);
data/pari-2.13.0/src/basemath/concat.c:76: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(str,   sx);
data/pari-2.13.0/src/basemath/concat.c:77: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(str+lx,sy); return x;
data/pari-2.13.0/src/graph/plotWin32.c:93:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fname, "%s\\gp-ploth-%lx.emf", tmppath, time(NULL)/(24*60*60)*1000+GetTickCount());
data/pari-2.13.0/src/graph/plotWin32.c:116:3:  [4] (shell) ShellExecute:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  ShellExecute(NULL,NULL,fname,NULL,NULL,SW_SHOWDEFAULT);
data/pari-2.13.0/src/graph/plotX.c:159:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "lost display on %s", DisplayString(d));
data/pari-2.13.0/src/graph/plottty.c:155:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(line, "%10s%-9.7g%*.7g\n"," ",todbl(a),ISCR-9,todbl(b));
data/pari-2.13.0/src/language/anal.c:1081: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).
  ep->name = u; strcpy(u,s);
data/pari-2.13.0/src/language/compile.c:2349:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(GSTR(text), "derivn(%s,%ld)", code, n);
data/pari-2.13.0/src/language/compile.c:2354:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(GSTR(text), (typ(t) == t_STR)? "%s'": "(%s)'",code);
data/pari-2.13.0/src/language/default.c:215:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      (void)sprintf(t, "default: incorrect value for %s [0:off / 1:on]", s);
data/pari-2.13.0/src/language/default.c:240:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      (void)sprintf(buf, "default: incorrect value for %s [%lu-%lu]",
data/pari-2.13.0/src/language/default.c:277:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(b, "incorrect value for %s", s);
data/pari-2.13.0/src/language/default.c:972:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(GSTR(lp), cols[i]);
data/pari-2.13.0/src/language/es.c:773: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(buf, s); /* no '.' */
data/pari-2.13.0/src/language/es.c:783:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(t, s);
data/pari-2.13.0/src/language/es.c:869:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buf, s);
data/pari-2.13.0/src/language/es.c:1970:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(s, "%lu%s", i, suff[k]); return s;
data/pari-2.13.0/src/language/es.c:3310:16:  [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).
  file->name = strcpy((char*)(file+1), name);
data/pari-2.13.0/src/language/es.c:3587:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(s,"%s > %s",cmd,f);
data/pari-2.13.0/src/language/es.c:3588:12:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    file = system(s)? NULL: fopen(f,"r");
data/pari-2.13.0/src/language/es.c:3594:21:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    file = (FILE *) popen(cmd, (flag & mf_OUT)? "w": "r");
data/pari-2.13.0/src/language/es.c:3746:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(ret,"%s%s",dir,t); return ret;
data/pari-2.13.0/src/language/es.c:3786:38:  [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).
  for (i = 0; i < xnum; i++) { (void)strcat(s, x[i]); pari_free(x[i]); }
data/pari-2.13.0/src/language/es.c:3820: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(buf,s); }
data/pari-2.13.0/src/language/es.c:3839:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cmd,"%s \"%s\"",ZCAT,name);
data/pari-2.13.0/src/language/es.c:3863: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(name, s); (void)sprintf(name + l, ".gz");
data/pari-2.13.0/src/language/es.c:3893:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(t,"%s/%s", dir, T->s);
data/pari-2.13.0/src/language/es.c:3911:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(s, "%s.gp", name);
data/pari-2.13.0/src/language/es.c:4030:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (system(s) < 0)
data/pari-2.13.0/src/language/es.c:4278:3:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  fprintf(f, MAGIC);
data/pari-2.13.0/src/language/es.c:4730:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return access(s, R_OK | W_OK | X_OK) == 0;
data/pari-2.13.0/src/language/es.c:4844: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(buf, pre);
data/pari-2.13.0/src/language/es.c:4849:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf + lpre, "%.8s%s", s, salt);
data/pari-2.13.0/src/language/es.c:4850:13:  [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).
  if (lsuf) strcat(buf, suf);
data/pari-2.13.0/src/language/es.c:4927:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cmd,"%s \"%s\"",ZCAT,name);
data/pari-2.13.0/src/language/es.c:4973:7:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  f = popen(s, "r");
data/pari-2.13.0/src/language/eval.c:774:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(next_label, "in %sfunction ", member? "member ": "");
data/pari-2.13.0/src/language/gplib.c:386:11:  [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).
  *s = 0; strcat(s,t); return s + strlen(t);
data/pari-2.13.0/src/language/gplib.c:668:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void)sprintf(s, "v%s %s", v, GP_DATA->use_readline? "enabled": "disabled");
data/pari-2.13.0/src/language/gplib.c:682:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void)sprintf(s, "(C++) %s", GCC_VERSION);
data/pari-2.13.0/src/language/gplib.c:716:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(s, "%s", (delay<10)? "00": "0");
data/pari-2.13.0/src/language/gplib.c:767:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf, "%s%s",drv,pth);
data/pari-2.13.0/src/language/gplib.c:797: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).
    str = strcpy((char*)pari_malloc(l+10), home);
data/pari-2.13.0/src/language/gplib.c:815:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(t, "%s/%s", basedir, s);
data/pari-2.13.0/src/language/gplib.c:986:69:  [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).
        if (*s == '"') (void)pari_translate_string(s, t, s-4); else strcpy(t,s);
data/pari-2.13.0/src/language/gplib.c:1675:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  (void)sprintf(buf, paricfg_buildinfo, kver);
data/pari-2.13.0/src/language/gplib.c:1678:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  if (ver) (void)sprintf(buf, "compiled: %s, %s", date, ver);
data/pari-2.13.0/src/language/gplib.c:1679:18:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  else     (void)sprintf(buf, "compiled: %s", date);
data/pari-2.13.0/src/language/gplib.c:1681:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(buf, "threading engine: %s",paricfg_mt_engine);
data/pari-2.13.0/src/language/gplib.c:1685:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void)sprintf(buf, "(readline %s, extended help%s enabled)", ver,
data/pari-2.13.0/src/language/init.c:1470:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf,"Warning: not enough memory, new %s stack %lu", stk, s);
data/pari-2.13.0/src/language/init.c:1793:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "the %s stack overflows !\n"
data/pari-2.13.0/src/language/init.c:1800:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(buf, "the %s stack overflows !\n"
data/pari-2.13.0/src/language/parse.c:916:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/pari-2.13.0/src/language/readline.c:54:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(matches[0],s);
data/pari-2.13.0/src/language/readline.c:113: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(s+junk,name); return s;
data/pari-2.13.0/src/modules/elldata.c:112:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(s, "%s/elldata/ell%ld", pari_datadir, n);
data/pari-2.13.0/src/modules/galois.c:295:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void)sprintf(s, "%s/galdata/%s%ld_%ld_%ld", pari_datadir, pre, n, n1, n2);
data/pari-2.13.0/src/modules/galois.c:2332:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  (void)sprintf(s, "%s/galdata/NAM%ld", pari_datadir, n);
data/pari-2.13.0/src/modules/galpol.c:24:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(s,"%s/galpol/%ld/nb", pari_datadir, a);
data/pari-2.13.0/src/systems/darwin/darwin.c:53:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(errstr + 10, ERR_STR_LEN - 10, str, arg);
data/pari-2.13.0/src/systems/darwin/darwin.c:199:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(malloc_sym, "_%s", symbol);
data/pari-2.13.0/src/systems/mingw/mingw.c:44:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(datadir, "%sdata", basedir);
data/pari-2.13.0/src/systems/mingw/mingw.c:163:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(buf,"GP_PDF_VIEWER=%s",str);
data/pari-2.13.0/src/systems/os2/os2.c:148:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf, "OS/2 system error code %d, problematic module: '%s'",
data/pari-2.13.0/src/systems/os2/os2.c:158:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(buf + len, ", problematic module: '%s'", fail);
data/pari-2.13.0/src/test/tune.c:678:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, ap);
data/pari-2.13.0/config/has_getenv.c:2:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
int main(){ (void)getenv(""); return 0; }
data/pari-2.13.0/misc/cook.c:152:26:  [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 ((prows = getenv("ROWS")) && (pcols = getenv("COLUMNS"))) {
data/pari-2.13.0/misc/cook.c:152:54:  [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 ((prows = getenv("ROWS")) && (pcols = getenv("COLUMNS"))) {
data/pari-2.13.0/src/gp/gp.c:516:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *ti_dirs = getenv("TERMINFO_DIRS");
data/pari-2.13.0/src/language/es.c:3610:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  return getenv(s);
data/pari-2.13.0/src/language/es.c:4713:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *base, *sh = getenv("EMXSHELL");
data/pari-2.13.0/src/language/es.c:4715:10:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    sh = getenv("COMSPEC");
data/pari-2.13.0/src/language/es.c:5151:13:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
{ void *h = LoadLibrary(s); pari_free((void*)s); return h; }
data/pari-2.13.0/src/systems/mingw/mingw.c:148:13:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *s = getenv("GP_PDF_VIEWER");
data/pari-2.13.0/config/has_vsnprintf.c:5:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int f(int i,...) { char s[1]; va_list ap; va_start(ap,i);
data/pari-2.13.0/misc/cook.c:49: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 bufin[1024], bufout[1024];
data/pari-2.13.0/misc/cook.c:112:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char buf[1024];
data/pari-2.13.0/misc/cook.c:113:13:  [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", wsz.ws_row);
data/pari-2.13.0/misc/cook.c:115:13:  [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", wsz.ws_col);
data/pari-2.13.0/misc/cook.c:123:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy(&tio, &tio2, sizeof tio);
data/pari-2.13.0/misc/cook.c:148:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            open(name, O_RDWR); /* stdin */
data/pari-2.13.0/misc/cook.c:149:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            open(name, O_RDWR); /* stdout */
data/pari-2.13.0/misc/cook.c:151:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            open(name, O_RDWR); /* stderr */
data/pari-2.13.0/misc/cook.c:153:30:  [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).
                wsz.ws_row = atoi(prows);
data/pari-2.13.0/misc/cook.c:154:30:  [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).
                wsz.ws_col = atoi(pcols);
data/pari-2.13.0/src/basemath/alglin3.c:127: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).
  long a = atol(s);
data/pari-2.13.0/src/basemath/buch2.c:3914: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 str[64]; sprintf(str,"Buchall_param (%s)",precpb);
data/pari-2.13.0/src/basemath/concat.c:258:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if (nc) { (void)memcpy(s, c, nc); s += nc; }
data/pari-2.13.0/src/basemath/hnf_snf.c:216: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(c,col,l * sizeof(long)); return c;
data/pari-2.13.0/src/basemath/lfunutils.c:1039:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(c2 + 2, c + 2, (N-1)*sizeof(long));
data/pari-2.13.0/src/basemath/perm.c:695: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+c,"%ld",z[j]);
data/pari-2.13.0/src/basemath/polmodular.c:1425: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(eqn, ne, sizeof *ne);
data/pari-2.13.0/src/basemath/polmodular.c:3526:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    Ds[i].primes = T;    memcpy(T   , Dprimes, np * sizeof(*Dprimes));
data/pari-2.13.0/src/basemath/polmodular.c:3527:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    Ds[i].traces = T+np; memcpy(T+np, Dtraces, np * sizeof(*Dtraces));
data/pari-2.13.0/src/basemath/polmodular.c:4031:18:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
          (void) memcpy(bestD, Ds, Dcnt * sizeof(disc_info));
data/pari-2.13.0/src/gp/gp.c:298: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 buf[64];
data/pari-2.13.0/src/gp/gp.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(buf, "%%%ld = ", n);
data/pari-2.13.0/src/gp/gp.c:544:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(newdir+n-9,"terminfo");
data/pari-2.13.0/src/gp/gp_rl.c:307:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(t, s, l-1);
data/pari-2.13.0/src/gp/texmacs.c:156:25:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  tm_completion(c.v[0], atol(c.v[1]));
data/pari-2.13.0/src/graph/plotWin32.c:87: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 tmppath[MAX_PATH], fname[2 * MAX_PATH];
data/pari-2.13.0/src/graph/plotX.c:151: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[MAX_BUF];
data/pari-2.13.0/src/graph/plotX.c:158: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[MAX_BUF];
data/pari-2.13.0/src/graph/plotport.c:91:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *F = fopen(current_psfile, "a");
data/pari-2.13.0/src/graph/plotport.c:671:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(s,str,l+1);
data/pari-2.13.0/src/graph/plotport.c:732:46:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
{ void *o = pari_malloc(t * sizeof(double)); memcpy(o,R,t); return (double*)o; }
data/pari-2.13.0/src/graph/plotport.c:735:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
{ void *o = pari_malloc(t); memcpy(o,R,t); return o; }
data/pari-2.13.0/src/graph/plotport.c:1491: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 YBIG[16], YSML[16], XSML[16], XBIG[16];
data/pari-2.13.0/src/graph/plotport.c:1493: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(YSML,"%.5g", ysml); sprintf(YBIG,"%.5g", ybig);
data/pari-2.13.0/src/graph/plotport.c:1493:33:  [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(YSML,"%.5g", ysml); sprintf(YBIG,"%.5g", ybig);
data/pari-2.13.0/src/graph/plotport.c:1494: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(XSML,"%.5g", xsml); sprintf(XBIG,"%.5g", xbig);
data/pari-2.13.0/src/graph/plotport.c:1494:33:  [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(XSML,"%.5g", xsml); sprintf(XBIG,"%.5g", xbig);
data/pari-2.13.0/src/graph/plotport.c:1910: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 hexcolor[8];  /* "#rrggbb\0" */
data/pari-2.13.0/src/graph/plotport.c:2200:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(s, "w");
data/pari-2.13.0/src/graph/plottty.c:52:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%9.*g", i, d);
data/pari-2.13.0/src/graph/plottty.c:58:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef unsigned char screen[ISCR+1][JSCR+1];
data/pari-2.13.0/src/graph/plottty.c:94: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[80], z;
data/pari-2.13.0/src/graph/plottty.c:154: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 line[10 + 32 + 32 + ISCR - 9];
data/pari-2.13.0/src/headers/pariinl.h:1342:12:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  y = (GEN)memcpy((void*)new_chunk(len), (void*)GENbinbase(p), len*sizeof(long));
data/pari-2.13.0/src/kernel/none/mp.c:1808:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char approx_tab[192] = {
data/pari-2.13.0/src/kernel/none/mp_indep.c:520:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char tab[64]={-1,0,1,12,2,6,-1,13,3,-1,7,-1,-1,-1,-1,14,10,4,-1,-1,8,-1,-1,25,-1,-1,-1,-1,-1,21,27,15,31,11,5,-1,-1,-1,-1,-1,9,-1,-1,24,-1,-1,20,26,30,-1,-1,-1,-1,23,-1,19,29,-1,22,18,28,17,16,-1};
data/pari-2.13.0/src/language/anal.c:65:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char b[80];
data/pari-2.13.0/src/language/anal.c:108:14:  [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).
    numarg = atol(id);
data/pari-2.13.0/src/language/anal.c:138:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  ep->name    = u; memcpy(u, name,len); u[len]=0;
data/pari-2.13.0/src/language/anal.c:913: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(varpriority-1,vp-1,(MAXVARN+2)*sizeof(long));
data/pari-2.13.0/src/language/default.c:385: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).
    { c = atol(v); trans = 1; } /* color on transparent background */
data/pari-2.13.0/src/language/default.c:390:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      const char *a[3];
data/pari-2.13.0/src/language/default.c:397: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).
      c = (atoi(a[2])<<8) | atoi(a[0]) | (atoi(a[1])<<4);
data/pari-2.13.0/src/language/default.c:397: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).
      c = (atoi(a[2])<<8) | atoi(a[0]) | (atoi(a[1])<<4);
data/pari-2.13.0/src/language/default.c:397:43:  [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).
      c = (atoi(a[2])<<8) | atoi(a[0]) | (atoi(a[1])<<4);
data/pari-2.13.0/src/language/default.c:436: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 s[128], *t = s;
data/pari-2.13.0/src/language/default.c:442: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(t,"no");
data/pari-2.13.0/src/language/default.c:449:13:  [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,"[%ld,,%ld]",col[1],col[0]);
data/pari-2.13.0/src/language/default.c:451:13:  [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,"%ld",col[1]);
data/pari-2.13.0/src/language/default.c:454: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(t,"[%ld,%ld,%ld]",col[1],col[2],col[0]);
data/pari-2.13.0/src/language/default.c:482:41:  [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).
        if (isdigit((int)*v)) fmt->sigd=atol(v);
data/pari-2.13.0/src/language/default.c:488: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.
    (void)sprintf(s, "%c.%ld", fmt->format, fmt->sigd);
data/pari-2.13.0/src/language/default.c:590:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *log = fopen(s, "a");
data/pari-2.13.0/src/language/es.c:69:24:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  t = stack_malloc(l); memcpy(t, s, l-1); t[l-1] = 0;
data/pari-2.13.0/src/language/es.c:736:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%ld", ex10(ex) + 1);
data/pari-2.13.0/src/language/es.c:856:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf, "%ld", point-1);
data/pari-2.13.0/src/language/es.c:889:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    S->string = (char*) memcpy(stack_malloc(L), S->string, l);
data/pari-2.13.0/src/language/es.c:1517:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char s[COLOR_LEN];
data/pari-2.13.0/src/language/es.c:1532:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(s, "\x1b[0m"); /* reset */
data/pari-2.13.0/src/language/es.c:1538: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, "\x1b[%ld;%ldm", c[0], c[1]);
data/pari-2.13.0/src/language/es.c:1542: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, "\x1b[%ld;%ld;%ldm", c[0], c[1], c[2]);
data/pari-2.13.0/src/language/es.c:1596:46:  [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 ((str = os_getenv("COLUMNS"))) return atoi(str);
data/pari-2.13.0/src/language/es.c:1622:44:  [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 ((str = os_getenv("LINES"))) return atoi(str);
data/pari-2.13.0/src/language/es.c:1783:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char str[CONTEXT_LEN + 1 + 1], pre[MAX_TERM_COLOR + 8 + 1];
data/pari-2.13.0/src/language/es.c:1792: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(t, msg, lmsg); t += lmsg;
data/pari-2.13.0/src/language/es.c:1793:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(t, ": "); t += 2;
data/pari-2.13.0/src/language/es.c:1797:45:  [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.
    if (past > MAX_PAST) { past = MAX_PAST; strcpy(t, "..."); t += 3; }
data/pari-2.13.0/src/language/es.c:1800:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(t, s - past, past); t[past] = 0;
data/pari-2.13.0/src/language/es.c:1809:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(pre, "  ***   ");
data/pari-2.13.0/src/language/es.c:1918: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 buf[21], *p = buf + numberof(buf);
data/pari-2.13.0/src/language/es.c:1987: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[128]; sprintf(s,"%0*lx", BITS_IN_LONG/4, x); str_puts(S, s); }
data/pari-2.13.0/src/language/es.c:1987:16:  [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.
{ char s[128]; sprintf(s,"%0*lx", BITS_IN_LONG/4, x); str_puts(S, s); }
data/pari-2.13.0/src/language/es.c:2180:32:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    m = functions_tblsz-1; n = atol(s);
data/pari-2.13.0/src/language/es.c:2188:31:  [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).
      if (*s !='$') m = minss(atol(s),m);
data/pari-2.13.0/src/language/es.c:2237: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,"t%d",(int)v); return buf;
data/pari-2.13.0/src/language/es.c:2723: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/pari-2.13.0/src/language/es.c:3013: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[67];
data/pari-2.13.0/src/language/es.c:3377:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  return pari_open_file(fopen(s, mode), s, mode);
data/pari-2.13.0/src/language/es.c:3382:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(s, mode);
data/pari-2.13.0/src/language/es.c:3399:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  long fd = open(s, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
data/pari-2.13.0/src/language/es.c:3588:29:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = system(s)? NULL: fopen(f,"r");
data/pari-2.13.0/src/language/es.c:3853:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(s, "r");
data/pari-2.13.0/src/language/es.c:3863:26:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  strcpy(name, s); (void)sprintf(name + l, ".gz");
data/pari-2.13.0/src/language/es.c:3864: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(name, "r");
data/pari-2.13.0/src/language/es.c:3872:31:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!pari_is_dir(s)) return fopen(s, "r");
data/pari-2.13.0/src/language/es.c:3988:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(name, "r");
data/pari-2.13.0/src/language/es.c:3996: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(name, "a");
data/pari-2.13.0/src/language/es.c:4299:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(name,"rb");
data/pari-2.13.0/src/language/es.c:4309: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(name,"ab");
data/pari-2.13.0/src/language/es.c:4742:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  int id = open(s, O_CREAT|O_EXCL|O_RDWR, S_IRUSR|S_IWUSR);
data/pari-2.13.0/src/language/es.c:4832: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, salt[64];
data/pari-2.13.0/src/language/es.c:4835: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(salt,"-%ld-%ld", (long)getuid(), (long)getpid());
data/pari-2.13.0/src/language/es.c:4837: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(salt,"-%ld", (long)time(NULL));
data/pari-2.13.0/src/language/es.c:4949:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(s, "r");
data/pari-2.13.0/src/language/es.c:4955:9:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    f = fopen(s, mode[0]=='w' ? "w": "a");
data/pari-2.13.0/src/language/gplib.c:428: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[256], *str;
data/pari-2.13.0/src/language/gplib.c:525: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).
  long n = atoi(s);
data/pari-2.13.0/src/language/gplib.c:689: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.
  (void)sprintf(s, "MSVC-%i", _MSC_VER);
data/pari-2.13.0/src/language/gplib.c:702: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, "%ldh, ", delay / 3600000); s+=strlen(s);
data/pari-2.13.0/src/language/gplib.c:707: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, "%ldmin, ", delay / 60000); s+=strlen(s);
data/pari-2.13.0/src/language/gplib.c:712: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, "%ld,", delay / 1000); s+=strlen(s);
data/pari-2.13.0/src/language/gplib.c:720:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(s, "%ld ms", delay); s+=strlen(s);
data/pari-2.13.0/src/language/gplib.c:777:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  FILE *f = fopen(s, "r");
data/pari-2.13.0/src/language/gplib.c:802:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(s, ".gprc");
data/pari-2.13.0/src/language/gplib.c:804:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(s, "gprc.txt");
data/pari-2.13.0/src/language/gplib.c:829: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).
  long v = atol(*s);
data/pari-2.13.0/src/language/gplib.c:1062:19:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  s += strlen(s); memcpy(s, prompt, n);
data/pari-2.13.0/src/language/gplib.c:1075: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 b[256]; /* longer is truncated */
data/pari-2.13.0/src/language/gplib.c:1239:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];
data/pari-2.13.0/src/language/gplib.c:1248: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[150];
data/pari-2.13.0/src/language/gplib.c:1256:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf + strlen(buf), " cpu time, ");
data/pari-2.13.0/src/language/gplib.c:1258:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(buf + strlen(buf), " real time");
data/pari-2.13.0/src/language/gplib.c:1455: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).
  long l = atol(s);
data/pari-2.13.0/src/language/gplib.c:1507: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.
        const char *ap[3];
data/pari-2.13.0/src/language/gplib.c:1515: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 buf[100];
data/pari-2.13.0/src/language/gplib.c:1516: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(buf, "incorrect value for graphcolormap[%ld]: ", i);
data/pari-2.13.0/src/language/gplib.c:1762:13:  [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).
        d = atol(s); if (*s == '-') s++;
data/pari-2.13.0/src/language/init.c:474:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  for (i = 1; i < l; i++) mt_export_del((const char *)keys[i]);
data/pari-2.13.0/src/language/init.c:1467: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[128];
data/pari-2.13.0/src/language/init.c:1642: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(v, "t_MAT (%ldx%ld)", r-1,l-1);
data/pari-2.13.0/src/language/init.c:1646: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(v, "t_COL (%ld elts)", lg(x)-1);
data/pari-2.13.0/src/language/init.c:1649: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(v, "t_VEC (%ld elts)", lg(x)-1);
data/pari-2.13.0/src/language/init.c:2909: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 t[8];
data/pari-2.13.0/src/language/init.c:2913:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(t, ver, len); t[len] = 0;
data/pari-2.13.0/src/language/init.c:2918: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).
    gel(v,4) = stoi( atoi(t) );
data/pari-2.13.0/src/language/parse.c:1208:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM];
data/pari-2.13.0/src/language/parse.c:1551: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 yymsgbuf[128];
data/pari-2.13.0/src/language/readline.c:298: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 buf[200];
data/pari-2.13.0/src/language/str.c:30: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(t,s,n); return t;
data/pari-2.13.0/src/language/str.c:38:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(u,     s, ls);
data/pari-2.13.0/src/language/str.c:39:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(u + ls,t, lt+1); return u;
data/pari-2.13.0/src/language/str.c:47: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(t,s,n); return t;
data/pari-2.13.0/src/language/str.c:53: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(t,s,n); t[n] = 0; return t;
data/pari-2.13.0/src/modules/galois.c:330: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 c, ch[8];
data/pari-2.13.0/src/modules/galois.c:335:44:  [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).
  pari_fread_chars(ch, 6, f->file); cardgr=atol(ch);
data/pari-2.13.0/src/modules/galois.c:343: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 ch[5];
data/pari-2.13.0/src/modules/galois.c:346:40:  [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).
  pari_fread_chars(ch,5,f->file); nm = atol(ch);
data/pari-2.13.0/src/modules/galois.c:347:40:  [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).
  pari_fread_chars(ch,3,f->file); nv = atol(ch);
data/pari-2.13.0/src/modules/mpqs.h:60:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char __pad[MPQS_FB_ENTRY_PAD];
data/pari-2.13.0/src/systems/cygwin/cygwin.c:23: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 datadir[1024];
data/pari-2.13.0/src/systems/cygwin/cygwin.c:28:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(datadir, "data");
data/pari-2.13.0/src/systems/darwin/darwin.c:45:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char errstr[ERR_STR_LEN];
data/pari-2.13.0/src/systems/darwin/darwin.c:184:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char undersym[257];  /* Saves calls to malloc(3) */
data/pari-2.13.0/src/systems/mingw/mingw.c:29: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 basedir[1024];
data/pari-2.13.0/src/systems/mingw/mingw.c:42: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 datadir[1029];
data/pari-2.13.0/src/systems/mingw/mingw.c:154: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 str[SZ], *buf;
data/pari-2.13.0/src/systems/os2/os2.c:11:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char fail[300];
data/pari-2.13.0/src/systems/os2/os2.c:14:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char dllname[80];
data/pari-2.13.0/src/systems/os2/os2.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 buf[260];
data/pari-2.13.0/src/systems/os2/os2.c:65:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char tmp[260], *beg, *dot;
data/pari-2.13.0/src/systems/os2/os2.c:75:9:  [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(fail, "can't find my DLL name by the handle");
data/pari-2.13.0/src/systems/os2/os2.c:80:9:  [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(fail, "can't load my own DLL");
data/pari-2.13.0/src/systems/os2/os2.c:87:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(fail, "can't load from myself: compiled without -DDLOPEN_INITTERM");
data/pari-2.13.0/src/systems/os2/os2.c:136:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char buf[700];
data/pari-2.13.0/src/systems/os2/os2.c:141:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(buf, "Wrong procedure type");
data/pari-2.13.0/src/systems/os2/os2.c:151: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(buf, "OS/2 system error code %d", (int)retcode);
data/pari-2.13.0/src/test/tune.c:920: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).
      r = atol(s); if (r >= (long)numberof(param) || r < 0) error(argv);
data/pari-2.13.0/examples/minigp.c:47:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (z != gnil && in[strlen(in)-1] != ';')
data/pari-2.13.0/misc/cook.c:191:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                r = read(0, bufin+lgin, sizeof(bufin) - lgin);
data/pari-2.13.0/misc/cook.c:205:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                r = read(fd, bufout+lgout, sizeof(bufout) - lgout);
data/pari-2.13.0/src/basemath/bb_group.c:428:20:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    } while (!grp->equal(gel(A,1), gel(B,1)));
data/pari-2.13.0/src/basemath/bb_group.c:478:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (grp->equal(grp->pow(E,g,v),x)) return gerepileuptoint(av,v);
data/pari-2.13.0/src/basemath/bb_group.c:531:18:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        if (grp->equal(grp->pow(E,g,v),x)) return gerepileuptoint(av,v);
data/pari-2.13.0/src/basemath/bb_group.c:556:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if (grp->equal(x,g)) return gen_1;
data/pari-2.13.0/src/basemath/bb_group.c:613:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if (grp->equal(g, a)) /* frequent special case */
data/pari-2.13.0/src/basemath/concat.c:73:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  lx = strlen(sx);
data/pari-2.13.0/src/basemath/concat.c:74: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).
  l = nchar2nlong(lx + strlen(sy) + 1);
data/pari-2.13.0/src/basemath/concat.c:250:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    L += strlen(c);
data/pari-2.13.0/src/basemath/concat.c:257:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    long nc = strlen(c);
data/pari-2.13.0/src/basemath/gen2.c:127:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    case t_STR:  return strlen( GSTR(x) );
data/pari-2.13.0/src/basemath/gen3.c:3194: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).
      lx = strlen(s)+1; y = cgetg(lx, t_VEC);
data/pari-2.13.0/src/basemath/gen3.c:3359:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      l = strlen((const char *)s);
data/pari-2.13.0/src/gp/gp.c:67: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).
is_silent(char *s) { return s[strlen(s) - 1] == ';'; }
data/pari-2.13.0/src/gp/gp.c:304:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      l = strlen(buf);
data/pari-2.13.0/src/gp/gp.c:532:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    n += 14 + strlen(ti_dirs) + 1 + 8 + 1;
data/pari-2.13.0/src/gp/gp_rl.c:301: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;
data/pari-2.13.0/src/gp/texmacs.c:47: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).
  long l = strlen(s);
data/pari-2.13.0/src/gp/texmacs.c:79:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(t, text, prelen); t[prelen] = 0; /* prefix */
data/pari-2.13.0/src/gp/texmacs.c:108: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).
  long l = strlen(ch);
data/pari-2.13.0/src/gp/texmacs.c:126: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).
    char *u = (char*)pari_malloc(strlen(s) + 1);
data/pari-2.13.0/src/gp/texmacs.c:133:7:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
      strncpy(u, t, s - t); u[s-t] = 0;
data/pari-2.13.0/src/graph/plotport.c:668: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).
  long l = strlen(str);
data/pari-2.13.0/src/graph/plotport.c:1496:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    lm = maxss(strlen(YSML),strlen(YBIG))*W->fwidth + 2*W->hunit-1;
data/pari-2.13.0/src/graph/plotport.c:1496: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).
    lm = maxss(strlen(YSML),strlen(YBIG))*W->fwidth + 2*W->hunit-1;
data/pari-2.13.0/src/graph/plotport.c:2926:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (*s == '#' && strlen(s) == 7)
data/pari-2.13.0/src/graph/plottty.c:53:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(buf) <= 9) break;
data/pari-2.13.0/src/headers/paridecl.h:29:11:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  int   (*equal)(GEN,GEN);
data/pari-2.13.0/src/language/anal.c:56: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).
  if (!etmplate) etmplate = tmplate + strlen(tmplate);
data/pari-2.13.0/src/language/anal.c:74:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(b, arg, l); b[l] = 0;
data/pari-2.13.0/src/language/anal.c:167:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
{ return findentry(s, strlen(s), defaults_hash, 0); }
data/pari-2.13.0/src/language/anal.c:170:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
{ return findentry(s, strlen(s), functions_hash, 0); }
data/pari-2.13.0/src/language/anal.c:175:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
fetch_entry(const char *s) { return fetch_entry_raw(s, strlen(s)); }
data/pari-2.13.0/src/language/anal.c:1005:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  varentries_reset(v, initep(s, strlen(s)));
data/pari-2.13.0/src/language/anal.c:1078:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ep = (entree*)pari_malloc(sizeof(entree) + strlen(s) + 1);
data/pari-2.13.0/src/language/compile.c:623:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  t[0] = '_'; strncpy(t+1, s, len); t[++len] = 0; /* prepend '_' */
data/pari-2.13.0/src/language/compile.c:2348: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).
    text = cgetg(1+nchar2nlong(9+strlen(code)+n),t_STR);
data/pari-2.13.0/src/language/compile.c:2353: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).
    text = cgetg(1+nchar2nlong(4+strlen(code)),t_STR);
data/pari-2.13.0/src/language/default.c:26:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *buf = stack_malloc(strlen(t)+1);
data/pari-2.13.0/src/language/default.c:153: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).
      f = end = s + strlen(s);
data/pari-2.13.0/src/language/default.c:214:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *t = stack_malloc(64 + strlen(s));
data/pari-2.13.0/src/language/default.c:239:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *buf = stack_malloc(strlen(s) + 2 * 20 + 40);
data/pari-2.13.0/src/language/default.c:276: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).
  char *b = stack_malloc(64 + strlen(s));
data/pari-2.13.0/src/language/default.c:419:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l = strlen(v);
data/pari-2.13.0/src/language/default.c:456: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).
      t += strlen(t);
data/pari-2.13.0/src/language/default.c:737: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).
    long l = strlen(ev) + 256;
data/pari-2.13.0/src/language/es.c:65:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ulong l = strlen(s);
data/pari-2.13.0/src/language/es.c:203: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).
  T.t = (char*)stack_malloc(strlen(s)+1);
data/pari-2.13.0/src/language/es.c:284:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (last) *last = s[strlen(s) - 1];
data/pari-2.13.0/src/language/es.c:439:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ulong left = b->len - used, l, read;
data/pari-2.13.0/src/language/es.c:452:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (! IM->myfgets(s, (int)read, IM->file)) return **s0? *s0: NULL; /* EOF */
data/pari-2.13.0/src/language/es.c:454:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l = strlen(s);
data/pari-2.13.0/src/language/es.c:455:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (l+1 < read || s[l-1] == '\n') return *s0; /* \n */
data/pari-2.13.0/src/language/es.c:592:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (*s) { set_last_newline(s[strlen(s)-1]); out->puts(s); }
data/pari-2.13.0/src/language/es.c:695:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(buf, z, point); /* integer part */
data/pari-2.13.0/src/language/es.c:968:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int padlen, lbuf = strlen(buf);
data/pari-2.13.0/src/language/es.c:1261:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  outpad(S, buf, strlen(buf), signvalue, ljust, len, zpad);
data/pari-2.13.0/src/language/es.c:1715:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  const long W = term_width(), ls = strlen(s);
data/pari-2.13.0/src/language/es.c:1789:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  lmsg = strlen(msg);
data/pari-2.13.0/src/language/es.c:1799:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    t += strlen(t);
data/pari-2.13.0/src/language/es.c:1806:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(t, s, future); t[future] = 0;
data/pari-2.13.0/src/language/es.c:2258:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(s) >= len) pari_err(e_MISC, "TeX variable name too long");
data/pari-2.13.0/src/language/es.c:3230:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (*s) { set_last_newline(s[strlen(s)-1]); fputs(s, out); }
data/pari-2.13.0/src/language/es.c:3308:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pariFILE *file = (pariFILE*) pari_malloc(strlen(name) + 1 + sizeof(pariFILE));
data/pari-2.13.0/src/language/es.c:3586:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s = stack_malloc(strlen(cmd)+strlen(f)+4);
data/pari-2.13.0/src/language/es.c:3586: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).
    s = stack_malloc(strlen(cmd)+strlen(f)+4);
data/pari-2.13.0/src/language/es.c:3745:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = (char*)pari_malloc(strlen(dir) + strlen(t) + 1);
data/pari-2.13.0/src/language/es.c:3745:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  ret = (char*)pari_malloc(strlen(dir) + strlen(t) + 1);
data/pari-2.13.0/src/language/es.c:3777:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      l = strlen(s0);
data/pari-2.13.0/src/language/es.c:3829: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).
  long l = strlen(name);
data/pari-2.13.0/src/language/es.c:3838:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *cmd = stack_malloc(strlen(ZCAT) + l + 4);
data/pari-2.13.0/src/language/es.c:3861: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);
data/pari-2.13.0/src/language/es.c:3881:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  T->ls = strlen(s);
data/pari-2.13.0/src/language/es.c:3891: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).
  t = (char*)pari_malloc(strlen(dir) + T->ls + 2);
data/pari-2.13.0/src/language/es.c:3910:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    s = stack_malloc(strlen(name)+4);
data/pari-2.13.0/src/language/es.c:4052:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    e = s + strlen(s)-1;
data/pari-2.13.0/src/language/es.c:4133: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).
  size_t L = strlen(s)+1;
data/pari-2.13.0/src/language/es.c:4191:11:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int c = fgetc(f);
data/pari-2.13.0/src/language/es.c:4238: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).
  size_t L = strlen(MAGIC);
data/pari-2.13.0/src/language/es.c:4287:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int r, c = fgetc(f);
data/pari-2.13.0/src/language/es.c:4797:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char c, d, *end = buf + strlen(buf) - 1;
data/pari-2.13.0/src/language/es.c:4798:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (suf) end -= strlen(suf);
data/pari-2.13.0/src/language/es.c:4839:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  lsuf = suf? strlen(suf): 0;
data/pari-2.13.0/src/language/es.c:4840:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  lsalt = strlen(salt);
data/pari-2.13.0/src/language/es.c:4841:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  lpre = strlen(pre);
data/pari-2.13.0/src/language/es.c:4845:35:  [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.
  if (buf[lpre-1] != '/') { (void)strcat(buf, "/"); lpre++; }
data/pari-2.13.0/src/language/es.c:4918: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).
  long l = strlen(name);
data/pari-2.13.0/src/language/es.c:4926:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *cmd = stack_malloc(strlen(ZCAT) + l + 4);
data/pari-2.13.0/src/language/es.c:5080:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  e = s + strlen(s)-1;
data/pari-2.13.0/src/language/eval.c:775:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  u = *next_fun = next_label + strlen(next_label);
data/pari-2.13.0/src/language/eval.c:818:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      else { sbase = GSTR(gel(base,1)); offset += strlen(sbase); }
data/pari-2.13.0/src/language/gplib.c:123:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  do c = fgetc(stdin); while (c >= 0 && c != '\n' && c != '\r');
data/pari-2.13.0/src/language/gplib.c:147:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(*l);
data/pari-2.13.0/src/language/gplib.c:164:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = maxlen - strlen(*l);
data/pari-2.13.0/src/language/gplib.c:204:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  long i, l = strlen(s), pad = term_width() - l;
data/pari-2.13.0/src/language/gplib.c:386:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  *s = 0; strcat(s,t); return s + strlen(t);
data/pari-2.13.0/src/language/gplib.c:392:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  int i, l = strlen(s);
data/pari-2.13.0/src/language/gplib.c:405:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  str = (char*)pari_malloc(l + quote * (strlen(QUOTE)-1)
data/pari-2.13.0/src/language/gplib.c:406:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          + doubquote * (strlen(DOUBQUOTE)-1)
data/pari-2.13.0/src/language/gplib.c:407:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                          + backquote * (strlen(BACKQUOTE)-1) + 1);
data/pari-2.13.0/src/language/gplib.c:421: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).
nl_read(char *s) { size_t l = strlen(s); return s[l-1] == '\n'; }
data/pari-2.13.0/src/language/gplib.c:441: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).
  else if (t[strlen(t)-1] != '@')
data/pari-2.13.0/src/language/gplib.c:667:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *s = stack_malloc(3 + strlen(v) + 8);
data/pari-2.13.0/src/language/gplib.c:681: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).
  s = stack_malloc(6 + strlen(GCC_VERSION) + 1);
data/pari-2.13.0/src/language/gplib.c:702:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(s, "%ldh, ", delay / 3600000); s+=strlen(s);
data/pari-2.13.0/src/language/gplib.c:707:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(s, "%ldmin, ", delay / 60000); s+=strlen(s);
data/pari-2.13.0/src/language/gplib.c:712:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(s, "%ld,", delay / 1000); s+=strlen(s);
data/pari-2.13.0/src/language/gplib.c:717:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      s+=strlen(s);
data/pari-2.13.0/src/language/gplib.c:720:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  sprintf(s, "%ld ms", delay); s+=strlen(s);
data/pari-2.13.0/src/language/gplib.c:730: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).
  s = convert_time(s + strlen(s), delay);
data/pari-2.13.0/src/language/gplib.c:766:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *buf = (char*)pari_malloc(strlen(pth) + strlen(drv) + 1);
data/pari-2.13.0/src/language/gplib.c:766:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *buf = (char*)pari_malloc(strlen(pth) + strlen(drv) + 1);
data/pari-2.13.0/src/language/gplib.c:795:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    l = strlen(home); c = home[l-1];
data/pari-2.13.0/src/language/gplib.c:814:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *t = (char *) pari_malloc(strlen(basedir)+strlen(s)+2);
data/pari-2.13.0/src/language/gplib.c:814:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      char *t = (char *) pari_malloc(strlen(basedir)+strlen(s)+2);
data/pari-2.13.0/src/language/gplib.c:985:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        t = (char*)pari_malloc(strlen(s) + 1);
data/pari-2.13.0/src/language/gplib.c:1034:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s += strlen(s);
data/pari-2.13.0/src/language/gplib.c:1057: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).
  long n = strlen(prompt);
data/pari-2.13.0/src/language/gplib.c:1062:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  s += strlen(s); memcpy(s, prompt, n);
data/pari-2.13.0/src/language/gplib.c:1093: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).
  long l = strlen(s);
data/pari-2.13.0/src/language/gplib.c:1256:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), " cpu time, ");
data/pari-2.13.0/src/language/gplib.c:1257: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).
    convert_time(buf + strlen(buf), walltimer_get(GP_DATA->Tw));
data/pari-2.13.0/src/language/gplib.c:1258:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sprintf(buf + strlen(buf), " real time");
data/pari-2.13.0/src/language/gplib.c:1470:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (*t != '[' || t[strlen(t)-1] != ']')
data/pari-2.13.0/src/language/gplib.c:1503:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(GSTR(lp), p, q-p+1);
data/pari-2.13.0/src/language/gplib.c:1674:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  buf = stack_malloc(strlen(paricfg_buildinfo) + 2 + strlen(kver));
data/pari-2.13.0/src/language/gplib.c:1674:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  buf = stack_malloc(strlen(paricfg_buildinfo) + 2 + strlen(kver));
data/pari-2.13.0/src/language/gplib.c:1677:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  buf = stack_malloc(strlen(date) + 32 + (ver? strlen(ver): 0));
data/pari-2.13.0/src/language/gplib.c:1677:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  buf = stack_malloc(strlen(date) + 32 + (ver? strlen(ver): 0));
data/pari-2.13.0/src/language/gplib.c:1684:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  buf = stack_malloc(strlen(ver) + 64);
data/pari-2.13.0/src/language/gplib.c:1742: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).
    long n = strlen(t)-1;
data/pari-2.13.0/src/language/init.c:1661:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(s) < 1600) return s;
data/pari-2.13.0/src/language/parse.c:1105: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).
#   define yystrlen strlen
data/pari-2.13.0/src/language/parsec.h:53:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pari_tree[i].len  = strlen(opname[i]);
data/pari-2.13.0/src/language/readline.c:53:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pari_realloc_ip((void**)matches, strlen(matches[0])+strlen(s)+1);
data/pari-2.13.0/src/language/readline.c:53:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  pari_realloc_ip((void**)matches, strlen(matches[0])+strlen(s)+1);
data/pari-2.13.0/src/language/readline.c:82:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    printf("%s@", matches[0] + strlen(text));
data/pari-2.13.0/src/language/readline.c:92:39:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
  matches[0] = (char*)pari_malloc(2); sprintf(matches[0],"_");
data/pari-2.13.0/src/language/readline.c:112:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  char *s = strncpy((char*)pari_malloc(strlen(name)+1+junk),text,junk);
data/pari-2.13.0/src/language/readline.c:112:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  char *s = strncpy((char*)pari_malloc(strlen(name)+1+junk),text,junk);
data/pari-2.13.0/src/language/readline.c:118: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).
  long l = strlen(text), j = l-1;
data/pari-2.13.0/src/language/readline.c:320:15:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
         && ( strncpy(buf, line + i, iend - i),
data/pari-2.13.0/src/language/readline.c:332:23:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          char *str = strncpy((char*)pari_malloc(e-s + 1), s, e-s);
data/pari-2.13.0/src/language/readline.c:385: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).
  *rl->end = strlen(b)-1;
data/pari-2.13.0/src/language/str.c:28: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).
  long n = strlen(s)+1;
data/pari-2.13.0/src/language/str.c:35:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  long ls = strlen(s), lt = strlen(t);
data/pari-2.13.0/src/language/str.c:35: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).
  long ls = strlen(s), lt = strlen(t);
data/pari-2.13.0/src/language/str.c:45: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).
  long n = strlen(s)+1;
data/pari-2.13.0/src/language/str.c:64:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(t, s, n0); t[n0] = 0; return x;
data/pari-2.13.0/src/language/str.c:71:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  long n0 = strlen(s) + 1, n = nchar2nlong(n0);
data/pari-2.13.0/src/language/str.c:74:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  x[n] = 0; strncpy(t, s, n0); return x;
data/pari-2.13.0/src/language/str.c:164: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).
  s = GSTR(x); ls = strlen(s);
data/pari-2.13.0/src/language/str.c:169:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    t = GSTR(p); lt = strlen(t);
data/pari-2.13.0/src/modules/elldata.c:109: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).
  char *s = stack_malloc(strlen(pari_datadir) + 12 + 20 + 1);
data/pari-2.13.0/src/modules/galois.c:292: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).
  char *s = stack_malloc(strlen(pari_datadir) + 3 + 4 * 20 + 1 + 3);
data/pari-2.13.0/src/modules/galois.c:2328: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).
  char *s = stack_malloc(strlen(pari_datadir) + 13 + 20 + 3);
data/pari-2.13.0/src/modules/galpol.c:23: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).
  char *s = stack_malloc(strlen(pari_datadir) + 11 + 20 + 1);
data/pari-2.13.0/src/systems/darwin/darwin.c:52:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
    strncpy(errstr, "dlsimple: ", ERR_STR_LEN);
data/pari-2.13.0/src/systems/darwin/darwin.c:185: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).
  int sym_len = strlen(symbol);
data/pari-2.13.0/src/systems/emscripten/emscripten.c:43:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  long i, j, ls = strlen(s), lt = ((ls+2)/3)*4;
data/pari-2.13.0/src/systems/mingw/mingw.c:162:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    buf = malloc(strlen(str)+16); /*must not be freed*/
data/pari-2.13.0/src/systems/os2/os2.c:96:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  for (beg = dot = path + strlen(path);
data/pari-2.13.0/src/systems/os2/os2.c:103:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memmove(tmp+n, dot, strlen(dot)+1);
data/pari-2.13.0/src/systems/os2/os2.c:142:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    len = strlen(buf);

ANALYSIS SUMMARY:

Hits = 416
Lines analyzed = 291639 in approximately 8.28 seconds (35210 lines/second)
Physical Source Lines of Code (SLOC) = 251902
Hits@level = [0]  90 [1] 166 [2] 168 [3]   9 [4]  73 [5]   0
Hits@level+ = [0+] 506 [1+] 416 [2+] 250 [3+]  82 [4+]  73 [5+]   0
Hits/KSLOC@level+ = [0+] 2.00872 [1+] 1.65144 [2+] 0.992449 [3+] 0.325523 [4+] 0.289795 [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.