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/grantlee5-5.2.0/examples/books/bookdelegate.cpp
Examining data/grantlee5-5.2.0/examples/books/bookdelegate.h
Examining data/grantlee5-5.2.0/examples/books/bookwindow.cpp
Examining data/grantlee5-5.2.0/examples/books/bookwindow.h
Examining data/grantlee5-5.2.0/examples/books/bookwrapper.cpp
Examining data/grantlee5-5.2.0/examples/books/bookwrapper.h
Examining data/grantlee5-5.2.0/examples/books/initdb.h
Examining data/grantlee5-5.2.0/examples/books/main.cpp
Examining data/grantlee5-5.2.0/examples/codegen/codegentableview.cpp
Examining data/grantlee5-5.2.0/examples/codegen/codegentableview.h
Examining data/grantlee5-5.2.0/examples/codegen/comboboxdelegate.cpp
Examining data/grantlee5-5.2.0/examples/codegen/comboboxdelegate.h
Examining data/grantlee5-5.2.0/examples/codegen/comboboxdelegate_p.h
Examining data/grantlee5-5.2.0/examples/codegen/designwidget.cpp
Examining data/grantlee5-5.2.0/examples/codegen/designwidget.h
Examining data/grantlee5-5.2.0/examples/codegen/main.cpp
Examining data/grantlee5-5.2.0/examples/codegen/mainwindow.cpp
Examining data/grantlee5-5.2.0/examples/codegen/mainwindow.h
Examining data/grantlee5-5.2.0/examples/codegen/methodmodel.cpp
Examining data/grantlee5-5.2.0/examples/codegen/methodmodel.h
Examining data/grantlee5-5.2.0/examples/codegen/propertytablewidget.cpp
Examining data/grantlee5-5.2.0/examples/codegen/propertytablewidget.h
Examining data/grantlee5-5.2.0/examples/codegen/templates/cpp/args.h
Examining data/grantlee5-5.2.0/examples/codegen/templates/cpp/base_header.h
Examining data/grantlee5-5.2.0/examples/codegen/templates/cpp/bsd.h
Examining data/grantlee5-5.2.0/examples/codegen/templates/cpp/gpl.h
Examining data/grantlee5-5.2.0/examples/codegen/templates/cpp/header.h
Examining data/grantlee5-5.2.0/examples/codegen/templates/cpp/implementation.cpp
Examining data/grantlee5-5.2.0/examples/codegen/templates/cpp/lgpl.h
Examining data/grantlee5-5.2.0/examples/codegen/templates/cpp/private_header.h
Examining data/grantlee5-5.2.0/examples/contacts/contact.cpp
Examining data/grantlee5-5.2.0/examples/contacts/contact.h
Examining data/grantlee5-5.2.0/examples/contacts/kdelocalizer.cpp
Examining data/grantlee5-5.2.0/examples/contacts/kdelocalizer.h
Examining data/grantlee5-5.2.0/examples/contacts/main_kde.cpp
Examining data/grantlee5-5.2.0/examples/contacts/main_linguist.cpp
Examining data/grantlee5-5.2.0/examples/contacts/mainwindow.cpp
Examining data/grantlee5-5.2.0/examples/contacts/mainwindow.h
Examining data/grantlee5-5.2.0/examples/htmlapps/customplugin.cpp
Examining data/grantlee5-5.2.0/examples/htmlapps/customplugin.h
Examining data/grantlee5-5.2.0/examples/htmlapps/localrequestmanager.cpp
Examining data/grantlee5-5.2.0/examples/htmlapps/localrequestmanager.h
Examining data/grantlee5-5.2.0/examples/htmlapps/main.cpp
Examining data/grantlee5-5.2.0/examples/htmlapps/mainwindow.cpp
Examining data/grantlee5-5.2.0/examples/htmlapps/mainwindow.h
Examining data/grantlee5-5.2.0/examples/htmlapps/rssfeed.cpp
Examining data/grantlee5-5.2.0/examples/htmlapps/rssfeed.h
Examining data/grantlee5-5.2.0/examples/htmlapps/templatereply.cpp
Examining data/grantlee5-5.2.0/examples/htmlapps/templatereply.h
Examining data/grantlee5-5.2.0/examples/textedit/audioobject.cpp
Examining data/grantlee5-5.2.0/examples/textedit/audioobject.h
Examining data/grantlee5-5.2.0/examples/textedit/audiotextdocumentoutputter.cpp
Examining data/grantlee5-5.2.0/examples/textedit/audiotextdocumentoutputter.h
Examining data/grantlee5-5.2.0/examples/textedit/customtagslibrary.cpp
Examining data/grantlee5-5.2.0/examples/textedit/customtagslibrary.h
Examining data/grantlee5-5.2.0/examples/textedit/filters.cpp
Examining data/grantlee5-5.2.0/examples/textedit/filters.h
Examining data/grantlee5-5.2.0/examples/textedit/main.cpp
Examining data/grantlee5-5.2.0/examples/textedit/textedit.cpp
Examining data/grantlee5-5.2.0/examples/textedit/textedit.h
Examining data/grantlee5-5.2.0/templates/defaultfilters/datetime.cpp
Examining data/grantlee5-5.2.0/templates/defaultfilters/datetime.h
Examining data/grantlee5-5.2.0/templates/defaultfilters/defaultfilters.cpp
Examining data/grantlee5-5.2.0/templates/defaultfilters/defaultfilters.h
Examining data/grantlee5-5.2.0/templates/defaultfilters/integers.cpp
Examining data/grantlee5-5.2.0/templates/defaultfilters/integers.h
Examining data/grantlee5-5.2.0/templates/defaultfilters/lists.cpp
Examining data/grantlee5-5.2.0/templates/defaultfilters/lists.h
Examining data/grantlee5-5.2.0/templates/defaultfilters/logic.cpp
Examining data/grantlee5-5.2.0/templates/defaultfilters/logic.h
Examining data/grantlee5-5.2.0/templates/defaultfilters/misc.cpp
Examining data/grantlee5-5.2.0/templates/defaultfilters/misc.h
Examining data/grantlee5-5.2.0/templates/defaultfilters/stringfilters.cpp
Examining data/grantlee5-5.2.0/templates/defaultfilters/stringfilters.h
Examining data/grantlee5-5.2.0/templates/defaulttags/autoescape.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/autoescape.h
Examining data/grantlee5-5.2.0/templates/defaulttags/comment.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/comment.h
Examining data/grantlee5-5.2.0/templates/defaulttags/cycle.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/cycle.h
Examining data/grantlee5-5.2.0/templates/defaulttags/debug.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/debug.h
Examining data/grantlee5-5.2.0/templates/defaulttags/defaulttags.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/defaulttags.h
Examining data/grantlee5-5.2.0/templates/defaulttags/filtertag.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/filtertag.h
Examining data/grantlee5-5.2.0/templates/defaulttags/firstof.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/firstof.h
Examining data/grantlee5-5.2.0/templates/defaulttags/for.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/for.h
Examining data/grantlee5-5.2.0/templates/defaulttags/if.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/if.h
Examining data/grantlee5-5.2.0/templates/defaulttags/if_p.h
Examining data/grantlee5-5.2.0/templates/defaulttags/ifchanged.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/ifchanged.h
Examining data/grantlee5-5.2.0/templates/defaulttags/ifequal.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/ifequal.h
Examining data/grantlee5-5.2.0/templates/defaulttags/load.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/load.h
Examining data/grantlee5-5.2.0/templates/defaulttags/mediafinder.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/mediafinder.h
Examining data/grantlee5-5.2.0/templates/defaulttags/now.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/now.h
Examining data/grantlee5-5.2.0/templates/defaulttags/range.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/range.h
Examining data/grantlee5-5.2.0/templates/defaulttags/regroup.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/regroup.h
Examining data/grantlee5-5.2.0/templates/defaulttags/spaceless.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/spaceless.h
Examining data/grantlee5-5.2.0/templates/defaulttags/templatetag.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/templatetag.h
Examining data/grantlee5-5.2.0/templates/defaulttags/widthratio.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/widthratio.h
Examining data/grantlee5-5.2.0/templates/defaulttags/with.cpp
Examining data/grantlee5-5.2.0/templates/defaulttags/with.h
Examining data/grantlee5-5.2.0/templates/i18n/i18n.cpp
Examining data/grantlee5-5.2.0/templates/i18n/i18n.h
Examining data/grantlee5-5.2.0/templates/i18n/i18nc.cpp
Examining data/grantlee5-5.2.0/templates/i18n/i18nc.h
Examining data/grantlee5-5.2.0/templates/i18n/i18ncp.cpp
Examining data/grantlee5-5.2.0/templates/i18n/i18ncp.h
Examining data/grantlee5-5.2.0/templates/i18n/i18np.cpp
Examining data/grantlee5-5.2.0/templates/i18n/i18np.h
Examining data/grantlee5-5.2.0/templates/i18n/i18ntags.cpp
Examining data/grantlee5-5.2.0/templates/i18n/i18ntags.h
Examining data/grantlee5-5.2.0/templates/i18n/l10n_money.cpp
Examining data/grantlee5-5.2.0/templates/i18n/l10n_money.h
Examining data/grantlee5-5.2.0/templates/i18n/with_locale.cpp
Examining data/grantlee5-5.2.0/templates/i18n/with_locale.h
Examining data/grantlee5-5.2.0/templates/lib/abstractlocalizer.cpp
Examining data/grantlee5-5.2.0/templates/lib/abstractlocalizer.h
Examining data/grantlee5-5.2.0/templates/lib/cachingloaderdecorator.cpp
Examining data/grantlee5-5.2.0/templates/lib/cachingloaderdecorator.h
Examining data/grantlee5-5.2.0/templates/lib/context.cpp
Examining data/grantlee5-5.2.0/templates/lib/context.h
Examining data/grantlee5-5.2.0/templates/lib/customtyperegistry.cpp
Examining data/grantlee5-5.2.0/templates/lib/customtyperegistry_p.h
Examining data/grantlee5-5.2.0/templates/lib/engine.cpp
Examining data/grantlee5-5.2.0/templates/lib/engine.h
Examining data/grantlee5-5.2.0/templates/lib/engine_p.h
Examining data/grantlee5-5.2.0/templates/lib/exception.h
Examining data/grantlee5-5.2.0/templates/lib/filter.cpp
Examining data/grantlee5-5.2.0/templates/lib/filter.h
Examining data/grantlee5-5.2.0/templates/lib/filterexpression.cpp
Examining data/grantlee5-5.2.0/templates/lib/filterexpression.h
Examining data/grantlee5-5.2.0/templates/lib/grantlee_tags_p.h
Examining data/grantlee5-5.2.0/templates/lib/grantlee_templates.h
Examining data/grantlee5-5.2.0/templates/lib/lexer.cpp
Examining data/grantlee5-5.2.0/templates/lib/lexer_p.h
Examining data/grantlee5-5.2.0/templates/lib/metaenumvariable_p.h
Examining data/grantlee5-5.2.0/templates/lib/metatype.cpp
Examining data/grantlee5-5.2.0/templates/lib/metatype.h
Examining data/grantlee5-5.2.0/templates/lib/node.cpp
Examining data/grantlee5-5.2.0/templates/lib/node.h
Examining data/grantlee5-5.2.0/templates/lib/nodebuiltins.cpp
Examining data/grantlee5-5.2.0/templates/lib/nodebuiltins_p.h
Examining data/grantlee5-5.2.0/templates/lib/nulllocalizer.cpp
Examining data/grantlee5-5.2.0/templates/lib/nulllocalizer_p.h
Examining data/grantlee5-5.2.0/templates/lib/outputstream.cpp
Examining data/grantlee5-5.2.0/templates/lib/outputstream.h
Examining data/grantlee5-5.2.0/templates/lib/parser.cpp
Examining data/grantlee5-5.2.0/templates/lib/parser.h
Examining data/grantlee5-5.2.0/templates/lib/pluginpointer_p.h
Examining data/grantlee5-5.2.0/templates/lib/qtlocalizer.cpp
Examining data/grantlee5-5.2.0/templates/lib/qtlocalizer.h
Examining data/grantlee5-5.2.0/templates/lib/rendercontext.cpp
Examining data/grantlee5-5.2.0/templates/lib/rendercontext.h
Examining data/grantlee5-5.2.0/templates/lib/safestring.cpp
Examining data/grantlee5-5.2.0/templates/lib/safestring.h
Examining data/grantlee5-5.2.0/templates/lib/statemachine_p.h
Examining data/grantlee5-5.2.0/templates/lib/taglibraryinterface.h
Examining data/grantlee5-5.2.0/templates/lib/template.cpp
Examining data/grantlee5-5.2.0/templates/lib/template.h
Examining data/grantlee5-5.2.0/templates/lib/template_p.h
Examining data/grantlee5-5.2.0/templates/lib/templateloader.cpp
Examining data/grantlee5-5.2.0/templates/lib/templateloader.h
Examining data/grantlee5-5.2.0/templates/lib/textprocessingmachine.cpp
Examining data/grantlee5-5.2.0/templates/lib/textprocessingmachine_p.h
Examining data/grantlee5-5.2.0/templates/lib/token.h
Examining data/grantlee5-5.2.0/templates/lib/typeaccessor.h
Examining data/grantlee5-5.2.0/templates/lib/typeaccessors.cpp
Examining data/grantlee5-5.2.0/templates/lib/util.cpp
Examining data/grantlee5-5.2.0/templates/lib/util.h
Examining data/grantlee5-5.2.0/templates/lib/variable.cpp
Examining data/grantlee5-5.2.0/templates/lib/variable.h
Examining data/grantlee5-5.2.0/templates/loadertags/block.cpp
Examining data/grantlee5-5.2.0/templates/loadertags/block.h
Examining data/grantlee5-5.2.0/templates/loadertags/blockcontext.cpp
Examining data/grantlee5-5.2.0/templates/loadertags/blockcontext.h
Examining data/grantlee5-5.2.0/templates/loadertags/extends.cpp
Examining data/grantlee5-5.2.0/templates/loadertags/extends.h
Examining data/grantlee5-5.2.0/templates/loadertags/include.cpp
Examining data/grantlee5-5.2.0/templates/loadertags/include.h
Examining data/grantlee5-5.2.0/templates/loadertags/loadertags.cpp
Examining data/grantlee5-5.2.0/templates/loadertags/loadertags.h
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablecontext.cpp
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablecontext.h
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablefilter.cpp
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablefilter.h
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablefilterexpression.cpp
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablefilterexpression.h
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablenode.cpp
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablenode.h
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptableparser.cpp
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptableparser.h
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablesafestring.cpp
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablesafestring.h
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptabletags.cpp
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptabletags.h
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptabletemplate.cpp
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptabletemplate.h
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablevariable.cpp
Examining data/grantlee5-5.2.0/templates/scriptabletags/scriptablevariable.h
Examining data/grantlee5-5.2.0/templates/tests/coverageobject.cpp
Examining data/grantlee5-5.2.0/templates/tests/coverageobject.h
Examining data/grantlee5-5.2.0/templates/tests/operatorcasttests.cpp
Examining data/grantlee5-5.2.0/templates/tests/qtunorderedmap.h
Examining data/grantlee5-5.2.0/templates/tests/test_input.cpp
Examining data/grantlee5-5.2.0/templates/tests/test_macros.h
Examining data/grantlee5-5.2.0/templates/tests/testbuiltins.cpp
Examining data/grantlee5-5.2.0/templates/tests/testcachingloader.cpp
Examining data/grantlee5-5.2.0/templates/tests/testfilters.cpp
Examining data/grantlee5-5.2.0/templates/tests/testgenericcontainers.cpp
Examining data/grantlee5-5.2.0/templates/tests/testgenerictypes.cpp
Examining data/grantlee5-5.2.0/templates/tests/testinternationalization.cpp
Examining data/grantlee5-5.2.0/templates/tests/testloadertags.cpp
Examining data/grantlee5-5.2.0/templates/tests/testsafestring.cpp
Examining data/grantlee5-5.2.0/templates/tests/testscriptabletags.cpp
Examining data/grantlee5-5.2.0/templates/tests/testdefaulttags.cpp
Examining data/grantlee5-5.2.0/textdocument/lib/abstractmarkupbuilder.h
Examining data/grantlee5-5.2.0/textdocument/lib/bbcodebuilder.cpp
Examining data/grantlee5-5.2.0/textdocument/lib/bbcodebuilder.h
Examining data/grantlee5-5.2.0/textdocument/lib/grantlee_textdocument.h
Examining data/grantlee5-5.2.0/textdocument/lib/markupdirector.cpp
Examining data/grantlee5-5.2.0/textdocument/lib/markupdirector.h
Examining data/grantlee5-5.2.0/textdocument/lib/markupdirector_p.h
Examining data/grantlee5-5.2.0/textdocument/lib/mediawikimarkupbuilder.cpp
Examining data/grantlee5-5.2.0/textdocument/lib/mediawikimarkupbuilder.h
Examining data/grantlee5-5.2.0/textdocument/lib/plaintextmarkupbuilder.cpp
Examining data/grantlee5-5.2.0/textdocument/lib/plaintextmarkupbuilder.h
Examining data/grantlee5-5.2.0/textdocument/lib/texthtmlbuilder.cpp
Examining data/grantlee5-5.2.0/textdocument/lib/texthtmlbuilder.h
Examining data/grantlee5-5.2.0/textdocument/tests/coverageobject.cpp
Examining data/grantlee5-5.2.0/textdocument/tests/coverageobject.h
Examining data/grantlee5-5.2.0/textdocument/tests/htmlbuildertest.cpp
Examining data/grantlee5-5.2.0/textdocument/tests/plainmarkupbuildertest.cpp

