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/libamplsolver-0~20190702/x2check.c
Examining data/libamplsolver-0~20190702/nlp2.h
Examining data/libamplsolver-0~20190702/mainexit.c
Examining data/libamplsolver-0~20190702/solvers/x2check.c
Examining data/libamplsolver-0~20190702/solvers/nlp2.h
Examining data/libamplsolver-0~20190702/solvers/mainexit.c
Examining data/libamplsolver-0~20190702/solvers/sscanf.c
Examining data/libamplsolver-0~20190702/solvers/conpval.c
Examining data/libamplsolver-0~20190702/solvers/dynlink.c
Examining data/libamplsolver-0~20190702/solvers/repwhere.c
Examining data/libamplsolver-0~20190702/solvers/con1ival.c
Examining data/libamplsolver-0~20190702/solvers/g_fmt.c
Examining data/libamplsolver-0~20190702/solvers/jacpdim.h
Examining data/libamplsolver-0~20190702/solvers/sigcatch.c
Examining data/libamplsolver-0~20190702/solvers/fpinitmt.c
Examining data/libamplsolver-0~20190702/solvers/errchk.h
Examining data/libamplsolver-0~20190702/solvers/conscale.c
Examining data/libamplsolver-0~20190702/solvers/qpcheck.c
Examining data/libamplsolver-0~20190702/solvers/readsol.c
Examining data/libamplsolver-0~20190702/solvers/avltree.c
Examining data/libamplsolver-0~20190702/solvers/stderr.c
Examining data/libamplsolver-0~20190702/solvers/jacinc1.c
Examining data/libamplsolver-0~20190702/solvers/wrtsol_.c
Examining data/libamplsolver-0~20190702/solvers/basename.c
Examining data/libamplsolver-0~20190702/solvers/jac0dim.c
Examining data/libamplsolver-0~20190702/solvers/getstub.c
Examining data/libamplsolver-0~20190702/solvers/xp2known.c
Examining data/libamplsolver-0~20190702/solvers/mpec_adj.c
Examining data/libamplsolver-0~20190702/solvers/writesol.c
Examining data/libamplsolver-0~20190702/solvers/genrowno.c
Examining data/libamplsolver-0~20190702/solvers/mypow.c
Examining data/libamplsolver-0~20190702/solvers/conadj.c
Examining data/libamplsolver-0~20190702/solvers/arithchk.c
Examining data/libamplsolver-0~20190702/solvers/asl_pfg.h
Examining data/libamplsolver-0~20190702/solvers/rops2.c
Examining data/libamplsolver-0~20190702/solvers/objval.c
Examining data/libamplsolver-0~20190702/solvers/studchk0.c
Examining data/libamplsolver-0~20190702/solvers/obj_adj.c
Examining data/libamplsolver-0~20190702/solvers/pfg_read.c
Examining data/libamplsolver-0~20190702/solvers/funcadd.h
Examining data/libamplsolver-0~20190702/solvers/auxinfo.c
Examining data/libamplsolver-0~20190702/solvers/names.c
Examining data/libamplsolver-0~20190702/solvers/dtoa1.c
Examining data/libamplsolver-0~20190702/solvers/fpinit.c
Examining data/libamplsolver-0~20190702/solvers/jacdim.c
Examining data/libamplsolver-0~20190702/solvers/asl_pfgh.h
Examining data/libamplsolver-0~20190702/solvers/misc.c
Examining data/libamplsolver-0~20190702/solvers/con2val.c
Examining data/libamplsolver-0~20190702/solvers/nqpcheck.c
Examining data/libamplsolver-0~20190702/solvers/fg_read.c
Examining data/libamplsolver-0~20190702/solvers/mach.c
Examining data/libamplsolver-0~20190702/solvers/wsu_desc.c
Examining data/libamplsolver-0~20190702/solvers/qp_read.c
Examining data/libamplsolver-0~20190702/solvers/nqpcheckZ.c
Examining data/libamplsolver-0~20190702/solvers/rops.c
Examining data/libamplsolver-0~20190702/solvers/punknown.c
Examining data/libamplsolver-0~20190702/solvers/pfghread.c
Examining data/libamplsolver-0~20190702/solvers/asldate.c
Examining data/libamplsolver-0~20190702/solvers/fpecatch.c
Examining data/libamplsolver-0~20190702/solvers/comeval.c
Examining data/libamplsolver-0~20190702/solvers/conval.c
Examining data/libamplsolver-0~20190702/solvers/asl.h
Examining data/libamplsolver-0~20190702/solvers/fgh_read.c
Examining data/libamplsolver-0~20190702/solvers/libnamsave.c
Examining data/libamplsolver-0~20190702/solvers/objconst.c
Examining data/libamplsolver-0~20190702/solvers/nl_obj.c
Examining data/libamplsolver-0~20190702/solvers/pshvprod.c
Examining data/libamplsolver-0~20190702/solvers/fullhes.c
Examining data/libamplsolver-0~20190702/solvers/bscanf.c
Examining data/libamplsolver-0~20190702/solvers/suf_sos.c
Examining data/libamplsolver-0~20190702/solvers/jacinc.c
Examining data/libamplsolver-0~20190702/solvers/sphes.c
Examining data/libamplsolver-0~20190702/solvers/op_type.c
Examining data/libamplsolver-0~20190702/solvers/qsortv.c
Examining data/libamplsolver-0~20190702/solvers/objval_.c
Examining data/libamplsolver-0~20190702/solvers/b_search.c
Examining data/libamplsolver-0~20190702/solvers/sprintf.c
Examining data/libamplsolver-0~20190702/solvers/com2eval.c
Examining data/libamplsolver-0~20190702/solvers/funcadd.c
Examining data/libamplsolver-0~20190702/solvers/nlp.h
Examining data/libamplsolver-0~20190702/solvers/getstub.h
Examining data/libamplsolver-0~20190702/solvers/qpcheckZ.c
Examining data/libamplsolver-0~20190702/solvers/obj_adj.h
Examining data/libamplsolver-0~20190702/solvers/obj_prec.c
Examining data/libamplsolver-0~20190702/solvers/xp1known.c
Examining data/libamplsolver-0~20190702/solvers/funcaddk.c
Examining data/libamplsolver-0~20190702/solvers/obj2val.c
Examining data/libamplsolver-0~20190702/solvers/jac2dim.h
Examining data/libamplsolver-0~20190702/solvers/atof.c
Examining data/libamplsolver-0~20190702/solvers/derprop.c
Examining data/libamplsolver-0~20190702/solvers/degree.c
Examining data/libamplsolver-0~20190702/solvers/strerror.c
Examining data/libamplsolver-0~20190702/solvers/con2ival.c
Examining data/libamplsolver-0~20190702/solvers/funcadd0.c
Examining data/libamplsolver-0~20190702/solvers/jac2dim.c
Examining data/libamplsolver-0~20190702/solvers/mpec_adj0.c
Examining data/libamplsolver-0~20190702/solvers/sos_add.c
Examining data/libamplsolver-0~20190702/solvers/f_read.c
Examining data/libamplsolver-0~20190702/solvers/getenv.c
Examining data/libamplsolver-0~20190702/solvers/xectim.c
Examining data/libamplsolver-0~20190702/solvers/indic_cons.c
Examining data/libamplsolver-0~20190702/solvers/mip_pri.c
Examining data/libamplsolver-0~20190702/solvers/func_add.c
Examining data/libamplsolver-0~20190702/solvers/sjac0dim.c
Examining data/libamplsolver-0~20190702/solvers/fg_write.c
Examining data/libamplsolver-0~20190702/solvers/avltree.h
Examining data/libamplsolver-0~20190702/solvers/funcaddr.c
Examining data/libamplsolver-0~20190702/solvers/mqpcheckv.c
Examining data/libamplsolver-0~20190702/solvers/value.c
Examining data/libamplsolver-0~20190702/solvers/dtoa.c
Examining data/libamplsolver-0~20190702/solvers/psinfo.h
Examining data/libamplsolver-0~20190702/solvers/htcl.c
Examining data/libamplsolver-0~20190702/solvers/ws_desc.c
Examining data/libamplsolver-0~20190702/solvers/printf.c
Examining data/libamplsolver-0~20190702/solvers/obj_adj0.c
Examining data/libamplsolver-0~20190702/solvers/duthes.c
Examining data/libamplsolver-0~20190702/solvers/funcadd1.c
Examining data/libamplsolver-0~20190702/sscanf.c
Examining data/libamplsolver-0~20190702/conpval.c
Examining data/libamplsolver-0~20190702/dynlink.c
Examining data/libamplsolver-0~20190702/repwhere.c
Examining data/libamplsolver-0~20190702/con1ival.c
Examining data/libamplsolver-0~20190702/g_fmt.c
Examining data/libamplsolver-0~20190702/jacpdim.h
Examining data/libamplsolver-0~20190702/sigcatch.c
Examining data/libamplsolver-0~20190702/fpinitmt.c
Examining data/libamplsolver-0~20190702/errchk.h
Examining data/libamplsolver-0~20190702/conscale.c
Examining data/libamplsolver-0~20190702/qpcheck.c
Examining data/libamplsolver-0~20190702/readsol.c
Examining data/libamplsolver-0~20190702/avltree.c
Examining data/libamplsolver-0~20190702/stderr.c
Examining data/libamplsolver-0~20190702/jacinc1.c
Examining data/libamplsolver-0~20190702/wrtsol_.c
Examining data/libamplsolver-0~20190702/basename.c
Examining data/libamplsolver-0~20190702/jac0dim.c
Examining data/libamplsolver-0~20190702/getstub.c
Examining data/libamplsolver-0~20190702/xp2known.c
Examining data/libamplsolver-0~20190702/mpec_adj.c
Examining data/libamplsolver-0~20190702/writesol.c
Examining data/libamplsolver-0~20190702/genrowno.c
Examining data/libamplsolver-0~20190702/mypow.c
Examining data/libamplsolver-0~20190702/conadj.c
Examining data/libamplsolver-0~20190702/arithchk.c
Examining data/libamplsolver-0~20190702/asl_pfg.h
Examining data/libamplsolver-0~20190702/rops2.c
Examining data/libamplsolver-0~20190702/objval.c
Examining data/libamplsolver-0~20190702/studchk0.c
Examining data/libamplsolver-0~20190702/obj_adj.c
Examining data/libamplsolver-0~20190702/pfg_read.c
Examining data/libamplsolver-0~20190702/funcadd.h
Examining data/libamplsolver-0~20190702/auxinfo.c
Examining data/libamplsolver-0~20190702/names.c
Examining data/libamplsolver-0~20190702/dtoa1.c
Examining data/libamplsolver-0~20190702/fpinit.c
Examining data/libamplsolver-0~20190702/jacdim.c
Examining data/libamplsolver-0~20190702/asl_pfgh.h
Examining data/libamplsolver-0~20190702/misc.c
Examining data/libamplsolver-0~20190702/con2val.c
Examining data/libamplsolver-0~20190702/nqpcheck.c
Examining data/libamplsolver-0~20190702/fg_read.c
Examining data/libamplsolver-0~20190702/mach.c
Examining data/libamplsolver-0~20190702/wsu_desc.c
Examining data/libamplsolver-0~20190702/qp_read.c
Examining data/libamplsolver-0~20190702/nqpcheckZ.c
Examining data/libamplsolver-0~20190702/rops.c
Examining data/libamplsolver-0~20190702/punknown.c
Examining data/libamplsolver-0~20190702/pfghread.c
Examining data/libamplsolver-0~20190702/asldate.c
Examining data/libamplsolver-0~20190702/fpecatch.c
Examining data/libamplsolver-0~20190702/comeval.c
Examining data/libamplsolver-0~20190702/conval.c
Examining data/libamplsolver-0~20190702/asl.h
Examining data/libamplsolver-0~20190702/fgh_read.c
Examining data/libamplsolver-0~20190702/libnamsave.c
Examining data/libamplsolver-0~20190702/objconst.c
Examining data/libamplsolver-0~20190702/nl_obj.c
Examining data/libamplsolver-0~20190702/pshvprod.c
Examining data/libamplsolver-0~20190702/fullhes.c
Examining data/libamplsolver-0~20190702/bscanf.c
Examining data/libamplsolver-0~20190702/suf_sos.c
Examining data/libamplsolver-0~20190702/jacinc.c
Examining data/libamplsolver-0~20190702/sphes.c
Examining data/libamplsolver-0~20190702/op_type.c
Examining data/libamplsolver-0~20190702/qsortv.c
Examining data/libamplsolver-0~20190702/objval_.c
Examining data/libamplsolver-0~20190702/b_search.c
Examining data/libamplsolver-0~20190702/sprintf.c
Examining data/libamplsolver-0~20190702/com2eval.c
Examining data/libamplsolver-0~20190702/funcadd.c
Examining data/libamplsolver-0~20190702/nlp.h
Examining data/libamplsolver-0~20190702/getstub.h
Examining data/libamplsolver-0~20190702/qpcheckZ.c
Examining data/libamplsolver-0~20190702/obj_adj.h
Examining data/libamplsolver-0~20190702/obj_prec.c
Examining data/libamplsolver-0~20190702/xp1known.c
Examining data/libamplsolver-0~20190702/funcaddk.c
Examining data/libamplsolver-0~20190702/obj2val.c
Examining data/libamplsolver-0~20190702/jac2dim.h
Examining data/libamplsolver-0~20190702/atof.c
Examining data/libamplsolver-0~20190702/derprop.c
Examining data/libamplsolver-0~20190702/degree.c
Examining data/libamplsolver-0~20190702/strerror.c
Examining data/libamplsolver-0~20190702/con2ival.c
Examining data/libamplsolver-0~20190702/funcadd0.c
Examining data/libamplsolver-0~20190702/jac2dim.c
Examining data/libamplsolver-0~20190702/mpec_adj0.c
Examining data/libamplsolver-0~20190702/sos_add.c
Examining data/libamplsolver-0~20190702/f_read.c
Examining data/libamplsolver-0~20190702/getenv.c
Examining data/libamplsolver-0~20190702/xectim.c
Examining data/libamplsolver-0~20190702/indic_cons.c
Examining data/libamplsolver-0~20190702/mip_pri.c
Examining data/libamplsolver-0~20190702/func_add.c
Examining data/libamplsolver-0~20190702/sjac0dim.c
Examining data/libamplsolver-0~20190702/fg_write.c
Examining data/libamplsolver-0~20190702/avltree.h
Examining data/libamplsolver-0~20190702/funcaddr.c
Examining data/libamplsolver-0~20190702/mqpcheckv.c
Examining data/libamplsolver-0~20190702/value.c
Examining data/libamplsolver-0~20190702/dtoa.c
Examining data/libamplsolver-0~20190702/psinfo.h
Examining data/libamplsolver-0~20190702/htcl.c
Examining data/libamplsolver-0~20190702/ws_desc.c
Examining data/libamplsolver-0~20190702/printf.c
Examining data/libamplsolver-0~20190702/obj_adj0.c
Examining data/libamplsolver-0~20190702/duthes.c
Examining data/libamplsolver-0~20190702/funcadd1.c

