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/gpt-1.1/src/GPT.hpp
Examining data/gpt-1.1/src/main.cpp
Examining data/gpt-1.1/src/modules/Symbol.cpp
Examining data/gpt-1.1/src/modules/SymbolTable.cpp
Examining data/gpt-1.1/src/modules/SymbolTable.hpp
Examining data/gpt-1.1/src/modules/interpreter/InterpreterDBG.hpp
Examining data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp
Examining data/gpt-1.1/src/modules/interpreter/InterpreterEval.hpp
Examining data/gpt-1.1/src/modules/interpreter/InterpreterDBG.cpp
Examining data/gpt-1.1/src/modules/x86/asm_lib.h
Examining data/gpt-1.1/src/modules/x86/asm_elf.h
Examining data/gpt-1.1/src/modules/x86/asm_prologue.h
Examining data/gpt-1.1/src/modules/x86/X86.cpp
Examining data/gpt-1.1/src/modules/x86/X86.hpp
Examining data/gpt-1.1/src/modules/x86/asm_win32.h
Examining data/gpt-1.1/src/modules/Symbol.hpp
Examining data/gpt-1.1/src/modules/parser/SemanticEval.hpp
Examining data/gpt-1.1/src/modules/parser/SemanticEval.cpp
Examining data/gpt-1.1/src/modules/parser/MismatchedUnicodeCharException.cpp
Examining data/gpt-1.1/src/modules/parser/BasePortugolParser.hpp
Examining data/gpt-1.1/src/modules/parser/UnicodeCharScanner.hpp
Examining data/gpt-1.1/src/modules/parser/UnicodeCharBuffer.hpp
Examining data/gpt-1.1/src/modules/parser/BasePortugolParser.cpp
Examining data/gpt-1.1/src/modules/parser/MismatchedUnicodeCharException.hpp
Examining data/gpt-1.1/src/modules/PortugolAST.hpp
Examining data/gpt-1.1/src/modules/PortugolAST.cpp
Examining data/gpt-1.1/src/modules/GPTDisplay.cpp
Examining data/gpt-1.1/src/modules/GPTDisplay.hpp
Examining data/gpt-1.1/src/GPT.cpp

FINAL RESULTS:

