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/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.cpp
Examining data/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.hpp
Examining data/gjh-asl-json-0.0+git20180428.eb8720e/src/gjh_asl_json.cpp

FINAL RESULTS:

data/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.cpp:47: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(Oinfo_ptr_->sname, sname);
data/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.cpp:51: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(Oinfo_ptr_->bsname, bsname);
data/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.cpp:55: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(Oinfo_ptr_->opname, opname);
data/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.cpp:217:10:  [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).
      in.open(cols_res, std::ios_base::in);
data/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.cpp:239:10:  [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).
      in.open(rows_res, std::ios_base::in);
data/gjh-asl-json-0.0+git20180428.eb8720e/src/gjh_asl_json.cpp:13: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).
   out.open(output_name.c_str(), std::ios::out | std::ios::trunc);
data/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.cpp:46:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   Oinfo_ptr_->sname = new char[strlen(sname)+1];
data/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.cpp:50: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).
   Oinfo_ptr_->bsname = new char[strlen(bsname)+1];
data/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.cpp:54: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).
   Oinfo_ptr_->opname = new char[strlen(opname)+1];
data/gjh-asl-json-0.0+git20180428.eb8720e/src/AmplInterface.cpp:146:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   nl = jac0dim(stub, (int)strlen(stub));

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 1190 in approximately 0.08 seconds (14986 lines/second)
Physical Source Lines of Code (SLOC) = 924
Hits@level = [0]   0 [1]   4 [2]   3 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]   6 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 10.8225 [1+] 10.8225 [2+] 6.49351 [3+] 3.24675 [4+] 3.24675 [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.