FINAL RESULTS:

data/grantlee5-5.2.0/examples/codegen/designwidget.cpp:85:48:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
void DesignWidget::insertMethod(const QString &access, bool _virtual,
data/grantlee5-5.2.0/examples/codegen/designwidget.cpp:90:31:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  method << new QStandardItem(access) << new QStandardItem()
data/grantlee5-5.2.0/examples/codegen/designwidget.h:50:36:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  void insertMethod(const QString &access, bool _virtual, const QString &type,
data/grantlee5-5.2.0/examples/codegen/templates/cpp/base_header.h:19:56:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
class {{ className }}{% if baseClass %} : {{ baseClass.access }} {{ baseClass.type }} {% endif %}
data/grantlee5-5.2.0/examples/contacts/main_linguist.cpp:44:34:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  if (!locales.contains(QLocale::system().name()))
data/grantlee5-5.2.0/examples/contacts/main_linguist.cpp:45:29:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    locales.append(QLocale::system().name());
data/grantlee5-5.2.0/templates/lib/qtlocalizer.h:61:48:  [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.
  QtLocalizer(const QLocale &locale = QLocale::system());
data/grantlee5-5.2.0/templates/lib/qtlocalizer.h:93:63:  [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.
                         const QString &localeName = QLocale::system().name());
data/grantlee5-5.2.0/examples/codegen/templates/cpp/base_header.h:3:4:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
{% random 5 as rand %}
data/grantlee5-5.2.0/examples/books/bookwindow.cpp:196:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
data/grantlee5-5.2.0/examples/books/initdb.h:78: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 (!db.open())
data/grantlee5-5.2.0/examples/htmlapps/localrequestmanager.cpp:46: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).
  reply->open(QIODevice::ReadOnly);
data/grantlee5-5.2.0/examples/htmlapps/rssfeed.cpp:97:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  buffer.open(QIODevice::ReadOnly);
data/grantlee5-5.2.0/examples/htmlapps/templatereply.cpp:32: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).
bool TemplateReply::open(QIODevice::OpenMode mode)
data/grantlee5-5.2.0/examples/htmlapps/templatereply.cpp:34: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).
  m_buffer->open(QIODevice::ReadWrite);
