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/solvespace-2.3+repack1/exposed/CDemo.c
Examining data/solvespace-2.3+repack1/include/slvs.h
Examining data/solvespace-2.3+repack1/src/expr.cpp
Examining data/solvespace-2.3+repack1/src/modify.cpp
Examining data/solvespace-2.3+repack1/src/clipboard.cpp
Examining data/solvespace-2.3+repack1/src/lib.cpp
Examining data/solvespace-2.3+repack1/src/style.cpp
Examining data/solvespace-2.3+repack1/src/solvespace.h
Examining data/solvespace-2.3+repack1/src/file.cpp
Parsing failed to find end of parameter list; semicolon terminated it in (wa.begin(), wa.end(), wb.begin(), /*wb.end(),*/
                [](wchar_t wca, wchar_t wcb) { return towlower(wca) == towlower(wcb); });
#elif defined(__APPLE__)
    return !strcasecmp(a.c_str(), b.
Examining data/solvespace-2.3+repack1/src/request.cpp
Examining data/solvespace-2.3+repack1/src/generate.cpp
Examining data/solvespace-2.3+repack1/src/describescreen.cpp
Examining data/solvespace-2.3+repack1/src/ttf.h
Examining data/solvespace-2.3+repack1/src/undoredo.cpp
Examining data/solvespace-2.3+repack1/src/exportstep.cpp
Examining data/solvespace-2.3+repack1/src/drawentity.cpp
Examining data/solvespace-2.3+repack1/src/system.cpp
Examining data/solvespace-2.3+repack1/src/view.cpp
Examining data/solvespace-2.3+repack1/src/polygon.h
Examining data/solvespace-2.3+repack1/src/ttf.cpp
Examining data/solvespace-2.3+repack1/src/win32/w32util.cpp
Examining data/solvespace-2.3+repack1/src/win32/w32main.cpp
Examining data/solvespace-2.3+repack1/src/confscreen.cpp
Examining data/solvespace-2.3+repack1/src/groupmesh.cpp
Examining data/solvespace-2.3+repack1/src/mouse.cpp
Examining data/solvespace-2.3+repack1/src/mesh.cpp
Examining data/solvespace-2.3+repack1/src/util.cpp
Examining data/solvespace-2.3+repack1/src/polygon.cpp
Examining data/solvespace-2.3+repack1/src/bsp.cpp
Examining data/solvespace-2.3+repack1/src/constraint.cpp
Examining data/solvespace-2.3+repack1/src/glhelper.cpp
Examining data/solvespace-2.3+repack1/src/unix/gloffscreen.cpp
Examining data/solvespace-2.3+repack1/src/unix/unixutil.cpp
Examining data/solvespace-2.3+repack1/src/unix/gloffscreen.h
Examining data/solvespace-2.3+repack1/src/draw.cpp
Examining data/solvespace-2.3+repack1/src/dsc.h
Examining data/solvespace-2.3+repack1/src/expr.h
Examining data/solvespace-2.3+repack1/src/srf/surface.cpp
Examining data/solvespace-2.3+repack1/src/srf/surface.h
Examining data/solvespace-2.3+repack1/src/srf/curve.cpp
Examining data/solvespace-2.3+repack1/src/srf/ratpoly.cpp
Examining data/solvespace-2.3+repack1/src/srf/raycast.cpp
Examining data/solvespace-2.3+repack1/src/srf/boolean.cpp
Examining data/solvespace-2.3+repack1/src/srf/surfinter.cpp
Examining data/solvespace-2.3+repack1/src/srf/triangulate.cpp
Examining data/solvespace-2.3+repack1/src/srf/merge.cpp
Examining data/solvespace-2.3+repack1/src/entity.cpp
Examining data/solvespace-2.3+repack1/src/export.cpp
Examining data/solvespace-2.3+repack1/src/textscreens.cpp
Examining data/solvespace-2.3+repack1/src/sketch.h
Examining data/solvespace-2.3+repack1/src/solvespace.cpp
Examining data/solvespace-2.3+repack1/src/group.cpp
Examining data/solvespace-2.3+repack1/src/drawconstraint.cpp
Examining data/solvespace-2.3+repack1/src/constrainteq.cpp
Examining data/solvespace-2.3+repack1/src/importdxf.cpp
Examining data/solvespace-2.3+repack1/src/gtk/gtkmain.cpp
Examining data/solvespace-2.3+repack1/src/graphicswin.cpp
Examining data/solvespace-2.3+repack1/src/exportvector.cpp
Examining data/solvespace-2.3+repack1/src/textwin.cpp
Examining data/solvespace-2.3+repack1/src/toolbar.cpp
Examining data/solvespace-2.3+repack1/src/ui.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/drw_classes.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/drw_objects.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/drw_header.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/libdxfrw.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/drw_classes.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/drw_objects.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/libdxfrw.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/drw_header.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/libdwgr.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/drw_base.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/drw_interface.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/libdwgr.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/drw_entities.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader15.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgutil.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader18.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader27.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/rscodec.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_cptable936.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader15.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader24.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_cptable932.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader21.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgutil.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_cptables.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/rscodec.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader18.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader24.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_cptable950.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_cptable949.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_textcodec.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_dbg.cpp
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader21.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgreader27.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_dbg.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_textcodec.h
Examining data/solvespace-2.3+repack1/extlib/libdxfrw/drw_entities.h
Examining data/solvespace-2.3+repack1/tools/png2c.cpp
Examining data/solvespace-2.3+repack1/tools/lff2c.cpp
Examining data/solvespace-2.3+repack1/tools/unifont2c.cpp

FINAL RESULTS:

data/solvespace-2.3+repack1/src/textwin.cpp:169:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(buf, "%s%.2f", v < 0 ? "" : " ", v);
data/solvespace-2.3+repack1/src/textwin.cpp:174:21:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                    sprintf(buf, "%s%.3f", v < 0 ? "" : " ", v);
data/solvespace-2.3+repack1/src/unix/unixutil.cpp:21: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, sizeof(buf), str, f);
data/solvespace-2.3+repack1/src/util.cpp:14:16:  [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 size = vsnprintf(NULL, 0, fmt, va);
data/solvespace-2.3+repack1/src/util.cpp:22: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(&result[0], size + 1, fmt, va);
data/solvespace-2.3+repack1/src/util.cpp:122:5:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    vsprintf(inBuf, str, f);
data/solvespace-2.3+repack1/src/bsp.cpp:23:5:  [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(0); // Let's be deterministic, at least!
data/solvespace-2.3+repack1/src/gtk/gtkmain.cpp:73:8:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if(getenv("XDG_CONFIG_HOME")) {
data/solvespace-2.3+repack1/src/gtk/gtkmain.cpp:74:27:  [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.
        dir = std::string(getenv("XDG_CONFIG_HOME")) + "/solvespace";
data/solvespace-2.3+repack1/src/gtk/gtkmain.cpp:75: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("HOME")) {
data/solvespace-2.3+repack1/src/gtk/gtkmain.cpp:76:27:  [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.
        dir = std::string(getenv("HOME")) + "/.config/solvespace";
data/solvespace-2.3+repack1/src/mesh.cpp:373:5:  [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(0);
data/solvespace-2.3+repack1/src/srf/raycast.cpp:430:5:  [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(0);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_textcodec.cpp:221:14:  [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.
    unsigned char ret[5];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_textcodec.cpp:290:25:  [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 d[3];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/drw_textcodec.cpp:375:25:  [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 d[3];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.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 buf[8];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:835: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[2];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgutil.cpp:25: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[9]= {'\0'};
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgutil.cpp:44:14:  [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.
    unsigned char data[255];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgutil.cpp:70:14:  [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.
    unsigned char data[255];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.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 buffer[2];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:138: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[2];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:148: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[4];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:159: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[8];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:170: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[8];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:180: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[1];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:190: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).
    *code = atoi(text.c_str());
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:215: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).
        intData = atoi(text.c_str());
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:258: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).
        intData = atoi(text.c_str());
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.cpp:107: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 bufcode[2];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.cpp:146: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 bufcode[2];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.cpp:147: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[2];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.cpp:158: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[4];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.cpp:172: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[8];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.cpp:190: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 bufcode[2];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.cpp:191: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[8];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.cpp:207: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[1];
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfwriter.cpp:208: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 bufcode[2];
data/solvespace-2.3+repack1/extlib/libdxfrw/libdwgr.cpp:67:12:  [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).
    isOk = open(&stream);
data/solvespace-2.3+repack1/extlib/libdxfrw/libdwgr.cpp:90:12:  [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).
    isOk = open(&stream);
data/solvespace-2.3+repack1/extlib/libdxfrw/libdwgr.cpp:112:12:  [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 dwgR::open(std::istream *stream){
data/solvespace-2.3+repack1/extlib/libdxfrw/libdwgr.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 line[7];
data/solvespace-2.3+repack1/extlib/libdxfrw/libdwgr.h:37: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(std::istream *stream);
data/solvespace-2.3+repack1/extlib/libdxfrw/libdxfrw.cpp:69: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[22];
data/solvespace-2.3+repack1/extlib/libdxfrw/libdxfrw.cpp:70: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 line2[22] = "AutoCAD Binary DXF\r\n";
data/solvespace-2.3+repack1/extlib/libdxfrw/libdxfrw.cpp:2757: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[9]= {'\0'};
data/solvespace-2.3+repack1/src/confscreen.cpp:349:51:  [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.maxSegments = min(1000, max(7, atoi(s)));
data/solvespace-2.3+repack1/src/confscreen.cpp:352:57:  [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.exportMaxSegments = min(1000, max(7, atoi(s)));
data/solvespace-2.3+repack1/src/confscreen.cpp:371:21:  [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 v = atoi(s);
data/solvespace-2.3+repack1/src/drawentity.cpp:384:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(X, bm.X, n*sizeof(double));
data/solvespace-2.3+repack1/src/export.cpp:772: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 str[80] = {};
data/solvespace-2.3+repack1/src/export.cpp:773:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(str, "STL exported mesh");
data/solvespace-2.3+repack1/src/expr.cpp:735: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 number[70];
data/solvespace-2.3+repack1/src/expr.cpp:747: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 name[70];
data/solvespace-2.3+repack1/src/file.cpp:382: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).
                case 'b': p->b() = (atoi(val) != 0);        break;
data/solvespace-2.3+repack1/src/file.cpp:383: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).
                case 'd': p->d() = atoi(val);               break;
data/solvespace-2.3+repack1/src/file.cpp:404:25:  [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 line2[1024];
data/solvespace-2.3+repack1/src/file.cpp:444: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[1024];
data/solvespace-2.3+repack1/src/file.cpp:530: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[1024];
data/solvespace-2.3+repack1/src/glhelper.cpp:764:13:  [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(mappedTexture + row*64*16*16 + col*16 + i*64*16,
data/solvespace-2.3+repack1/src/solvespace.h:158: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 *patterns[3];
data/solvespace-2.3+repack1/src/style.cpp:430:13:  [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(SS.bgImage.fromFile + ((h - 1) - i)*(rw*3), rows[i], w*3);
data/solvespace-2.3+repack1/src/style.cpp:823: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 *patternsSource[patternCount] = {
data/solvespace-2.3+repack1/src/textscreens.cpp:771:46:  [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).
            shown.dimSteps = min(300, max(1, atoi(s)));
data/solvespace-2.3+repack1/src/textwin.cpp:145: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 buf[1024];
data/solvespace-2.3+repack1/src/textwin.cpp:154:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(buf, "%d", v);
data/solvespace-2.3+repack1/src/textwin.cpp:159:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(buf, "%08x", v);
data/solvespace-2.3+repack1/src/textwin.cpp:164:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(buf, "%.2f", v);
data/solvespace-2.3+repack1/src/textwin.cpp:179:21:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                    sprintf(buf, "%.3f", v);
data/solvespace-2.3+repack1/src/textwin.cpp:193:25:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                        sprintf(buf, "%c", v);
data/solvespace-2.3+repack1/src/unix/gloffscreen.cpp:80:13:  [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(&_pixels[_width * i], &_pixels_inv[_width * (_height - i - 1)], _width * 4);
data/solvespace-2.3+repack1/src/unix/unixutil.cpp:19:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[1024*50];
data/solvespace-2.3+repack1/src/unix/unixutil.cpp:31:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    return fopen(filename.c_str(), mode);
data/solvespace-2.3+repack1/src/util.cpp:121: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 inBuf[1024*50];
data/solvespace-2.3+repack1/src/util.cpp:124: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 outBuf[1024*50];
data/solvespace-2.3+repack1/src/win32/w32main.cpp:1014:5:  [2] (buffer) wchar_t:
  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.
    wchar_t filenameC[len] = {};
data/solvespace-2.3+repack1/src/win32/w32util.cpp:17:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    static char buf[1024*50];
data/solvespace-2.3+repack1/src/win32/w32util.cpp:52:17:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    DWORD len = MultiByteToWideChar(CP_UTF8, 0, in, -1, NULL, 0);
data/solvespace-2.3+repack1/src/win32/w32util.cpp:54:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    if(!MultiByteToWideChar(CP_UTF8, 0, in, -1, &out[0], len))
data/solvespace-2.3+repack1/src/win32/w32util.cpp:64:16:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    out.resize(MultiByteToWideChar(CP_UTF8, 0, &in[0], in.length(), NULL, 0));
data/solvespace-2.3+repack1/src/win32/w32util.cpp:65:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    if(!MultiByteToWideChar(CP_UTF8, 0, &in[0], in.length(), &out[0], out.length()))
data/solvespace-2.3+repack1/tools/lff2c.cpp:207:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char buf[128] = {0};
data/solvespace-2.3+repack1/tools/png2c.cpp:10:16:  [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).
    FILE *fp = fopen(filename, "rb");
data/solvespace-2.3+repack1/tools/png2c.cpp:84:20:  [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).
    FILE *source = fopen(argv[1], "wt");
data/solvespace-2.3+repack1/tools/png2c.cpp:88:20:  [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).
    FILE *header = fopen(argv[2], "wt");
data/solvespace-2.3+repack1/tools/unifont2c.cpp:16:16:  [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).
    FILE *fp = fopen(filename, "rb");
data/solvespace-2.3+repack1/tools/unifont2c.cpp:121:21:  [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).
    FILE *unifont = fopen(argv[2], "rb");
data/solvespace-2.3+repack1/tools/unifont2c.cpp:126: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 buf[100];
data/solvespace-2.3+repack1/tools/unifont2c.cpp:169:20:  [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).
    FILE *source = fopen(argv[1], "wt");
data/solvespace-2.3+repack1/tools/unifont2c.cpp:214:22:  [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.
            unsigned char compressed_chunk_data[16384] = {};
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:121:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool dwgFileStream::read(duint8* s, duint64 n){
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:122:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    stream->read (reinterpret_cast<char*>(s),n);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:136:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool dwgCharStream::read(duint8* s, duint64 n){
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:204:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (&buffer,1);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:221:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (&currByte,1);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:231:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (&buffer,1);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:253:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (&buffer,1);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:262:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (&buffer,1);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:279:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (&buffer,1);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:288:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (&buffer,1);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:361:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (buffer,8);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:383:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read (&buffer,1);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:399:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read (buffer,2);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:419:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (buffer,8);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:706:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (buffer,4);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:720:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read (buffer,6);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:845:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read (buf,size);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:865:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read (tmpBuf,n);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.cpp:888:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read (tmpBuf,n);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.h:28:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read(duint8* s, duint64 n) = 0;
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.h:45:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read(duint8* s, duint64 n);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dwgbuffer.h:65:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read(duint8* s, duint64 n);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:107:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read(buffer,2);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:113:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        filestr->read(buffer,2);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:139:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read(buffer,2);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:149:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read(buffer,4);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:160:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read(buffer,8);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:171:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read(buffer,8);
data/solvespace-2.3+repack1/extlib/libdxfrw/intern/dxfreader.cpp:181:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    filestr->read(buffer,1);
data/solvespace-2.3+repack1/extlib/libdxfrw/libdwgr.cpp:84:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool dwgR::read(std::istream &stream, DRW_Interface *interface_, bool ext){
data/solvespace-2.3+repack1/extlib/libdxfrw/libdwgr.cpp:114:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    stream->read (line, 6);
data/solvespace-2.3+repack1/extlib/libdxfrw/libdwgr.h:30:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(std::istream &stream, DRW_Interface *interface_, bool ext);
data/solvespace-2.3+repack1/extlib/libdxfrw/libdxfrw.cpp:63:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
bool dxfRW::read(std::istream &stream, DRW_Interface *interface_, bool ext){
data/solvespace-2.3+repack1/extlib/libdxfrw/libdxfrw.cpp:73:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    stream.read (line, 22);
data/solvespace-2.3+repack1/extlib/libdxfrw/libdxfrw.h:39:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read(std::istream &stream, DRW_Interface *interface_, bool ext);
data/solvespace-2.3+repack1/src/file.cpp:11:31:  [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 memcmp(str, start, strlen(start)) == 0;
data/solvespace-2.3+repack1/src/file.cpp:695:17:  [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(wa.begin(), wa.end(), wb.begin(), /*wb.end(),*/
data/solvespace-2.3+repack1/src/importdxf.cpp:916:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!dxfRW().read(stream, &interface, /*ext=*/false)) {
data/solvespace-2.3+repack1/src/importdxf.cpp:938:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(!dwgR().read(stream, &interface, /*ext=*/false)) {
data/solvespace-2.3+repack1/src/textwin.cpp:150:13:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
            strcpy(buf, "");
data/solvespace-2.3+repack1/src/textwin.cpp:184:53:  [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).
                    memcpy(buf, s, min(sizeof(buf), strlen(s)+1));
data/solvespace-2.3+repack1/src/textwin.cpp:191:25:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                        strcpy(buf, "");
data/solvespace-2.3+repack1/src/textwin.cpp:248:21:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
                    strcpy(buf, "%");
data/solvespace-2.3+repack1/src/textwin.cpp:253:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(buf, fmt, it2 - it1);
data/solvespace-2.3+repack1/src/unix/unixutil.cpp:30:29:  [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(filename.length() != strlen(filename.c_str())) oops();
data/solvespace-2.3+repack1/src/unix/unixutil.cpp:36:29:  [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(filename.length() != strlen(filename.c_str())) oops();
data/solvespace-2.3+repack1/src/util.cpp:52:36:  [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).
    int i, ls = str.length(), le = strlen(ext);
data/solvespace-2.3+repack1/src/win32/w32main.cpp:1015:5:  [1] (buffer) wcsncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    wcsncpy(filenameC, Widen(*filename).c_str(), len - 1);
data/solvespace-2.3+repack1/src/win32/w32util.cpp:84:29:  [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(filename.length() != strlen(filename.c_str())) oops();
data/solvespace-2.3+repack1/src/win32/w32util.cpp:90:29:  [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(filename.length() != strlen(filename.c_str())) oops();
data/solvespace-2.3+repack1/tools/png2c.cpp:104:41:  [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 *stemname = (char*) calloc(strlen(basename), 1);
data/solvespace-2.3+repack1/tools/png2c.cpp:105:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(stemname, basename, strchr(basename, '.') - basename);
data/solvespace-2.3+repack1/tools/png2c.cpp:106:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for(size_t j = 0; j < strlen(stemname); j++) {

ANALYSIS SUMMARY:

Hits = 144
Lines analyzed = 124323 in approximately 3.82 seconds (32565 lines/second)
Physical Source Lines of Code (SLOC) = 111709
Hits@level = [0] 231 [1]  53 [2]  78 [3]   7 [4]   6 [5]   0
Hits@level+ = [0+] 375 [1+] 144 [2+]  91 [3+]  13 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 3.35694 [1+] 1.28906 [2+] 0.814617 [3+] 0.116374 [4+] 0.053711 [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.