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/logstalgia-1.1.0/src/settings.cpp
Examining data/logstalgia-1.1.0/src/requestball.h
Examining data/logstalgia-1.1.0/src/ncsa.h
Examining data/logstalgia-1.1.0/src/slider.h
Examining data/logstalgia-1.1.0/src/paddle.cpp
Examining data/logstalgia-1.1.0/src/configwatcher.h
Examining data/logstalgia-1.1.0/src/custom.h
Examining data/logstalgia-1.1.0/src/tests.h
Examining data/logstalgia-1.1.0/src/summarizer.cpp
Examining data/logstalgia-1.1.0/src/logstalgia.cpp
Examining data/logstalgia-1.1.0/src/custom.cpp
Examining data/logstalgia-1.1.0/src/tests.cpp
Examining data/logstalgia-1.1.0/src/logentry.h
Examining data/logstalgia-1.1.0/src/ncsa.cpp
Examining data/logstalgia-1.1.0/src/summarizer.h
Examining data/logstalgia-1.1.0/src/logentry.cpp
Examining data/logstalgia-1.1.0/src/paddle.h
Examining data/logstalgia-1.1.0/src/logstalgia.h
Examining data/logstalgia-1.1.0/src/textarea.h
Examining data/logstalgia-1.1.0/src/settings.h
Examining data/logstalgia-1.1.0/src/requestball.cpp
Examining data/logstalgia-1.1.0/src/textarea.cpp
Examining data/logstalgia-1.1.0/src/main.cpp
Examining data/logstalgia-1.1.0/src/configwatcher.cpp
Examining data/logstalgia-1.1.0/src/core/shader_common.h
Examining data/logstalgia-1.1.0/src/core/display.h
Examining data/logstalgia-1.1.0/src/core/shader_common.cpp
Examining data/logstalgia-1.1.0/src/core/seeklog.h
Examining data/logstalgia-1.1.0/src/core/sdlapp.cpp
Examining data/logstalgia-1.1.0/src/core/ppm.h
Examining data/logstalgia-1.1.0/src/core/settings.cpp
Examining data/logstalgia-1.1.0/src/core/bounds.h
Examining data/logstalgia-1.1.0/src/core/ftgl/FTUnicode.h
Examining data/logstalgia-1.1.0/src/core/resource.h
Examining data/logstalgia-1.1.0/src/core/stringhash.cpp
Examining data/logstalgia-1.1.0/src/core/vectors.h
Examining data/logstalgia-1.1.0/src/core/fxfont.cpp
Examining data/logstalgia-1.1.0/src/core/regex.h
Examining data/logstalgia-1.1.0/src/core/ppm.cpp
Examining data/logstalgia-1.1.0/src/core/display.cpp
Examining data/logstalgia-1.1.0/src/core/mousecursor.h
Examining data/logstalgia-1.1.0/src/core/pi.h
Examining data/logstalgia-1.1.0/src/core/plane.h
Examining data/logstalgia-1.1.0/src/core/conffile.h
Examining data/logstalgia-1.1.0/src/core/png_writer.h
Examining data/logstalgia-1.1.0/src/core/timer.cpp
Examining data/logstalgia-1.1.0/src/core/sdlapp.h
Examining data/logstalgia-1.1.0/src/core/logger.h
Examining data/logstalgia-1.1.0/src/core/quadtree.h
Examining data/logstalgia-1.1.0/src/core/texture.h
Examining data/logstalgia-1.1.0/src/core/timer.h
Examining data/logstalgia-1.1.0/src/core/png_writer.cpp
Examining data/logstalgia-1.1.0/src/core/resource.cpp
Examining data/logstalgia-1.1.0/src/core/tga.cpp
Examining data/logstalgia-1.1.0/src/core/vbo.cpp
Examining data/logstalgia-1.1.0/src/core/tga.h
Examining data/logstalgia-1.1.0/src/core/conffile.cpp
Examining data/logstalgia-1.1.0/src/core/shader.h
Examining data/logstalgia-1.1.0/src/core/fxfont.h
Examining data/logstalgia-1.1.0/src/core/timezone.cpp
Examining data/logstalgia-1.1.0/src/core/logger.cpp
Examining data/logstalgia-1.1.0/src/core/regex.cpp
Examining data/logstalgia-1.1.0/src/core/seeklog.cpp
Examining data/logstalgia-1.1.0/src/core/settings.h
Examining data/logstalgia-1.1.0/src/core/vectors.cpp
Examining data/logstalgia-1.1.0/src/core/frustum.h
Examining data/logstalgia-1.1.0/src/core/timezone.h
Examining data/logstalgia-1.1.0/src/core/shader.cpp
Examining data/logstalgia-1.1.0/src/core/quadtree.cpp
Examining data/logstalgia-1.1.0/src/core/plane.cpp
Examining data/logstalgia-1.1.0/src/core/vbo.h
Examining data/logstalgia-1.1.0/src/core/stringhash.h
Examining data/logstalgia-1.1.0/src/core/gl.h
Examining data/logstalgia-1.1.0/src/core/utf8/checked.h
Examining data/logstalgia-1.1.0/src/core/utf8/unchecked.h
Examining data/logstalgia-1.1.0/src/core/utf8/core.h
Examining data/logstalgia-1.1.0/src/core/utf8/utf8.h
Examining data/logstalgia-1.1.0/src/core/frustum.cpp
Examining data/logstalgia-1.1.0/src/core/texture.cpp
Examining data/logstalgia-1.1.0/src/core/shader.cc
Examining data/logstalgia-1.1.0/src/core/mousecursor.cpp
Examining data/logstalgia-1.1.0/src/slider.cpp