FINAL RESULTS:

data/libamplsolver-0~20190702/funcadd.h:384:8:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
#undef gets
data/libamplsolver-0~20190702/funcadd.h:421:9:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
#define gets		Error - use "fgets" rather than "gets"
data/libamplsolver-0~20190702/solvers/funcadd.h:384:8:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
#undef gets
data/libamplsolver-0~20190702/solvers/funcadd.h:421:9:  [5] (buffer) gets:
  Does not check for buffer overflows (CWE-120, CWE-20). Use fgets() instead.
#define gets		Error - use "fgets" rather than "gets"
data/libamplsolver-0~20190702/dtoa.c:2755:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy((char*)decimalpoint_cache, (const char*)s0);
data/libamplsolver-0~20190702/fg_read.c:1647:31:  [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).
					fi->name = (Const char *)strcpy((char*)
data/libamplsolver-0~20190702/fgh_read.c:1562:31:  [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).
					fi->name = (Const char *)strcpy((char*)
data/libamplsolver-0~20190702/fpinit.c:145:21:  [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.
	!!!! How does this system work?
data/libamplsolver-0~20190702/func_add.c:257:9:  [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.
#define popen _popen
data/libamplsolver-0~20190702/func_add.c:267:8:  [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.
#undef popen
data/libamplsolver-0~20190702/func_add.c:268:9:  [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.
#define popen no_popen
data/libamplsolver-0~20190702/func_add.c:357:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(s, dir);
data/libamplsolver-0~20190702/func_add.c:360:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(s+Ld, pfx);
data/libamplsolver-0~20190702/func_add.c:408:16:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			AE.PrintF = printf;
data/libamplsolver-0~20190702/func_add.c:409:17:  [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.
			AE.FprintF = fprintf;
data/libamplsolver-0~20190702/func_add.c:410:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			AE.SprintF = sprintf;
data/libamplsolver-0~20190702/func_add.c:411:18:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			AE.SnprintF = snprintf;
data/libamplsolver-0~20190702/func_add.c:412:18:  [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.
			AE.VfprintF = vfprintf;
data/libamplsolver-0~20190702/func_add.c:413:18:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			AE.VsprintF = vsprintf;
data/libamplsolver-0~20190702/func_add.c:414:19:  [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.
			AE.VsnprintF = vsnprintf;
data/libamplsolver-0~20190702/func_add.c:436:16:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			AE.Fscanf = fscanf;
data/libamplsolver-0~20190702/func_add.c:442:15:  [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.
			AE.Popen = popen;
data/libamplsolver-0~20190702/func_add.c:445:15:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			AE.Scanf = scanf;
data/libamplsolver-0~20190702/func_add.c:448:16:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			AE.Sscanf = sscanf;
data/libamplsolver-0~20190702/funcadd.h:336:8:  [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.
#undef fprintf
data/libamplsolver-0~20190702/funcadd.h:338:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef printf
data/libamplsolver-0~20190702/funcadd.h:339:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/libamplsolver-0~20190702/funcadd.h:340:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/libamplsolver-0~20190702/funcadd.h:342:8:  [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.
#undef vfprintf
data/libamplsolver-0~20190702/funcadd.h:343:8:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef vsprintf
data/libamplsolver-0~20190702/funcadd.h:344:8:  [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.
#undef vsnprintf
data/libamplsolver-0~20190702/funcadd.h:349:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define printf	(*ae->PrintF)
data/libamplsolver-0~20190702/funcadd.h:350:9:  [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 fprintf (*ae->FprintF)
data/libamplsolver-0~20190702/funcadd.h:351:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf (*ae->SnprintF)
data/libamplsolver-0~20190702/funcadd.h:352:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define sprintf (*ae->SprintF)
data/libamplsolver-0~20190702/funcadd.h:354:9:  [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.
#define vfprintf (*ae->VfprintF)
data/libamplsolver-0~20190702/funcadd.h:355:9:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define vsprintf (*ae->VsprintF)
data/libamplsolver-0~20190702/funcadd.h:356:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf (*ae->VsnprintF)
data/libamplsolver-0~20190702/funcadd.h:378:8:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef fscanf
data/libamplsolver-0~20190702/funcadd.h:387:8:  [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.
#undef popen
data/libamplsolver-0~20190702/funcadd.h:392:8:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef scanf
data/libamplsolver-0~20190702/funcadd.h:395:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef sscanf
data/libamplsolver-0~20190702/funcadd.h:400:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vprintf
data/libamplsolver-0~20190702/funcadd.h:415:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define fscanf		(*ae->Fscanf)
data/libamplsolver-0~20190702/funcadd.h:424:9:  [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.
#define popen		(*ae->Popen)
data/libamplsolver-0~20190702/funcadd.h:429:9:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
#define scanf		(*ae->Scanf)
data/libamplsolver-0~20190702/funcadd.h:432:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define sscanf		(*ae->Sscanf)
data/libamplsolver-0~20190702/funcadd.h:437:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vprintf(x,y)	(*ae->VfprintF)(ae->StdOut,(x),(y))
data/libamplsolver-0~20190702/funcadd1.c:304:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(p.name = (char*)(h+1), name);
data/libamplsolver-0~20190702/funcadd1.c:350:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					fprintf(Stderr, cs ? ":\n%s\n" : ".\n", cs);
data/libamplsolver-0~20190702/funcadd1.c:421:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf+nx+ns, afdll);
data/libamplsolver-0~20190702/getstub.c:628:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, c >= ' ' && c < 0x7f ? "'%c'" : "'\\x%x'", c);
data/libamplsolver-0~20190702/mip_pri.c:237:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf0, buf);
data/libamplsolver-0~20190702/mip_pri.c:296:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(bad ? "Valid $mip_priorities seen:\n"
data/libamplsolver-0~20190702/misc.c:66:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(Stderr, fmt, ap);
data/libamplsolver-0~20190702/misc.c:795: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 = (char*)(D+1), sufname);
data/libamplsolver-0~20190702/misc.c:1047:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(Stderr, fmt, ap);
data/libamplsolver-0~20190702/names.c:35:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(stub_end, suf);
data/libamplsolver-0~20190702/names.c:40:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(*nam++ = (char*)mem(s-buf+1), buf);
data/libamplsolver-0~20190702/names.c:91: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(rv, buf);
data/libamplsolver-0~20190702/names.c:123: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(rv, buf);
data/libamplsolver-0~20190702/names.c:144: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(rv, buf);
data/libamplsolver-0~20190702/names.c:170: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(rv, buf);
data/libamplsolver-0~20190702/pfg_read.c:4501:31:  [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).
					fi->name = (Const char *)strcpy((char*)
data/libamplsolver-0~20190702/repwhere.c:126:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, nfmt[k1], i + 1);
data/libamplsolver-0~20190702/repwhere.c:149:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(Stderr, fmt, ap);
data/libamplsolver-0~20190702/repwhere.c:174:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, R->fmt, R->who, R->a);
data/libamplsolver-0~20190702/repwhere.c:180:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, R->fmt, R->who, R->a, R->u.b);
data/libamplsolver-0~20190702/repwhere.c:186:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, R->fmt, R->who, R->u.s);
data/libamplsolver-0~20190702/repwhere.c:469:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, fmt, fi->name, s);
data/libamplsolver-0~20190702/solvers/dtoa.c:2755:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy((char*)decimalpoint_cache, (const char*)s0);
data/libamplsolver-0~20190702/solvers/fg_read.c:1647:31:  [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).
					fi->name = (Const char *)strcpy((char*)
data/libamplsolver-0~20190702/solvers/fgh_read.c:1562:31:  [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).
					fi->name = (Const char *)strcpy((char*)
data/libamplsolver-0~20190702/solvers/fpinit.c:145:21:  [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.
	!!!! How does this system work?
data/libamplsolver-0~20190702/solvers/func_add.c:257:9:  [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.
#define popen _popen
data/libamplsolver-0~20190702/solvers/func_add.c:267:8:  [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.
#undef popen
data/libamplsolver-0~20190702/solvers/func_add.c:268:9:  [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.
#define popen no_popen
data/libamplsolver-0~20190702/solvers/func_add.c:357:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(s, dir);
data/libamplsolver-0~20190702/solvers/func_add.c:360:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(s+Ld, pfx);
data/libamplsolver-0~20190702/solvers/func_add.c:408:16:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			AE.PrintF = printf;
data/libamplsolver-0~20190702/solvers/func_add.c:409:17:  [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.
			AE.FprintF = fprintf;
data/libamplsolver-0~20190702/solvers/func_add.c:410:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			AE.SprintF = sprintf;
data/libamplsolver-0~20190702/solvers/func_add.c:411:18:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			AE.SnprintF = snprintf;
data/libamplsolver-0~20190702/solvers/func_add.c:412:18:  [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.
			AE.VfprintF = vfprintf;
data/libamplsolver-0~20190702/solvers/func_add.c:413:18:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			AE.VsprintF = vsprintf;
data/libamplsolver-0~20190702/solvers/func_add.c:414:19:  [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.
			AE.VsnprintF = vsnprintf;
data/libamplsolver-0~20190702/solvers/func_add.c:436:16:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			AE.Fscanf = fscanf;
data/libamplsolver-0~20190702/solvers/func_add.c:442:15:  [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.
			AE.Popen = popen;
data/libamplsolver-0~20190702/solvers/func_add.c:445:15:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			AE.Scanf = scanf;
data/libamplsolver-0~20190702/solvers/func_add.c:448:16:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			AE.Sscanf = sscanf;
data/libamplsolver-0~20190702/solvers/funcadd.h:336:8:  [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.
#undef fprintf
data/libamplsolver-0~20190702/solvers/funcadd.h:338:8:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef printf
data/libamplsolver-0~20190702/solvers/funcadd.h:339:8:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef sprintf
data/libamplsolver-0~20190702/solvers/funcadd.h:340:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#undef snprintf
data/libamplsolver-0~20190702/solvers/funcadd.h:342:8:  [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.
#undef vfprintf
data/libamplsolver-0~20190702/solvers/funcadd.h:343:8:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#undef vsprintf
data/libamplsolver-0~20190702/solvers/funcadd.h:344:8:  [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.
#undef vsnprintf
data/libamplsolver-0~20190702/solvers/funcadd.h:349:9:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define printf	(*ae->PrintF)
data/libamplsolver-0~20190702/solvers/funcadd.h:350:9:  [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 fprintf (*ae->FprintF)
data/libamplsolver-0~20190702/solvers/funcadd.h:351:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf (*ae->SnprintF)
data/libamplsolver-0~20190702/solvers/funcadd.h:352:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define sprintf (*ae->SprintF)
data/libamplsolver-0~20190702/solvers/funcadd.h:354:9:  [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.
#define vfprintf (*ae->VfprintF)
data/libamplsolver-0~20190702/solvers/funcadd.h:355:9:  [4] (buffer) vsprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#define vsprintf (*ae->VsprintF)
data/libamplsolver-0~20190702/solvers/funcadd.h:356:9:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define vsnprintf (*ae->VsnprintF)
data/libamplsolver-0~20190702/solvers/funcadd.h:378:8:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef fscanf
data/libamplsolver-0~20190702/solvers/funcadd.h:387:8:  [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.
#undef popen
data/libamplsolver-0~20190702/solvers/funcadd.h:392:8:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef scanf
data/libamplsolver-0~20190702/solvers/funcadd.h:395:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#undef sscanf
data/libamplsolver-0~20190702/solvers/funcadd.h:400:8:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#undef vprintf
data/libamplsolver-0~20190702/solvers/funcadd.h:415:9:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define fscanf		(*ae->Fscanf)
data/libamplsolver-0~20190702/solvers/funcadd.h:424:9:  [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.
#define popen		(*ae->Popen)
data/libamplsolver-0~20190702/solvers/funcadd.h:429:9:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
#define scanf		(*ae->Scanf)
data/libamplsolver-0~20190702/solvers/funcadd.h:432:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
#define sscanf		(*ae->Sscanf)
data/libamplsolver-0~20190702/solvers/funcadd.h:437:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define vprintf(x,y)	(*ae->VfprintF)(ae->StdOut,(x),(y))
data/libamplsolver-0~20190702/solvers/funcadd1.c:304:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(p.name = (char*)(h+1), name);
data/libamplsolver-0~20190702/solvers/funcadd1.c:350:6:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
					fprintf(Stderr, cs ? ":\n%s\n" : ".\n", cs);
data/libamplsolver-0~20190702/solvers/funcadd1.c:421:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf+nx+ns, afdll);
data/libamplsolver-0~20190702/solvers/getstub.c:628:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, c >= ' ' && c < 0x7f ? "'%c'" : "'\\x%x'", c);
data/libamplsolver-0~20190702/solvers/mip_pri.c:237:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(buf0, buf);
data/libamplsolver-0~20190702/solvers/mip_pri.c:296:3:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		printf(bad ? "Valid $mip_priorities seen:\n"
data/libamplsolver-0~20190702/solvers/misc.c:66:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(Stderr, fmt, ap);
data/libamplsolver-0~20190702/solvers/misc.c:795: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 = (char*)(D+1), sufname);
data/libamplsolver-0~20190702/solvers/misc.c:1047:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(Stderr, fmt, ap);
data/libamplsolver-0~20190702/solvers/names.c:35:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(stub_end, suf);
data/libamplsolver-0~20190702/solvers/names.c:40:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(*nam++ = (char*)mem(s-buf+1), buf);
data/libamplsolver-0~20190702/solvers/names.c:91: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(rv, buf);
data/libamplsolver-0~20190702/solvers/names.c:123: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(rv, buf);
data/libamplsolver-0~20190702/solvers/names.c:144: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(rv, buf);
data/libamplsolver-0~20190702/solvers/names.c:170: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(rv, buf);
data/libamplsolver-0~20190702/solvers/pfg_read.c:4501:31:  [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).
					fi->name = (Const char *)strcpy((char*)
data/libamplsolver-0~20190702/solvers/repwhere.c:126:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, nfmt[k1], i + 1);
data/libamplsolver-0~20190702/solvers/repwhere.c:149:2:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vfprintf(Stderr, fmt, ap);
data/libamplsolver-0~20190702/solvers/repwhere.c:174:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, R->fmt, R->who, R->a);
data/libamplsolver-0~20190702/solvers/repwhere.c:180:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, R->fmt, R->who, R->a, R->u.b);
data/libamplsolver-0~20190702/solvers/repwhere.c:186:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, R->fmt, R->who, R->u.s);
data/libamplsolver-0~20190702/solvers/repwhere.c:469:2:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	fprintf(Stderr, fmt, fi->name, s);
data/libamplsolver-0~20190702/solvers/writesol.c:217:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(bsmsg+nlneed, msg);
data/libamplsolver-0~20190702/solvers/writesol.c:416:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(f, s == s1 ? " \n" : "%.*s\n",s1-s,s);
data/libamplsolver-0~20190702/solvers/writesol.c:503:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(buf);
data/libamplsolver-0~20190702/writesol.c:217:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(bsmsg+nlneed, msg);
data/libamplsolver-0~20190702/writesol.c:416:5:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
				fprintf(f, s == s1 ? " \n" : "%.*s\n",s1-s,s);
data/libamplsolver-0~20190702/writesol.c:503:4:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
			printf(buf);
data/libamplsolver-0~20190702/asl.h:1140:8:  [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.
#undef getenv
data/libamplsolver-0~20190702/asl.h:1141:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define getenv getenv_ASL
data/libamplsolver-0~20190702/fpinitmt.c:169: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.
	if (s = getenv("SW_sigpipe")) {
data/libamplsolver-0~20190702/func_add.c:46:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((s = getenv("randseed"))
data/libamplsolver-0~20190702/func_add.c:243:9:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#define tempnam _tempnam
data/libamplsolver-0~20190702/func_add.c:252:1:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
tempnam(const char *dir, const char *pfx)
data/libamplsolver-0~20190702/func_add.c:347:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((c = getenv("TMPDIR")) && isdir(c))
data/libamplsolver-0~20190702/func_add.c:385:8:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#undef tempnam
data/libamplsolver-0~20190702/func_add.c:386:9:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#define tempnam Tempnam
data/libamplsolver-0~20190702/func_add.c:387:8:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#undef tmpnam
data/libamplsolver-0~20190702/func_add.c:388:9:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define tmpnam Tmpnam
data/libamplsolver-0~20190702/func_add.c:400:24:  [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.
		 && !(i_option_ASL = getenv("ampl_funclibs")))
data/libamplsolver-0~20190702/func_add.c:401:24:  [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.
		      i_option_ASL = getenv("AMPLFUNC");
data/libamplsolver-0~20190702/func_add.c:449:30:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
			AE.Tempnam = Tempnam_cast tempnam;
data/libamplsolver-0~20190702/func_add.c:451:16:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
			AE.Tmpnam = tmpnam;
data/libamplsolver-0~20190702/funcadd.h:337:8:  [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.
#undef getenv
data/libamplsolver-0~20190702/funcadd.h:362:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define getenv(x) (*ae->Getenv)(x)
data/libamplsolver-0~20190702/funcadd.h:396:8:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#undef tempnam
data/libamplsolver-0~20190702/funcadd.h:398:8:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#undef tmpnam
data/libamplsolver-0~20190702/funcadd.h:433:9:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#define tempnam		(*ae->Tempnam)
data/libamplsolver-0~20190702/funcadd.h:435:9:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define tmpnam		(*ae->Tmpnam)
data/libamplsolver-0~20190702/funcadd1.c:133:21:  [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.
#define dlopen(x,y) LoadLibrary(x)
data/libamplsolver-0~20190702/getenv.c:28:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv();
data/libamplsolver-0~20190702/getenv.c:32: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/libamplsolver-0~20190702/getenv.c:43: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/libamplsolver-0~20190702/getstub.c:421:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((s = getenv("solver_msg"))) {
data/libamplsolver-0~20190702/getstub.c:576:25:  [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 (oi->opname && (s = getenv(oi->opname)))
data/libamplsolver-0~20190702/mip_pri.c:70: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.
	if (!(s0 = getenv("mip_priorities")))
data/libamplsolver-0~20190702/mip_pri.c:102:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((s = getenv("solver")))
data/libamplsolver-0~20190702/obj_prec.c:38:24:  [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.
		obj_prec__ASL = (s = getenv("objective_precision"))
data/libamplsolver-0~20190702/solvers/asl.h:1140:8:  [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.
#undef getenv
data/libamplsolver-0~20190702/solvers/asl.h:1141:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define getenv getenv_ASL
data/libamplsolver-0~20190702/solvers/fpinitmt.c:169: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.
	if (s = getenv("SW_sigpipe")) {
data/libamplsolver-0~20190702/solvers/func_add.c:46:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((s = getenv("randseed"))
data/libamplsolver-0~20190702/solvers/func_add.c:243:9:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#define tempnam _tempnam
data/libamplsolver-0~20190702/solvers/func_add.c:252:1:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
tempnam(const char *dir, const char *pfx)
data/libamplsolver-0~20190702/solvers/func_add.c:347:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if ((c = getenv("TMPDIR")) && isdir(c))
data/libamplsolver-0~20190702/solvers/func_add.c:385:8:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#undef tempnam
data/libamplsolver-0~20190702/solvers/func_add.c:386:9:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#define tempnam Tempnam
data/libamplsolver-0~20190702/solvers/func_add.c:387:8:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#undef tmpnam
data/libamplsolver-0~20190702/solvers/func_add.c:388:9:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define tmpnam Tmpnam
data/libamplsolver-0~20190702/solvers/func_add.c:400:24:  [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.
		 && !(i_option_ASL = getenv("ampl_funclibs")))
data/libamplsolver-0~20190702/solvers/func_add.c:401:24:  [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.
		      i_option_ASL = getenv("AMPLFUNC");
data/libamplsolver-0~20190702/solvers/func_add.c:449:30:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
			AE.Tempnam = Tempnam_cast tempnam;
data/libamplsolver-0~20190702/solvers/func_add.c:451:16:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
			AE.Tmpnam = tmpnam;
data/libamplsolver-0~20190702/solvers/funcadd.h:337:8:  [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.
#undef getenv
data/libamplsolver-0~20190702/solvers/funcadd.h:362:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
#define getenv(x) (*ae->Getenv)(x)
data/libamplsolver-0~20190702/solvers/funcadd.h:396:8:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#undef tempnam
data/libamplsolver-0~20190702/solvers/funcadd.h:398:8:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#undef tmpnam
data/libamplsolver-0~20190702/solvers/funcadd.h:433:9:  [3] (tmpfile) tempnam:
  Temporary file race condition (CWE-377).
#define tempnam		(*ae->Tempnam)
data/libamplsolver-0~20190702/solvers/funcadd.h:435:9:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
#define tmpnam		(*ae->Tmpnam)
data/libamplsolver-0~20190702/solvers/funcadd1.c:133:21:  [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.
#define dlopen(x,y) LoadLibrary(x)
data/libamplsolver-0~20190702/solvers/getenv.c:28:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
extern char *getenv();
data/libamplsolver-0~20190702/solvers/getenv.c:32: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/libamplsolver-0~20190702/solvers/getenv.c:43: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/libamplsolver-0~20190702/solvers/getstub.c:421:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((s = getenv("solver_msg"))) {
data/libamplsolver-0~20190702/solvers/getstub.c:576:25:  [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 (oi->opname && (s = getenv(oi->opname)))
data/libamplsolver-0~20190702/solvers/mip_pri.c:70: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.
	if (!(s0 = getenv("mip_priorities")))
data/libamplsolver-0~20190702/solvers/mip_pri.c:102:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((s = getenv("solver")))
data/libamplsolver-0~20190702/solvers/obj_prec.c:38:24:  [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.
		obj_prec__ASL = (s = getenv("objective_precision"))
data/libamplsolver-0~20190702/solvers/sos_add.c:599:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((s = getenv("pl_bigM")))
data/libamplsolver-0~20190702/solvers/writesol.c:175:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!(s = getenv("version")))
data/libamplsolver-0~20190702/sos_add.c:599:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		if ((s = getenv("pl_bigM")))
data/libamplsolver-0~20190702/writesol.c:175:12:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	if (!(s = getenv("version")))
data/libamplsolver-0~20190702/arithchk.c:198:6:  [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("arith.h", "w");
data/libamplsolver-0~20190702/asl.h:224:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rl_buf[80];
data/libamplsolver-0~20190702/b_search.c:54:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char lc[256];
data/libamplsolver-0~20190702/conpval.c:984:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(x, ow, no*sizeof(real));
data/libamplsolver-0~20190702/conscale.c:32: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.
	static const char *RN[6] = { "???", "f", "fg", "fgh", "pfg", "pfgh" };
data/libamplsolver-0~20190702/conscale.c:172: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(asl->i.lscale = (real*)mem_ASL(asl,L), asl->i.cscale, L);
data/libamplsolver-0~20190702/dtoa.c:1544: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(TI1, &TI0, sizeof(ThInfo));
data/libamplsolver-0~20190702/dtoa.c:1648:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define Bcopy(x,y) memcpy((char *)&x->sign, (char *)&y->sign, \
data/libamplsolver-0~20190702/dtoa.c:2483:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char hexdig[256];
data/libamplsolver-0~20190702/dtoa.c:2503:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char hexdig[256] = {
data/libamplsolver-0~20190702/fg_read.c:1073:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(zci, vrefx, i*sizeof(int));
data/libamplsolver-0~20190702/fg_read.c:1440:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[128];
data/libamplsolver-0~20190702/fg_write.c:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/libamplsolver-0~20190702/fg_write.c:615:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256], *nbuf, *ts;
data/libamplsolver-0~20190702/fg_write.c:686: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(ts, stub, c);
data/libamplsolver-0~20190702/fg_write.c:687: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(ts+c, ".nl");
data/libamplsolver-0~20190702/fg_write.c:692: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).
	nl = fopen(name, "wb");
data/libamplsolver-0~20190702/fgh_read.c:1029:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(zci, vrefx, i*sizeof(int));
data/libamplsolver-0~20190702/fgh_read.c:1389:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[128];
data/libamplsolver-0~20190702/func_add.c:361:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(s + Ld + Lp, "XXXXXX");
data/libamplsolver-0~20190702/func_add.c:362:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((i = mkstemp(s)))
data/libamplsolver-0~20190702/func_add.c:431: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).
			AE.Fopen = fopen;
data/libamplsolver-0~20190702/func_add.c:450:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			AE.Tmpfile = tmpfile;
data/libamplsolver-0~20190702/func_add.c:459:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ae = (AmplExports*)M1alloc(sizeof(AmplExports)),
data/libamplsolver-0~20190702/func_add.c:537:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(Fa1, Fa, nFa*sizeof(Funcadd*));
data/libamplsolver-0~20190702/funcadd.h:373:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#undef fopen
data/libamplsolver-0~20190702/funcadd.h:397:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#undef tmpfile
data/libamplsolver-0~20190702/funcadd.h:410: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).
#define fopen		(*ae->Fopen)
data/libamplsolver-0~20190702/funcadd.h:434:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#define tmpfile		(*ae->Tmpfile)
data/libamplsolver-0~20190702/funcadd1.c:233:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen(name, "rb")))
data/libamplsolver-0~20190702/funcadd1.c:305:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(h, &p, sizeof(NS_pair));
data/libamplsolver-0~20190702/funcadd1.c:338:24:  [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 (!*warned && (f = fopen(name,"rb"))) {
data/libamplsolver-0~20190702/funcadd1.c:374:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf0[2048], *buf;
data/libamplsolver-0~20190702/funcadd1.c:390:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, buf0, nx);
data/libamplsolver-0~20190702/g_fmt.c:49:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(b, "%.*g", prec ? prec : g_fmt_prec, x);
data/libamplsolver-0~20190702/g_fmt.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *s, sbuf[400], *se;
data/libamplsolver-0~20190702/getstub.c:250:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libamplsolver-0~20190702/jac0dim.c:118:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(s, ".nl");
data/libamplsolver-0~20190702/jac0dim.c:119: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).
	nl = fopen(filename, "rb");
data/libamplsolver-0~20190702/jac0dim.c:123:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		nl = fopen(filename, "rb");
data/libamplsolver-0~20190702/jacinc.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(X, X0, asl->i.n_var0 * sizeof(real));
data/libamplsolver-0~20190702/jacinc1.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(X, X0, asl->i.n_var0 * sizeof(real));
data/libamplsolver-0~20190702/mip_pri.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512], buf0[512], namechar[256];
data/libamplsolver-0~20190702/mip_pri.c:108:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(stub_end, ".col");
data/libamplsolver-0~20190702/mip_pri.c:109:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen(filename, "r"))) {
data/libamplsolver-0~20190702/misc.c:713:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(a, &edagpars_ASL, sizeof(Edagpars));
data/libamplsolver-0~20190702/misc.c:772:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *s, sufname[128];
data/libamplsolver-0~20190702/misc.c:1068:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *bf, buf[4096], *s, *s1, *se;
data/libamplsolver-0~20190702/misc.c:1120: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).
		if (!(f = fopen(bf, "rb")))
data/libamplsolver-0~20190702/misc.c:1357: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(asl->i.Cgrad0 = cgp, Cgrad, m*sizeof(cgrad*));
data/libamplsolver-0~20190702/names.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512], **nam, **ne, **rv, *s;
data/libamplsolver-0~20190702/names.c:36:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(filename, "r"))) {
data/libamplsolver-0~20190702/names.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], **np, *rv;
data/libamplsolver-0~20190702/names.c:113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], **np, *rv;
data/libamplsolver-0~20190702/names.c:131:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], **np, *rv;
data/libamplsolver-0~20190702/names.c:152:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[40], **np, *rv;
data/libamplsolver-0~20190702/nlp.h:175:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	sym[1];
data/libamplsolver-0~20190702/nlp2.h:208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	sym[1];
data/libamplsolver-0~20190702/obj_adj.c:436:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*pow = ws, ow, nobj*sizeof(real));
data/libamplsolver-0~20190702/obj_prec.c:39:6:  [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).
			? atoi(s) : 0;
data/libamplsolver-0~20190702/objval.c:36: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(Lastx, X, x0len);
data/libamplsolver-0~20190702/pfg_read.c:327:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(m = new_mblk(e->k), m0 = *e->mp, e->esize * e->nmax);
data/libamplsolver-0~20190702/pfg_read.c:963: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(r1->ui = (int*)(r1+1), r->ui, uilen);
data/libamplsolver-0~20190702/pfg_read.c:965:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(r1->lap, r->lap, len);
data/libamplsolver-0~20190702/pfg_read.c:1422: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(ep1, slscr, nlin*sizeof(expr*));
data/libamplsolver-0~20190702/pfg_read.c:1435: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(ep1, ep, nnl*sizeof(expr*));
data/libamplsolver-0~20190702/pfg_read.c:1681:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(cs, asl->P.Split_ce, nsce*sizeof(split_ce));
data/libamplsolver-0~20190702/pfg_read.c:1682: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(ce, cexps, cexp_n*sizeof(cexp));
data/libamplsolver-0~20190702/pfg_read.c:1683: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(z, zl, cexp_n*sizeof(int));
data/libamplsolver-0~20190702/pfg_read.c:1684: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(vp, varp, cexp_n*sizeof(expr_v*));
data/libamplsolver-0~20190702/pfg_read.c:1709: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(z, zci, n0*sizeof(int));
data/libamplsolver-0~20190702/pfg_read.c:1710: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(z+n, zci+n0, n0*sizeof(int));
data/libamplsolver-0~20190702/pfg_read.c:1881: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(ep, vp0, n*sizeof(expr*));
data/libamplsolver-0~20190702/pfg_read.c:2111: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(ep1, ep0 = e->L.ep, n*sizeof(expr*));
data/libamplsolver-0~20190702/pfg_read.c:2218:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(cp, cp0, len);
data/libamplsolver-0~20190702/pfg_read.c:2456:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(b, b0, n*sizeof(psb_elem));
data/libamplsolver-0~20190702/pfg_read.c:2582: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(g1 = g, f->g, n*sizeof(psg_elem));
data/libamplsolver-0~20190702/pfg_read.c:2929:6:  [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(args1, e->L.ep,
data/libamplsolver-0~20190702/pfg_read.c:3236: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(r, imap, imap_len*sizeof(int));
data/libamplsolver-0~20190702/pfg_read.c:3685:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(zci, vrefx, i*sizeof(int));
data/libamplsolver-0~20190702/pfg_read.c:4287:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[128];
data/libamplsolver-0~20190702/printf.c:201:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pfbuf_next, buf, len);
data/libamplsolver-0~20190702/printf.c:245:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 static char qtype[256];
data/libamplsolver-0~20190702/printf.c:246:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 static char dig[256] = {
data/libamplsolver-0~20190702/printf.c:396:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], sbuf[400];
data/libamplsolver-0~20190702/printf.c:1105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[Bsize];
data/libamplsolver-0~20190702/printf.c:1162:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[Bsize];
data/libamplsolver-0~20190702/printf.c:1218:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[Bsize];
data/libamplsolver-0~20190702/printf.c:1288: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, s0, L);
data/libamplsolver-0~20190702/printf.c:1298:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[Bsize];
data/libamplsolver-0~20190702/printf.c:1312:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(f.u.sf, buf, f.lastlen);
data/libamplsolver-0~20190702/readsol.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512], *s, *se;
data/libamplsolver-0~20190702/readsol.c:85:6:  [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(fname, "rb");
data/libamplsolver-0~20190702/readsol.c:233:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ampl_options, Options, (nOpts+1)*sizeof(fint));
data/libamplsolver-0~20190702/readsol.c:359:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(stub_end, ".sol");
data/libamplsolver-0~20190702/repwhere.c:57: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.
	static const char *what[2] = { "constraint", "objective" };
data/libamplsolver-0~20190702/repwhere.c:58: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.
	static const char *nfmt[2] = { "%d: ", "function: " };
data/libamplsolver-0~20190702/repwhere.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *b, buf[512];
data/libamplsolver-0~20190702/repwhere.c:69: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(stub_end, ".fix");
data/libamplsolver-0~20190702/repwhere.c:71:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((f = fopen(filename, "r"))) {
data/libamplsolver-0~20190702/repwhere.c:109: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(stub_end, ".row");
data/libamplsolver-0~20190702/repwhere.c:110:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((f = fopen(filename, "r"))) {
data/libamplsolver-0~20190702/repwhere.c:456:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(D->mbnext, s, L);
data/libamplsolver-0~20190702/rops.c:931:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/libamplsolver-0~20190702/rops.c:975:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *b, *s, sbuf[400], *se;
data/libamplsolver-0~20190702/rops.c:976:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[96];
data/libamplsolver-0~20190702/rops2.c:1094:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/libamplsolver-0~20190702/rops2.c:1107:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *b, *s, sbuf[400], *se;
data/libamplsolver-0~20190702/rops2.c:1108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[96];
data/libamplsolver-0~20190702/solvers/arithchk.c:198:6:  [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("arith.h", "w");
data/libamplsolver-0~20190702/solvers/asl.h:224:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char rl_buf[80];
data/libamplsolver-0~20190702/solvers/b_search.c:54:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char lc[256];
data/libamplsolver-0~20190702/solvers/conpval.c:984:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(x, ow, no*sizeof(real));
data/libamplsolver-0~20190702/solvers/conscale.c:32: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.
	static const char *RN[6] = { "???", "f", "fg", "fgh", "pfg", "pfgh" };
data/libamplsolver-0~20190702/solvers/conscale.c:172: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(asl->i.lscale = (real*)mem_ASL(asl,L), asl->i.cscale, L);
data/libamplsolver-0~20190702/solvers/dtoa.c:1544: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(TI1, &TI0, sizeof(ThInfo));
data/libamplsolver-0~20190702/solvers/dtoa.c:1648:20:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define Bcopy(x,y) memcpy((char *)&x->sign, (char *)&y->sign, \
data/libamplsolver-0~20190702/solvers/dtoa.c:2483:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char hexdig[256];
data/libamplsolver-0~20190702/solvers/dtoa.c:2503:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static unsigned char hexdig[256] = {
data/libamplsolver-0~20190702/solvers/fg_read.c:1073:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(zci, vrefx, i*sizeof(int));
data/libamplsolver-0~20190702/solvers/fg_read.c:1440:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[128];
data/libamplsolver-0~20190702/solvers/fg_write.c:48:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/libamplsolver-0~20190702/solvers/fg_write.c:615:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256], *nbuf, *ts;
data/libamplsolver-0~20190702/solvers/fg_write.c:686: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(ts, stub, c);
data/libamplsolver-0~20190702/solvers/fg_write.c:687: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(ts+c, ".nl");
data/libamplsolver-0~20190702/solvers/fg_write.c:692: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).
	nl = fopen(name, "wb");
data/libamplsolver-0~20190702/solvers/fgh_read.c:1029:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(zci, vrefx, i*sizeof(int));
data/libamplsolver-0~20190702/solvers/fgh_read.c:1389:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[128];
data/libamplsolver-0~20190702/solvers/func_add.c:361:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(s + Ld + Lp, "XXXXXX");
data/libamplsolver-0~20190702/solvers/func_add.c:362:11:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	if ((i = mkstemp(s)))
data/libamplsolver-0~20190702/solvers/func_add.c:431: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).
			AE.Fopen = fopen;
data/libamplsolver-0~20190702/solvers/func_add.c:450:17:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
			AE.Tmpfile = tmpfile;
data/libamplsolver-0~20190702/solvers/func_add.c:459:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(ae = (AmplExports*)M1alloc(sizeof(AmplExports)),
data/libamplsolver-0~20190702/solvers/func_add.c:537:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(Fa1, Fa, nFa*sizeof(Funcadd*));
data/libamplsolver-0~20190702/solvers/funcadd.h:373:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#undef fopen
data/libamplsolver-0~20190702/solvers/funcadd.h:397:8:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#undef tmpfile
data/libamplsolver-0~20190702/solvers/funcadd.h:410: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).
#define fopen		(*ae->Fopen)
data/libamplsolver-0~20190702/solvers/funcadd.h:434:9:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
#define tmpfile		(*ae->Tmpfile)
data/libamplsolver-0~20190702/solvers/funcadd1.c:233:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen(name, "rb")))
data/libamplsolver-0~20190702/solvers/funcadd1.c:305:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(h, &p, sizeof(NS_pair));
data/libamplsolver-0~20190702/solvers/funcadd1.c:338:24:  [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 (!*warned && (f = fopen(name,"rb"))) {
data/libamplsolver-0~20190702/solvers/funcadd1.c:374:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf0[2048], *buf;
data/libamplsolver-0~20190702/solvers/funcadd1.c:390:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(buf, buf0, nx);
data/libamplsolver-0~20190702/solvers/g_fmt.c:49:2:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	sprintf(b, "%.*g", prec ? prec : g_fmt_prec, x);
data/libamplsolver-0~20190702/solvers/g_fmt.c:54:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *s, sbuf[400], *se;
data/libamplsolver-0~20190702/solvers/getstub.c:250:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[256];
data/libamplsolver-0~20190702/solvers/jac0dim.c:118:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(s, ".nl");
data/libamplsolver-0~20190702/solvers/jac0dim.c:119: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).
	nl = fopen(filename, "rb");
data/libamplsolver-0~20190702/solvers/jac0dim.c:123:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		nl = fopen(filename, "rb");
data/libamplsolver-0~20190702/solvers/jacinc.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(X, X0, asl->i.n_var0 * sizeof(real));
data/libamplsolver-0~20190702/solvers/jacinc1.c:58:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(X, X0, asl->i.n_var0 * sizeof(real));
data/libamplsolver-0~20190702/solvers/mip_pri.c:68:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512], buf0[512], namechar[256];
data/libamplsolver-0~20190702/solvers/mip_pri.c:108:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(stub_end, ".col");
data/libamplsolver-0~20190702/solvers/mip_pri.c:109:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!(f = fopen(filename, "r"))) {
data/libamplsolver-0~20190702/solvers/misc.c:713:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(a, &edagpars_ASL, sizeof(Edagpars));
data/libamplsolver-0~20190702/solvers/misc.c:772:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *s, sufname[128];
data/libamplsolver-0~20190702/solvers/misc.c:1068:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *bf, buf[4096], *s, *s1, *se;
data/libamplsolver-0~20190702/solvers/misc.c:1120: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).
		if (!(f = fopen(bf, "rb")))
data/libamplsolver-0~20190702/solvers/misc.c:1357: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(asl->i.Cgrad0 = cgp, Cgrad, m*sizeof(cgrad*));
data/libamplsolver-0~20190702/solvers/names.c:31:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512], **nam, **ne, **rv, *s;
data/libamplsolver-0~20190702/solvers/names.c:36:11:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((f = fopen(filename, "r"))) {
data/libamplsolver-0~20190702/solvers/names.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], **np, *rv;
data/libamplsolver-0~20190702/solvers/names.c:113:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], **np, *rv;
data/libamplsolver-0~20190702/solvers/names.c:131:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], **np, *rv;
data/libamplsolver-0~20190702/solvers/names.c:152:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[40], **np, *rv;
data/libamplsolver-0~20190702/solvers/nlp.h:175:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	sym[1];
data/libamplsolver-0~20190702/solvers/nlp2.h:208:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char	sym[1];
data/libamplsolver-0~20190702/solvers/obj_adj.c:436:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(*pow = ws, ow, nobj*sizeof(real));
data/libamplsolver-0~20190702/solvers/obj_prec.c:39:6:  [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).
			? atoi(s) : 0;
data/libamplsolver-0~20190702/solvers/objval.c:36: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(Lastx, X, x0len);
data/libamplsolver-0~20190702/solvers/pfg_read.c:327:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(m = new_mblk(e->k), m0 = *e->mp, e->esize * e->nmax);
data/libamplsolver-0~20190702/solvers/pfg_read.c:963: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(r1->ui = (int*)(r1+1), r->ui, uilen);
data/libamplsolver-0~20190702/solvers/pfg_read.c:965:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(r1->lap, r->lap, len);
data/libamplsolver-0~20190702/solvers/pfg_read.c:1422: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(ep1, slscr, nlin*sizeof(expr*));
data/libamplsolver-0~20190702/solvers/pfg_read.c:1435: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(ep1, ep, nnl*sizeof(expr*));
data/libamplsolver-0~20190702/solvers/pfg_read.c:1681:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(cs, asl->P.Split_ce, nsce*sizeof(split_ce));
data/libamplsolver-0~20190702/solvers/pfg_read.c:1682: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(ce, cexps, cexp_n*sizeof(cexp));
data/libamplsolver-0~20190702/solvers/pfg_read.c:1683: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(z, zl, cexp_n*sizeof(int));
data/libamplsolver-0~20190702/solvers/pfg_read.c:1684: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(vp, varp, cexp_n*sizeof(expr_v*));
data/libamplsolver-0~20190702/solvers/pfg_read.c:1709: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(z, zci, n0*sizeof(int));
data/libamplsolver-0~20190702/solvers/pfg_read.c:1710: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(z+n, zci+n0, n0*sizeof(int));
data/libamplsolver-0~20190702/solvers/pfg_read.c:1881: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(ep, vp0, n*sizeof(expr*));
data/libamplsolver-0~20190702/solvers/pfg_read.c:2111: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(ep1, ep0 = e->L.ep, n*sizeof(expr*));
data/libamplsolver-0~20190702/solvers/pfg_read.c:2218:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(cp, cp0, len);
data/libamplsolver-0~20190702/solvers/pfg_read.c:2456:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(b, b0, n*sizeof(psb_elem));
data/libamplsolver-0~20190702/solvers/pfg_read.c:2582: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(g1 = g, f->g, n*sizeof(psg_elem));
data/libamplsolver-0~20190702/solvers/pfg_read.c:2929:6:  [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(args1, e->L.ep,
data/libamplsolver-0~20190702/solvers/pfg_read.c:3236: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(r, imap, imap_len*sizeof(int));
data/libamplsolver-0~20190702/solvers/pfg_read.c:3685:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(zci, vrefx, i*sizeof(int));
data/libamplsolver-0~20190702/solvers/pfg_read.c:4287:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char fname[128];
data/libamplsolver-0~20190702/solvers/printf.c:201:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(pfbuf_next, buf, len);
data/libamplsolver-0~20190702/solvers/printf.c:245:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 static char qtype[256];
data/libamplsolver-0~20190702/solvers/printf.c:246:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
 static char dig[256] = {
data/libamplsolver-0~20190702/solvers/printf.c:396:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], sbuf[400];
data/libamplsolver-0~20190702/solvers/printf.c:1105:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[Bsize];
data/libamplsolver-0~20190702/solvers/printf.c:1162:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[Bsize];
data/libamplsolver-0~20190702/solvers/printf.c:1218:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[Bsize];
data/libamplsolver-0~20190702/solvers/printf.c:1288: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, s0, L);
data/libamplsolver-0~20190702/solvers/printf.c:1298:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[Bsize];
data/libamplsolver-0~20190702/solvers/printf.c:1312:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(f.u.sf, buf, f.lastlen);
data/libamplsolver-0~20190702/solvers/readsol.c:77:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[512], *s, *se;
data/libamplsolver-0~20190702/solvers/readsol.c:85:6:  [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(fname, "rb");
data/libamplsolver-0~20190702/solvers/readsol.c:233:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ampl_options, Options, (nOpts+1)*sizeof(fint));
data/libamplsolver-0~20190702/solvers/readsol.c:359:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(stub_end, ".sol");
data/libamplsolver-0~20190702/solvers/repwhere.c:57: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.
	static const char *what[2] = { "constraint", "objective" };
data/libamplsolver-0~20190702/solvers/repwhere.c:58: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.
	static const char *nfmt[2] = { "%d: ", "function: " };
data/libamplsolver-0~20190702/solvers/repwhere.c:59:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *b, buf[512];
data/libamplsolver-0~20190702/solvers/repwhere.c:69: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(stub_end, ".fix");
data/libamplsolver-0~20190702/solvers/repwhere.c:71:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((f = fopen(filename, "r"))) {
data/libamplsolver-0~20190702/solvers/repwhere.c:109: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(stub_end, ".row");
data/libamplsolver-0~20190702/solvers/repwhere.c:110:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ((f = fopen(filename, "r"))) {
data/libamplsolver-0~20190702/solvers/repwhere.c:456:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(D->mbnext, s, L);
data/libamplsolver-0~20190702/solvers/rops.c:931:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/libamplsolver-0~20190702/solvers/rops.c:975:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *b, *s, sbuf[400], *se;
data/libamplsolver-0~20190702/solvers/rops.c:976:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[96];
data/libamplsolver-0~20190702/solvers/rops2.c:1094:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/libamplsolver-0~20190702/solvers/rops2.c:1107:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *b, *s, sbuf[400], *se;
data/libamplsolver-0~20190702/solvers/rops2.c:1108:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[96];
data/libamplsolver-0~20190702/solvers/sos_add.c:102:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nu, ol, sizeof(SufDesc));
data/libamplsolver-0~20190702/solvers/sos_add.c:103:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nu->u.r = (real*)Malloc(n*sizeof(real)), ol->u.r, n*sizeof(real));
data/libamplsolver-0~20190702/solvers/sos_add.c:244:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nss+1, asl->i.nsuff, 4*sizeof(int));
data/libamplsolver-0~20190702/solvers/sos_add.c:245:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sds, asl->i.suffixes, 4*sizeof(SufDesc*));
data/libamplsolver-0~20190702/solvers/sos_add.c:403: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(SI->v0 = (int*)Malloc(L), v0, L);
data/libamplsolver-0~20190702/solvers/sos_add.c:441:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(asl->i.nsuff, nss+1, 4*sizeof(int));
data/libamplsolver-0~20190702/solvers/sos_add.c:442:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(asl->i.suffixes, sds, 4*sizeof(SufDesc*));
data/libamplsolver-0~20190702/solvers/sphes.c:988:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tf, hcolstarts, (char*)hr - (char*)hcolstarts);
data/libamplsolver-0~20190702/solvers/sprintf.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/libamplsolver-0~20190702/solvers/stderr.c:55:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		Stderr = fopen("con","w");
data/libamplsolver-0~20190702/solvers/suf_sos.c:504: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(s0 + j*L, s0 + i*L, L);
data/libamplsolver-0~20190702/solvers/value.c:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], *rv;
data/libamplsolver-0~20190702/solvers/writesol.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sufid[8];
data/libamplsolver-0~20190702/solvers/writesol.c:44:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sh->sufid, "\nSuffix\n", 8);
data/libamplsolver-0~20190702/solvers/writesol.c:195:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *bsmsg, buf[80];
data/libamplsolver-0~20190702/solvers/writesol.c:261: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(y1, x, n_var*sizeof(real));
data/libamplsolver-0~20190702/solvers/writesol.c:276: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(y1, y, n_con*sizeof(real));
data/libamplsolver-0~20190702/solvers/writesol.c:301: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(stub_end, ".sol");
data/libamplsolver-0~20190702/solvers/writesol.c:304:6:  [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(solfname, wkind[binary]);
data/libamplsolver-0~20190702/solvers/x2check.c:36: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(Lastx, X, x0len);
data/libamplsolver-0~20190702/solvers/xp1known.c:51:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(Lastx, x, x0len);
data/libamplsolver-0~20190702/solvers/xp2known.c:63:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(Lastx, x, x0len);
data/libamplsolver-0~20190702/sos_add.c:102:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nu, ol, sizeof(SufDesc));
data/libamplsolver-0~20190702/sos_add.c:103:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nu->u.r = (real*)Malloc(n*sizeof(real)), ol->u.r, n*sizeof(real));
data/libamplsolver-0~20190702/sos_add.c:244:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(nss+1, asl->i.nsuff, 4*sizeof(int));
data/libamplsolver-0~20190702/sos_add.c:245:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sds, asl->i.suffixes, 4*sizeof(SufDesc*));
data/libamplsolver-0~20190702/sos_add.c:403: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(SI->v0 = (int*)Malloc(L), v0, L);
data/libamplsolver-0~20190702/sos_add.c:441:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(asl->i.nsuff, nss+1, 4*sizeof(int));
data/libamplsolver-0~20190702/sos_add.c:442:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(asl->i.suffixes, sds, 4*sizeof(SufDesc*));
data/libamplsolver-0~20190702/sphes.c:988:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(tf, hcolstarts, (char*)hr - (char*)hcolstarts);
data/libamplsolver-0~20190702/sprintf.c:78:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/libamplsolver-0~20190702/stderr.c:55:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		Stderr = fopen("con","w");
data/libamplsolver-0~20190702/suf_sos.c:504: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(s0 + j*L, s0 + i*L, L);
data/libamplsolver-0~20190702/value.c:106:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32], *rv;
data/libamplsolver-0~20190702/writesol.c:29:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char sufid[8];
data/libamplsolver-0~20190702/writesol.c:44:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(sh->sufid, "\nSuffix\n", 8);
data/libamplsolver-0~20190702/writesol.c:195:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *bsmsg, buf[80];
data/libamplsolver-0~20190702/writesol.c:261: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(y1, x, n_var*sizeof(real));
data/libamplsolver-0~20190702/writesol.c:276: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(y1, y, n_con*sizeof(real));
data/libamplsolver-0~20190702/writesol.c:301: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(stub_end, ".sol");
data/libamplsolver-0~20190702/writesol.c:304:6:  [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(solfname, wkind[binary]);
data/libamplsolver-0~20190702/x2check.c:36: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(Lastx, X, x0len);
data/libamplsolver-0~20190702/xp1known.c:51:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(Lastx, x, x0len);
data/libamplsolver-0~20190702/xp2known.c:63:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(Lastx, x, x0len);
data/libamplsolver-0~20190702/dtoa.c:2754: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).
				MALLOC(strlen((const char*)s0) + 1))) {
data/libamplsolver-0~20190702/fg_read.c:1338:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	k = getc(nl);
data/libamplsolver-0~20190702/fg_read.c:1342:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((k = getc(nl)) != ':') {
data/libamplsolver-0~20190702/fg_read.c:1349:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((k = getc(nl)) < 0) {
data/libamplsolver-0~20190702/fg_read.c:1413:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *s = (char*)(*ae->Tempmem)(al->TMI, strlen(fi->name) + 64);
data/libamplsolver-0~20190702/fg_read.c:1648: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).
						mem(memadj(strlen(fname)+1)),
data/libamplsolver-0~20190702/fg_write.c:176: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).
				u.i = strlen(s);
data/libamplsolver-0~20190702/fg_write.c:280: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).
		(*pf)(nl, "h%d:%d\n", strlen(eh->sym), eh->sym);
data/libamplsolver-0~20190702/fgh_read.c:1324:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	k = getc(nl);
data/libamplsolver-0~20190702/fgh_read.c:1328:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((k = getc(nl)) != ':') {
data/libamplsolver-0~20190702/fgh_read.c:1335:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((k = getc(nl)) < 0) {
data/libamplsolver-0~20190702/fgh_read.c:1563: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).
						mem(memadj(strlen(fname)+1)),
data/libamplsolver-0~20190702/func_add.c:353: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).
	Ld = strlen(dir);
data/libamplsolver-0~20190702/func_add.c:354: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).
	Lp = strlen(pfx);
data/libamplsolver-0~20190702/func_add.c:428:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			AE.Fgetc = fgetc;
data/libamplsolver-0~20190702/funcadd.h:370:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef fgetc
data/libamplsolver-0~20190702/funcadd.h:382:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getc
data/libamplsolver-0~20190702/funcadd.h:383:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getchar
data/libamplsolver-0~20190702/funcadd.h:407:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define fgetc		(*ae->Fgetc)
data/libamplsolver-0~20190702/funcadd.h:419:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getc		(*ae->Fgetc)
data/libamplsolver-0~20190702/funcadd.h:420:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getchar()	(*ae->Getc)(ae->StdIn)
data/libamplsolver-0~20190702/funcadd1.c:303:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			h = (NS_pair*)mymalloc(sizeof(NS_pair) + strlen(name) + 1);
data/libamplsolver-0~20190702/funcadd1.c:384: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).
		nx = strlen(buf0);
data/libamplsolver-0~20190702/funcadd1.c:394:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf+nx, s, ns);
data/libamplsolver-0~20190702/getstub.c:44: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).
			m = strlen(kw->name);
data/libamplsolver-0~20190702/getstub.c:114: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).
					L2 = L - strlen(v->name);
data/libamplsolver-0~20190702/getstub.c:219: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).
					L2 = L - strlen(kw->name);
data/libamplsolver-0~20190702/getstub.c:347:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	L = strlen(s);
data/libamplsolver-0~20190702/getstub.c:551:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		i = strlen(s) - 3;
data/libamplsolver-0~20190702/getstub.c:623: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).
	w = (int)(strlen(kw->name) + 2 + (badc-value));
data/libamplsolver-0~20190702/jac0dim.c:117:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(filename, stub, i);
data/libamplsolver-0~20190702/misc.c:336:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	R->rl_buf[0] = c = getc(R->nl);
data/libamplsolver-0~20190702/misc.c:345:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((c = getc(nl)) == '\r');
data/libamplsolver-0~20190702/misc.c:368:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		x = getc(nl);
data/libamplsolver-0~20190702/misc.c:389:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				x = getc(nl);
data/libamplsolver-0~20190702/misc.c:478:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while(s < se && (x = getc(nl)) >= ' ')
data/libamplsolver-0~20190702/misc.c:790: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).
		D = (SufDesc*)M1zapalloc(sizeof(SufDesc) + strlen(sufname) + 1);
data/libamplsolver-0~20190702/pfg_read.c:3993:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	k = getc(nl);
data/libamplsolver-0~20190702/pfg_read.c:3997:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((k = getc(nl)) != ':') {
data/libamplsolver-0~20190702/pfg_read.c:4004:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((k = getc(nl)) < 0) {
data/libamplsolver-0~20190702/pfg_read.c:4502: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).
						mem(memadj(strlen(fname)+1)),
data/libamplsolver-0~20190702/printf.c:713: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).
					prec = strlen(s);
data/libamplsolver-0~20190702/printf.c:752: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).
					decpt = strlen(s);
data/libamplsolver-0~20190702/readsol.c:195: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).
			msgput(&mi, buf, strlen(buf));
data/libamplsolver-0~20190702/readsol.c:197:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while((j = getc(f)) == '\n');
data/libamplsolver-0~20190702/repwhere.c:453: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).
			L = strlen(s) + 1;
data/libamplsolver-0~20190702/solvers/dtoa.c:2754: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).
				MALLOC(strlen((const char*)s0) + 1))) {
data/libamplsolver-0~20190702/solvers/fg_read.c:1338:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	k = getc(nl);
data/libamplsolver-0~20190702/solvers/fg_read.c:1342:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((k = getc(nl)) != ':') {
data/libamplsolver-0~20190702/solvers/fg_read.c:1349:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((k = getc(nl)) < 0) {
data/libamplsolver-0~20190702/solvers/fg_read.c:1413:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char *s = (char*)(*ae->Tempmem)(al->TMI, strlen(fi->name) + 64);
data/libamplsolver-0~20190702/solvers/fg_read.c:1648: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).
						mem(memadj(strlen(fname)+1)),
data/libamplsolver-0~20190702/solvers/fg_write.c:176: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).
				u.i = strlen(s);
data/libamplsolver-0~20190702/solvers/fg_write.c:280: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).
		(*pf)(nl, "h%d:%d\n", strlen(eh->sym), eh->sym);
