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/kile-2.9.93/src/widgets/usermenuconfigwidget.h
Examining data/kile-2.9.93/src/widgets/usermenuconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/toolconfigwidget.h
Examining data/kile-2.9.93/src/widgets/toolconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/symbolviewconfigwidget.h
Examining data/kile-2.9.93/src/widgets/symbolviewconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/symbolview.h
Examining data/kile-2.9.93/src/widgets/symbolview.cpp
Examining data/kile-2.9.93/src/widgets/structurewidget.h
Examining data/kile-2.9.93/src/widgets/structurewidget.cpp
Examining data/kile-2.9.93/src/widgets/structureviewconfigwidget.h
Examining data/kile-2.9.93/src/widgets/structureviewconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/statusbar.h
Examining data/kile-2.9.93/src/widgets/statusbar.cpp
Examining data/kile-2.9.93/src/widgets/statisticswidget.h
Examining data/kile-2.9.93/src/widgets/statisticswidget.cpp
Examining data/kile-2.9.93/src/widgets/sidebar.h
Examining data/kile-2.9.93/src/widgets/sidebar.cpp
Examining data/kile-2.9.93/src/widgets/scrollwidget.h
Examining data/kile-2.9.93/src/widgets/scrollwidget.cpp
Examining data/kile-2.9.93/src/widgets/scriptsmanagementwidget.h
Examining data/kile-2.9.93/src/widgets/scriptsmanagementwidget.cpp
Examining data/kile-2.9.93/src/widgets/scriptingconfigwidget.h
Examining data/kile-2.9.93/src/widgets/scriptingconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/quicktoolconfigwidget.h
Examining data/kile-2.9.93/src/widgets/quicktoolconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/projectview.h
Examining data/kile-2.9.93/src/widgets/projectview.cpp
Examining data/kile-2.9.93/src/widgets/progressdialog.h
Examining data/kile-2.9.93/src/widgets/progressdialog.cpp
Examining data/kile-2.9.93/src/widgets/processtoolconfigwidget.h
Examining data/kile-2.9.93/src/widgets/processtoolconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/previewwidget.h
Examining data/kile-2.9.93/src/widgets/previewwidget.cpp
Examining data/kile-2.9.93/src/widgets/previewconfigwidget.h
Examining data/kile-2.9.93/src/widgets/previewconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/outputview.h
Examining data/kile-2.9.93/src/widgets/outputview.cpp
Examining data/kile-2.9.93/src/widgets/newdocumentwidget.h
Examining data/kile-2.9.93/src/widgets/newdocumentwidget.cpp
Examining data/kile-2.9.93/src/widgets/maintoolconfigwidget.h
Examining data/kile-2.9.93/src/widgets/maintoolconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/logwidget.h
Examining data/kile-2.9.93/src/widgets/logwidget.cpp
Examining data/kile-2.9.93/src/widgets/livepreviewconfigwidget.h
Examining data/kile-2.9.93/src/widgets/livepreviewconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/latextoolconfigwidget.h
Examining data/kile-2.9.93/src/widgets/latextoolconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/latexconfigwidget.h
Examining data/kile-2.9.93/src/widgets/latexconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/konsolewidget.h
Examining data/kile-2.9.93/src/widgets/konsolewidget.cpp
Examining data/kile-2.9.93/src/widgets/helpconfigwidget.h
Examining data/kile-2.9.93/src/widgets/helpconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/graphicsconfigwidget.h
Examining data/kile-2.9.93/src/widgets/graphicsconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/generalconfigwidget.h
Examining data/kile-2.9.93/src/widgets/generalconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/filebrowserwidget.h
Examining data/kile-2.9.93/src/widgets/filebrowserwidget.cpp
Examining data/kile-2.9.93/src/widgets/environmentconfigwidget.h
Examining data/kile-2.9.93/src/widgets/environmentconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/configcheckerwidget.h
Examining data/kile-2.9.93/src/widgets/configcheckerwidget.cpp
Examining data/kile-2.9.93/src/widgets/commandview.h
Examining data/kile-2.9.93/src/widgets/commandview.cpp
Examining data/kile-2.9.93/src/widgets/codecompletionconfigwidget.h
Examining data/kile-2.9.93/src/widgets/codecompletionconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/categorycombobox.h
Examining data/kile-2.9.93/src/widgets/categorycombobox.cpp
Examining data/kile-2.9.93/src/widgets/appearanceconfigwidget.h
Examining data/kile-2.9.93/src/widgets/appearanceconfigwidget.cpp
Examining data/kile-2.9.93/src/widgets/abbreviationview.h
Examining data/kile-2.9.93/src/widgets/abbreviationview.cpp
Examining data/kile-2.9.93/src/utilities.h
Examining data/kile-2.9.93/src/utilities.cpp
Examining data/kile-2.9.93/src/usermenu/usermenudata.h
Examining data/kile-2.9.93/src/usermenu/usermenudata.cpp
Examining data/kile-2.9.93/src/usermenu/usermenu.h
Examining data/kile-2.9.93/src/usermenu/usermenu.cpp
Examining data/kile-2.9.93/src/userhelp.h
Examining data/kile-2.9.93/src/userhelp.cpp
Examining data/kile-2.9.93/src/tool_utils.h
Examining data/kile-2.9.93/src/tool_utils.cpp
Examining data/kile-2.9.93/src/templates.h
Examining data/kile-2.9.93/src/templates.cpp
Examining data/kile-2.9.93/src/symbolviewclasses.h
Examining data/kile-2.9.93/src/scriptmanager.h
Examining data/kile-2.9.93/src/scriptmanager.cpp
Examining data/kile-2.9.93/src/scripting/script.h
Examining data/kile-2.9.93/src/scripting/script.cpp
Examining data/kile-2.9.93/src/scripting/kilescriptview.h
Examining data/kile-2.9.93/src/scripting/kilescriptview.cpp
Examining data/kile-2.9.93/src/scripting/kilescriptobject.h
Examining data/kile-2.9.93/src/scripting/kilescriptobject.cpp
Examining data/kile-2.9.93/src/scripting/kilescriptdocument.h
Examining data/kile-2.9.93/src/scripting/kilescriptdocument.cpp
Examining data/kile-2.9.93/src/quickpreview.h
Examining data/kile-2.9.93/src/quickpreview.cpp
Examining data/kile-2.9.93/src/plaintolatexconverter.h
Examining data/kile-2.9.93/src/plaintolatexconverter.cpp
Examining data/kile-2.9.93/src/parser/parserthread.h
Examining data/kile-2.9.93/src/parser/parserthread.cpp
Examining data/kile-2.9.93/src/parser/parsermanager.h
Examining data/kile-2.9.93/src/parser/parsermanager.cpp
Examining data/kile-2.9.93/src/parser/parser.h
Examining data/kile-2.9.93/src/parser/parser.cpp
Examining data/kile-2.9.93/src/parser/latexparser.h
Examining data/kile-2.9.93/src/parser/latexparser.cpp
Examining data/kile-2.9.93/src/parser/latexoutputparser.h
Examining data/kile-2.9.93/src/parser/latexoutputparser.cpp
Examining data/kile-2.9.93/src/parser/bibtexparser.h
Examining data/kile-2.9.93/src/parser/bibtexparser.cpp
Examining data/kile-2.9.93/src/outputinfo.h
Examining data/kile-2.9.93/src/outputinfo.cpp
Examining data/kile-2.9.93/src/main.cpp
Examining data/kile-2.9.93/src/livepreview_utils.h
Examining data/kile-2.9.93/src/livepreview_utils.cpp
Examining data/kile-2.9.93/src/livepreview.h
Examining data/kile-2.9.93/src/livepreview.cpp
Examining data/kile-2.9.93/src/latexcmd.h
Examining data/kile-2.9.93/src/latexcmd.cpp
Examining data/kile-2.9.93/src/kilewizard.h
Examining data/kile-2.9.93/src/kilewizard.cpp
Examining data/kile-2.9.93/src/kileviewmanager.h
Examining data/kile-2.9.93/src/kileviewmanager.cpp
Examining data/kile-2.9.93/src/kileversion.h
Examining data/kile-2.9.93/src/kileversion.cpp
Examining data/kile-2.9.93/src/kiletoolmanager.h
Examining data/kile-2.9.93/src/kiletoolmanager.cpp
Examining data/kile-2.9.93/src/kiletool_enums.h
Examining data/kile-2.9.93/src/kiletool.h
Examining data/kile-2.9.93/src/kiletool.cpp
Examining data/kile-2.9.93/src/kilestdtools.h
Examining data/kile-2.9.93/src/kilestdtools.cpp
Examining data/kile-2.9.93/src/kilestdactions.h
Examining data/kile-2.9.93/src/kilestdactions.cpp
Examining data/kile-2.9.93/src/kileproject.h
Examining data/kile-2.9.93/src/kileproject.cpp
Examining data/kile-2.9.93/src/kilelyxserver.h
Examining data/kile-2.9.93/src/kilelyxserver.cpp
Examining data/kile-2.9.93/src/kilelauncher.h
Examining data/kile-2.9.93/src/kilelauncher.cpp
Examining data/kile-2.9.93/src/kileinfo.h
Examining data/kile-2.9.93/src/kileinfo.cpp
Examining data/kile-2.9.93/src/kilehelp.h
Examining data/kile-2.9.93/src/kilehelp.cpp
Examining data/kile-2.9.93/src/kileextensions.h
Examining data/kile-2.9.93/src/kileextensions.cpp
Examining data/kile-2.9.93/src/kiledocmanager.h
Examining data/kile-2.9.93/src/kiledocmanager.cpp
Examining data/kile-2.9.93/src/kiledebug.h
Examining data/kile-2.9.93/src/kileconstants.h
Examining data/kile-2.9.93/src/kileappIface.h
Examining data/kile-2.9.93/src/kileactions.h
Examining data/kile-2.9.93/src/kileactions.cpp
Examining data/kile-2.9.93/src/kile.h
Examining data/kile-2.9.93/src/kile.cpp
Examining data/kile-2.9.93/src/eventfilter.h
Examining data/kile-2.9.93/src/eventfilter.cpp
Examining data/kile-2.9.93/src/errorhandler.h
Examining data/kile-2.9.93/src/errorhandler.cpp
Examining data/kile-2.9.93/src/editorkeysequencemanager.h
Examining data/kile-2.9.93/src/editorkeysequencemanager.cpp
Examining data/kile-2.9.93/src/editorextension.h
Examining data/kile-2.9.93/src/editorextension.cpp
Examining data/kile-2.9.93/src/editorcommands.h
Examining data/kile-2.9.93/src/editorcommands.cpp
Examining data/kile-2.9.93/src/documentinfo.h
Examining data/kile-2.9.93/src/documentinfo.cpp
Examining data/kile-2.9.93/src/docpart.h
Examining data/kile-2.9.93/src/docpart.cpp
Examining data/kile-2.9.93/src/dialogs/validatorinputdialog_p.h
Examining data/kile-2.9.93/src/dialogs/validatorinputdialog.h
Examining data/kile-2.9.93/src/dialogs/validatorinputdialog.cpp
Examining data/kile-2.9.93/src/dialogs/usermenu/usermenutree.h
Examining data/kile-2.9.93/src/dialogs/usermenu/usermenutree.cpp
Examining data/kile-2.9.93/src/dialogs/usermenu/usermenuitem.h
Examining data/kile-2.9.93/src/dialogs/usermenu/usermenuitem.cpp
Examining data/kile-2.9.93/src/dialogs/usermenu/usermenudialog.h
Examining data/kile-2.9.93/src/dialogs/usermenu/usermenudialog.cpp
Examining data/kile-2.9.93/src/dialogs/userhelpdialog.h
Examining data/kile-2.9.93/src/dialogs/userhelpdialog.cpp
Examining data/kile-2.9.93/src/dialogs/texdocumentationdialog.h
Examining data/kile-2.9.93/src/dialogs/texdocumentationdialog.cpp
Examining data/kile-2.9.93/src/dialogs/tabular/tabulartable.h
Examining data/kile-2.9.93/src/dialogs/tabular/tabulartable.cpp
Examining data/kile-2.9.93/src/dialogs/tabular/tabularproperties.h
Examining data/kile-2.9.93/src/dialogs/tabular/tabularproperties.cpp
Examining data/kile-2.9.93/src/dialogs/tabular/tabularheaderitem.h
Examining data/kile-2.9.93/src/dialogs/tabular/tabularheaderitem.cpp
Examining data/kile-2.9.93/src/dialogs/tabular/tabularcelldelegate.h
Examining data/kile-2.9.93/src/dialogs/tabular/tabularcelldelegate.cpp
Examining data/kile-2.9.93/src/dialogs/tabular/tabularcell.h
Examining data/kile-2.9.93/src/dialogs/tabular/tabularcell.cpp
Examining data/kile-2.9.93/src/dialogs/tabular/selectframeaction.h
Examining data/kile-2.9.93/src/dialogs/tabular/selectframeaction.cpp
Examining data/kile-2.9.93/src/dialogs/tabular/selectcoloraction.h
Examining data/kile-2.9.93/src/dialogs/tabular/selectcoloraction.cpp
Examining data/kile-2.9.93/src/dialogs/tabular/newtabulardialog.h
Examining data/kile-2.9.93/src/dialogs/tabular/newtabulardialog.cpp
Examining data/kile-2.9.93/src/dialogs/tabular/multicolumnborderhelper.h
Examining data/kile-2.9.93/src/dialogs/tabular/multicolumnborderhelper.cpp
Examining data/kile-2.9.93/src/dialogs/tabbingdialog.h
Examining data/kile-2.9.93/src/dialogs/tabbingdialog.cpp
Examining data/kile-2.9.93/src/dialogs/statisticsdialog.h
Examining data/kile-2.9.93/src/dialogs/statisticsdialog.cpp
Examining data/kile-2.9.93/src/dialogs/scriptshortcutdialog.h
Examining data/kile-2.9.93/src/dialogs/scriptshortcutdialog.cpp
Examining data/kile-2.9.93/src/dialogs/quickdocumentdialog.h
Examining data/kile-2.9.93/src/dialogs/quickdocumentdialog.cpp
Examining data/kile-2.9.93/src/dialogs/projectdialogs.h
Examining data/kile-2.9.93/src/dialogs/projectdialogs.cpp
Examining data/kile-2.9.93/src/dialogs/postscriptdialog.h
Examining data/kile-2.9.93/src/dialogs/postscriptdialog.cpp
Examining data/kile-2.9.93/src/dialogs/pdf-wizard/pdfdialog.h
Examining data/kile-2.9.93/src/dialogs/pdf-wizard/pdfdialog.cpp
Examining data/kile-2.9.93/src/dialogs/newtoolwizard.h
Examining data/kile-2.9.93/src/dialogs/newtoolwizard.cpp
Examining data/kile-2.9.93/src/dialogs/newfilewizard.h
Examining data/kile-2.9.93/src/dialogs/newfilewizard.cpp
Examining data/kile-2.9.93/src/dialogs/mathenvironmentdialog.h
Examining data/kile-2.9.93/src/dialogs/mathenvironmentdialog.cpp
Examining data/kile-2.9.93/src/dialogs/managetemplatesdialog.h
Examining data/kile-2.9.93/src/dialogs/managetemplatesdialog.cpp
Examining data/kile-2.9.93/src/dialogs/listselector.h
Examining data/kile-2.9.93/src/dialogs/listselector.cpp
Examining data/kile-2.9.93/src/dialogs/latexcommanddialog.h
Examining data/kile-2.9.93/src/dialogs/latexcommanddialog.cpp
Examining data/kile-2.9.93/src/dialogs/includegraphicsdialog.h
Examining data/kile-2.9.93/src/dialogs/includegraphicsdialog.cpp
Examining data/kile-2.9.93/src/dialogs/floatdialog.h
Examining data/kile-2.9.93/src/dialogs/floatdialog.cpp
Examining data/kile-2.9.93/src/dialogs/findfilesdialog.h
Examining data/kile-2.9.93/src/dialogs/findfilesdialog.cpp
Examining data/kile-2.9.93/src/dialogs/configurationdialog.h
Examining data/kile-2.9.93/src/dialogs/configurationdialog.cpp
Examining data/kile-2.9.93/src/dialogs/configcheckerdialog.h
Examining data/kile-2.9.93/src/dialogs/configcheckerdialog.cpp
Examining data/kile-2.9.93/src/dialogs/cleandialog.h
Examining data/kile-2.9.93/src/dialogs/cleandialog.cpp
Examining data/kile-2.9.93/src/dialogs/abbreviationinputdialog.h
Examining data/kile-2.9.93/src/dialogs/abbreviationinputdialog.cpp
Examining data/kile-2.9.93/src/data/symbols-ng/gesymb-ng.cpp
Examining data/kile-2.9.93/src/data/symbols-ng/convertOldSymbolFormat.h
Examining data/kile-2.9.93/src/data/symbols-ng/convertOldSymbolFormat.cpp
Examining data/kile-2.9.93/src/convert.h
Examining data/kile-2.9.93/src/convert.cpp
Examining data/kile-2.9.93/src/configurationmanager.h
Examining data/kile-2.9.93/src/configurationmanager.cpp
Examining data/kile-2.9.93/src/configtester.h
Examining data/kile-2.9.93/src/configtester.cpp
Examining data/kile-2.9.93/src/codecompletion.h
Examining data/kile-2.9.93/src/codecompletion.cpp
Examining data/kile-2.9.93/src/abbreviationmanager.h
Examining data/kile-2.9.93/src/abbreviationmanager.cpp