FINAL RESULTS:

data/logstalgia-1.1.0/src/core/fxfont.cpp:547:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf (buf, 4096, str, vl);
data/logstalgia-1.1.0/src/core/logger.cpp:55:27:  [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.
        int string_size = vsnprintf(buffer, sizeof(msgbuff), str, vl) + 1; \
data/logstalgia-1.1.0/src/core/logger.cpp:59:27:  [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.
            string_size = vsnprintf(buffer, string_size, str, vl); \
data/logstalgia-1.1.0/src/core/ppm.cpp:175:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ppmheader, "P6\n# Generated by %s\n%d %d\n255\n",
data/logstalgia-1.1.0/src/core/sdlapp.cpp:81:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(consoleTitle, "%s Console", gSDLAppTitle.c_str());
data/logstalgia-1.1.0/src/core/sdlapp.cpp:84:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(consoleTitle, "%s Console %d", gSDLAppTitle.c_str(), ++console_suffix);
data/logstalgia-1.1.0/src/core/sdlapp.h:75:13:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
            vsnprintf(msg, 65536, str, vl);
data/logstalgia-1.1.0/src/core/shader_common.cpp:100:27:  [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.
        int string_size = vsnprintf(sub, sizeof(sub), value, vl);
data/logstalgia-1.1.0/src/core/shader_common.cpp:104:27:  [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.
            string_size = vsnprintf(buffer, string_size, value, vl);
data/logstalgia-1.1.0/src/core/shader_common.cpp:141:27:  [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.
        int string_size = vsnprintf(sub, sizeof(sub), value, vl);
data/logstalgia-1.1.0/src/core/shader_common.cpp:145:27:  [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.
            string_size = vsnprintf(buffer, string_size, value, vl);
data/logstalgia-1.1.0/src/core/shader_common.cpp:1166:27:  [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.
        int string_size = vsnprintf(sub, sizeof(sub), value, vl);
data/logstalgia-1.1.0/src/core/shader_common.cpp:1170:27:  [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.
            string_size = vsnprintf(buffer, string_size, value, vl);
data/logstalgia-1.1.0/src/logstalgia.cpp:598: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.
        vsnprintf(msgbuff, 1024, str, vl);
data/logstalgia-1.1.0/src/logstalgia.cpp:1824:5:  [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.
    snprintf(highscore_str, 256, "%08" PRIu64, highscore);
data/logstalgia-1.1.0/src/core/sdlapp.cpp:66: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.
    } else if(getenv("TERM") != 0) {
data/logstalgia-1.1.0/src/core/timezone.cpp:13:28:  [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* current_tz_env = getenv("TZ");
data/logstalgia-1.1.0/src/core/conffile.cpp:88: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 floattostr[256];
data/logstalgia-1.1.0/src/core/conffile.cpp:95: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 inttostr[256];
data/logstalgia-1.1.0/src/core/conffile.cpp:106: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 vectostr[256];
data/logstalgia-1.1.0/src/core/conffile.cpp:113: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 vectostr[256];
data/logstalgia-1.1.0/src/core/conffile.cpp:120: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 vectostr[256];
data/logstalgia-1.1.0/src/core/conffile.cpp:139: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(value.c_str());
data/logstalgia-1.1.0/src/core/conffile.cpp:464:9:  [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(conffile.c_str());
data/logstalgia-1.1.0/src/core/conffile.cpp:512: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 buff[1024];
data/logstalgia-1.1.0/src/core/conffile.cpp:800:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char linebuff[256];
data/logstalgia-1.1.0/src/core/conffile.cpp:826:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char linebuff[256];
data/logstalgia-1.1.0/src/core/display.cpp:125: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.
        char glewerr[1024];
data/logstalgia-1.1.0/src/core/ftgl/FTUnicode.h:151:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static const char utf8bytes[256];
data/logstalgia-1.1.0/src/core/fxfont.cpp:542:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[4096];
data/logstalgia-1.1.0/src/core/logger.cpp:49:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char msgbuff[65536]; \
data/logstalgia-1.1.0/src/core/png_writer.cpp:41:17:  [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).
bool PNGWriter::open(const std::string& filename) {
data/logstalgia-1.1.0/src/core/png_writer.cpp:64:9:  [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).
    if(!open(filename)) return;
data/logstalgia-1.1.0/src/core/png_writer.cpp:142:19:  [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).
       if(!writer.open(filename)) {
data/logstalgia-1.1.0/src/core/png_writer.h:45: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).
    bool open(const std::string& filename);
data/logstalgia-1.1.0/src/core/ppm.h:75: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 ppmheader[1024];
data/logstalgia-1.1.0/src/core/regex.cpp:118:37:  [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(new_str[j] == '$' && atoi(&(new_str[j+1])) == i) {
data/logstalgia-1.1.0/src/core/sdlapp.cpp:79: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 consoleTitle[512];
data/logstalgia-1.1.0/src/core/sdlapp.cpp:189: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 szAppPath[MAX_PATH];
data/logstalgia-1.1.0/src/core/sdlapp.cpp:205: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 cwd_buff[1024];
data/logstalgia-1.1.0/src/core/sdlapp.cpp:283:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int width = atoi(widthstr.c_str());
data/logstalgia-1.1.0/src/core/sdlapp.cpp:284:30:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
                int height = atoi(heightstr.c_str());
data/logstalgia-1.1.0/src/core/sdlapp.h:72: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.
        char msg[65536];
data/logstalgia-1.1.0/src/core/settings.cpp:91: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 viewportbuff[256];
data/logstalgia-1.1.0/src/core/settings.cpp:105:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char windowbuff[256];
data/logstalgia-1.1.0/src/core/settings.cpp:131: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).
        x = atoi(matches[0].c_str());
data/logstalgia-1.1.0/src/core/settings.cpp:132: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).
        y = atoi(matches[1].c_str());
data/logstalgia-1.1.0/src/core/settings.cpp:145: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).
        x = atoi(matches[0].c_str());
data/logstalgia-1.1.0/src/core/settings.cpp:146: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).
        y = atoi(matches[1].c_str());
data/logstalgia-1.1.0/src/core/settings.cpp:289: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).
    timeinfo.tm_year = atoi(results[0].c_str()) - 1900;
data/logstalgia-1.1.0/src/core/settings.cpp:290: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).
    timeinfo.tm_mon  = atoi(results[1].c_str()) - 1;
data/logstalgia-1.1.0/src/core/settings.cpp:291: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).
    timeinfo.tm_mday = atoi(results[2].c_str());
data/logstalgia-1.1.0/src/core/settings.cpp:295:28:  [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).
        timeinfo.tm_hour = atoi(results[3].c_str());
data/logstalgia-1.1.0/src/core/settings.cpp:296:28:  [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).
        timeinfo.tm_min  = atoi(results[4].c_str());
data/logstalgia-1.1.0/src/core/settings.cpp:298:32:  [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).
            timeinfo.tm_sec  = atoi(results[5].c_str());
data/logstalgia-1.1.0/src/core/settings.cpp:305: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).
        int tz_hour = atoi(results[7].c_str());
data/logstalgia-1.1.0/src/core/settings.cpp:309:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            tz_min = atoi(results[8].c_str());
data/logstalgia-1.1.0/src/core/shader.cc:116: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.
        char info_log[info_log_length];
data/logstalgia-1.1.0/src/core/shader.cc:256: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.
        char info_log[info_log_length];
data/logstalgia-1.1.0/src/core/shader_common.cpp:95: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 sub[65536];
data/logstalgia-1.1.0/src/core/shader_common.cpp:136: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 sub[65536];
data/logstalgia-1.1.0/src/core/shader_common.cpp:246: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 buff[256];
data/logstalgia-1.1.0/src/core/shader_common.cpp:278: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 buff[256];
data/logstalgia-1.1.0/src/core/shader_common.cpp:309: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 buff[256];
data/logstalgia-1.1.0/src/core/shader_common.cpp:338: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 buff[256];
data/logstalgia-1.1.0/src/core/shader_common.cpp:370: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 buff[256];
data/logstalgia-1.1.0/src/core/shader_common.cpp:396: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 buff[256];
data/logstalgia-1.1.0/src/core/shader_common.cpp:428: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 buff[256];
data/logstalgia-1.1.0/src/core/shader_common.cpp:459: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 buff[256];
data/logstalgia-1.1.0/src/core/shader_common.cpp:490: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 buff[1024];
data/logstalgia-1.1.0/src/core/shader_common.cpp:525: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 buff[1024];
data/logstalgia-1.1.0/src/core/shader_common.cpp:614: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 buff[1024];
data/logstalgia-1.1.0/src/core/shader_common.cpp:706: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 buff[1024];
data/logstalgia-1.1.0/src/core/shader_common.cpp:796: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 buff[1024];
data/logstalgia-1.1.0/src/core/shader_common.cpp:827:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char line_detail[1024];
data/logstalgia-1.1.0/src/core/shader_common.cpp:850: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).
    int line_no = atoi(matches[0].c_str());
data/logstalgia-1.1.0/src/core/shader_common.cpp:853:32:  [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).
        int redefine_line_no = atoi(matches[0].c_str());
data/logstalgia-1.1.0/src/core/shader_common.cpp:964: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).
        version = atoi(matches[0].c_str());
data/logstalgia-1.1.0/src/core/shader_common.cpp:987:37:  [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_t uniform_length = atoi(matches[2].c_str());
data/logstalgia-1.1.0/src/core/shader_common.cpp:1161: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 sub[65536];
data/logstalgia-1.1.0/src/core/texture.cpp:65: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.
        char res_name[256];
data/logstalgia-1.1.0/src/core/tga.cpp:79:17:  [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).
bool TGAWriter::open(const std::string& filename) {
data/logstalgia-1.1.0/src/core/tga.cpp:102:9:  [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).
    if(!open(filename)) return;
data/logstalgia-1.1.0/src/core/tga.cpp:117:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    const char tga_header[12] = { 0, 0, image_type, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
data/logstalgia-1.1.0/src/core/tga.cpp:230:19:  [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).
       if(!writer.open(filename)) {
data/logstalgia-1.1.0/src/core/tga.h:60: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).
    bool open(const std::string& filename);
data/logstalgia-1.1.0/src/custom.cpp:29:23:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    entry.timestamp = atol(matches[0].c_str());
data/logstalgia-1.1.0/src/custom.cpp:33:27:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    entry.response_size = atol(matches[4].c_str());
data/logstalgia-1.1.0/src/custom.cpp:48:32:  [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).
            entry.successful = atoi(success.c_str())==1 ? true : false;
data/logstalgia-1.1.0/src/logentry.cpp:89: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).
    int num = atoi(parts[part_count-1].c_str());
data/logstalgia-1.1.0/src/logentry.cpp:118:16:  [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).
    int code = atoi(response_code.c_str());
data/logstalgia-1.1.0/src/logentry.cpp:125:16:  [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).
    int code = atoi(response_code.c_str());
data/logstalgia-1.1.0/src/logentry.cpp:257: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.
        char timestamp_buff[256];
data/logstalgia-1.1.0/src/logstalgia.cpp:378: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.
        char cwd_buff[1024];
data/logstalgia-1.1.0/src/logstalgia.cpp:386: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.
        char filepath[_MAX_PATH];
data/logstalgia-1.1.0/src/logstalgia.cpp:435: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 cwd_buff[1024];
data/logstalgia-1.1.0/src/logstalgia.cpp:443: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 filepath[_MAX_PATH];
data/logstalgia-1.1.0/src/logstalgia.cpp:572: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 pngname[256];
data/logstalgia-1.1.0/src/logstalgia.cpp:593: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 msgbuff[1024];
data/logstalgia-1.1.0/src/logstalgia.cpp:717:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char datestr[256];
data/logstalgia-1.1.0/src/logstalgia.cpp:1451:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char datestr[256];
data/logstalgia-1.1.0/src/logstalgia.cpp:1452:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char timestr[256];
data/logstalgia-1.1.0/src/logstalgia.cpp:1823: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 highscore_str[256];
data/logstalgia-1.1.0/src/main.cpp:26: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 cwd_buff[1024];
data/logstalgia-1.1.0/src/main.cpp:34: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 filepath[_MAX_PATH];
data/logstalgia-1.1.0/src/main.cpp:186:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            char errormsg[1024];
data/logstalgia-1.1.0/src/main.cpp:208: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.
        char errormsg[1024];
data/logstalgia-1.1.0/src/ncsa.cpp:68: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).
    day    = atoi(matches[0].c_str());
data/logstalgia-1.1.0/src/ncsa.cpp:69: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).
    month  = atoi(matches[1].c_str());
data/logstalgia-1.1.0/src/ncsa.cpp:70: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).
    year   = atoi(matches[2].c_str());
data/logstalgia-1.1.0/src/ncsa.cpp:71: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).
    hour   = atoi(matches[3].c_str());
data/logstalgia-1.1.0/src/ncsa.cpp:72: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).
    minute = atoi(matches[4].c_str());
data/logstalgia-1.1.0/src/ncsa.cpp:73: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).
    second = atoi(matches[5].c_str());
