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/ginac-1.8.0/ginac/parser/parser.h
Examining data/ginac-1.8.0/ginac/parser/parse_context.h
Examining data/ginac-1.8.0/ginac/parser/parse_binop_rhs.cpp
Examining data/ginac-1.8.0/ginac/parser/parser.cpp
Examining data/ginac-1.8.0/ginac/parser/parse_context.cpp
Examining data/ginac-1.8.0/ginac/parser/default_reader.cpp
Examining data/ginac-1.8.0/ginac/parser/lexer.cpp
Examining data/ginac-1.8.0/ginac/parser/lexer.h
Examining data/ginac-1.8.0/ginac/parser/parser_compat.cpp
Examining data/ginac-1.8.0/ginac/parser/debug.h
Examining data/ginac-1.8.0/ginac/polynomial/mod_gcd.cpp
Examining data/ginac-1.8.0/ginac/polynomial/cra_garner.cpp
Examining data/ginac-1.8.0/ginac/polynomial/gcd_euclid.h
Examining data/ginac-1.8.0/ginac/polynomial/remainder.cpp
Examining data/ginac-1.8.0/ginac/polynomial/remainder.h
Examining data/ginac-1.8.0/ginac/polynomial/normalize.cpp
Examining data/ginac-1.8.0/ginac/polynomial/normalize.h
Examining data/ginac-1.8.0/ginac/polynomial/upoly.h
Examining data/ginac-1.8.0/ginac/polynomial/ring_traits.h
Examining data/ginac-1.8.0/ginac/polynomial/mod_gcd.h
Examining data/ginac-1.8.0/ginac/polynomial/cra_garner.h
Examining data/ginac-1.8.0/ginac/polynomial/upoly_io.h
Examining data/ginac-1.8.0/ginac/polynomial/upoly_io.cpp
Examining data/ginac-1.8.0/ginac/polynomial/prem_uvar.h
Examining data/ginac-1.8.0/ginac/polynomial/eval_uvar.h
Examining data/ginac-1.8.0/ginac/polynomial/interpolate_padic_uvar.h
Examining data/ginac-1.8.0/ginac/polynomial/sr_gcd_uvar.h
Examining data/ginac-1.8.0/ginac/polynomial/heur_gcd_uvar.h
Examining data/ginac-1.8.0/ginac/polynomial/gcd_uvar.cpp
Examining data/ginac-1.8.0/ginac/polynomial/chinrem_gcd.cpp
Examining data/ginac-1.8.0/ginac/polynomial/chinrem_gcd.h
Examining data/ginac-1.8.0/ginac/polynomial/collect_vargs.cpp
Examining data/ginac-1.8.0/ginac/polynomial/collect_vargs.h
Examining data/ginac-1.8.0/ginac/polynomial/divide_in_z_p.cpp
Examining data/ginac-1.8.0/ginac/polynomial/divide_in_z_p.h
Examining data/ginac-1.8.0/ginac/polynomial/euclid_gcd_wrap.h
Examining data/ginac-1.8.0/ginac/polynomial/eval_point_finder.h
Examining data/ginac-1.8.0/ginac/polynomial/mgcd.cpp
Examining data/ginac-1.8.0/ginac/polynomial/newton_interpolate.h
Examining data/ginac-1.8.0/ginac/polynomial/optimal_vars_finder.cpp
Examining data/ginac-1.8.0/ginac/polynomial/optimal_vars_finder.h
Examining data/ginac-1.8.0/ginac/polynomial/pgcd.cpp
Examining data/ginac-1.8.0/ginac/polynomial/pgcd.h
Examining data/ginac-1.8.0/ginac/polynomial/poly_cra.h
Examining data/ginac-1.8.0/ginac/polynomial/primes_factory.h
Examining data/ginac-1.8.0/ginac/polynomial/primpart_content.cpp
Examining data/ginac-1.8.0/ginac/polynomial/smod_helpers.h
Examining data/ginac-1.8.0/ginac/polynomial/debug.h
Examining data/ginac-1.8.0/ginac/ginac.h
Examining data/ginac-1.8.0/ginac/add.h
Examining data/ginac-1.8.0/ginac/archive.h
Examining data/ginac-1.8.0/ginac/assertion.h
Examining data/ginac-1.8.0/ginac/basic.h
Examining data/ginac-1.8.0/ginac/class_info.h
Examining data/ginac-1.8.0/ginac/clifford.h
Examining data/ginac-1.8.0/ginac/color.h
Examining data/ginac-1.8.0/ginac/constant.h
Examining data/ginac-1.8.0/ginac/container.h
Examining data/ginac-1.8.0/ginac/ex.h
Examining data/ginac-1.8.0/ginac/excompiler.h
Examining data/ginac-1.8.0/ginac/expair.h
Examining data/ginac-1.8.0/ginac/expairseq.h
Examining data/ginac-1.8.0/ginac/exprseq.h
Examining data/ginac-1.8.0/ginac/fail.h
Examining data/ginac-1.8.0/ginac/factor.h
Examining data/ginac-1.8.0/ginac/fderivative.h
Examining data/ginac-1.8.0/ginac/flags.h
Examining data/ginac-1.8.0/ginac/function.h
Examining data/ginac-1.8.0/ginac/hash_map.h
Examining data/ginac-1.8.0/ginac/idx.h
Examining data/ginac-1.8.0/ginac/indexed.h
Examining data/ginac-1.8.0/ginac/inifcns.h
Examining data/ginac-1.8.0/ginac/integration_kernel.h
Examining data/ginac-1.8.0/ginac/integral.h
Examining data/ginac-1.8.0/ginac/lst.h
Examining data/ginac-1.8.0/ginac/matrix.h
Examining data/ginac-1.8.0/ginac/mul.h
Examining data/ginac-1.8.0/ginac/ncmul.h
Examining data/ginac-1.8.0/ginac/normal.h
Examining data/ginac-1.8.0/ginac/numeric.h
Examining data/ginac-1.8.0/ginac/operators.h
Examining data/ginac-1.8.0/ginac/power.h
Examining data/ginac-1.8.0/ginac/print.h
Examining data/ginac-1.8.0/ginac/pseries.h
Examining data/ginac-1.8.0/ginac/ptr.h
Examining data/ginac-1.8.0/ginac/registrar.h
Examining data/ginac-1.8.0/ginac/relational.h
Examining data/ginac-1.8.0/ginac/structure.h
Examining data/ginac-1.8.0/ginac/symbol.h
Examining data/ginac-1.8.0/ginac/symmetry.h
Examining data/ginac-1.8.0/ginac/tensor.h
Examining data/ginac-1.8.0/ginac/version.h
Examining data/ginac-1.8.0/ginac/wildcard.h
Examining data/ginac-1.8.0/ginac/compiler.h
Examining data/ginac-1.8.0/ginac/add.cpp
Examining data/ginac-1.8.0/ginac/archive.cpp
Examining data/ginac-1.8.0/ginac/basic.cpp
Examining data/ginac-1.8.0/ginac/clifford.cpp
Examining data/ginac-1.8.0/ginac/color.cpp
Examining data/ginac-1.8.0/ginac/constant.cpp
Examining data/ginac-1.8.0/ginac/ex.cpp
Examining data/ginac-1.8.0/ginac/excompiler.cpp
Examining data/ginac-1.8.0/ginac/expair.cpp
Examining data/ginac-1.8.0/ginac/expairseq.cpp
Examining data/ginac-1.8.0/ginac/exprseq.cpp
Examining data/ginac-1.8.0/ginac/fail.cpp
Examining data/ginac-1.8.0/ginac/factor.cpp
Examining data/ginac-1.8.0/ginac/fderivative.cpp
Examining data/ginac-1.8.0/ginac/function.cpp
Examining data/ginac-1.8.0/ginac/idx.cpp
Examining data/ginac-1.8.0/ginac/indexed.cpp
Examining data/ginac-1.8.0/ginac/inifcns.cpp
Examining data/ginac-1.8.0/ginac/inifcns_trans.cpp
Examining data/ginac-1.8.0/ginac/inifcns_gamma.cpp
Examining data/ginac-1.8.0/ginac/inifcns_nstdsums.cpp
Examining data/ginac-1.8.0/ginac/inifcns_elliptic.cpp
Examining data/ginac-1.8.0/ginac/integration_kernel.cpp
Examining data/ginac-1.8.0/ginac/integral.cpp
Examining data/ginac-1.8.0/ginac/lst.cpp
Examining data/ginac-1.8.0/ginac/matrix.cpp
Examining data/ginac-1.8.0/ginac/mul.cpp
Examining data/ginac-1.8.0/ginac/ncmul.cpp
Examining data/ginac-1.8.0/ginac/normal.cpp
Examining data/ginac-1.8.0/ginac/numeric.cpp
Examining data/ginac-1.8.0/ginac/operators.cpp
Examining data/ginac-1.8.0/ginac/power.cpp
Examining data/ginac-1.8.0/ginac/registrar.cpp
Examining data/ginac-1.8.0/ginac/relational.cpp
Examining data/ginac-1.8.0/ginac/remember.cpp
Examining data/ginac-1.8.0/ginac/pseries.cpp
Examining data/ginac-1.8.0/ginac/print.cpp
Examining data/ginac-1.8.0/ginac/symbol.cpp
Examining data/ginac-1.8.0/ginac/symmetry.cpp
Examining data/ginac-1.8.0/ginac/tensor.cpp
Examining data/ginac-1.8.0/ginac/utils.cpp
Examining data/ginac-1.8.0/ginac/wildcard.cpp
Examining data/ginac-1.8.0/ginac/remember.h
Examining data/ginac-1.8.0/ginac/utils.h
Examining data/ginac-1.8.0/ginac/crc32.h
Examining data/ginac-1.8.0/ginac/hash_seed.h
Examining data/ginac-1.8.0/ginac/utils_multi_iterator.h
Examining data/ginac-1.8.0/check/check_cra.cpp
Examining data/ginac-1.8.0/check/check_inifcns.cpp
Examining data/ginac-1.8.0/check/check_lsolve.cpp
Examining data/ginac-1.8.0/check/genex.cpp
Examining data/ginac-1.8.0/check/check_matrices.cpp
Examining data/ginac-1.8.0/check/check_numeric.cpp
Examining data/ginac-1.8.0/check/exam_archive.cpp
Examining data/ginac-1.8.0/check/exam_chinrem_gcd.cpp
Examining data/ginac-1.8.0/check/exam_clifford.cpp
Examining data/ginac-1.8.0/check/exam_collect_common_factors.cpp
Examining data/ginac-1.8.0/check/exam_color.cpp
Examining data/ginac-1.8.0/check/exam_differentiation.cpp
Examining data/ginac-1.8.0/check/exam_factor.cpp
Examining data/ginac-1.8.0/check/exam_heur_gcd.cpp
Examining data/ginac-1.8.0/check/exam_indexed.cpp
Examining data/ginac-1.8.0/check/exam_inifcns.cpp
Examining data/ginac-1.8.0/check/exam_inifcns_elliptic.cpp
Examining data/ginac-1.8.0/check/exam_inifcns_nstdsums.cpp
Examining data/ginac-1.8.0/check/exam_inifcns_nstdsums.h
Examining data/ginac-1.8.0/check/exam_lsolve.cpp
Examining data/ginac-1.8.0/check/exam_match.cpp
Examining data/ginac-1.8.0/check/error_report.h
Examining data/ginac-1.8.0/check/exam_matrices.cpp
Examining data/ginac-1.8.0/check/exam_misc.cpp
Examining data/ginac-1.8.0/check/exam_mod_gcd.cpp
Examining data/ginac-1.8.0/check/exam_normalization.cpp
Examining data/ginac-1.8.0/check/exam_numeric.cpp
Examining data/ginac-1.8.0/check/exam_paranoia.cpp
Examining data/ginac-1.8.0/check/exam_parser.cpp
Examining data/ginac-1.8.0/check/exam_pgcd.cpp
Examining data/ginac-1.8.0/check/exam_polygcd.cpp
Examining data/ginac-1.8.0/check/exam_powerlaws.cpp
Examining data/ginac-1.8.0/check/exam_pseries.cpp
Examining data/ginac-1.8.0/check/exam_real_imag.cpp
Examining data/ginac-1.8.0/check/exam_sqrfree.cpp
Examining data/ginac-1.8.0/check/exam_structure.cpp
Examining data/ginac-1.8.0/check/time_antipode.cpp
Examining data/ginac-1.8.0/check/randomize_serials.cpp
Examining data/ginac-1.8.0/check/timer.cpp
Examining data/ginac-1.8.0/check/timer.h
Examining data/ginac-1.8.0/check/time_dennyfliegner.cpp
Examining data/ginac-1.8.0/check/time_fateman_expand.cpp
Examining data/ginac-1.8.0/check/time_gammaseries.cpp
Examining data/ginac-1.8.0/check/time_lw_A.cpp
Examining data/ginac-1.8.0/check/time_lw_B.cpp
Examining data/ginac-1.8.0/check/time_lw_C.cpp
Examining data/ginac-1.8.0/check/time_lw_D.cpp
Examining data/ginac-1.8.0/check/time_lw_E.cpp
Examining data/ginac-1.8.0/check/time_lw_F.cpp
Examining data/ginac-1.8.0/check/time_lw_G.cpp
Examining data/ginac-1.8.0/check/time_lw_H.cpp
Examining data/ginac-1.8.0/check/time_lw_IJKL.cpp
Examining data/ginac-1.8.0/check/time_lw_M1.cpp
Examining data/ginac-1.8.0/check/time_lw_M2.cpp
Examining data/ginac-1.8.0/check/time_lw_N.cpp
Examining data/ginac-1.8.0/check/time_lw_O.cpp
Examining data/ginac-1.8.0/check/time_lw_P.cpp
Examining data/ginac-1.8.0/check/time_lw_Pprime.cpp
Examining data/ginac-1.8.0/check/time_lw_Q.cpp
Examining data/ginac-1.8.0/check/time_lw_Qprime.cpp
Examining data/ginac-1.8.0/check/time_parser.cpp
Examining data/ginac-1.8.0/check/time_toeplitz.cpp
Examining data/ginac-1.8.0/check/time_uvar_gcd.cpp
Examining data/ginac-1.8.0/check/test_runner.h
Examining data/ginac-1.8.0/check/time_vandermonde.cpp
Examining data/ginac-1.8.0/ginsh/ginsh_lexer.cpp
Examining data/ginac-1.8.0/ginsh/ginsh_parser.cpp
Examining data/ginac-1.8.0/ginsh/ginsh_parser.hpp
Examining data/ginac-1.8.0/ginsh/ginsh.h
Examining data/ginac-1.8.0/ginsh/ginsh_extensions.h
Examining data/ginac-1.8.0/tools/viewgar.cpp
Examining data/ginac-1.8.0/doc/examples/archive1.cpp
Examining data/ginac-1.8.0/doc/examples/compile1.cpp
Examining data/ginac-1.8.0/doc/examples/compile3.cpp
Examining data/ginac-1.8.0/doc/examples/derivative.cpp
Examining data/ginac-1.8.0/doc/examples/mystring.cpp
Examining data/ginac-1.8.0/doc/examples/compile2.cpp
Examining data/ginac-1.8.0/doc/examples/lanczos.cpp

