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/leocad-19.07.1/common/camera.cpp
Examining data/leocad-19.07.1/common/camera.h
Examining data/leocad-19.07.1/common/group.cpp
Examining data/leocad-19.07.1/common/group.h
Examining data/leocad-19.07.1/common/image.cpp
Examining data/leocad-19.07.1/common/image.h
Examining data/leocad-19.07.1/common/lc_application.cpp
Examining data/leocad-19.07.1/common/lc_application.h
Examining data/leocad-19.07.1/common/lc_array.h
Examining data/leocad-19.07.1/common/lc_basewindow.h
Examining data/leocad-19.07.1/common/lc_category.cpp
Examining data/leocad-19.07.1/common/lc_category.h
Examining data/leocad-19.07.1/common/lc_colors.cpp
Examining data/leocad-19.07.1/common/lc_colors.h
Examining data/leocad-19.07.1/common/lc_commands.cpp
Examining data/leocad-19.07.1/common/lc_commands.h
Examining data/leocad-19.07.1/common/lc_context.cpp
Examining data/leocad-19.07.1/common/lc_context.h
Examining data/leocad-19.07.1/common/lc_file.cpp
Examining data/leocad-19.07.1/common/lc_file.h
Examining data/leocad-19.07.1/common/lc_glext.h
Examining data/leocad-19.07.1/common/lc_glextensions.cpp
Examining data/leocad-19.07.1/common/lc_glextensions.h
Examining data/leocad-19.07.1/common/lc_global.cpp
Examining data/leocad-19.07.1/common/lc_global.h
Examining data/leocad-19.07.1/common/lc_glwidget.h
Examining data/leocad-19.07.1/common/lc_http.cpp
Examining data/leocad-19.07.1/common/lc_http.h
Examining data/leocad-19.07.1/common/lc_library.cpp
Examining data/leocad-19.07.1/common/lc_library.h
Examining data/leocad-19.07.1/common/lc_lxf.cpp
Examining data/leocad-19.07.1/common/lc_lxf.h
Examining data/leocad-19.07.1/common/lc_mainwindow.cpp
Examining data/leocad-19.07.1/common/lc_mainwindow.h
Examining data/leocad-19.07.1/common/lc_math.h
Examining data/leocad-19.07.1/common/lc_mesh.cpp
Examining data/leocad-19.07.1/common/lc_mesh.h
Examining data/leocad-19.07.1/common/lc_model.cpp
Examining data/leocad-19.07.1/common/lc_model.h
Examining data/leocad-19.07.1/common/lc_partselectionwidget.cpp
Examining data/leocad-19.07.1/common/lc_partselectionwidget.h
Examining data/leocad-19.07.1/common/lc_profile.cpp
Examining data/leocad-19.07.1/common/lc_profile.h
Examining data/leocad-19.07.1/common/lc_scene.cpp
Examining data/leocad-19.07.1/common/lc_scene.h
Examining data/leocad-19.07.1/common/lc_selectbycolordialog.cpp
Examining data/leocad-19.07.1/common/lc_selectbycolordialog.h
Examining data/leocad-19.07.1/common/lc_shortcuts.cpp
Examining data/leocad-19.07.1/common/lc_shortcuts.h
Examining data/leocad-19.07.1/common/lc_stringcache.cpp
Examining data/leocad-19.07.1/common/lc_stringcache.h
Examining data/leocad-19.07.1/common/lc_synth.cpp
Examining data/leocad-19.07.1/common/lc_synth.h
Examining data/leocad-19.07.1/common/lc_texture.cpp
Examining data/leocad-19.07.1/common/lc_texture.h
Examining data/leocad-19.07.1/common/lc_timelinewidget.cpp
Examining data/leocad-19.07.1/common/lc_timelinewidget.h
Examining data/leocad-19.07.1/common/lc_viewsphere.cpp
Examining data/leocad-19.07.1/common/lc_viewsphere.h
Examining data/leocad-19.07.1/common/lc_zipfile.cpp
Examining data/leocad-19.07.1/common/lc_zipfile.h
Examining data/leocad-19.07.1/common/light.cpp
Examining data/leocad-19.07.1/common/light.h
Examining data/leocad-19.07.1/common/minifig.cpp
Examining data/leocad-19.07.1/common/minifig.h
Examining data/leocad-19.07.1/common/object.cpp
Examining data/leocad-19.07.1/common/object.h
Examining data/leocad-19.07.1/common/piece.cpp
Examining data/leocad-19.07.1/common/piece.h
Examining data/leocad-19.07.1/common/pieceinf.cpp
Examining data/leocad-19.07.1/common/pieceinf.h
Examining data/leocad-19.07.1/common/project.cpp
Examining data/leocad-19.07.1/common/project.h
Examining data/leocad-19.07.1/common/texfont.cpp
Examining data/leocad-19.07.1/common/texfont.h
Examining data/leocad-19.07.1/common/view.cpp
Examining data/leocad-19.07.1/common/view.h
Examining data/leocad-19.07.1/qt/lc_qaboutdialog.cpp
Examining data/leocad-19.07.1/qt/lc_qaboutdialog.h
Examining data/leocad-19.07.1/qt/lc_qarraydialog.cpp
Examining data/leocad-19.07.1/qt/lc_qarraydialog.h
Examining data/leocad-19.07.1/qt/lc_qcategorydialog.cpp
Examining data/leocad-19.07.1/qt/lc_qcategorydialog.h
Examining data/leocad-19.07.1/qt/lc_qcolorlist.cpp
Examining data/leocad-19.07.1/qt/lc_qcolorlist.h
Examining data/leocad-19.07.1/qt/lc_qcolorpicker.cpp
Examining data/leocad-19.07.1/qt/lc_qcolorpicker.h
Examining data/leocad-19.07.1/qt/lc_qeditgroupsdialog.cpp
Examining data/leocad-19.07.1/qt/lc_qeditgroupsdialog.h
Examining data/leocad-19.07.1/qt/lc_qfinddialog.cpp
Examining data/leocad-19.07.1/qt/lc_qfinddialog.h
Examining data/leocad-19.07.1/qt/lc_qglwidget.cpp
Examining data/leocad-19.07.1/qt/lc_qglwidget.h
Examining data/leocad-19.07.1/qt/lc_qgroupdialog.cpp
Examining data/leocad-19.07.1/qt/lc_qgroupdialog.h
Examining data/leocad-19.07.1/qt/lc_qhtmldialog.cpp
Examining data/leocad-19.07.1/qt/lc_qhtmldialog.h
Examining data/leocad-19.07.1/qt/lc_qimagedialog.cpp
Examining data/leocad-19.07.1/qt/lc_qimagedialog.h
Examining data/leocad-19.07.1/qt/lc_qminifigdialog.cpp
Examining data/leocad-19.07.1/qt/lc_qminifigdialog.h
Examining data/leocad-19.07.1/qt/lc_qmodellistdialog.cpp
Examining data/leocad-19.07.1/qt/lc_qmodellistdialog.h
Examining data/leocad-19.07.1/qt/lc_qpreferencesdialog.cpp
Examining data/leocad-19.07.1/qt/lc_qpreferencesdialog.h
Examining data/leocad-19.07.1/qt/lc_qpropertiesdialog.cpp
Examining data/leocad-19.07.1/qt/lc_qpropertiesdialog.h
Examining data/leocad-19.07.1/qt/lc_qpropertiestree.cpp
Examining data/leocad-19.07.1/qt/lc_qpropertiestree.h
Examining data/leocad-19.07.1/qt/lc_qselectdialog.cpp
Examining data/leocad-19.07.1/qt/lc_qselectdialog.h
Examining data/leocad-19.07.1/qt/lc_qupdatedialog.cpp
Examining data/leocad-19.07.1/qt/lc_qupdatedialog.h
Examining data/leocad-19.07.1/qt/lc_qutils.cpp
Examining data/leocad-19.07.1/qt/lc_qutils.h
Examining data/leocad-19.07.1/qt/lc_renderdialog.cpp
Examining data/leocad-19.07.1/qt/lc_renderdialog.h
Examining data/leocad-19.07.1/qt/lc_setsdatabasedialog.cpp
Examining data/leocad-19.07.1/qt/lc_setsdatabasedialog.h
Examining data/leocad-19.07.1/qt/qtmain.cpp
Examining data/leocad-19.07.1/qt/system.cpp