data/grantlee5-5.2.0/examples/htmlapps/templatereply.cpp:42: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).
  bool b = QNetworkReply::open(mode);
data/grantlee5-5.2.0/examples/htmlapps/templatereply.h:33: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).
  virtual bool open(OpenMode mode);
data/grantlee5-5.2.0/examples/textedit/textedit.cpp:395:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if (!file.open(QFile::ReadOnly))
data/grantlee5-5.2.0/templates/lib/templateloader.cpp:123: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 (!file.exists() || !file.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/grantlee5-5.2.0/templates/lib/templateloader.cpp:152: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 (!file.exists() || !file.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/grantlee5-5.2.0/templates/scriptabletags/scriptabletags.cpp:188: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).
      || !scriptFile.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/grantlee5-5.2.0/templates/tests/testbuiltins.cpp:1274: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).
  auto opened = f.open(QFile::WriteOnly | QFile::Text);
data/grantlee5-5.2.0/templates/tests/testbuiltins.cpp:1311: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).
  auto opened = f.open(QFile::WriteOnly | QFile::Text);
data/grantlee5-5.2.0/textdocument/tests/plainmarkupbuildertest.cpp:623: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).
  QVERIFY(sourceHtml.open(QIODevice::ReadOnly));
data/grantlee5-5.2.0/examples/htmlapps/templatereply.cpp:73:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return m_buffer->read(data, maxlen);
data/grantlee5-5.2.0/templates/defaulttags/ifequal.cpp:100:22:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if (((m_negate && !equal) || (!m_negate && equal)))
data/grantlee5-5.2.0/templates/defaulttags/ifequal.cpp:100:46:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  if (((m_negate && !equal) || (!m_negate && equal)))
data/grantlee5-5.2.0/templates/lib/metatype.cpp:82:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      MetaEnumVariable mev(mp.enumerator(), mp.read(object).value<int>());
data/grantlee5-5.2.0/templates/lib/metatype.cpp:86:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return mp.read(object);
data/grantlee5-5.2.0/templates/lib/util.cpp:168:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
  return equal;

ANALYSIS SUMMARY:

Hits = 30
Lines analyzed = 37867 in approximately 1.17 seconds (32348 lines/second)
Physical Source Lines of Code (SLOC) = 24252
Hits@level = [0]   0 [1]   6 [2]  15 [3]   1 [4]   8 [5]   0
Hits@level+ = [0+]  30 [1+]  30 [2+]  24 [3+]   9 [4+]   8 [5+]   0
Hits/KSLOC@level+ = [0+] 1.23701 [1+] 1.23701 [2+] 0.989609 [3+] 0.371103 [4+] 0.32987 [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.