data/libamplsolver-0~20190702/solvers/fgh_read.c:1324:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	k = getc(nl);
data/libamplsolver-0~20190702/solvers/fgh_read.c:1328:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((k = getc(nl)) != ':') {
data/libamplsolver-0~20190702/solvers/fgh_read.c:1335:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((k = getc(nl)) < 0) {
data/libamplsolver-0~20190702/solvers/fgh_read.c:1563: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).
						mem(memadj(strlen(fname)+1)),
data/libamplsolver-0~20190702/solvers/func_add.c:353: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).
	Ld = strlen(dir);
data/libamplsolver-0~20190702/solvers/func_add.c:354: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).
	Lp = strlen(pfx);
data/libamplsolver-0~20190702/solvers/func_add.c:428:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			AE.Fgetc = fgetc;
data/libamplsolver-0~20190702/solvers/funcadd.h:370:8:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef fgetc
data/libamplsolver-0~20190702/solvers/funcadd.h:382:8:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getc
data/libamplsolver-0~20190702/solvers/funcadd.h:383:8:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#undef getchar
data/libamplsolver-0~20190702/solvers/funcadd.h:407:9:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define fgetc		(*ae->Fgetc)
data/libamplsolver-0~20190702/solvers/funcadd.h:419:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getc		(*ae->Fgetc)
data/libamplsolver-0~20190702/solvers/funcadd.h:420:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define getchar()	(*ae->Getc)(ae->StdIn)
data/libamplsolver-0~20190702/solvers/funcadd1.c:303:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			h = (NS_pair*)mymalloc(sizeof(NS_pair) + strlen(name) + 1);
data/libamplsolver-0~20190702/solvers/funcadd1.c:384: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).
		nx = strlen(buf0);