FINAL RESULTS:

data/leocad-19.07.1/common/camera.cpp:101:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(m_strName, "%s %d", Prefix, max+1);
data/leocad-19.07.1/common/lc_glext.h:535:69:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void *(APIENTRYP PFNGLMAPBUFFERPROC) (GLenum target, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:555:57:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void *APIENTRY glMapBuffer (GLenum target, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:1182:114:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void *(APIENTRYP PFNGLMAPBUFFERRANGEPROC) (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/leocad-19.07.1/common/lc_glext.h:1267:102:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void *APIENTRY glMapBufferRange (GLenum target, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/leocad-19.07.1/common/lc_glext.h:2164:134:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREPROC) (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
data/leocad-19.07.1/common/lc_glext.h:2177:122:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void APIENTRY glBindImageTexture (GLuint unit, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLenum format);
data/leocad-19.07.1/common/lc_glext.h:2620:74:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERPROC) (GLuint buffer, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:2621:119:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/leocad-19.07.1/common/lc_glext.h:2743:62:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void *APIENTRY glMapNamedBuffer (GLuint buffer, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:2744:107:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void *APIENTRY glMapNamedBufferRange (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/leocad-19.07.1/common/lc_glext.h:2883:87:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTARBPROC) (GLuint64 handle, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:2900:75:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void APIENTRY glMakeImageHandleResidentARB (GLuint64 handle, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:4520:72:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void *(APIENTRYP PFNGLMAPBUFFERARBPROC) (GLenum target, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:4532:60:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void *APIENTRY glMapBufferARB (GLenum target, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:6567:77:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFEREXTPROC) (GLuint buffer, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:6679:122:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void *(APIENTRYP PFNGLMAPNAMEDBUFFERRANGEEXTPROC) (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/leocad-19.07.1/common/lc_glext.h:6823:65:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void *APIENTRY glMapNamedBufferEXT (GLuint buffer, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:6935:110:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void *APIENTRY glMapNamedBufferRangeEXT (GLuint buffer, GLintptr offset, GLsizeiptr length, GLbitfield access);
data/leocad-19.07.1/common/lc_glext.h:7670:138:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (APIENTRYP PFNGLBINDIMAGETEXTUREEXTPROC) (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
data/leocad-19.07.1/common/lc_glext.h:7673:126:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void APIENTRY glBindImageTextureEXT (GLuint index, GLuint texture, GLint level, GLboolean layered, GLint layer, GLenum access, GLint format);
data/leocad-19.07.1/common/lc_glext.h:8644:95:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void *(APIENTRYP PFNGLMAPTEXTURE2DINTELPROC) (GLuint texture, GLint level, GLbitfield access, GLint *stride, GLenum *layout);
data/leocad-19.07.1/common/lc_glext.h:8648:83:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void *APIENTRY glMapTexture2DINTEL (GLuint texture, GLint level, GLbitfield access, GLint *stride, GLenum *layout);
data/leocad-19.07.1/common/lc_glext.h:8847:86:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (APIENTRYP PFNGLMAKEIMAGEHANDLERESIDENTNVPROC) (GLuint64 handle, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:8861:74:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void APIENTRY glMakeImageHandleResidentNV (GLuint64 handle, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:10068:79:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (APIENTRYP PFNGLMAKEBUFFERRESIDENTNVPROC) (GLenum target, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:10071:84:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (APIENTRYP PFNGLMAKENAMEDBUFFERRESIDENTNVPROC) (GLuint buffer, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:10082:67:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void APIENTRY glMakeBufferResidentNV (GLenum target, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:10085:72:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void APIENTRY glMakeNamedBufferResidentNV (GLuint buffer, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:10403:90:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
typedef void (APIENTRYP PFNGLVDPAUSURFACEACCESSNVPROC) (GLvdpauSurfaceNV surface, GLenum access);
data/leocad-19.07.1/common/lc_glext.h:10414:78:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
GLAPI void APIENTRY glVDPAUSurfaceAccessNV (GLvdpauSurfaceNV surface, GLenum access);
data/leocad-19.07.1/common/lc_library.cpp:187:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(PieceName, Info->mFileName);
data/leocad-19.07.1/common/lc_library.cpp:766:6:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
					strcpy(Info->m_strDescription, Description);
data/leocad-19.07.1/common/lc_library.cpp:1339:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(FileName, "unofficial/parts/%s", Info->mFileName);
data/leocad-19.07.1/common/lc_library.cpp:1347:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(FileName, "parts/%s", Info->mFileName);
data/leocad-19.07.1/common/lc_library.cpp:1847:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(FileName, "parts/textures/%s.png", Texture->mName);
data/leocad-19.07.1/common/lc_library.cpp:1851:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(FileName, "ldraw/parts/textures/%s.png", Texture->mName);
data/leocad-19.07.1/common/lc_library.cpp:1861:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(FileName, "parts/textures/%s.png", Texture->mName);
data/leocad-19.07.1/common/lc_library.cpp:1869:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(Name, Texture->mName);
data/leocad-19.07.1/common/lc_library.cpp:1872:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(FileName, "parts/textures/%s.png", Name);
data/leocad-19.07.1/common/lc_library.cpp:1938:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(Name, Primitive->mName);
data/leocad-19.07.1/common/lc_library.cpp:2084:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
						sscanf(Token, "%f %f %f %f %f %f %f %f %f %s", &Points[0].x, &Points[0].y, &Points[0].z, &Points[1].x, &Points[1].y, &Points[1].z, &Points[2].x, &Points[2].y, &Points[2].z, FileName);
data/leocad-19.07.1/common/lc_library.cpp:2118:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
						sscanf(Token, "%f %f %f %f %f %f %f %f %f %f %s", &Points[0].x, &Points[0].y, &Points[0].z, &Points[1].x, &Points[1].y, &Points[1].z, &Points[2].x, &Points[2].y, &Points[2].z, &Angle, FileName);
data/leocad-19.07.1/common/lc_library.cpp:2151:7:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
						sscanf(Token, "%f %f %f %f %f %f %f %f %f %f %f %s", &Points[0].x, &Points[0].y, &Points[0].z, &Points[1].x, &Points[1].y, &Points[1].z, &Points[2].x, &Points[2].y, &Points[2].z, &Angle1, &Angle2, FileName);
data/leocad-19.07.1/common/lc_library.cpp:2273:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
				sscanf(Line, "%d %i %f %f %f %f %f %f %f %f %f %f %f %f %s", &LineType, &Dummy, &fm[0], &fm[1], &fm[2], &fm[3], &fm[4], &fm[5], &fm[6], &fm[7], &fm[8], &fm[9], &fm[10], &fm[11], OriginalFileName);
data/leocad-19.07.1/common/lc_library.cpp:2276:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
				strcpy(FileName, OriginalFileName);
data/leocad-19.07.1/common/lc_library.cpp:2346:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
								sprintf(FileName, "unofficial/parts/%s", Info->mFileName);
data/leocad-19.07.1/common/lc_library.cpp:2353:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
								sprintf(FileName, "parts/%s", Info->mFileName);
data/leocad-19.07.1/common/lc_library.cpp:2375:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
								sprintf(IncludeFileName, Folder, FileName);
data/leocad-19.07.1/common/lc_library.cpp:2405:9:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
								sprintf(IncludeFileName, Folder, FileName);
data/leocad-19.07.1/common/lc_library.cpp:3366:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ParentName, Info->mFileName);
data/leocad-19.07.1/common/lc_library.cpp:3405:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(Name, Parent->mFileName);
data/leocad-19.07.1/common/lc_library.cpp:3421:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(Name, Parent->mFileName);
data/leocad-19.07.1/common/lc_mainwindow.cpp:1923:29:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	Label = Label.arg(QLocale::system().toString(Position[0], 'f', 2), QLocale::system().toString(Position[1], 'f', 2), QLocale::system().toString(Position[2], 'f', 2));
data/leocad-19.07.1/common/lc_mainwindow.cpp:1923:78:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	Label = Label.arg(QLocale::system().toString(Position[0], 'f', 2), QLocale::system().toString(Position[1], 'f', 2), QLocale::system().toString(Position[2], 'f', 2));
data/leocad-19.07.1/common/lc_mainwindow.cpp:1923:127:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	Label = Label.arg(QLocale::system().toString(Position[0], 'f', 2), QLocale::system().toString(Position[1], 'f', 2), QLocale::system().toString(Position[2], 'f', 2));
data/leocad-19.07.1/common/lc_mesh.cpp:266:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(Line, "#declare lc_%s = union {\n", MeshName);
data/leocad-19.07.1/common/lc_mesh.cpp:268:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(Line, "#declare lc_%s = mesh {\n", MeshName);
data/leocad-19.07.1/common/lc_mesh.cpp:301:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Line, "material { texture { %s normal { bumps 0.1 scale 2 } } }", ColorTable[Section->ColorIndex]);
data/leocad-19.07.1/common/lc_mesh.cpp:335:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Line, "usemtl %s\n", gColorList[DefaultColorIndex].SafeName);
data/leocad-19.07.1/common/lc_mesh.cpp:337:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Line, "usemtl %s\n", gColorList[Section->ColorIndex].SafeName);
data/leocad-19.07.1/common/lc_synth.cpp:487:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f %s\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:507:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f %s\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:519:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f %s\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:697:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f %s\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:709:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f %s\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:960:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(Line, "1 494 %f %f %f 1 0 0 0 %f 0 0 0 1 %s.dat\n", Offset[0], Offset[1] - 10 - 44.0f * Scale, Offset[2], Scale, SpringPart);
data/leocad-19.07.1/common/lc_texture.cpp:21:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(Texture->mName, QFileInfo(FileName).baseName().toLatin1());
data/leocad-19.07.1/common/project.cpp:1157:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(FileName, Info->mFileName);
data/leocad-19.07.1/common/project.cpp:1162:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Line, "    <ITEMID>%s</ITEMID>\n", FileName);
data/leocad-19.07.1/common/project.cpp:1487:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Line, "\"%s\",\"%s\",%d,%s,%d\n", Info->m_strDescription, gColorList[ColorIt.first].Name, ColorIt.second, Info->mFileName, gColorList[ColorIt.first].Code);
data/leocad-19.07.1/common/project.cpp:2104:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			if (sscanf(Line,"%s%s%s", Src, Dst, Flags) != 3)
data/leocad-19.07.1/common/project.cpp:2117:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(Entry.first, "lg_%s", Dst);
data/leocad-19.07.1/common/project.cpp:2124:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(Entry.first, "ar_%s", Dst);
data/leocad-19.07.1/common/project.cpp:2151:8:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
			if (sscanf(Line,"%d%s%s", &Code, Name, Flags) != 3)
data/leocad-19.07.1/common/project.cpp:2158:4:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
			strcpy(ColorTable[Color].data(), Name);
data/leocad-19.07.1/common/project.cpp:2188:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(Line, "#include \"%s.inc\"\n", Entry.first);
data/leocad-19.07.1/common/project.cpp:2202:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Line, "#declare lc_%s = texture { pigment { rgb <%f, %f, %f> filter 0.9 } finish { ambient 0.3 diffuse 0.2 reflection 0.25 phong 0.3 phong_size 60 } }\n",
data/leocad-19.07.1/common/project.cpp:2207:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Line, "#declare lc_%s = texture { pigment { rgb <%f, %f, %f> } finish { ambient 0.1 phong 0.2 phong_size 20 } }\n",
data/leocad-19.07.1/common/project.cpp:2214:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(ColorTable[ColorIdx].data(), "lc_%s", Color->SafeName);
data/leocad-19.07.1/common/project.cpp:2226:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(Name, ModelPart.Info->mFileName);
data/leocad-19.07.1/common/project.cpp:2236:4:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
			strcat(Name, Suffix);
data/leocad-19.07.1/common/project.cpp:2256:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Entry.first, "lc_%s", Name);
data/leocad-19.07.1/common/project.cpp:2261:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
		sprintf(Line, "#declare lc_%s_clear = lc_%s\n\n", Name, Name);
data/leocad-19.07.1/common/project.cpp:2320:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(Line, "merge {\n object {\n  %s%s\n  texture { %s }\n }\n"
data/leocad-19.07.1/common/project.cpp:2331:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
				sprintf(Line, "object {\n %s%s\n texture { %s }\n matrix <%.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f>\n}\n",
data/leocad-19.07.1/common/project.cpp:2341:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Line, "object {\n lc_%s%s\n texture { %s }\n matrix <%.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f, %.4f>\n}\n",
data/leocad-19.07.1/common/project.cpp:2384:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(Line, "#\n\nmtllib %s\n\n", QFileInfo(MaterialFileName).fileName().toLatin1().constData());
data/leocad-19.07.1/common/project.cpp:2398:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Line, "newmtl %s\nKd %.2f %.2f %.2f\nD %.2f\n\n", Color.SafeName, Color.Value[0], Color.Value[1], Color.Value[2], Color.Value[3]);
data/leocad-19.07.1/common/project.cpp:2400:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
			sprintf(Line, "newmtl %s\nKd %.2f %.2f %.2f\n\n", Color.SafeName, Color.Value[0], Color.Value[1], Color.Value[2]);
data/leocad-19.07.1/qt/lc_qfinddialog.cpp:48:2:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	strcpy(mSearchOptions->Name, name.toLocal8Bit().data());
data/leocad-19.07.1/qt/lc_qutils.cpp:26:28:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	QLocale Locale = QLocale::system();
data/leocad-19.07.1/qt/lc_qutils.cpp:45:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	return QLocale::system().toFloat(Value);
data/leocad-19.07.1/qt/qtmain.cpp:61:3:  [4] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
		lstrcpy(message, TEXT("LeoCAD just crashed. Crash information was saved to the file '"));
data/leocad-19.07.1/qt/qtmain.cpp:62:3:  [4] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
		lstrcat(message, gMinidumpPath);
data/leocad-19.07.1/qt/qtmain.cpp:63:3:  [4] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
		lstrcat(message, TEXT("', please send it to the developers for debugging."));
data/leocad-19.07.1/qt/qtmain.cpp:74:3:  [4] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
		lstrcat(gMinidumpPath, TEXT("leocad.dmp"));
data/leocad-19.07.1/qt/qtmain.cpp:86:3:  [4] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
		lstrcpy(modulePath, longModulePath);
data/leocad-19.07.1/qt/qtmain.cpp:91:2:  [4] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	lstrcpy(temp, modulePath);
data/leocad-19.07.1/qt/qtmain.cpp:92:2:  [4] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
	lstrcat(temp, TEXT(",0"));
data/leocad-19.07.1/qt/qtmain.cpp:96:2:  [4] (buffer) lstrcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
	lstrcpy(temp, modulePath);
data/leocad-19.07.1/qt/qtmain.cpp:97:2:  [4] (buffer) lstrcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
	lstrcat(temp, TEXT(" \"%1\""));
data/leocad-19.07.1/qt/qtmain.cpp:129:33:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (QtTranslator.load(QLocale::system(), "qt", "_", QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
data/leocad-19.07.1/qt/qtmain.cpp:132:38:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	else if (QtTranslator.load(QLocale::system(), "qt", "_", qApp->applicationDirPath() + "/translations"))
data/leocad-19.07.1/qt/qtmain.cpp:137:49:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (QtBaseTranslator.load("qtbase_" + QLocale::system().name(), QLibraryInfo::location(QLibraryInfo::TranslationsPath)))
data/leocad-19.07.1/qt/qtmain.cpp:140:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	else if (QtBaseTranslator.load("qtbase_" + QLocale::system().name(), qApp->applicationDirPath() + "/translations"))
data/leocad-19.07.1/qt/qtmain.cpp:145:43:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (Translator.load("leocad_" + QLocale::system().name(), ":/resources"))
data/leocad-19.07.1/common/lc_application.cpp:154:19:  [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* EnvPath = getenv("LEOCAD_LIB");
data/leocad-19.07.1/qt/qtmain.cpp:32:20:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
	HMODULE dbgHelp = LoadLibrary(TEXT("dbghelp.dll"));
data/leocad-19.07.1/common/camera.h:290:2:  [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 m_strName[81];
data/leocad-19.07.1/common/group.cpp:18:2:  [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[LC_MAX_GROUP_NAME + 1];
data/leocad-19.07.1/common/lc_category.cpp:93: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).
	if (!File.open(QIODevice::ReadOnly))
data/leocad-19.07.1/common/lc_category.cpp:130: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).
	if (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/lc_colors.cpp:186:2:  [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], Token[1024];
data/leocad-19.07.1/common/lc_colors.cpp:209:2:  [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(MainColor.Name, "Main Color");
data/leocad-19.07.1/common/lc_colors.cpp:210:2:  [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(MainColor.SafeName, "Main_Color");
data/leocad-19.07.1/common/lc_colors.cpp:222:2:  [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(EdgeColor.Name, "Edge Color");
data/leocad-19.07.1/common/lc_colors.cpp:223:2:  [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(EdgeColor.SafeName, "Edge_Color");
data/leocad-19.07.1/common/lc_colors.cpp:267:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				Color.Code = atoi(Token);
data/leocad-19.07.1/common/lc_colors.cpp:304:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				int Value = atoi(Token);
data/leocad-19.07.1/common/lc_colors.cpp:427:3:  [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(Color.Name, "Color %06X", ColorCode & 0xffffff);
data/leocad-19.07.1/common/lc_colors.cpp:428:3:  [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(Color.SafeName, "Color_%06X", ColorCode & 0xffffff);
data/leocad-19.07.1/common/lc_colors.cpp:436:3:  [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(Color.Name, "Color %03d", ColorCode);
data/leocad-19.07.1/common/lc_colors.cpp:437:3:  [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(Color.SafeName, "Color_%03d", ColorCode);
data/leocad-19.07.1/common/lc_colors.h:15:2:  [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[LC_MAX_COLOR_NAME];
data/leocad-19.07.1/common/lc_colors.h:16:2:  [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 SafeName[LC_MAX_COLOR_NAME];
data/leocad-19.07.1/common/lc_context.cpp:744:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(VertexBuffer.Pointer, Data, Size);
data/leocad-19.07.1/common/lc_context.cpp:790:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(IndexBuffer.Pointer, Data, Size);
data/leocad-19.07.1/common/lc_file.cpp:77:2:  [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(Buffer, mBuffer + mPosition, BytesToRead);
data/leocad-19.07.1/common/lc_file.cpp:91:2:  [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(mBuffer + mPosition, Buffer, Bytes);
data/leocad-19.07.1/common/lc_file.h:549:16:  [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).
		return mFile.open(Flags);
data/leocad-19.07.1/common/lc_http.cpp:36:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char Buffer[1024];
data/leocad-19.07.1/common/lc_library.cpp:186:2:  [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 PieceName[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/lc_library.cpp:204:2:  [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 CleanName[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/lc_library.cpp:394:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char NameBuffer[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/lc_library.cpp:584: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 Name[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/lc_library.cpp:630:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char Name[LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:699:4:  [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[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/lc_library.cpp:741:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char Line[1024];
data/leocad-19.07.1/common/lc_library.cpp:774:4:  [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(Info->m_strDescription, "Unknown");
data/leocad-19.07.1/common/lc_library.cpp:877: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).
	if (!File.open(QIODevice::ReadOnly))
data/leocad-19.07.1/common/lc_library.cpp:907: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.
	unsigned char in[CHUNK];
data/leocad-19.07.1/common/lc_library.cpp:908: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.
	unsigned char out[CHUNK];
data/leocad-19.07.1/common/lc_library.cpp:930:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(in, CompressedData.constData() + pos, strm.avail_in);
data/leocad-19.07.1/common/lc_library.cpp:967: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).
	if (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/lc_library.cpp:988:2:  [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 WriteBuffer[BufferSize];
data/leocad-19.07.1/common/lc_library.cpp:1032: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).
	if (!File.open(QIODevice::ReadOnly))
data/leocad-19.07.1/common/lc_library.cpp:1064: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).
	if (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/lc_library.cpp:1334:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char FileName[LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:1812:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char*)VertexData + VertexDataSize, Mesh->mVertexData, Mesh->mVertexDataSize);
data/leocad-19.07.1/common/lc_library.cpp:1813:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy((char*)IndexData + IndexDataSize, Mesh->mIndexData, Mesh->mIndexDataSize);
data/leocad-19.07.1/common/lc_library.cpp:1841:2:  [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 FileName[2*LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:1867:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char Name[LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:1936:4:  [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[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/lc_library.cpp:1937:4:  [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(Name, "8/");
data/leocad-19.07.1/common/lc_library.cpp:1984:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char Buffer[1024];
data/leocad-19.07.1/common/lc_library.cpp:2081:7:  [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 FileName[LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:2114:7:  [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 FileName[LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:2147:7:  [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 FileName[LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:2270: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 OriginalFileName[LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:2275: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 FileName[LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:2374: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 IncludeFileName[LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:2404: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 IncludeFileName[LC_MAXPATH];
data/leocad-19.07.1/common/lc_library.cpp:3365:4:  [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 ParentName[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/lc_library.cpp:3368:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(ParentName, ".dat");
data/leocad-19.07.1/common/lc_library.cpp:3404:2:  [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[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/lc_library.h:187:2:  [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 mName[LC_MAXNAME];
data/leocad-19.07.1/common/lc_lxf.cpp:15:11:  [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 (File.open(QIODevice::ReadOnly))
data/leocad-19.07.1/common/lc_mainwindow.h:30:2:  [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[256];
data/leocad-19.07.1/common/lc_mesh.cpp:253:2:  [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/leocad-19.07.1/common/lc_mesh.cpp:294:4:  [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(Line, "  smooth_triangle { <%.2f, %.2f, %.2f>, <%.2f, %.2f, %.2f>, <%.2f, %.2f, %.2f>, <%.2f, %.2f, %.2f>, <%.2f, %.2f, %.2f>, <%.2f, %.2f, %.2f> }\n",
data/leocad-19.07.1/common/lc_mesh.cpp:323:2:  [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/leocad-19.07.1/common/lc_mesh.cpp:347:5:  [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(Line, "f %ld//%ld %ld//%ld %ld//%ld\n", idx1, idx1, idx2, idx2, idx3, idx3);
data/leocad-19.07.1/common/lc_mesh.cpp:408: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 FileName[LC_TEXTURE_NAME_LEN];
data/leocad-19.07.1/common/lc_model.cpp:699:2:  [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 id[32];
data/leocad-19.07.1/common/lc_model.cpp:756:4:  [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[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/lc_model.cpp:764:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(name, ".dat");
data/leocad-19.07.1/common/lc_model.cpp:840: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 Name[LC_MAX_GROUP_NAME + 1];
data/leocad-19.07.1/common/lc_model.cpp:920:4:  [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[LC_MAXPATH];
data/leocad-19.07.1/common/lc_model.cpp:1150: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).
	Buffer.open(QIODevice::ReadOnly);
data/leocad-19.07.1/common/lc_model.cpp:1521: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).
	Buffer.open(QIODevice::ReadOnly);
data/leocad-19.07.1/common/lc_partselectionwidget.cpp:221:4:  [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 Description[sizeof(Info->m_strDescription)];
data/leocad-19.07.1/common/lc_shortcuts.cpp:68: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).
	if (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/lc_shortcuts.cpp:95: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).
	if (!File.open(QIODevice::ReadOnly))
data/leocad-19.07.1/common/lc_synth.cpp:460:2:  [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[256];
data/leocad-19.07.1/common/lc_synth.cpp:528:2:  [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[256];
data/leocad-19.07.1/common/lc_synth.cpp:535:3:  [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(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f u9053.dat\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:546:3:  [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(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f u9053.dat\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:636:2:  [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[256];
data/leocad-19.07.1/common/lc_synth.cpp:643:3:  [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(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f 79.dat\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:653:3:  [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(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f 80.dat\n", Transform[3][0], Transform[3][1], Transform[3][2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:664:3:  [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(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f 79.dat\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:673:2:  [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[256];
data/leocad-19.07.1/common/lc_synth.cpp:810:2:  [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[256];
data/leocad-19.07.1/common/lc_synth.cpp:817:3:  [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(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f 572A.dat\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:924:3:  [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(Line, "1 16 %f %f %f %f %f %f %f %f %f %f %f %f 572A.dat\n", Offset[0], Offset[1], Offset[2], Transform[0][0], Transform[1][0], Transform[2][0],
data/leocad-19.07.1/common/lc_synth.cpp:933:2:  [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[256];
data/leocad-19.07.1/common/lc_synth.cpp:937:2:  [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(Line, "1 0 %f %f %f 1 0 0 0 1 0 0 0 1 4254.dat\n", Offset[0], Offset[1], Offset[2]);
data/leocad-19.07.1/common/lc_synth.cpp:941:2:  [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(Line, "1 16 %f %f %f 1 0 0 0 1 0 0 0 1 4255.dat\n", Offset[0], Offset[1], Offset[2]);
data/leocad-19.07.1/common/lc_synth.cpp:966:2:  [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[256];
data/leocad-19.07.1/common/lc_synth.cpp:970:2:  [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(Line, "1 25 %f %f %f 0 1 0 -1 0 0 0 0 1 47157.dat\n", Offset[0], Offset[1], Offset[2]);
data/leocad-19.07.1/common/lc_synth.cpp:972:2:  [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(Line, "1 16 %f %f %f 1 0 0 0 1 0 0 0 1 62271c01.dat\n", Offset[0], Offset[1], Offset[2]);
data/leocad-19.07.1/common/lc_synth.cpp:976:2:  [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(Line, "1 72 %f %f %f 1 0 0 0 1 0 0 0 1 62274c01.dat\n", Offset[0], Offset[1], Offset[2]);
data/leocad-19.07.1/common/lc_texture.h:69:2:  [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 mName[LC_TEXTURE_NAME_LEN];
data/leocad-19.07.1/common/lc_zipfile.cpp:606:2:  [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 ReadBuffer[BufferSize];
data/leocad-19.07.1/common/lc_zipfile.h:42:2:  [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 file_name[256];
data/leocad-19.07.1/common/light.cpp:89:2:  [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(m_strName, "Light #%.2d", max+1);
data/leocad-19.07.1/common/light.h:225:2:  [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 m_strName[81];
data/leocad-19.07.1/common/minifig.cpp:129:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char Line[1024];
data/leocad-19.07.1/common/minifig.h:30:2:  [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 Description[128];
data/leocad-19.07.1/common/piece.cpp:295:2:  [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[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/piece.cpp:303:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(name, ".dat");
data/leocad-19.07.1/common/pieceinf.h:166:2:  [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 mFileName[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/pieceinf.h:167:2:  [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 m_strDescription[128];
data/leocad-19.07.1/common/project.cpp:363: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).
	if (!File.open(QIODevice::ReadOnly))
data/leocad-19.07.1/common/project.cpp:387: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).
		Buffer.open(QIODevice::ReadOnly);
data/leocad-19.07.1/common/project.cpp:467: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).
	if (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/project.cpp:637: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).
	if (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/project.cpp:715:2:  [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 MaterialName[32];
data/leocad-19.07.1/common/project.cpp:721:3:  [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(MaterialName, "Material%03d", (int)ColorIdx);
data/leocad-19.07.1/common/project.cpp:977:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char Name[32];
data/leocad-19.07.1/common/project.cpp:978:3:  [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(Name, "Piece%.3d", NumPieces);
data/leocad-19.07.1/common/project.cpp:1066:4:  [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(MaterialName, "Material%03d", MaterialIndex);
data/leocad-19.07.1/common/project.cpp:1137:2:  [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/leocad-19.07.1/common/project.cpp:1156:4:  [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 FileName[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/project.cpp:1165:4:  [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(Line, "    <MINQTY>%d</MINQTY>\n", ColorIt.second);
data/leocad-19.07.1/common/project.cpp:1171:5:  [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(Line, "    <COLOR>%d</COLOR>\n", Color);
data/leocad-19.07.1/common/project.cpp:1199: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).
	if (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/project.cpp:1471:2:  [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/leocad-19.07.1/common/project.cpp:1804:14:  [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 (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/project.cpp:1835:15:  [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 (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/project.cpp:1860:15:  [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 (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/project.cpp:1894:15:  [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 (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/project.cpp:1991:13:  [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 (!File.open(QIODevice::WriteOnly))
data/leocad-19.07.1/common/project.cpp:2060:2:  [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/leocad-19.07.1/common/project.cpp:2099:4:  [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 Src[1024], Dst[1024], Flags[1024];
data/leocad-19.07.1/common/project.cpp:2107:4:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
			strcat(Src, ".dat");
data/leocad-19.07.1/common/project.cpp:2145:4:  [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[1024], Flags[1024];
data/leocad-19.07.1/common/project.cpp:2234:4:  [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 Suffix[32];
data/leocad-19.07.1/common/project.cpp:2235:4:  [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(Suffix, "_%p", ModelPart.Mesh);
data/leocad-19.07.1/common/project.cpp:2250:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char Name[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/project.cpp:2271:2:  [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(Line, "camera {\n  perspective\n  right x * image_width / image_height\n  sky<%1g,%1g,%1g>\n  location <%1g, %1g, %1g>\n  look_at <%1g, %1g, %1g>\n  angle %.0f * image_width / image_height\n}\n\n",
data/leocad-19.07.1/common/project.cpp:2274:2:  [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(Line, "background { color rgb <%1g, %1g, %1g> }\n\n", Properties.mBackgroundSolidColor[0], Properties.mBackgroundSolidColor[1], Properties.mBackgroundSolidColor[2]);
data/leocad-19.07.1/common/project.cpp:2299:2:  [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(Line, "light_source{ <%f, %f, %f>\n  color rgb 0.75\n  area_light 200, 200, 10, 10\n  jitter\n}\n\n", 0.0f * Radius + Center.x, -1.5f * Radius + Center.y, -1.5f * Radius + Center.z);
data/leocad-19.07.1/common/project.cpp:2301:2:  [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(Line, "light_source{ <%f, %f, %f>\n  color rgb 0.75\n  area_light 200, 200, 10, 10\n  jitter\n}\n\n", 1.5f * Radius + Center.x, -1.0f * Radius + Center.y, 0.866026f * Radius + Center.z);
data/leocad-19.07.1/common/project.cpp:2303:2:  [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(Line, "light_source{ <%f, %f, %f>\n  color rgb 0.5\n  area_light 200, 200, 10, 10\n  jitter\n}\n\n", 0.0f * Radius + Center.x, -2.0f * Radius + Center.y, 0.0f * Radius + Center.z);
data/leocad-19.07.1/common/project.cpp:2305:2:  [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(Line, "light_source{ <%f, %f, %f>\n  color rgb 0.5\n  area_light 200, 200, 10, 10\n  jitter\n}\n\n", 2.0f * Radius + Center.x, 0.0f * Radius + Center.y, -2.0f * Radius + Center.z);
data/leocad-19.07.1/common/project.cpp:2338:4:  [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[LC_PIECE_NAME_LEN];
data/leocad-19.07.1/common/project.cpp:2369:2:  [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/leocad-19.07.1/common/project.cpp:2417:4:  [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(Line, "v %.2f %.2f %.2f\n", Vertex[0], Vertex[1], Vertex[2]);
data/leocad-19.07.1/common/project.cpp:2437:4:  [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(Line, "vn %.2f %.2f %.2f\n", Normal[0], Normal[1], Normal[2]);
data/leocad-19.07.1/common/project.cpp:2447:3:  [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(Line, "g Piece%.3d\n", NumPieces++);
data/leocad-19.07.1/common/texfont.cpp:6:23:  [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 unsigned char TextureData[2048] =
data/leocad-19.07.1/common/texfont.cpp:122: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.
	unsigned char ExpandedData[sizeof(TextureData) * 8 * 2];
data/leocad-19.07.1/common/view.cpp:854:6:  [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(dst, src, CurrentTileWidth * 4);
data/leocad-19.07.1/common/view.cpp:1365:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[32];
data/leocad-19.07.1/common/view.cpp:1366:3:  [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]", fabsf(Angle));
data/leocad-19.07.1/qt/lc_qcolorlist.cpp:94:11:  [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).
			buffer.open(QIODevice::WriteOnly);
data/leocad-19.07.1/qt/lc_renderdialog.cpp:228:20:  [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 (!mOutputFile.open(QFile::ReadWrite))
data/leocad-19.07.1/qt/lc_renderdialog.cpp:328:14:  [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 (LogFile.open(QFile::WriteOnly | QIODevice::Truncate | QFile::Text))
data/leocad-19.07.1/qt/qtmain.cpp:25:8:  [2] (buffer) TCHAR:
  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 TCHAR gMinidumpPath[_MAX_PATH];
data/leocad-19.07.1/qt/qtmain.cpp:60:3:  [2] (buffer) TCHAR:
  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.
		TCHAR message[_MAX_PATH + 256];
data/leocad-19.07.1/qt/qtmain.cpp:81:2:  [2] (buffer) TCHAR:
  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.
	TCHAR modulePath[_MAX_PATH], longModulePath[_MAX_PATH];
data/leocad-19.07.1/qt/qtmain.cpp:82:2:  [2] (buffer) TCHAR:
  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.
	TCHAR temp[2*_MAX_PATH];
data/leocad-19.07.1/common/camera.cpp:96:54:  [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 (strncmp(Cameras[CameraIdx]->m_strName, Prefix, strlen(Prefix)) == 0)
data/leocad-19.07.1/common/camera.cpp:97:47:  [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 (sscanf(Cameras[CameraIdx]->m_strName + strlen(Prefix), " %d", &i) == 1)
data/leocad-19.07.1/common/camera.cpp:178:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(m_strName, NameUtf.constData(), sizeof(m_strName));
data/leocad-19.07.1/common/lc_category.cpp:233:40:  [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).
	const char* SearchEnd = SearchStart + strlen(SearchStart) - 1;
data/leocad-19.07.1/common/lc_category.cpp:272:21:  [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 End = Result[strlen(Word)];
data/leocad-19.07.1/common/lc_colors.cpp:253:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(Color.Name, Token, sizeof(Color.Name));
data/leocad-19.07.1/common/lc_colors.cpp:255:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(Color.SafeName, Color.Name, sizeof(Color.SafeName));
data/leocad-19.07.1/common/lc_file.h:30:23:  [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).
		WriteBuffer(Buffer, strlen(Buffer));
data/leocad-19.07.1/common/lc_file.h:539:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return mFile.read((char*)Buffer, Bytes);
data/leocad-19.07.1/common/lc_glextensions.cpp:144:24:  [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).
		Terminator = Where + strlen(Name);
data/leocad-19.07.1/common/lc_library.cpp:181:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(Info->mFileName, NewName, sizeof(Info->mFileName));
data/leocad-19.07.1/common/lc_library.cpp:183:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(Info->m_strDescription, NewName, sizeof(Info->m_strDescription));
data/leocad-19.07.1/common/lc_library.cpp:429:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(Texture->mName, Name + (ZipFileType == LC_ZIPFILE_OFFICIAL ? 21 : 15), sizeof(Texture->mName));
data/leocad-19.07.1/common/lc_library.cpp:457:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					strncpy(Info->mFileName, FileInfo.file_name + (Name - NameBuffer), sizeof(Info->mFileName));
data/leocad-19.07.1/common/lc_library.cpp:659:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(Texture->mName, Name, sizeof(Texture->mName));
data/leocad-19.07.1/common/lc_library.cpp:685:20:  [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).
				IndexFile.Seek(strlen(FileName) + 1, SEEK_CUR);
data/leocad-19.07.1/common/lc_library.cpp:687:20:  [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).
				IndexFile.Seek(strlen(Description) + 1, SEEK_CUR);
data/leocad-19.07.1/common/lc_library.cpp:723:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(Info->mFileName, FileString, sizeof(Info->mFileName));
data/leocad-19.07.1/common/lc_library.cpp:755:42:  [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).
				const char* Description = FileName + strlen(FileName) + 1;
data/leocad-19.07.1/common/lc_library.cpp:756:58:  [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).
				uint64_t CachedFileTime = *(uint64_t*)(Description + strlen(Description) + 1 + 4 + 1);
data/leocad-19.07.1/common/lc_library.cpp:851:50:  [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 (NewIndexFile.WriteBuffer(Info->mFileName, strlen(Info->mFileName) + 1) == 0)
data/leocad-19.07.1/common/lc_library.cpp:854:57:  [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 (NewIndexFile.WriteBuffer(Info->m_strDescription, strlen(Info->m_strDescription) + 1) == 0)
data/leocad-19.07.1/common/lc_library.cpp:882:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (File.read((char*)&CacheVersion, sizeof(CacheVersion)) == -1 || CacheVersion != LC_LIBRARY_CACHE_VERSION)
data/leocad-19.07.1/common/lc_library.cpp:885:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (File.read((char*)&CacheFlags, sizeof(CacheFlags)) == -1 || CacheFlags != LC_LIBRARY_CACHE_ARCHIVE)
data/leocad-19.07.1/common/lc_library.cpp:890:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (File.read((char*)&CacheCheckSum, sizeof(CacheCheckSum)) == -1 || memcmp(CacheCheckSum, mArchiveCheckSum, sizeof(CacheCheckSum)))
data/leocad-19.07.1/common/lc_library.cpp:895:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (File.read((char*)&UncompressedSize, sizeof(UncompressedSize)) == -1)
data/leocad-19.07.1/common/lc_library.cpp:1037:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (File.read((char*)&CacheVersion, sizeof(CacheVersion)) == -1 || CacheVersion != LC_LIBRARY_CACHE_VERSION)
data/leocad-19.07.1/common/lc_library.cpp:1040:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (File.read((char*)&CacheFlags, sizeof(CacheFlags)) == -1 || CacheFlags != LC_LIBRARY_CACHE_DIRECTORY)
data/leocad-19.07.1/common/lc_library.cpp:1045:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (File.read((char*)&UncompressedSize, sizeof(UncompressedSize)) == -1)
data/leocad-19.07.1/common/lc_library.cpp:1125:27:  [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).
		quint8 Length = (quint8)strlen(Info->m_strDescription);
data/leocad-19.07.1/common/lc_library.cpp:3409:2:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
	strcat(Name, "P");
data/leocad-19.07.1/common/lc_library.cpp:3415:44:  [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 (strncmp(Name, PieceIt.first.c_str(), strlen(Name)) == 0)
data/leocad-19.07.1/common/lc_library.cpp:3425:16:  [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).
		size_t Len = strlen(Name);
data/leocad-19.07.1/common/lc_library.cpp:3430:45:  [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 (strncmp(Name, PieceIt.first.c_str(), strlen(Name)) == 0)
data/leocad-19.07.1/common/lc_library.h:170:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(mName, Name, sizeof(mName));
data/leocad-19.07.1/common/lc_mesh.cpp:459: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).
				quint16 Length = (quint16)strlen(Section.Texture->mName);
data/leocad-19.07.1/common/lc_model.cpp:2817:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(Camera->m_strName, Name, sizeof(Camera->m_strName));
data/leocad-19.07.1/common/lc_synth.cpp:490:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:510:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:522:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:538:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:549:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:646:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:656:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:667:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:700:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:712:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:820:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:927:26:  [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).
		File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:938:25:  [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).
	File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:942:25:  [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).
	File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:961:25:  [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).
	File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:971:25:  [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).
	File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:973:25:  [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).
	File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/lc_synth.cpp:977:25:  [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).
	File.WriteBuffer(Line, strlen(Line));
data/leocad-19.07.1/common/minifig.cpp:132:30:  [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).
		size_t SectionNameLength = strlen(SectionName);
data/leocad-19.07.1/common/minifig.cpp:147:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120). Risk is low because the source is a
  constant string.
			strncpy(MinifigInfo.Description, "None", sizeof(MinifigInfo.Description));
data/leocad-19.07.1/common/minifig.cpp:210:4:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
			strncpy(MinifigInfo.Description, DescriptionStart, sizeof(MinifigInfo.Description));
data/leocad-19.07.1/common/pieceinf.cpp:63:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(mFileName, Model->GetProperties().mName.toLatin1().data(), sizeof(mFileName));
data/leocad-19.07.1/common/pieceinf.cpp:65:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(m_strDescription, Model->GetProperties().mName.toLatin1().data(), sizeof(m_strDescription));
data/leocad-19.07.1/common/pieceinf.cpp:101:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(mFileName, PieceName, sizeof(mFileName));
data/leocad-19.07.1/common/pieceinf.cpp:103:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(m_strDescription, Project->GetFileName().toLatin1().data(), sizeof(m_strDescription));
data/leocad-19.07.1/common/pieceinf.cpp:130:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(mFileName, Name, sizeof(mFileName));
data/leocad-19.07.1/common/pieceinf.cpp:132:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(m_strDescription, Name, sizeof(m_strDescription));
data/leocad-19.07.1/common/project.cpp:911:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	File.WriteU32(6 + 1 + (quint32)strlen(BackgroundImage.constData()));
data/leocad-19.07.1/common/project.cpp:912:48:  [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).
	File.WriteBuffer(BackgroundImage.constData(), strlen(BackgroundImage.constData()) + 1);
data/leocad-19.07.1/common/project.cpp:980:26:  [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).
		File.WriteBuffer(Name, strlen(Name) + 1);
data/leocad-19.07.1/common/texfont.cpp:182:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t Length = strlen(Text);
data/leocad-19.07.1/qt/system.cpp:12:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		int len = (int)strlen(find);

ANALYSIS SUMMARY:

Hits = 333
Lines analyzed = 58140 in approximately 1.58 seconds (36826 lines/second)
Physical Source Lines of Code (SLOC) = 48410
Hits@level = [0]  60 [1]  69 [2] 155 [3]   2 [4] 107 [5]   0
Hits@level+ = [0+] 393 [1+] 333 [2+] 264 [3+] 109 [4+] 107 [5+]   0
Hits/KSLOC@level+ = [0+] 8.11816 [1+] 6.87874 [2+] 5.45342 [3+] 2.2516 [4+] 2.21029 [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.