data/logstalgia-1.1.0/src/ncsa.cpp:91: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).
    int tz_hour = atoi(matches[7].substr(0,2).c_str());
data/logstalgia-1.1.0/src/ncsa.cpp:92: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).
    int tz_min  = atoi(matches[7].substr(2,2).c_str());
data/logstalgia-1.1.0/src/ncsa.cpp:125:27:  [2] (integer) atol:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    entry.response_size = atol(matches[4].c_str());
data/logstalgia-1.1.0/src/ncsa.cpp:161:16:  [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).
    int code = atoi(entry.response_code.c_str());
data/logstalgia-1.1.0/src/settings.cpp:758: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.
        char background_hex[256];
data/logstalgia-1.1.0/src/settings.cpp:765: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.
        char timestr[256];
data/logstalgia-1.1.0/src/settings.cpp:772: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.
        char timestr[256];
data/logstalgia-1.1.0/src/settings.cpp:907:85:  [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).
        int max_depth    = group_definition[4].empty() ? settings.path_max_depth  : atoi(group_definition[4].c_str());
data/logstalgia-1.1.0/src/settings.cpp:908:85:  [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).
        int abbrev_depth = group_definition[5].empty() ? settings.path_abbr_depth : atoi(group_definition[5].c_str());
data/logstalgia-1.1.0/src/settings.cpp:910:28:  [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).
        int percent      = atoi(group_definition[6].c_str());