data/libamplsolver-0~20190702/solvers/funcadd1.c:394:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf+nx, s, ns);
data/libamplsolver-0~20190702/solvers/getstub.c:44: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).
			m = strlen(kw->name);
data/libamplsolver-0~20190702/solvers/getstub.c:114: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).
					L2 = L - strlen(v->name);
data/libamplsolver-0~20190702/solvers/getstub.c:219: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).
					L2 = L - strlen(kw->name);
data/libamplsolver-0~20190702/solvers/getstub.c:347:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	L = strlen(s);
data/libamplsolver-0~20190702/solvers/getstub.c:551:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		i = strlen(s) - 3;
data/libamplsolver-0~20190702/solvers/getstub.c:623: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).
	w = (int)(strlen(kw->name) + 2 + (badc-value));
data/libamplsolver-0~20190702/solvers/jac0dim.c:117:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(filename, stub, i);
data/libamplsolver-0~20190702/solvers/misc.c:336:21:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	R->rl_buf[0] = c = getc(R->nl);
data/libamplsolver-0~20190702/solvers/misc.c:345:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((c = getc(nl)) == '\r');
data/libamplsolver-0~20190702/solvers/misc.c:368:7:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		x = getc(nl);
data/libamplsolver-0~20190702/solvers/misc.c:389:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				x = getc(nl);
data/libamplsolver-0~20190702/solvers/misc.c:478:25:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			while(s < se && (x = getc(nl)) >= ' ')
data/libamplsolver-0~20190702/solvers/misc.c:790: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).
		D = (SufDesc*)M1zapalloc(sizeof(SufDesc) + strlen(sufname) + 1);
