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/qtdoc-opensource-src-5.15.2/doc/snippets/plugins/doc_src_plugins-howto.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/snippets/plugins/extrafiltersplugin.h Examining data/qtdoc-opensource-src-5.15.2/doc/snippets/plugins/interfaces.h Examining data/qtdoc-opensource-src-5.15.2/doc/snippets/qmlapp/qtbinding/resources/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/accessibilityfactorysnippet.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/accessibilitypluginsnippet.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/accessibilityslidersnippet.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/animation/sequential/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/animation/sequential/tracer.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/animation/sequential/tracer.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/audio/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/brushstyles/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/brushstyles/renderarea.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/brushstyles/renderarea.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/brushstyles/stylewidget.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/brushstyles/stylewidget.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/clipboard/clipwindow.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/clipboard/clipwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/clipboard/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_debug.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_deployment.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_emb-performance.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_examples_qtscriptcustomclass.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_i18n.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_linguist-manual.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_mac-differences.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_moc.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_qtmultimedia.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_unicode.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/src_corelib_kernel_qobject.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/src_gui_widgets_qmainwindow.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_assistant_compat_lib_qassistantclient.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_extension_default_extensionfactory.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_extension_extension.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_extension_qextensionmanager.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractformeditor.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractformwindow.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractformwindowcursor.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractformwindowmanager.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractobjectinspector.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractpropertyeditor.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_sdk_abstractwidgetbox.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_uilib_abstractformbuilder.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_uilib_formbuilder.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_patternist_qapplicationargumentparser.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_shared_qtgradienteditor_qtgradientdialog.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_shared_qtpropertybrowser_qtpropertybrowser.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_shared_qtpropertybrowser_qtvariantproperty.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_shared_qttoolbardialog_qttoolbardialog.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/colors/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/colors/window.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/colors/window.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/coordsys/coordsys.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/declarative/qtbinding/enums/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/declarative/qtbinding/properties-cpp/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/dockwidgets/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/dockwidgets/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/draganddrop/dragwidget.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/draganddrop/dragwidget.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/draganddrop/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/draganddrop/mainwindow.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/draganddrop/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/dragging/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/dragging/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/dropactions/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/dropactions/window.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/dropactions/window.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/dropevents/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/dropevents/window.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/dropevents/window.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/droprectangle/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/droprectangle/window.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/droprectangle/window.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/explicitlysharedemployee/employee.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/explicitlysharedemployee/employee.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/explicitlysharedemployee/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/i18n-non-qt-class/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/i18n-non-qt-class/myclass.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/i18n-non-qt-class/myclass.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/inherited-slot/button.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/inherited-slot/button.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/inherited-slot/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/moc/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/moc/myclass1.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/moc/myclass2.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/moc/myclass3.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/modelview-subclasses/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/modelview-subclasses/model.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/modelview-subclasses/model.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/modelview-subclasses/view.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/modelview-subclasses/view.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/modelview-subclasses/window.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/modelview-subclasses/window.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/painterpath/painterpath.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/persistentindexes/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/persistentindexes/mainwindow.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/persistentindexes/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/persistentindexes/model.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/persistentindexes/model.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/porting4-dropevents/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/porting4-dropevents/window.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/printing-qprinter/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/printing-qprinter/object.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qabstractsliderisnippet.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qcalendarwidget/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qcolumnview/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qdebug/qdebugsnippet.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qdir-filepaths/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qgl-namespace/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlabel/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlineargradient/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlineargradient/paintwidget.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlineargradient/paintwidget.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlistview-using/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlistview-using/mainwindow.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlistview-using/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlistview-using/model.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlistview-using/model.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlistwidget-using/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qlistwidget-using/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qsignalmapper/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qsignalmapper/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qsplashscreen/mainwindow.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qsplashscreen/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qsql-namespace/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qstandarditemmodel/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qt-namespace/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtablewidget-dnd/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtablewidget-dnd/mainwindow.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtablewidget-dnd/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtablewidget-resizing/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtablewidget-resizing/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtcast/qtcast.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtest-namespace/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreeview-dnd/dragdropmodel.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreeview-dnd/dragdropmodel.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreeview-dnd/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreeview-dnd/mainwindow.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreeview-dnd/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreeview-dnd/treeitem.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreeview-dnd/treeitem.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreeview-dnd/treemodel.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreeview-dnd/treemodel.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreewidget-using/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreewidget-using/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreewidgetitemiterator-using/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtreewidgetitemiterator-using/mainwindow.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtscript/registeringobjects/myobject.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtscript/registeringobjects/myobject.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtscript/scriptedslot/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/separations/finalwidget.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/separations/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/separations/screenwidget.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/separations/screenwidget.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/separations/viewer.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/separations/viewer.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/sharedemployee/employee.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/signalmapper/filereader.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/signalmapper/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/signalsandslots/signalslotsyntaxes.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/signalsandslots/signalslotsyntaxes.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/splitterhandle/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/threads/threads.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/uitools/calculatorform/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/webkit/imageanalyzer/imageanalyzer.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/webkit/imageanalyzer/imageanalyzer.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/webkit/imageanalyzer/mainwindow.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/webkit/simpleselector/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/webkit/simpleselector/window.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/webkit/simpleselector/window.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/widgets-tutorial/childwidget/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/widgets-tutorial/nestedlayouts/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/widgets-tutorial/notepad/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/widgets-tutorial/notepad/notepad.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/widgets-tutorial/notepad/notepad.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/widgets-tutorial/toplevel/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/widgets-tutorial/windowlayout/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/xml/prettyprint/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/xml/rsslisting/handler.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/xml/rsslisting/main.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/xml/rsslisting/rsslisting.h Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/xml/simpleparse/handler.cpp Examining data/qtdoc-opensource-src-5.15.2/doc/src/snippets/xml/simpleparse/handler.h Examining data/qtdoc-opensource-src-5.15.2/examples/demos/calqlatr/main.cpp Examining data/qtdoc-opensource-src-5.15.2/examples/demos/clocks/main.cpp Examining data/qtdoc-opensource-src-5.15.2/examples/demos/coffee/main.cpp Examining data/qtdoc-opensource-src-5.15.2/examples/demos/maroon/main.cpp Examining data/qtdoc-opensource-src-5.15.2/examples/demos/photosurface/main.cpp Examining data/qtdoc-opensource-src-5.15.2/examples/demos/photoviewer/main.cpp Examining data/qtdoc-opensource-src-5.15.2/examples/demos/rssnews/main.cpp Examining data/qtdoc-opensource-src-5.15.2/examples/demos/samegame/main.cpp Examining data/qtdoc-opensource-src-5.15.2/examples/demos/stocqt/main.cpp Examining data/qtdoc-opensource-src-5.15.2/examples/demos/tweetsearch/main.cpp Examining data/qtdoc-opensource-src-5.15.2/examples/tutorials/alarms/main.cpp Examining data/qtdoc-opensource-src-5.15.2/tests/auto/qml/qmlmin/tst_qmlmin.cpp Examining data/qtdoc-opensource-src-5.15.2/tests/auto/qml/qqmlparser/tst_qqmlparser.cpp Examining data/qtdoc-opensource-src-5.15.2/tests/auto/quick/examples/tst_examples.cpp FINAL RESULTS: data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_i18n.cpp:200:32: [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. qtTranslator.load(QLocale::system(), QStringLiteral("qtbase_")); data/qtdoc-opensource-src-5.15.2/doc/src/snippets/i18n-non-qt-class/main.cpp:59:68: [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. translator.load(":/translations/i18n-non-qt-class_" + QLocale::system().name()); data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_uilib_abstractformbuilder.cpp:57: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). file.open(QFile::ReadOnly); data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/tools_designer_src_lib_uilib_formbuilder.cpp:57: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). file.open(QFile::ReadOnly); data/qtdoc-opensource-src-5.15.2/doc/src/snippets/modelview-subclasses/window.cpp:102: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(QFile::ReadOnly)) { data/qtdoc-opensource-src-5.15.2/doc/src/snippets/qtscript/scriptedslot/main.cpp:63: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). scriptFile.open(QFile::ReadOnly); data/qtdoc-opensource-src-5.15.2/doc/src/snippets/widgets-tutorial/notepad/notepad.cpp:94: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 | QFile::Text)) { data/qtdoc-opensource-src-5.15.2/doc/src/snippets/widgets-tutorial/notepad/notepad.cpp:109: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 | QFile::Text)) { data/qtdoc-opensource-src-5.15.2/doc/src/snippets/widgets-tutorial/notepad/notepad.cpp:127: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(QFile::WriteOnly | QFile::Text)) { data/qtdoc-opensource-src-5.15.2/doc/src/snippets/xml/prettyprint/main.cpp:98: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). } else if (!inputFile.open(QIODevice::ReadOnly)) { data/qtdoc-opensource-src-5.15.2/doc/src/snippets/xml/prettyprint/main.cpp:105: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 (!outputFile.open(stdout, QIODevice::WriteOnly)) data/qtdoc-opensource-src-5.15.2/tests/auto/qml/qqmlparser/tst_qqmlparser.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 (f.open(QFile::ReadOnly)) data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp:144:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ::read(sigtermFd[1], &tmp, sizeof(tmp)); data/qtdoc-opensource-src-5.15.2/doc/src/snippets/code/doc_src_unix-signal-handlers.cpp:155:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). ::read(sighupFd[1], &tmp, sizeof(tmp)); ANALYSIS SUMMARY: Hits = 14 Lines analyzed = 19351 in approximately 0.86 seconds (22531 lines/second) Physical Source Lines of Code (SLOC) = 6602 Hits@level = [0] 0 [1] 2 [2] 10 [3] 0 [4] 2 [5] 0 Hits@level+ = [0+] 14 [1+] 14 [2+] 12 [3+] 2 [4+] 2 [5+] 0 Hits/KSLOC@level+ = [0+] 2.12057 [1+] 2.12057 [2+] 1.81763 [3+] 0.302939 [4+] 0.302939 [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.