data/logstalgia-1.1.0/src/summarizer.cpp:229: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 buff[256];
data/logstalgia-1.1.0/src/summarizer.cpp:485: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 buff[1024];
data/logstalgia-1.1.0/src/summarizer.cpp:772: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).
    int ai = atoi(a.str.c_str());
data/logstalgia-1.1.0/src/summarizer.cpp:773: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).
    int bi = atoi(b.str.c_str());
data/logstalgia-1.1.0/src/tests.cpp:7: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 error[1024];\
data/logstalgia-1.1.0/src/core/sdlapp.cpp:128:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar();
data/logstalgia-1.1.0/src/core/sdlapp.cpp:149:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar();
data/logstalgia-1.1.0/src/core/seeklog.cpp:128:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!file->read(filebuffer, file_size)) {
data/logstalgia-1.1.0/src/settings.cpp:117:9:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        getchar();

ANALYSIS SUMMARY:

Hits = 132
Lines analyzed = 18728 in approximately 0.45 seconds (41657 lines/second)
Physical Source Lines of Code (SLOC) = 11825
Hits@level = [0] 103 [1]   4 [2] 111 [3]   2 [4]  15 [5]   0
Hits@level+ = [0+] 235 [1+] 132 [2+] 128 [3+]  17 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 19.8732 [1+] 11.1628 [2+] 10.8245 [3+] 1.43763 [4+] 1.2685 [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.