data/libamplsolver-0~20190702/solvers/pfg_read.c:3993:6:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	k = getc(nl);
data/libamplsolver-0~20190702/solvers/pfg_read.c:3997:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while((k = getc(nl)) != ':') {
data/libamplsolver-0~20190702/solvers/pfg_read.c:4004:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((k = getc(nl)) < 0) {
data/libamplsolver-0~20190702/solvers/pfg_read.c:4502: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).
						mem(memadj(strlen(fname)+1)),
data/libamplsolver-0~20190702/solvers/printf.c:713: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).
					prec = strlen(s);
data/libamplsolver-0~20190702/solvers/printf.c:752: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).
					decpt = strlen(s);
data/libamplsolver-0~20190702/solvers/readsol.c:195: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).
			msgput(&mi, buf, strlen(buf));
data/libamplsolver-0~20190702/solvers/readsol.c:197:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while((j = getc(f)) == '\n');
data/libamplsolver-0~20190702/solvers/repwhere.c:453: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).
			L = strlen(s) + 1;
data/libamplsolver-0~20190702/solvers/writesol.c:79: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).
	sh->namelen = strlen(d->sufname) + 1;
data/libamplsolver-0~20190702/solvers/writesol.c:82: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).
		sh->tablen = strlen(d->table) + 1;