FINAL RESULTS:

data/ginac-1.8.0/ginac/excompiler.cpp:122: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(new_filename, filename_pattern);
data/ginac-1.8.0/ginac/excompiler.cpp:154:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		if (system(strcompile.c_str())) {
data/ginac-1.8.0/ginsh/ginsh_lexer.cpp:944:1:  [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.
system(yytext + 1);	/* execute shell command */
data/ginac-1.8.0/ginsh/ginsh_parser.cpp:887:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/ginac-1.8.0/check/randomize_serials.cpp:48:2:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	srand(time(nullptr));
data/ginac-1.8.0/check/test_runner.h:72:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		char* envvar = std::getenv(env_name.c_str());
data/ginac-1.8.0/doc/examples/lanczos.cpp:192:13:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
   while((c=getopt(argc,argv,"n:D:"))!=-1)
data/ginac-1.8.0/check/test_runner.h:74:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			value = std::atoi(envvar);
data/ginac-1.8.0/check/time_parser.cpp:65:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		n_max = atoi(argv[1]);
data/ginac-1.8.0/doc/examples/lanczos.cpp:194:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         order = atoi(optarg);
data/ginac-1.8.0/doc/examples/lanczos.cpp:196:19:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
         digits = atoi(optarg);
data/ginac-1.8.0/ginac/excompiler.cpp:123:13:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
			int fd = mkstemp(new_filename);
data/ginac-1.8.0/ginac/excompiler.cpp:129:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			ofs.open(new_filename, std::ios::out);
data/ginac-1.8.0/ginac/excompiler.cpp:134:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			ofs.open(filename.c_str(), std::ios::out);
data/ginac-1.8.0/ginac/symmetry.cpp:511: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(iv2, iv, num * sizeof(unsigned));
data/ginac-1.8.0/ginac/utils_multi_iterator.h:40:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	typedef char yes_type[1];
data/ginac-1.8.0/ginac/utils_multi_iterator.h:41:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	typedef char no_type[2];
data/ginac-1.8.0/ginsh/ginsh_lexer.cpp:1125:15:  [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).
yylval = wild(atoi(yytext + 1)); return T_LITERAL;
data/ginac-1.8.0/ginsh/ginsh_lexer.cpp:2159: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(buf, line_ptr, actual);
data/ginac-1.8.0/ginsh/ginsh_lexer.cpp:2193:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		yyin = fopen(*file_list, "r");
data/ginac-1.8.0/ginsh/ginsh_parser.cpp:2702:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		yyin = fopen(*file_list, "r");
data/ginac-1.8.0/check/test_runner.h:50:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		t += P36.read();
data/ginac-1.8.0/check/time_antipode.cpp:497:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cout << jaeger_le_coultre.read() << "s (total)" << endl;
data/ginac-1.8.0/check/time_dennyfliegner.cpp:76:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		times.push_back(breitling.read());
data/ginac-1.8.0/check/time_fateman_expand.cpp:64:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=concord.read())<0.1 && !result);
data/ginac-1.8.0/check/time_gammaseries.cpp:65:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		times.push_back(omega.read());
data/ginac-1.8.0/check/time_lw_A.cpp:59:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_B.cpp:60:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_C.cpp:64:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_D.cpp:64:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_E.cpp:64:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_F.cpp:61:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_G.cpp:64:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_H.cpp:76:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_IJKL.cpp:51:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	cout << cartier.read() << 's' << endl;
data/ginac-1.8.0/check/time_lw_IJKL.cpp:74:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	cout << cartier.read() << 's' << endl;
data/ginac-1.8.0/check/time_lw_M1.cpp:95:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_M2.cpp:172:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		} while ((time=piaget.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_N.cpp:76:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		} while ((time=tag_heuer.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_O.cpp:145:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_O.cpp:158:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		cout << rolex.read() << "s (combined)" << endl;
data/ginac-1.8.0/check/time_lw_P.cpp:74:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_Pprime.cpp:87:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_Q.cpp:78:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_lw_Qprime.cpp:90:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		} while ((time=rolex.read())<0.1 && !result);
data/ginac-1.8.0/check/time_parser.cpp:54:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	const double t = RSD10.read();
data/ginac-1.8.0/check/time_toeplitz.cpp:88:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (longines.read()<0.1) {
data/ginac-1.8.0/check/time_toeplitz.cpp:92:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		times.push_back(longines.read()/count);
data/ginac-1.8.0/check/time_vandermonde.cpp:85:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		while (swatch.read()<0.02) {
data/ginac-1.8.0/check/time_vandermonde.cpp:89:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		times.push_back(swatch.read()/count);
data/ginac-1.8.0/check/timer.cpp:82:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
double timer::read()
data/ginac-1.8.0/check/timer.h:42:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	double read();
data/ginac-1.8.0/ginac/ex.h:357:6:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (equal) {
data/ginac-1.8.0/ginac/ex.h:364:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return equal;
data/ginac-1.8.0/ginac/excompiler.cpp:121:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			char* new_filename = new char[strlen(filename_pattern)+1];
data/ginac-1.8.0/ginac/hash_seed.h:48:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return crc32(mangled_name, std::strlen(mangled_name), 0);
data/ginac-1.8.0/ginac/numeric.cpp:904:30:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (&other==_num1_p || cln::equal(other.value,_num1_p->value))
data/ginac-1.8.0/ginac/numeric.cpp:998:30:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	if (&other==_num1_p || cln::equal(other.value, _num1_p->value))
data/ginac-1.8.0/ginac/numeric.cpp:1124:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return cln::equal(value, other.value);
data/ginac-1.8.0/ginac/numeric.cpp:1216:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return cln::equal(value, other.value);
data/ginac-1.8.0/ginac/numeric.cpp:1222:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return !cln::equal(value, other.value);
data/ginac-1.8.0/ginac/operators.cpp:250:40:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return relational(lh, rh, relational::equal);
data/ginac-1.8.0/ginac/relational.cpp:88:19:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	case relational::equal:
data/ginac-1.8.0/ginac/relational.cpp:140:14:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			return o==equal;
data/ginac-1.8.0/ginac/relational.cpp:204:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		case equal:
data/ginac-1.8.0/ginac/relational.cpp:258:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		case equal:
data/ginac-1.8.0/ginac/relational.cpp:317:8:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		case equal:
data/ginac-1.8.0/ginac/relational.h:41:3:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		equal,
data/ginac-1.8.0/ginac/relational.h:51:60:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	relational(const ex & lhs, const ex & rhs, operators oper=equal);
data/ginac-1.8.0/ginac/structure.h:84:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		return std::equal(cp1, cp1 + sizeof(T), cp2);
data/ginac-1.8.0/ginac/structure.h:93:21:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		cppair res = std::mismatch(cp1, cp1 + sizeof(T), cp2);
data/ginac-1.8.0/ginsh/ginsh_lexer.cpp:747:14:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			     (c = getc( yyin )) != EOF && c != '\n'; ++n ) \
data/ginac-1.8.0/ginsh/ginsh_lexer.cpp:1862:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return yy_scan_bytes( yystr, (int) strlen(yystr) );
data/ginac-1.8.0/ginsh/ginsh_lexer.cpp:2149: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).
			line_length = strlen(line_read) + 1;
data/ginac-1.8.0/ginsh/ginsh_lexer.cpp:2166:36:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		for (n = 0; n < max_size && (c = getc(yyin)) != EOF && c != '\n'; ++n)
data/ginac-1.8.0/ginsh/ginsh_parser.cpp:2133:62:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
			repl_lst.append(relational(i.first, i.second, relational::equal));
data/ginac-1.8.0/ginsh/ginsh_parser.cpp:2610:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(text);

ANALYSIS SUMMARY:

Hits = 77
Lines analyzed = 77042 in approximately 2.11 seconds (36595 lines/second)
Physical Source Lines of Code (SLOC) = 50525
Hits@level = [0]   4 [1]  56 [2]  14 [3]   3 [4]   4 [5]   0
Hits@level+ = [0+]  81 [1+]  77 [2+]  21 [3+]   7 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 1.60317 [1+] 1.524 [2+] 0.415636 [3+] 0.138545 [4+] 0.0791687 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.