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/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkdio.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/flags.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tags.h Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/toc.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/xmlpage.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/cstring.h Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/markdown.h Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/Csio.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mktags.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/gethopt.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/notspecial.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/emmatch.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/setup.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/gethopt.h Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/html5.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/amalloc.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/amalloc.h Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/basename.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/generate.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/pgm_options.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/github_flavoured.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/xml.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tags.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/css.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tools/echo.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tools/branch.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tools/pandoc_headers.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tools/cols.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/docheader.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/makepage.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/dumptree.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/h1title.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/pgm_options.h Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/markdown.c Examining data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/resource.c Examining data/cantor-20.08.3/src/imageresultitem.cpp Examining data/cantor-20.08.3/src/imageresultitem.h Examining data/cantor-20.08.3/src/imagesettingsdialog.h Examining data/cantor-20.08.3/src/worksheettoolbutton.cpp Examining data/cantor-20.08.3/src/cantor.h Examining data/cantor-20.08.3/src/actionbar.h Examining data/cantor-20.08.3/src/resultitem.cpp Examining data/cantor-20.08.3/src/commandentry.h Examining data/cantor-20.08.3/src/cantor_part.h Examining data/cantor-20.08.3/src/worksheetview.h Examining data/cantor-20.08.3/src/animation.cpp Examining data/cantor-20.08.3/src/searchbar.h Examining data/cantor-20.08.3/src/backendchoosedialog.cpp Examining data/cantor-20.08.3/src/assistants/integrate/integrateassistant.cpp Examining data/cantor-20.08.3/src/assistants/integrate/integrateassistant.h Examining data/cantor-20.08.3/src/assistants/runscript/runscriptassistant.cpp Examining data/cantor-20.08.3/src/assistants/runscript/runscriptassistant.h Examining data/cantor-20.08.3/src/assistants/importpackage/importpackageassistant.h Examining data/cantor-20.08.3/src/assistants/importpackage/importpackageassistant.cpp Examining data/cantor-20.08.3/src/assistants/linearalgebra/eigenvalues/eigenvaluesassistant.h Examining data/cantor-20.08.3/src/assistants/linearalgebra/eigenvalues/eigenvaluesassistant.cpp Examining data/cantor-20.08.3/src/assistants/linearalgebra/invertmatrix/invertmatrixassistant.cpp Examining data/cantor-20.08.3/src/assistants/linearalgebra/invertmatrix/invertmatrixassistant.h Examining data/cantor-20.08.3/src/assistants/linearalgebra/creatematrix/creatematrixassistant.h Examining data/cantor-20.08.3/src/assistants/linearalgebra/creatematrix/creatematrixassistant.cpp Examining data/cantor-20.08.3/src/assistants/linearalgebra/creatematrix/creatematrixdlg.cpp Examining data/cantor-20.08.3/src/assistants/linearalgebra/creatematrix/creatematrixdlg.h Examining data/cantor-20.08.3/src/assistants/linearalgebra/eigenvectors/eigenvectorsassistant.h Examining data/cantor-20.08.3/src/assistants/linearalgebra/eigenvectors/eigenvectorsassistant.cpp Examining data/cantor-20.08.3/src/assistants/advancedplot/advancedplotassistant.h Examining data/cantor-20.08.3/src/assistants/advancedplot/advancedplotassistant.cpp Examining data/cantor-20.08.3/src/assistants/differentiate/differentiateassistant.cpp Examining data/cantor-20.08.3/src/assistants/differentiate/differentiateassistant.h Examining data/cantor-20.08.3/src/assistants/solve/solveassistant.cpp Examining data/cantor-20.08.3/src/assistants/solve/solveassistant.h Examining data/cantor-20.08.3/src/assistants/plot3d/plot3dassistant.h Examining data/cantor-20.08.3/src/assistants/plot3d/plot3dassistant.cpp Examining data/cantor-20.08.3/src/assistants/plot2d/plot2dassistant.h Examining data/cantor-20.08.3/src/assistants/plot2d/plot2dassistant.cpp Examining data/cantor-20.08.3/src/animationresultitem.cpp Examining data/cantor-20.08.3/src/mathrender.h Examining data/cantor-20.08.3/src/worksheetimageitem.h Examining data/cantor-20.08.3/src/worksheettoolbutton.h Examining data/cantor-20.08.3/src/loadedexpression.cpp Examining data/cantor-20.08.3/src/panelplugins/filebrowserpanel/filebrowserpanelplugin.cpp Examining data/cantor-20.08.3/src/panelplugins/filebrowserpanel/filebrowserpanelplugin.h Examining data/cantor-20.08.3/src/panelplugins/helppanel/helppanelplugin.h Examining data/cantor-20.08.3/src/panelplugins/helppanel/helppanelplugin.cpp Examining data/cantor-20.08.3/src/panelplugins/variablemgr/variablemanagerwidget.h Examining data/cantor-20.08.3/src/panelplugins/variablemgr/variablemanagerwidget.cpp Examining data/cantor-20.08.3/src/panelplugins/variablemgr/variablemanagerplugin.h Examining data/cantor-20.08.3/src/panelplugins/variablemgr/variablemanagerplugin.cpp Examining data/cantor-20.08.3/src/worksheetcursor.cpp Examining data/cantor-20.08.3/src/worksheetimageitem.cpp Examining data/cantor-20.08.3/src/commandentry.cpp Examining data/cantor-20.08.3/src/mathrender.cpp Examining data/cantor-20.08.3/src/loadedexpression.h Examining data/cantor-20.08.3/src/actionbar.cpp Examining data/cantor-20.08.3/src/worksheet.cpp Examining data/cantor-20.08.3/src/markdownentry.cpp Examining data/cantor-20.08.3/src/worksheetview.cpp Examining data/cantor-20.08.3/src/backendchoosedialog.h Examining data/cantor-20.08.3/src/latexentry.cpp Examining data/cantor-20.08.3/src/backends/sage/sagekeywords.h Examining data/cantor-20.08.3/src/backends/sage/sagesession.cpp Examining data/cantor-20.08.3/src/backends/sage/sagehighlighter.h Examining data/cantor-20.08.3/src/backends/sage/sageextensions.h Examining data/cantor-20.08.3/src/backends/sage/sagehighlighter.cpp Examining data/cantor-20.08.3/src/backends/sage/sageexpression.cpp Examining data/cantor-20.08.3/src/backends/sage/sagecompletionobject.h Examining data/cantor-20.08.3/src/backends/sage/sagebackend.h Examining data/cantor-20.08.3/src/backends/sage/testsage.h Examining data/cantor-20.08.3/src/backends/sage/sageextensions.cpp Examining data/cantor-20.08.3/src/backends/sage/testsage.cpp Examining data/cantor-20.08.3/src/backends/sage/sagebackend.cpp Examining data/cantor-20.08.3/src/backends/sage/sageexpression.h Examining data/cantor-20.08.3/src/backends/sage/sagecompletionobject.cpp Examining data/cantor-20.08.3/src/backends/sage/sagesession.h Examining data/cantor-20.08.3/src/backends/sage/sagekeywords.cpp Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebrabackend.cpp Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebraextensions.cpp Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebrasession.h Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebraextensions.h Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebraexpression.cpp Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebracompletionobject.cpp Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebrasession.cpp Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebrasyntaxhelpobject.h Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebrabackend.h Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebrasyntaxhelpobject.cpp Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebracompletionobject.h Examining data/cantor-20.08.3/src/backends/kalgebra/kalgebraexpression.h Examining data/cantor-20.08.3/src/backends/octave/octavekeywords.cpp Examining data/cantor-20.08.3/src/backends/octave/octavebackend.cpp Examining data/cantor-20.08.3/src/backends/octave/octavehighlighter.cpp Examining data/cantor-20.08.3/src/backends/octave/octavebackend.h Examining data/cantor-20.08.3/src/backends/octave/octavesyntaxhelpobject.cpp Examining data/cantor-20.08.3/src/backends/octave/octavevariablemodel.cpp Examining data/cantor-20.08.3/src/backends/octave/octaveexpression.cpp Examining data/cantor-20.08.3/src/backends/octave/octavesession.cpp Examining data/cantor-20.08.3/src/backends/octave/octaveextensions.h Examining data/cantor-20.08.3/src/backends/octave/octavekeywords.h Examining data/cantor-20.08.3/src/backends/octave/octaveexpression.h Examining data/cantor-20.08.3/src/backends/octave/octavesyntaxhelpobject.h Examining data/cantor-20.08.3/src/backends/octave/octavecompletionobject.cpp Examining data/cantor-20.08.3/src/backends/octave/testoctave.h Examining data/cantor-20.08.3/src/backends/octave/octavecompletionobject.h Examining data/cantor-20.08.3/src/backends/octave/octavevariablemodel.h Examining data/cantor-20.08.3/src/backends/octave/octaveextensions.cpp Examining data/cantor-20.08.3/src/backends/octave/octavehighlighter.h Examining data/cantor-20.08.3/src/backends/octave/testoctave.cpp Examining data/cantor-20.08.3/src/backends/octave/octavesession.h Examining data/cantor-20.08.3/src/backends/qalculate/qalculatesyntaxhelpobject.h Examining data/cantor-20.08.3/src/backends/qalculate/qalculateextensions.h Examining data/cantor-20.08.3/src/backends/qalculate/qalculatehighlighter.h Examining data/cantor-20.08.3/src/backends/qalculate/qalculatebackend.h Examining data/cantor-20.08.3/src/backends/qalculate/qalculatesession.h Examining data/cantor-20.08.3/src/backends/qalculate/qalculatecompletionobject.cpp Examining data/cantor-20.08.3/src/backends/qalculate/qalculatecompletionobject.h Examining data/cantor-20.08.3/src/backends/qalculate/qalculatesyntaxhelpobject.cpp Examining data/cantor-20.08.3/src/backends/qalculate/qalculatehighlighter.cpp Examining data/cantor-20.08.3/src/backends/qalculate/qalculateexpression.cpp Examining data/cantor-20.08.3/src/backends/qalculate/plotassistant/qalculateplotassistant.cpp Examining data/cantor-20.08.3/src/backends/qalculate/plotassistant/qalculateplotassistant.h Examining data/cantor-20.08.3/src/backends/qalculate/qalculatebackend.cpp Examining data/cantor-20.08.3/src/backends/qalculate/qalculateexpression.h Examining data/cantor-20.08.3/src/backends/qalculate/qalculateextensions.cpp Examining data/cantor-20.08.3/src/backends/qalculate/qalculatesession.cpp Examining data/cantor-20.08.3/src/backends/maxima/maximaextensions.cpp Examining data/cantor-20.08.3/src/backends/maxima/maximaexpression.cpp Examining data/cantor-20.08.3/src/backends/maxima/maximakeywords.h Examining data/cantor-20.08.3/src/backends/maxima/maximavariablemodel.cpp Examining data/cantor-20.08.3/src/backends/maxima/maximacompletionobject.h Examining data/cantor-20.08.3/src/backends/maxima/maximabackend.cpp Examining data/cantor-20.08.3/src/backends/maxima/maximasyntaxhelpobject.h Examining data/cantor-20.08.3/src/backends/maxima/maximaexpression.h Examining data/cantor-20.08.3/src/backends/maxima/testmaxima.cpp Examining data/cantor-20.08.3/src/backends/maxima/maximahighlighter.h Examining data/cantor-20.08.3/src/backends/maxima/maximacompletionobject.cpp Examining data/cantor-20.08.3/src/backends/maxima/maximasession.cpp Examining data/cantor-20.08.3/src/backends/maxima/maximasession.h Examining data/cantor-20.08.3/src/backends/maxima/maximasyntaxhelpobject.cpp Examining data/cantor-20.08.3/src/backends/maxima/maximabackend.h Examining data/cantor-20.08.3/src/backends/maxima/maximakeywords.cpp Examining data/cantor-20.08.3/src/backends/maxima/maximavariablemodel.h Examining data/cantor-20.08.3/src/backends/maxima/maximaextensions.h Examining data/cantor-20.08.3/src/backends/maxima/testmaxima.h Examining data/cantor-20.08.3/src/backends/maxima/maximahighlighter.cpp Examining data/cantor-20.08.3/src/backends/julia/juliahighlighter.h Examining data/cantor-20.08.3/src/backends/julia/juliabackend.cpp Examining data/cantor-20.08.3/src/backends/julia/juliaextensions.cpp Examining data/cantor-20.08.3/src/backends/julia/juliabackend.h Examining data/cantor-20.08.3/src/backends/julia/juliaexpression.cpp Examining data/cantor-20.08.3/src/backends/julia/juliasession.cpp Examining data/cantor-20.08.3/src/backends/julia/juliavariablemodel.cpp Examining data/cantor-20.08.3/src/backends/julia/juliaserver/juliaserver.cpp Examining data/cantor-20.08.3/src/backends/julia/juliaserver/main.cpp Examining data/cantor-20.08.3/src/backends/julia/juliaserver/juliaserver.h Examining data/cantor-20.08.3/src/backends/julia/juliascriptloading.h Examining data/cantor-20.08.3/src/backends/julia/juliavariablemodel.h Examining data/cantor-20.08.3/src/backends/julia/juliaexpression.h Examining data/cantor-20.08.3/src/backends/julia/juliacompletionobject.cpp Examining data/cantor-20.08.3/src/backends/julia/juliacompletionobject.h Examining data/cantor-20.08.3/src/backends/julia/juliakeywords.h Examining data/cantor-20.08.3/src/backends/julia/juliakeywords.cpp Examining data/cantor-20.08.3/src/backends/julia/juliasession.h Examining data/cantor-20.08.3/src/backends/julia/juliaextensions.h Examining data/cantor-20.08.3/src/backends/julia/juliahighlighter.cpp Examining data/cantor-20.08.3/src/backends/julia/testjulia.cpp Examining data/cantor-20.08.3/src/backends/julia/testjulia.h Examining data/cantor-20.08.3/src/backends/R/rexpression.cpp Examining data/cantor-20.08.3/src/backends/R/rcompletionobject.h Examining data/cantor-20.08.3/src/backends/R/rsettingswidget.cpp Examining data/cantor-20.08.3/src/backends/R/rbackend.h Examining data/cantor-20.08.3/src/backends/R/rvariablemodel.h Examining data/cantor-20.08.3/src/backends/R/rsettingswidget.h Examining data/cantor-20.08.3/src/backends/R/rsession.h Examining data/cantor-20.08.3/src/backends/R/rextensions.cpp Examining data/cantor-20.08.3/src/backends/R/rkeywords.h Examining data/cantor-20.08.3/src/backends/R/rbackend.cpp Examining data/cantor-20.08.3/src/backends/R/rserver/rserver.h Examining data/cantor-20.08.3/src/backends/R/rserver/rcallbacks.h Examining data/cantor-20.08.3/src/backends/R/rserver/main.cpp Examining data/cantor-20.08.3/src/backends/R/rserver/rserver.cpp Examining data/cantor-20.08.3/src/backends/R/rserver/rcallbacks.cpp Examining data/cantor-20.08.3/src/backends/R/testr.h Examining data/cantor-20.08.3/src/backends/R/rkeywords.cpp Examining data/cantor-20.08.3/src/backends/R/testr.cpp Examining data/cantor-20.08.3/src/backends/R/rcompletionobject.cpp Examining data/cantor-20.08.3/src/backends/R/rexpression.h Examining data/cantor-20.08.3/src/backends/R/rsession.cpp Examining data/cantor-20.08.3/src/backends/R/rhighlighter.cpp Examining data/cantor-20.08.3/src/backends/R/rhighlighter.h Examining data/cantor-20.08.3/src/backends/R/rvariablemodel.cpp Examining data/cantor-20.08.3/src/backends/R/rextensions.h Examining data/cantor-20.08.3/src/backends/python/pythonexpression.h Examining data/cantor-20.08.3/src/backends/python/pythonbackend.h Examining data/cantor-20.08.3/src/backends/python/pythonsession.h Examining data/cantor-20.08.3/src/backends/python/pythonhighlighter.h Examining data/cantor-20.08.3/src/backends/python/testpython.cpp Examining data/cantor-20.08.3/src/backends/python/pythonexpression.cpp Examining data/cantor-20.08.3/src/backends/python/testpython.h Examining data/cantor-20.08.3/src/backends/python/pythonbackend.cpp Examining data/cantor-20.08.3/src/backends/python/pythonhighlighter.cpp Examining data/cantor-20.08.3/src/backends/python/pythonvariablemodel.cpp Examining data/cantor-20.08.3/src/backends/python/pythonutils.h Examining data/cantor-20.08.3/src/backends/python/pythonvariablemodel.h Examining data/cantor-20.08.3/src/backends/python/pythoncompletionobject.cpp Examining data/cantor-20.08.3/src/backends/python/pythonsession.cpp Examining data/cantor-20.08.3/src/backends/python/pythonkeywords.cpp Examining data/cantor-20.08.3/src/backends/python/pythonextensions.h Examining data/cantor-20.08.3/src/backends/python/pythonextensions.cpp Examining data/cantor-20.08.3/src/backends/python/pythoncompletionobject.h Examining data/cantor-20.08.3/src/backends/python/pythonserver.cpp Examining data/cantor-20.08.3/src/backends/python/pythonserver.h Examining data/cantor-20.08.3/src/backends/python/pythonservermain.cpp Examining data/cantor-20.08.3/src/backends/python/pythonkeywords.h Examining data/cantor-20.08.3/src/backends/lua/luacompletionobject.cpp Examining data/cantor-20.08.3/src/backends/lua/luakeywords.h Examining data/cantor-20.08.3/src/backends/lua/luahelper.h Examining data/cantor-20.08.3/src/backends/lua/luaexpression.h Examining data/cantor-20.08.3/src/backends/lua/luakeywords.cpp Examining data/cantor-20.08.3/src/backends/lua/luaextensions.cpp Examining data/cantor-20.08.3/src/backends/lua/luahighlighter.h Examining data/cantor-20.08.3/src/backends/lua/luabackend.h Examining data/cantor-20.08.3/src/backends/lua/luaextensions.h Examining data/cantor-20.08.3/src/backends/lua/testlua.h Examining data/cantor-20.08.3/src/backends/lua/luasession.cpp Examining data/cantor-20.08.3/src/backends/lua/luahelper.cpp Examining data/cantor-20.08.3/src/backends/lua/luabackend.cpp Examining data/cantor-20.08.3/src/backends/lua/testlua.cpp Examining data/cantor-20.08.3/src/backends/lua/luacompletionobject.h Examining data/cantor-20.08.3/src/backends/lua/luaexpression.cpp Examining data/cantor-20.08.3/src/backends/lua/luasession.h Examining data/cantor-20.08.3/src/backends/lua/luahighlighter.cpp Examining data/cantor-20.08.3/src/backends/scilab/scilabkeywords.h Examining data/cantor-20.08.3/src/backends/scilab/scilabcompletionobject.cpp Examining data/cantor-20.08.3/src/backends/scilab/scilabhighlighter.cpp Examining data/cantor-20.08.3/src/backends/scilab/scilabcompletionobject.h Examining data/cantor-20.08.3/src/backends/scilab/scilabkeywords.cpp Examining data/cantor-20.08.3/src/backends/scilab/testscilab.h Examining data/cantor-20.08.3/src/backends/scilab/scilabbackend.cpp Examining data/cantor-20.08.3/src/backends/scilab/scilabbackend.h Examining data/cantor-20.08.3/src/backends/scilab/scilabextensions.h Examining data/cantor-20.08.3/src/backends/scilab/scilabextensions.cpp Examining data/cantor-20.08.3/src/backends/scilab/scilabsession.h Examining data/cantor-20.08.3/src/backends/scilab/scilabexpression.h Examining data/cantor-20.08.3/src/backends/scilab/testscilab.cpp Examining data/cantor-20.08.3/src/backends/scilab/scilabexpression.cpp Examining data/cantor-20.08.3/src/backends/scilab/scilabhighlighter.h Examining data/cantor-20.08.3/src/backends/scilab/scilabsession.cpp Examining data/cantor-20.08.3/src/worksheet.h Examining data/cantor-20.08.3/src/worksheetcursor.h Examining data/cantor-20.08.3/src/worksheetcontrolitem.h Examining data/cantor-20.08.3/src/lib/expression.h Examining data/cantor-20.08.3/src/lib/helpresult.cpp Examining data/cantor-20.08.3/src/lib/imageresult.h Examining data/cantor-20.08.3/src/lib/defaultvariablemodel.h Examining data/cantor-20.08.3/src/lib/backend.cpp Examining data/cantor-20.08.3/src/lib/assistant.cpp Examining data/cantor-20.08.3/src/lib/epsresult.cpp Examining data/cantor-20.08.3/src/lib/latexrenderer.cpp Examining data/cantor-20.08.3/src/lib/result.h Examining data/cantor-20.08.3/src/lib/defaulthighlighter.cpp Examining data/cantor-20.08.3/src/lib/epsresult.h Examining data/cantor-20.08.3/src/lib/panelplugin.h Examining data/cantor-20.08.3/src/lib/graphicpackage.h Examining data/cantor-20.08.3/src/lib/syntaxhelpobject.h Examining data/cantor-20.08.3/src/lib/textresult.h Examining data/cantor-20.08.3/src/lib/expression.cpp Examining data/cantor-20.08.3/src/lib/graphicpackage.cpp Examining data/cantor-20.08.3/src/lib/panelpluginhandler.cpp Examining data/cantor-20.08.3/src/lib/syntaxhelpobject.cpp Examining data/cantor-20.08.3/src/lib/test/backendtest.cpp Examining data/cantor-20.08.3/src/lib/test/backendtest.h Examining data/cantor-20.08.3/src/lib/defaultvariablemodel.cpp Examining data/cantor-20.08.3/src/lib/htmlresult.h Examining data/cantor-20.08.3/src/lib/animationresult.h Examining data/cantor-20.08.3/src/lib/imageresult.cpp Examining data/cantor-20.08.3/src/lib/latexresult.cpp Examining data/cantor-20.08.3/src/lib/completionobject.cpp Examining data/cantor-20.08.3/src/lib/helpresult.h Examining data/cantor-20.08.3/src/lib/latexrenderer.h Examining data/cantor-20.08.3/src/lib/assistant.h Examining data/cantor-20.08.3/src/lib/textresult.cpp Examining data/cantor-20.08.3/src/lib/backend.h Examining data/cantor-20.08.3/src/lib/defaulthighlighter.h Examining data/cantor-20.08.3/src/lib/extension.cpp Examining data/cantor-20.08.3/src/lib/animationresult.cpp Examining data/cantor-20.08.3/src/lib/mimeresult.cpp Examining data/cantor-20.08.3/src/lib/jupyterutils.cpp Examining data/cantor-20.08.3/src/lib/renderer.h Examining data/cantor-20.08.3/src/lib/worksheetaccess.cpp Examining data/cantor-20.08.3/src/lib/panelpluginhandler.h Examining data/cantor-20.08.3/src/lib/latexresult.h Examining data/cantor-20.08.3/src/lib/session.h Examining data/cantor-20.08.3/src/lib/completionobject.h Examining data/cantor-20.08.3/src/lib/worksheetaccess.h Examining data/cantor-20.08.3/src/lib/jupyterutils.h Examining data/cantor-20.08.3/src/lib/directives/plotdirectives.h Examining data/cantor-20.08.3/src/lib/directives/plotdirectives.cpp Examining data/cantor-20.08.3/src/lib/htmlresult.cpp Examining data/cantor-20.08.3/src/lib/panelplugin.cpp Examining data/cantor-20.08.3/src/lib/cantor_macros.h Examining data/cantor-20.08.3/src/lib/renderer.cpp Examining data/cantor-20.08.3/src/lib/mimeresult.h Examining data/cantor-20.08.3/src/lib/extension.h Examining data/cantor-20.08.3/src/lib/session.cpp Examining data/cantor-20.08.3/src/lib/result.cpp Examining data/cantor-20.08.3/src/test/worksheet_test.cpp Examining data/cantor-20.08.3/src/test/worksheet_test.h Examining data/cantor-20.08.3/src/worksheetentry.cpp Examining data/cantor-20.08.3/src/resultitem.h Examining data/cantor-20.08.3/src/mathrendertask.cpp Examining data/cantor-20.08.3/src/imageentry.h Examining data/cantor-20.08.3/src/worksheetentry.h Examining data/cantor-20.08.3/src/worksheetcontrolitem.cpp Examining data/cantor-20.08.3/src/imagesettingsdialog.cpp Examining data/cantor-20.08.3/src/pagebreakentry.h Examining data/cantor-20.08.3/src/main.cpp Examining data/cantor-20.08.3/src/placeholderentry.cpp Examining data/cantor-20.08.3/src/latexentry.h Examining data/cantor-20.08.3/src/horizontalruleentry.cpp Examining data/cantor-20.08.3/src/mathrendertask.h Examining data/cantor-20.08.3/src/textentry.cpp Examining data/cantor-20.08.3/src/textresultitem.h Examining data/cantor-20.08.3/src/textresultitem.cpp Examining data/cantor-20.08.3/src/animationresultitem.h Examining data/cantor-20.08.3/src/imageentry.cpp Examining data/cantor-20.08.3/src/worksheettextitem.h Examining data/cantor-20.08.3/src/pagebreakentry.cpp Examining data/cantor-20.08.3/src/markdownentry.h Examining data/cantor-20.08.3/src/placeholderentry.h Examining data/cantor-20.08.3/src/searchbar.cpp Examining data/cantor-20.08.3/src/cantor_part.cpp Examining data/cantor-20.08.3/src/animation.h Examining data/cantor-20.08.3/src/worksheettextitem.cpp Examining data/cantor-20.08.3/src/scripteditor/scripteditorwidget.h Examining data/cantor-20.08.3/src/scripteditor/main.cpp Examining data/cantor-20.08.3/src/scripteditor/scripteditorwidget.cpp Examining data/cantor-20.08.3/src/textentry.h Examining data/cantor-20.08.3/src/horizontalruleentry.h Examining data/cantor-20.08.3/src/cantor.cpp FINAL RESULTS: data/cantor-20.08.3/src/backends/R/rserver/rcallbacks.cpp:93: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( (char*) buf, input.toStdString().c_str()); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/Csio.c:29:8: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. siz = vsnprintf(T(*iot)+S(*iot), ALLOCATED(*iot)-S(*iot), fmt, ptr); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/amalloc.c:25:5: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, msg, index); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/basename.c:24: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(ret, base); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/flags.c:70:6: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(f, htmlplease ? "<s>" : "!"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/generate.c:176:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf(bfr, sizeof bfr, fmt, ptr); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:57:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ptr); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:124:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(res, "<pre><code class=\"%s\">\n", lang); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/markdown.c:833:6: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(p->ident, "%s=\"%.*s\"", prefix, S(q->text)-(i+2), data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:65:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, why, ptr); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:152: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(source, argv[0]); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:153: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(dest, argv[argc-1]); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/pgm_options.c:105:7: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, opts[i].off ? "disable " : "enable "); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:129:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, why, ptr); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:599: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(source,argv[0]); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:617: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(output_file, source); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tools/branch.c:17:12: [4] (shell) popen: 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. pipe = popen("git branch | awk '$1 ~ /\\*/ { print $2; }'", "r"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tools/pandoc_headers.c:38:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, why, ptr); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/amalloc.c:131:10: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("AMALLOC_STATISTICS") ) { data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:195:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( q = getenv("MARKDOWN_FLAGS") ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/makepage.c:45:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( (q = getenv("MARKDOWN_FLAGS")) ) data/cantor-20.08.3/src/backends/R/rexpression.cpp:107: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 (!f.open(QIODevice::ReadOnly | QIODevice::Text)) data/cantor-20.08.3/src/backends/R/rserver/rserver.cpp:490:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pos[32]; data/cantor-20.08.3/src/backends/R/rserver/rserver.cpp:491:13: [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(pos,"%d",i+1); data/cantor-20.08.3/src/backends/julia/juliascriptloading.h:40: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 (text.open(QIODevice::ReadOnly)) data/cantor-20.08.3/src/backends/julia/juliaserver/juliaserver.cpp:83:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!output.open() || !error.open()) { data/cantor-20.08.3/src/backends/julia/juliaserver/juliaserver.cpp:83:34: [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 (!output.open() || !error.open()) { data/cantor-20.08.3/src/backends/maxima/maximaexpression.cpp:91:21: [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). m_tempFile->open(); data/cantor-20.08.3/src/backends/octave/octaveexpression.cpp:104:30: [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). file.open(QFile::WriteOnly); data/cantor-20.08.3/src/backends/python/pythonutils.h:30: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 (text.open(QIODevice::ReadOnly)) data/cantor-20.08.3/src/backends/qalculate/qalculateexpression.cpp:651:18: [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). m_tempFile->open(); data/cantor-20.08.3/src/cantor.cpp:117:38: [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). QAction* open = KStandardAction::open(this, SLOT(fileOpen()), actionCollection()); data/cantor-20.08.3/src/latexentry.cpp:252: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). buffer.open(QIODevice::WriteOnly); data/cantor-20.08.3/src/latexentry.cpp:315: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). buffer.open(QIODevice::WriteOnly); data/cantor-20.08.3/src/lib/animationresult.cpp:113: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::ReadOnly)) data/cantor-20.08.3/src/lib/backend.cpp:235: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::ReadOnly)) data/cantor-20.08.3/src/lib/epsresult.cpp:104: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). buffer.open(QIODevice::WriteOnly); data/cantor-20.08.3/src/lib/epsresult.cpp:113: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). buffer.open(QIODevice::WriteOnly); data/cantor-20.08.3/src/lib/graphicpackage.cpp:106: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 (fin.open(QFile::ReadOnly)) data/cantor-20.08.3/src/lib/htmlresult.cpp:176: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 | QIODevice::Text)) data/cantor-20.08.3/src/lib/imageresult.cpp:60:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (imageFile.open()) data/cantor-20.08.3/src/lib/jupyterutils.cpp:352: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). buffer.open(QIODevice::WriteOnly); data/cantor-20.08.3/src/lib/jupyterutils.cpp:449: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). file.open(); data/cantor-20.08.3/src/lib/latexrenderer.cpp:208:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). d->texFile->open(); data/cantor-20.08.3/src/lib/latexresult.cpp:163:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) data/cantor-20.08.3/src/lib/mimeresult.cpp:126: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 | QIODevice::Text)) data/cantor-20.08.3/src/lib/textresult.cpp:198: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 | QIODevice::Text)) data/cantor-20.08.3/src/loadedexpression.cpp:233:22: [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). file.open(); data/cantor-20.08.3/src/markdownentry.cpp:260: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). buffer.open(QIODevice::WriteOnly); data/cantor-20.08.3/src/mathrendertask.cpp:83: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). texFile.open(); data/cantor-20.08.3/src/scripteditor/main.cpp:38:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). editor->open(path); data/cantor-20.08.3/src/scripteditor/scripteditorwidget.cpp:50:22: [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). KStandardAction::open(this, SLOT(open()), actionCollection()); data/cantor-20.08.3/src/scripteditor/scripteditorwidget.cpp:50:38: [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). KStandardAction::open(this, SLOT(open()), actionCollection()); data/cantor-20.08.3/src/scripteditor/scripteditorwidget.cpp:99:26: [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). void ScriptEditorWidget::open() data/cantor-20.08.3/src/scripteditor/scripteditorwidget.cpp:105:26: [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). void ScriptEditorWidget::open(const QUrl &url) data/cantor-20.08.3/src/scripteditor/scripteditorwidget.cpp:124: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). m_tmpFile->open(); data/cantor-20.08.3/src/scripteditor/scripteditorwidget.h:41: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). void open(const QUrl &url); data/cantor-20.08.3/src/scripteditor/scripteditorwidget.h:48: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). void open(); data/cantor-20.08.3/src/worksheet.cpp:996: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). if ( !file.open(QIODevice::WriteOnly) ) data/cantor-20.08.3/src/worksheet.cpp:1024:27: [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 ( !zipFile.open(QIODevice::WriteOnly) ) data/cantor-20.08.3/src/worksheet.cpp:1058: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/cantor-20.08.3/src/worksheet.cpp:1102: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/cantor-20.08.3/src/worksheet.cpp:1134: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::ReadOnly)) { data/cantor-20.08.3/src/worksheet.cpp:1149: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). buf.open(QIODevice::ReadOnly); data/cantor-20.08.3/src/worksheet.cpp:1164:17: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (archive.open(QIODevice::ReadOnly)) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/Csio.c:44:5: [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(T(*iot)+S(*iot), bfr, size); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/cstring.h:40: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(((S(t) += (sz)) - (sz)) + \ data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/cstring.h:48: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( T(t), (p), (sz) ); \ data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/emmatch.c:95:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char open[10]; data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/emmatch.c:95: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). char open[10]; data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/emmatch.c:96: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 close[10]; data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/emmatch.c:144:40: [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). PREFIX(start->b_text, emtags[match-1].open, emtags[match-1].size-1); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/generate.c:172:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bfr[80]; data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/generate.c:1793: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(text+copy_p, T(t->text), S(t->text)); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:128:14: [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. case '&': strcpy(&src[x], "&"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:131:14: [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. case '<': strcpy(&src[x], "<"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:134:14: [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. case '>': strcpy(&src[x], ">"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:141:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(&res[x], "</code></pre>\n"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:159:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( (input = fopen(source, "r")) == 0 ) { data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:160:6: [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(source, ".text"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:161:20: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( (input = fopen(source, "r")) == 0 ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:168:6: [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(dest, ".html"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:171:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if ( (output = fopen(dest, "w")) == 0 ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:76:18: [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). #define pushd(d) open(d, O_RDONLY) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:156:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). while ( !(ret = fopen(template, "r")) ) { data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:277:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (( f = fopen(T(include), "r") )) { data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:601:6: [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(source, "/index"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:604:6: [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(source, ".text"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:629:6: [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(q, ".html"); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tools/branch.c:14:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[1024]; data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tools/cols.c:16:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). else if ( (width=atoi(argv[1])) < 1 ) { data/cantor-20.08.3/src/markdownentry.cpp:708:35: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const QImage img = reader.read(); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/basename.c:23:60: [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 ( base && string && (*string == '/') && (ret=malloc(strlen(base)+size+2)) ) { data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/basename.c:25:2: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(ret, string, size); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/generate.c:605:19: [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). puturl(edit, strlen(edit), f, 0); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/generate.c:1153: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). if ( !(len = strlen(s)) ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/generate.c:1286: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). int beginLength = strlen(begin); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/generate.c:1287: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). int endLength = strlen(end); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/generate.c:1803: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). Qwrite(fmt, strlen(fmt), f); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/github_flavoured.c:24:24: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). gfm_populate(getc_func getc, void* ctx, int flags) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/github_flavoured.c:37:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (c = (*getc)(ctx)) != EOF ) { data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/github_flavoured.c:100:36: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return gfm_populate((getc_func)fgetc, f, flags & INPUT_MASK); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:73:13: [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 = strlen(input); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:120:37: [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 ( (res = malloc(len+extra+80+strlen(lang))) ==0 ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:125:9: [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). x = strlen(res); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:279: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). rc = mkd_generateline( text, strlen(text), stdout, flags); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:282: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). doc = github_flavoured ? gfm_string(text, strlen(text), flags) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/main.c:283: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). : mkd_string(text, strlen(text), flags) ; data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/markdown.c:832: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). if ( p->ident = malloc(4+strlen(prefix)+S(q->text)) ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:146: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). dest = malloc(strlen(argv[argc-1]) + 6); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:147: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). source = malloc(strlen(argv[0]) + 6); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkd2html.c:213:22: [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). mkd_generateline(h, strlen(h), output, 0); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkdio.c:98:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). populate(getc_func getc, void* ctx, mkd_flag_t flags) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkdio.c:111:20: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (c = (*getc)(ctx)) != EOF ) { data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mkdio.c:154:32: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return populate((getc_func)fgetc, f, flags & INPUT_MASK); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/mktags.c:21:15: [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). p->size = strlen(id); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tags.c:30:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ( !(p = mkd_search_tags(id, strlen(id))) ) { data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tags.c:36:12: [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). p->size = strlen(id); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:151: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). szcwd = root ? 1 + strlen(root) : 2; data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:187:18: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (c = getc(input)) != EOF ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:249:11: [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). c = peek(strlen(pat)+1); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:278:19: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while ( (c = getc(f)) != EOF ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:295:19: [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). fwrite(pagename, strlen(pagename)-strlen(p), 1, output); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:295:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). fwrite(pagename, strlen(pagename)-strlen(p), 1, output); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:313: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). fwrite(p, strlen(p), 1, output); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:335:22: [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). mkd_generateline(h, strlen(h), output, flags); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:347:22: [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). mkd_generateline(h, strlen(h), output, flags|MKD_TAGTEXT); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:364:22: [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). mkd_generateline(h, strlen(h), output, flags); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:383: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). fwrite(markdown_version, strlen(markdown_version), 1, output); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:468:9: [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). shift(strlen("?theme ")); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:596: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). if ( (source = malloc(strlen(argv[0]) + strlen("/index.text") + 1)) == 0 ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:596: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). if ( (source = malloc(strlen(argv[0]) + strlen("/index.text") + 1)) == 0 ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:614: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). if ( (output_file = malloc(strlen(source) + strlen(".html") + 1)) == 0 ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:614: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 ( (output_file = malloc(strlen(source) + strlen(".html") + 1)) == 0 ) data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/theme.c:627: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). q = output_file + strlen(output_file); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tools/cols.c:22:24: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). for ( xp = 1; (c = getchar()) != EOF; xp++ ) { data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/tools/cols.c:30:21: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). } while ( (c = getchar()) != EOF && (c & 0x80) && !(c & 0x40) ); data/cantor-20.08.3/thirdparty/discount-2.2.6-patched/xml.c:73: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). Cswrite(&f, entity, strlen(entity)); ANALYSIS SUMMARY: Hits = 138 Lines analyzed = 66265 in approximately 1.85 seconds (35733 lines/second) Physical Source Lines of Code (SLOC) = 45964 Hits@level = [0] 81 [1] 47 [2] 70 [3] 3 [4] 18 [5] 0 Hits@level+ = [0+] 219 [1+] 138 [2+] 91 [3+] 21 [4+] 18 [5+] 0 Hits/KSLOC@level+ = [0+] 4.7646 [1+] 3.00235 [2+] 1.97981 [3+] 0.456879 [4+] 0.391611 [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.