data/libamplsolver-0~20190702/solvers/writesol.c:105: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).
	k0 = k = strlen(what);
data/libamplsolver-0~20190702/solvers/writesol.c:107:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((j = strlen((*name)(asl,i,0))) > k)
data/libamplsolver-0~20190702/solvers/writesol.c:215: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).
			bsmsg = (char*)Malloc(nlneed + strlen(msg) + 1);
data/libamplsolver-0~20190702/solvers/writesol.c:318: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[1] = strlen(msg);
data/libamplsolver-0~20190702/solvers/writesol.c:413: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).
			for(s2 = s + strlen(s); s2 > s && s2[-1] == '\n'; --s2);
data/libamplsolver-0~20190702/solvers/wrtsol_.c:67:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(b, msg, i);
data/libamplsolver-0~20190702/writesol.c:79: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).
	sh->namelen = strlen(d->sufname) + 1;
data/libamplsolver-0~20190702/writesol.c:82: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).
		sh->tablen = strlen(d->table) + 1;
data/libamplsolver-0~20190702/writesol.c:105: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).
	k0 = k = strlen(what);
data/libamplsolver-0~20190702/writesol.c:107:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((j = strlen((*name)(asl,i,0))) > k)
data/libamplsolver-0~20190702/writesol.c:215: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).
			bsmsg = (char*)Malloc(nlneed + strlen(msg) + 1);
data/libamplsolver-0~20190702/writesol.c:318: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[1] = strlen(msg);
data/libamplsolver-0~20190702/writesol.c:413: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).
			for(s2 = s + strlen(s); s2 > s && s2[-1] == '\n'; --s2);
data/libamplsolver-0~20190702/wrtsol_.c:67:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				strncpy(b, msg, i);

ANALYSIS SUMMARY:

Hits = 576
Lines analyzed = 93526 in approximately 2.63 seconds (35528 lines/second)
Physical Source Lines of Code (SLOC) = 80934
Hits@level = [0] 538 [1] 108 [2] 262 [3]  64 [4] 138 [5]   4
Hits@level+ = [0+] 1114 [1+] 576 [2+] 468 [3+] 206 [4+] 142 [5+]   4
Hits/KSLOC@level+ = [0+] 13.7643 [1+] 7.11691 [2+] 5.78249 [3+] 2.54528 [4+] 1.75452 [5+] 0.049423
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.