data/gpt-1.1/src/GPT.cpp:205:10:  [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(cmd.str().c_str()) == -1) {
data/gpt-1.1/src/GPT.cpp:214:9:  [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(cmd.str().c_str());
data/gpt-1.1/src/GPT.cpp:81:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    string cf = getenv("TEMP");
data/gpt-1.1/src/main.cpp:85:14:  [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, "o:t:s:H:P:idvh")) != -1) {
data/gpt-1.1/src/main.cpp:88:14:  [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, "o:t:s:H:P:idvhD")) != -1) {
data/gpt-1.1/src/main.cpp:191:15:  [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* env = getenv("GPT_INCLUDE");
data/gpt-1.1/src/GPT.cpp:86:14:  [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(cfilepath);
data/gpt-1.1/src/GPT.cpp:184: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).
      fo.open(ofname.c_str(), ios_base::out);
data/gpt-1.1/src/GPT.cpp:193: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).
      fo.open(ftmpname.c_str(), ios_base::out);
data/gpt-1.1/src/GPT.cpp:249:5:  [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).
	fo.open(ofname.c_str(), ios_base::out);
data/gpt-1.1/src/main.cpp:174:36:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if((_port != DEFAULT_PORT) && (atoi(_port.c_str()) == 0)) {
data/gpt-1.1/src/main.cpp:264:59:  [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).
      result = GPT::self()->interpret(_ifilenames, _host, atoi(_port.c_str()));
data/gpt-1.1/src/modules/GPTDisplay.cpp:66:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buffer [str.length()];
data/gpt-1.1/src/modules/interpreter/InterpreterDBG.cpp:313:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[1024];
data/gpt-1.1/src/modules/interpreter/InterpreterDBG.cpp:355:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  msg_size = atoi(buffer) * sizeof(char);
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:54: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).
    num = atoi((*ot).c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:92:13:  [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).
      ss << atoi(value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:265:9:  [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).
  s << (atoi(left.value.c_str()) | atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:265:36:  [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).
  s << (atoi(left.value.c_str()) | atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:275:9:  [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).
  s << (atoi(left.value.c_str()) ^ atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:275:36:  [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).
  s << (atoi(left.value.c_str()) ^ atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:285:9:  [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).
  s << (atoi(left.value.c_str()) & atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:285:36:  [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).
  s << (atoi(left.value.c_str()) & atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:302:13:  [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).
      res = atoi(left.value.c_str()) == atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:302:41:  [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).
      res = atoi(left.value.c_str()) == atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:324:13:  [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).
      res = atoi(left.value.c_str()) != atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:324:41:  [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).
      res = atoi(left.value.c_str()) != atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:346:13:  [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).
      res = atoi(left.value.c_str()) > atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:346:40:  [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).
      res = atoi(left.value.c_str()) > atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:368:13:  [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).
      res = atoi(left.value.c_str()) >= atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:368:41:  [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).
      res = atoi(left.value.c_str()) >= atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:390:13:  [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).
      res = atoi(left.value.c_str()) < atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:390:40:  [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).
      res = atoi(left.value.c_str()) < atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:412:13:  [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).
      res = atoi(left.value.c_str()) <= atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:412:41:  [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).
      res = atoi(left.value.c_str()) <= atoi(right.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:430: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).
    s << (atoi(left.value.c_str()) + atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:430:38:  [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).
    s << (atoi(left.value.c_str()) + atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:446: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).
    s << (atoi(left.value.c_str()) - atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:446:38:  [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).
    s << (atoi(left.value.c_str()) - atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:471: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).
    s << (atoi(left.value.c_str()) / atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:471:38:  [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).
    s << (atoi(left.value.c_str()) / atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:487: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).
    s << (atoi(left.value.c_str()) * atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:487:38:  [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).
    s << (atoi(left.value.c_str()) * atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:500:9:  [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).
  s << (atoi(left.value.c_str()) % atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:500:36:  [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).
  s << (atoi(left.value.c_str()) % atoi(right.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:537:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  s << ~(atoi(v.value.c_str()));
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:577: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).
    s << (atoi(var.primitiveValue.c_str()) + passo);
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:582:13:  [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).
      s << (atoi(val.c_str()) + passo);
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:598:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(var.primitiveValue.c_str()) <= atoi(ate.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:598:48:  [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).
    return atoi(var.primitiveValue.c_str()) <= atoi(ate.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:602:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      return atoi(val.c_str()) <= atoi(ate.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:602:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      return atoi(val.c_str()) <= atoi(ate.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:617:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    return atoi(var.primitiveValue.c_str()) >= atoi(ate.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:617:48:  [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).
    return atoi(var.primitiveValue.c_str()) >= atoi(ate.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:621:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      return atoi(val.c_str()) <= atoi(ate.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:621:35:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      return atoi(val.c_str()) <= atoi(ate.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:762:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    s << atoi(retExpr.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:771:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atoi(retExpr.value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:842:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        cout << (int) atoi((*it).value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:848:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        cout << (char) atoi((*it).value.c_str());
data/gpt-1.1/src/modules/interpreter/InterpreterEval.cpp:851:12:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if(atoi((*it).value.c_str())) {
data/gpt-1.1/src/modules/parser/SemanticEval.cpp:693: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).
  if(atoi(str.c_str()) == 0) {
data/gpt-1.1/src/modules/x86/X86.cpp:259:13:  [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).
    size *= atoi((*it).c_str());
data/gpt-1.1/src/main.cpp:193: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).
  if(!env || strlen(env) == 0) {

ANALYSIS SUMMARY:

Hits = 64
Lines analyzed = 8748 in approximately 0.24 seconds (36407 lines/second)
Physical Source Lines of Code (SLOC) = 6772
Hits@level = [0]   4 [1]   1 [2]  57 [3]   4 [4]   2 [5]   0
Hits@level+ = [0+]  68 [1+]  64 [2+]  63 [3+]   6 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 10.0413 [1+] 9.45068 [2+] 9.30301 [3+] 0.886001 [4+] 0.295334 [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.