FINAL RESULTS:

data/kile-2.9.93/src/data/symbols-ng/gesymb-ng.cpp:150:16:  [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.
    latexret = system(texcommand.toLatin1());
data/kile-2.9.93/src/data/symbols-ng/gesymb-ng.cpp:151:16:  [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.
    dvipngret= system(dvipngcommand.toLatin1());
data/kile-2.9.93/src/kilehelp.cpp:146:48:  [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.
    QStringList paths = QString::fromLocal8Bit(getenv("PATH")).split(splitReg, QString::SkipEmptyParts);
data/kile-2.9.93/src/abbreviationmanager.cpp:100: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).
    if(!abbreviationFile.open(QIODevice::WriteOnly)) {
data/kile-2.9.93/src/codecompletion.cpp:1069: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).
    if(f.open(QIODevice::ReadOnly)) {     // file opened successfully
data/kile-2.9.93/src/configtester.cpp:505: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/kile-2.9.93/src/convert.cpp:123: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(qf.open(QIODevice::ReadOnly)) {
data/kile-2.9.93/src/convert.cpp:185: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(qf.open(QIODevice::WriteOnly)) {
data/kile-2.9.93/src/data/symbols-ng/convertOldSymbolFormat.cpp:49: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 (  !file.open( QIODevice::ReadOnly ) ) {
data/kile-2.9.93/src/data/symbols-ng/gesymb-ng.cpp:129: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()) {
data/kile-2.9.93/src/data/symbols-ng/gesymb-ng.cpp:274: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/kile-2.9.93/src/dialogs/pdf-wizard/pdfdialog.cpp:483: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 | QIODevice::Text)) {
data/kile-2.9.93/src/dialogs/pdf-wizard/pdfdialog.cpp:960: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).
    if(!infotemp.open()) {
data/kile-2.9.93/src/dialogs/pdf-wizard/pdfdialog.cpp:1366: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(!temp.open()) {
data/kile-2.9.93/src/dialogs/pdf-wizard/pdfdialog.cpp:1390: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(!temp.open()) {
data/kile-2.9.93/src/dialogs/postscriptdialog.cpp:336: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(!temp.open()) {
data/kile-2.9.93/src/dialogs/texdocumentationdialog.cpp:135:31:  [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.exists() || !fin.open(QIODevice::ReadOnly)) {
data/kile-2.9.93/src/dialogs/texdocumentationdialog.cpp:290: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).
    if (!m_tempfile->open()) {
data/kile-2.9.93/src/dialogs/texdocumentationdialog.cpp:312:31:  [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.exists() || !fin.open(QIODevice::ReadOnly)) {
data/kile-2.9.93/src/dialogs/texdocumentationdialog.cpp:324: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).
    if (!m_tempfile->open()) {
data/kile-2.9.93/src/dialogs/usermenu/usermenutree.cpp:245: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(QFile::ReadOnly | QFile::Text) ) {
data/kile-2.9.93/src/dialogs/usermenu/usermenutree.cpp:449: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(QFile::WriteOnly | QFile::Text) ) {
data/kile-2.9.93/src/editorextension.cpp:495: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).
    BracketData open,close;
data/kile-2.9.93/src/editorextension.cpp:496: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(getTexgroup(false, open, close, view)) {
data/kile-2.9.93/src/editorextension.cpp:497:41:  [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).
        QString s = getTextLineReal(doc,open.row);
data/kile-2.9.93/src/editorextension.cpp:498: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(open.col >= 11 && s.mid(open.col - 11, 11) == "\\ensuremath") {
data/kile-2.9.93/src/editorextension.cpp:498:36:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if(open.col >= 11 && s.mid(open.col - 11, 11) == "\\ensuremath") {
data/kile-2.9.93/src/editorextension.cpp:500: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).
            row1 = open.row;
data/kile-2.9.93/src/editorextension.cpp:501: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).
            col1 = open.col-11;
data/kile-2.9.93/src/editorextension.cpp:1790: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(bracket.open) {
data/kile-2.9.93/src/editorextension.cpp:1877: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).
    BracketData open, close;
data/kile-2.9.93/src/editorextension.cpp:1878:28:  [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(getTexgroup(inside, open, close, view)) {
data/kile-2.9.93/src/editorextension.cpp:1879:35:  [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 KTextEditor::Range(open.row, open.col, close.row, close.col);
data/kile-2.9.93/src/editorextension.cpp:1879:45:  [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 KTextEditor::Range(open.row, open.col, close.row, close.col);
data/kile-2.9.93/src/editorextension.cpp:1904:61:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
bool EditorExtension::getTexgroup(bool inside, BracketData &open, BracketData &close, KTextEditor::View *view)
data/kile-2.9.93/src/editorextension.cpp:1918: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).
    if(!findOpenBracket(doc, row, col, open))  {
data/kile-2.9.93/src/editorextension.cpp:1928: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).
        ++open.col;
data/kile-2.9.93/src/editorextension.cpp:1947: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(bracket.open) {
data/kile-2.9.93/src/editorextension.cpp:1971: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).
        if(!bracket.open) {
data/kile-2.9.93/src/editorextension.h:234: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).
        bool open;
data/kile-2.9.93/src/editorextension.h:294:48:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    bool getTexgroup(bool inside, BracketData &open, BracketData &close, KTextEditor::View *view);
data/kile-2.9.93/src/errorhandler.cpp:421:69:  [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(!m_currentLaTeXOutputHandler->logFile().isEmpty() && logFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/kile-2.9.93/src/kile.cpp:2288: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).
    dlg->open();
data/kile-2.9.93/src/kile.cpp:2368: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 ( !file.open(QFile::WriteOnly | QFile::Text) ) {
data/kile-2.9.93/src/kiledocmanager.cpp:795: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).
    file.open(QIODevice::ReadWrite);
data/kile-2.9.93/src/kiledocmanager.cpp:2517:28:  [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(!temporaryFile->open()) {
data/kile-2.9.93/src/kiledocmanager.cpp:2536: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 (!localFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/kile-2.9.93/src/kilehelp.cpp:386: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).
    if(f.open(QIODevice::ReadOnly)) { // file opened successfully
data/kile-2.9.93/src/kilelyxserver.cpp:178:39:  [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(pipeInfo.exists() && file->open(QIODevice::ReadWrite)) { // in that order we don't create the file if it does not exist
data/kile-2.9.93/src/kilelyxserver.cpp:255: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 buffer[size];
data/kile-2.9.93/src/main.cpp:57: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).
    qstdin.open( stdin, QIODevice::ReadOnly );
data/kile-2.9.93/src/main.cpp:66: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).
    if(!tempFile.open(QIODevice::WriteOnly)) {
data/kile-2.9.93/src/parser/latexoutputparser.cpp:644: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(!f.open(QIODevice::ReadOnly)) {
data/kile-2.9.93/src/quickpreview.cpp:327: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).
    if(!fin.exists() || !fin.open(QIODevice::ReadOnly)) {
data/kile-2.9.93/src/quickpreview.cpp:338: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).
    if(!tempfile.open(QIODevice::WriteOnly)) {
data/kile-2.9.93/src/scripting/kilescriptobject.cpp:212: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 | QIODevice::Text)) {
data/kile-2.9.93/src/scripting/kilescriptobject.cpp:247: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 | QIODevice::Text)) {
data/kile-2.9.93/src/scripting/script.cpp:203: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::ReadOnly) ) {
data/kile-2.9.93/src/templates.cpp:146: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).
        tmpFile.open();
data/kile-2.9.93/src/templates.cpp:165: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).
        tmpFile.open();
data/kile-2.9.93/src/usermenu/usermenu.cpp:408: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(QFile::ReadOnly | QFile::Text) ) {
data/kile-2.9.93/src/usermenu/usermenu.cpp:579: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).
    file.open(QFile::ReadOnly | QFile::Text);
data/kile-2.9.93/src/usermenu/usermenu.cpp:605: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).
        outfile.open(QFile::WriteOnly | QFile::Text);
data/kile-2.9.93/src/usermenu/usermenu.cpp:786: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(QFile::ReadOnly | QFile::Text) ) {
data/kile-2.9.93/src/usermenu/usermenu.cpp:836:24:  [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 ( !tempfile.open() ) {
data/kile-2.9.93/src/widgets/projectview.cpp:741:68:  [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 ProjectView::removeItem(const KileProjectItem *projitem, bool open)
data/kile-2.9.93/src/widgets/projectview.cpp:755:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if(open) {
data/kile-2.9.93/src/kilelyxserver.cpp:256:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if((bytesRead = read(fd, buffer, size - 1)) > 0) {
data/kile-2.9.93/src/scripting/kilescriptobject.cpp:204:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
QMap<QString, QVariant> KileFile::read(const QString& filename) const
data/kile-2.9.93/src/scripting/kilescriptobject.cpp:229:35:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
QMap<QString, QVariant> KileFile::read() const
data/kile-2.9.93/src/scripting/kilescriptobject.cpp:235:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        return read(filename);
data/kile-2.9.93/src/scripting/kilescriptobject.h:143:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    Q_INVOKABLE QMap<QString, QVariant> read(const QString& filename) const;
data/kile-2.9.93/src/scripting/kilescriptobject.h:144:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    Q_INVOKABLE QMap<QString, QVariant> read() const;

ANALYSIS SUMMARY:

Hits = 73
Lines analyzed = 68762 in approximately 3.82 seconds (18020 lines/second)
Physical Source Lines of Code (SLOC) = 49820
Hits@level = [0]   0 [1]   6 [2]  64 [3]   1 [4]   2 [5]   0
Hits@level+ = [0+]  73 [1+]  73 [2+]  67 [3+]   3 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 1.46527 [1+] 1.46527 [2+] 1.34484 [3+] 0.0602168 [4+] 0.0401445 [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.