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/sqlitebrowser-3.12.1/libs/json/json.hpp Examining data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp Examining data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.h Examining data/sqlitebrowser-3.12.1/libs/qhexedit/src/chunks.cpp Examining data/sqlitebrowser-3.12.1/libs/qhexedit/src/chunks.h Examining data/sqlitebrowser-3.12.1/libs/qhexedit/src/commands.cpp Examining data/sqlitebrowser-3.12.1/libs/qhexedit/src/commands.h Examining data/sqlitebrowser-3.12.1/libs/qhexedit/src/qhexedit.cpp Examining data/sqlitebrowser-3.12.1/libs/qhexedit/src/qhexedit.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/InputMethod.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/ListBoxQt.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/ListBoxQt.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/MacPasteboardMime.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/PlatQt.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qsciabstractapis.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qsciapis.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscicommand.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscicommandset.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscidocument.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qsciglobal.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscilexer.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscilexercpp.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscilexercustom.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscilexerhtml.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscilexerjavascript.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscilexerjson.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscilexerpython.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscilexersql.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscilexerxml.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscimacro.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qsciprinter.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qsciscintilla.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qsciscintillabase.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscistyle.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qscistyledtext.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/SciAccessibility.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/SciAccessibility.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/SciClasses.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/SciClasses.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/SciNamespace.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/ScintillaQt.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/ScintillaQt.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciabstractapis.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciapis.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscicommand.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscicommandset.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscidocument.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexer.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexercpp.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexercustom.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexerhtml.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexerjavascript.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexerjson.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexerpython.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexersql.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexerxml.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscimacro.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciprinter.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciscintilla.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciscintillabase.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscistyle.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscistyledtext.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/include/ILexer.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/include/ILoader.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/include/Platform.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/include/SciLexer.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/include/Sci_Position.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/include/Scintilla.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/include/ScintillaWidget.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexers/LexHTML.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexers/LexJSON.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexers/LexSQL.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/Accessor.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/Accessor.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/CharacterCategory.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/CharacterCategory.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/CharacterSet.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/CharacterSet.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/DefaultLexer.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/DefaultLexer.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexAccessor.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexerBase.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexerBase.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexerModule.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexerModule.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexerNoExceptions.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexerNoExceptions.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexerSimple.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexerSimple.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/OptionSet.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/PropSetSimple.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/PropSetSimple.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/SparseState.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/StringCopy.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/StyleContext.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/StyleContext.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/SubStyles.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/WordList.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/WordList.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/AutoComplete.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/AutoComplete.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/CallTip.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/CallTip.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseConvert.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseConvert.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseFolder.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseFolder.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Catalogue.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Catalogue.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/CellBuffer.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/CellBuffer.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/CharClassify.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/CharClassify.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/ContractionState.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/ContractionState.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/DBCS.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/DBCS.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Decoration.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Decoration.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/EditModel.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/EditModel.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/EditView.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/EditView.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/ElapsedPeriod.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/ExternalLexer.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/ExternalLexer.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/FontQuality.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Indicator.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Indicator.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/IntegerRectangle.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/KeyMap.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/KeyMap.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/LineMarker.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/LineMarker.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/MarginView.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/MarginView.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Partitioning.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/PerLine.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/PerLine.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Position.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/PositionCache.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/PositionCache.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/RESearch.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/RESearch.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/RunStyles.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/RunStyles.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/ScintillaBase.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/ScintillaBase.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Selection.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Selection.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/SparseVector.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/SplitVector.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Style.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/Style.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/UniConversion.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/UniConversion.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/UnicodeFromUTF8.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/UniqueString.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/ViewStyle.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/ViewStyle.h Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/XPM.cpp Examining data/sqlitebrowser-3.12.1/libs/qscintilla/src/XPM.h Examining data/sqlitebrowser-3.12.1/src/AboutDialog.cpp Examining data/sqlitebrowser-3.12.1/src/AboutDialog.h Examining data/sqlitebrowser-3.12.1/src/AddRecordDialog.cpp Examining data/sqlitebrowser-3.12.1/src/AddRecordDialog.h Examining data/sqlitebrowser-3.12.1/src/Application.cpp Examining data/sqlitebrowser-3.12.1/src/Application.h Examining data/sqlitebrowser-3.12.1/src/CipherDialog.cpp Examining data/sqlitebrowser-3.12.1/src/CipherDialog.h Examining data/sqlitebrowser-3.12.1/src/CipherSettings.cpp Examining data/sqlitebrowser-3.12.1/src/CipherSettings.h Examining data/sqlitebrowser-3.12.1/src/ColumnDisplayFormatDialog.cpp Examining data/sqlitebrowser-3.12.1/src/ColumnDisplayFormatDialog.h Examining data/sqlitebrowser-3.12.1/src/CondFormat.cpp Examining data/sqlitebrowser-3.12.1/src/CondFormat.h Examining data/sqlitebrowser-3.12.1/src/CondFormatManager.cpp Examining data/sqlitebrowser-3.12.1/src/CondFormatManager.h Examining data/sqlitebrowser-3.12.1/src/Data.cpp Examining data/sqlitebrowser-3.12.1/src/Data.h Examining data/sqlitebrowser-3.12.1/src/DbStructureModel.cpp Examining data/sqlitebrowser-3.12.1/src/DbStructureModel.h Examining data/sqlitebrowser-3.12.1/src/DotenvFormat.cpp Examining data/sqlitebrowser-3.12.1/src/DotenvFormat.h Examining data/sqlitebrowser-3.12.1/src/EditDialog.cpp Examining data/sqlitebrowser-3.12.1/src/EditDialog.h Examining data/sqlitebrowser-3.12.1/src/EditIndexDialog.cpp Examining data/sqlitebrowser-3.12.1/src/EditIndexDialog.h Examining data/sqlitebrowser-3.12.1/src/EditTableDialog.cpp Examining data/sqlitebrowser-3.12.1/src/EditTableDialog.h Examining data/sqlitebrowser-3.12.1/src/ExportDataDialog.cpp Examining data/sqlitebrowser-3.12.1/src/ExportDataDialog.h Examining data/sqlitebrowser-3.12.1/src/ExportSqlDialog.cpp Examining data/sqlitebrowser-3.12.1/src/ExportSqlDialog.h Examining data/sqlitebrowser-3.12.1/src/ExtendedScintilla.cpp Examining data/sqlitebrowser-3.12.1/src/ExtendedScintilla.h Examining data/sqlitebrowser-3.12.1/src/ExtendedTableWidget.cpp Examining data/sqlitebrowser-3.12.1/src/ExtendedTableWidget.h Examining data/sqlitebrowser-3.12.1/src/FileDialog.cpp Examining data/sqlitebrowser-3.12.1/src/FileDialog.h Examining data/sqlitebrowser-3.12.1/src/FileExtensionManager.cpp Examining data/sqlitebrowser-3.12.1/src/FileExtensionManager.h Examining data/sqlitebrowser-3.12.1/src/FilterLineEdit.cpp Examining data/sqlitebrowser-3.12.1/src/FilterLineEdit.h Examining data/sqlitebrowser-3.12.1/src/FilterTableHeader.cpp Examining data/sqlitebrowser-3.12.1/src/FilterTableHeader.h Examining data/sqlitebrowser-3.12.1/src/FindReplaceDialog.cpp Examining data/sqlitebrowser-3.12.1/src/FindReplaceDialog.h Examining data/sqlitebrowser-3.12.1/src/ForeignKeyEditorDelegate.cpp Examining data/sqlitebrowser-3.12.1/src/ForeignKeyEditorDelegate.h Examining data/sqlitebrowser-3.12.1/src/IconCache.cpp Examining data/sqlitebrowser-3.12.1/src/IconCache.h Examining data/sqlitebrowser-3.12.1/src/ImportCsvDialog.cpp Parsing failed to find end of parameter list; semicolon terminated it in (selectedHeader.begin(), selectedHeader.end(), header.begin(), [](const sqlb::Field& item1, const sqlb::Field& item2) -> bool { Examining data/sqlitebrowser-3.12.1/src/ImportCsvDialog.h Examining data/sqlitebrowser-3.12.1/src/MainWindow.cpp Examining data/sqlitebrowser-3.12.1/src/MainWindow.h Examining data/sqlitebrowser-3.12.1/src/Palette.cpp Examining data/sqlitebrowser-3.12.1/src/Palette.h Examining data/sqlitebrowser-3.12.1/src/PlotDock.cpp Examining data/sqlitebrowser-3.12.1/src/PlotDock.h Examining data/sqlitebrowser-3.12.1/src/PreferencesDialog.cpp Examining data/sqlitebrowser-3.12.1/src/PreferencesDialog.h Examining data/sqlitebrowser-3.12.1/src/ProxyDialog.cpp Examining data/sqlitebrowser-3.12.1/src/ProxyDialog.h Examining data/sqlitebrowser-3.12.1/src/RemoteCommitsModel.cpp Examining data/sqlitebrowser-3.12.1/src/RemoteCommitsModel.h Examining data/sqlitebrowser-3.12.1/src/RemoteDatabase.cpp Examining data/sqlitebrowser-3.12.1/src/RemoteDatabase.h Examining data/sqlitebrowser-3.12.1/src/RemoteDock.cpp Examining data/sqlitebrowser-3.12.1/src/RemoteDock.h Examining data/sqlitebrowser-3.12.1/src/RemoteLocalFilesModel.cpp Examining data/sqlitebrowser-3.12.1/src/RemoteLocalFilesModel.h Examining data/sqlitebrowser-3.12.1/src/RemoteModel.cpp Examining data/sqlitebrowser-3.12.1/src/RemoteModel.h Examining data/sqlitebrowser-3.12.1/src/RemoteNetwork.cpp Examining data/sqlitebrowser-3.12.1/src/RemoteNetwork.h Examining data/sqlitebrowser-3.12.1/src/RemotePushDialog.cpp Examining data/sqlitebrowser-3.12.1/src/RemotePushDialog.h Examining data/sqlitebrowser-3.12.1/src/RowCache.h Examining data/sqlitebrowser-3.12.1/src/RowLoader.cpp Examining data/sqlitebrowser-3.12.1/src/RowLoader.h Examining data/sqlitebrowser-3.12.1/src/RunSql.cpp Examining data/sqlitebrowser-3.12.1/src/RunSql.h Examining data/sqlitebrowser-3.12.1/src/SelectItemsPopup.cpp Examining data/sqlitebrowser-3.12.1/src/SelectItemsPopup.h Examining data/sqlitebrowser-3.12.1/src/Settings.cpp Examining data/sqlitebrowser-3.12.1/src/Settings.h Examining data/sqlitebrowser-3.12.1/src/SqlExecutionArea.cpp Examining data/sqlitebrowser-3.12.1/src/SqlExecutionArea.h Examining data/sqlitebrowser-3.12.1/src/SqlUiLexer.cpp Examining data/sqlitebrowser-3.12.1/src/SqlUiLexer.h Examining data/sqlitebrowser-3.12.1/src/TableBrowser.cpp Examining data/sqlitebrowser-3.12.1/src/TableBrowser.h Examining data/sqlitebrowser-3.12.1/src/VacuumDialog.cpp Examining data/sqlitebrowser-3.12.1/src/VacuumDialog.h Examining data/sqlitebrowser-3.12.1/src/csvparser.cpp Examining data/sqlitebrowser-3.12.1/src/csvparser.h Examining data/sqlitebrowser-3.12.1/src/docktextedit.cpp Examining data/sqlitebrowser-3.12.1/src/docktextedit.h Examining data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c Examining data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c Examining data/sqlitebrowser-3.12.1/src/main.cpp Examining data/sqlitebrowser-3.12.1/src/sql/ObjectIdentifier.cpp Examining data/sqlitebrowser-3.12.1/src/sql/ObjectIdentifier.h Examining data/sqlitebrowser-3.12.1/src/sql/Query.cpp Examining data/sqlitebrowser-3.12.1/src/sql/Query.h Examining data/sqlitebrowser-3.12.1/src/sql/parser/ParserDriver.cpp Examining data/sqlitebrowser-3.12.1/src/sql/parser/ParserDriver.h Examining data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_lexer.cpp Examining data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_lexer.h Examining data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_location.h Examining data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.cpp Examining data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp Examining data/sqlitebrowser-3.12.1/src/sql/sqlitetypes.cpp Examining data/sqlitebrowser-3.12.1/src/sql/sqlitetypes.h Parsing failed to find end of parameter list; semicolon terminated it in (a.begin(), a.end(), b.begin(), [](unsigned char c1, unsigned char c2) { return std::tolower(c1) == std::tolower(c2); }); // TODO Replace the entire code above by the following once w Examining data/sqlitebrowser-3.12.1/src/sqlite.h Examining data/sqlitebrowser-3.12.1/src/sqlitedb.cpp Examining data/sqlitebrowser-3.12.1/src/sqlitedb.h Examining data/sqlitebrowser-3.12.1/src/sqlitetablemodel.cpp Examining data/sqlitebrowser-3.12.1/src/sqlitetablemodel.h Examining data/sqlitebrowser-3.12.1/src/sqltextedit.cpp Examining data/sqlitebrowser-3.12.1/src/sqltextedit.h Examining data/sqlitebrowser-3.12.1/src/tests/TestImport.cpp Examining data/sqlitebrowser-3.12.1/src/tests/TestImport.h Examining data/sqlitebrowser-3.12.1/src/tests/TestRegex.cpp Examining data/sqlitebrowser-3.12.1/src/tests/TestRegex.h Examining data/sqlitebrowser-3.12.1/src/tests/TestRowCache.cpp Examining data/sqlitebrowser-3.12.1/src/tests/TestRowCache.h Examining data/sqlitebrowser-3.12.1/src/tests/testsqlobjects.cpp Examining data/sqlitebrowser-3.12.1/src/tests/testsqlobjects.h Examining data/sqlitebrowser-3.12.1/src/version.h FINAL RESULTS: data/sqlitebrowser-3.12.1/libs/json/json.hpp:1053:86: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define JSON_HEDLEY_PRINTF_FORMAT(string_idx,first_to_check) __declspec(vaformat(printf,string_idx,first_to_check)) data/sqlitebrowser-3.12.1/libs/json/json.hpp:5413:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(element_type)); data/sqlitebrowser-3.12.1/libs/json/json.hpp:7065:15: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. (std::snprintf)(cr.data(), cr.size(), "%.2hhX", static_cast<unsigned char>(current)); data/sqlitebrowser-3.12.1/libs/json/json.hpp:8498:23: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. (std::snprintf)(cs.data(), cs.size(), "<U+%.4X>", static_cast<unsigned char>(c)); data/sqlitebrowser-3.12.1/libs/json/json.hpp:14124:43: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. (std::snprintf)(string_buffer.data() + bytes, 7, "\\u%04x", data/sqlitebrowser-3.12.1/libs/json/json.hpp:14130:43: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. (std::snprintf)(string_buffer.data() + bytes, 13, "\\u%04x\\u%04x", data/sqlitebrowser-3.12.1/libs/json/json.hpp:14168:35: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. (std::snprintf)(&sn[0], sn.size(), "%.2X", byte); data/sqlitebrowser-3.12.1/libs/json/json.hpp:14262:27: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. (std::snprintf)(&sn[0], sn.size(), "%.2X", static_cast<std::uint8_t>(s.back())); data/sqlitebrowser-3.12.1/libs/json/json.hpp:14463:36: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. std::ptrdiff_t len = (std::snprintf)(number_buffer.data(), number_buffer.size(), "%.*g", d, x); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/PlatQt.cpp:972:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buffer, format, pArguments); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscicommandset.cpp:894:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. skey.sprintf("%s/keymap/c%d/", prefix, data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscicommandset.cpp:933:14: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. skey.sprintf("%s/keymap/c%d/", prefix, data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexer.cpp:370:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. key.sprintf("%s/%s/style%d/",prefix,language(),i); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexer.cpp:457:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. key.sprintf("%s/%s/properties/",prefix,language()); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexer.cpp:465:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. key.sprintf("%s/%s/",prefix,language()); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexer.cpp:572:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. key.sprintf("%s/%s/style%d/",prefix,language(),i); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexer.cpp:610:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. key.sprintf("%s/%s/properties/",prefix,language()); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscilexer.cpp:616:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. key.sprintf("%s/%s/",prefix,language()); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscimacro.cpp:188:17: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. ms += m.sprintf("%u %lu %u", (*it).msg, (*it).wParam, len); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qscimacro.cpp:215:31: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. ms += buf.sprintf("\\%02x", ch); data/sqlitebrowser-3.12.1/src/Data.cpp:156:21: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return QLocale::system().toString(QDateTime::fromString(date_string, Qt::ISODate).toLocalTime(), QLocale::ShortFormat); data/sqlitebrowser-3.12.1/src/PreferencesDialog.cpp:417:37: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. QLocale systemLocale = QLocale::system(); data/sqlitebrowser-3.12.1/src/RemoteLocalFilesModel.cpp:79:57: [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. file_node->setText(ColumnLastModified, QLocale::system().toString(QFileInfo(file_info).lastModified().toLocalTime(), QLocale::ShortFormat)); data/sqlitebrowser-3.12.1/src/Settings.cpp:165:25: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. return QLocale::system().name(); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:92:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char *)(cfg->outputBuffer+cfg->outputBufferIn), text); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:206:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). return strcpy( res, z ); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:695:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char*)zo, (char*)sqlite3_value_text(argv[0])); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:698:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char*)(z+i*nLen), (char*)zo); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:803:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(zt,zi); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:853:12: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). zt = strcpy(zo,zi)+zll; data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:912:7: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(zt, zi); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1145:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy((char*) rz, (char*) (zt)); data/sqlitebrowser-3.12.1/src/sqlitedb.cpp:88:10: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). std::strcpy(output_str, output.c_str()); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciapis.cpp:962:18: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *qsci = getenv("QSCIDIR"); data/sqlitebrowser-3.12.1/libs/json/json.hpp:1441:12: [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. ((struct { char v[sizeof(void) * 2]; } *) 1) \ data/sqlitebrowser-3.12.1/libs/json/json.hpp:7007:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&result, vec.data(), sizeof(NumberType)); data/sqlitebrowser-3.12.1/libs/json/json.hpp:12566:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(vec.data(), &n, sizeof(NumberType)); data/sqlitebrowser-3.12.1/libs/json/json.hpp:12597:14: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&result, &x, sizeof(x)); data/sqlitebrowser-3.12.1/libs/json/json.hpp:12695:10: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. std::memcpy(&target, &source, sizeof(Source)); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:19881:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pixels.at(y), pixels.first(), n*sizeof(QRgb)); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:25108:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mData, other.mData, sizeof(mData[0])*keySize*valueSize); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:25110:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mAlpha, other.mAlpha, sizeof(mAlpha[0])*keySize*valueSize); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26214:3: [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(0), data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26224:55: [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). QCPFinancialData::QCPFinancialData(double key, double open, double high, double low, double close) : data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26226:3: [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(open), data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26226: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). open(open), data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26357:80: [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 QCPFinancial::setData(const QVector<double> &keys, const QVector<double> &open, const QVector<double> &high, const QVector<double> &low, const QVector<double> &close, bool alreadySorted) data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26360: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). addData(keys, open, high, low, close, alreadySorted); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26478:80: [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 QCPFinancial::addData(const QVector<double> &keys, const QVector<double> &open, const QVector<double> &high, const QVector<double> &low, const QVector<double> &close, bool alreadySorted) data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26480: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 (keys.size() != open.size() || open.size() != high.size() || high.size() != low.size() || low.size() != close.size() || close.size() != keys.size()) data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26480:37: [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 (keys.size() != open.size() || open.size() != high.size() || high.size() != low.size() || low.size() != close.size() || close.size() != keys.size()) data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26481:103: [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). qDebug() << Q_FUNC_INFO << "keys, open, high, low, close have different sizes:" << keys.size() << open.size() << high.size() << low.size() << close.size(); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26482: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). const int n = qMin(keys.size(), qMin(open.size(), qMin(high.size(), qMin(low.size(), close.size())))); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26490: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). it->open = open[i]; data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26510:47: [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 QCPFinancial::addData(double key, double open, double high, double low, double close) data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26512: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). mDataContainer->add(QCPFinancialData(key, open, high, low, close)); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26767:42: [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). painter->setPen(it->close >= it->open ? mPenPositive : mPenNegative); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26771:54: [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). double openPixel = valueAxis->coordToPixel(it->open); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26788:42: [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). painter->setPen(it->close >= it->open ? mPenPositive : mPenNegative); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26792:54: [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). double openPixel = valueAxis->coordToPixel(it->open); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26827:42: [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). painter->setPen(it->close >= it->open ? mPenPositive : mPenNegative); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26828:44: [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). painter->setBrush(it->close >= it->open ? mBrushPositive : mBrushNegative); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26835:54: [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). double openPixel = valueAxis->coordToPixel(it->open); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26838:130: [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). painter->drawLine(QPointF(keyPixel, valueAxis->coordToPixel(it->high)), QPointF(keyPixel, valueAxis->coordToPixel(qMax(it->open, it->close)))); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26840:129: [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). painter->drawLine(QPointF(keyPixel, valueAxis->coordToPixel(it->low)), QPointF(keyPixel, valueAxis->coordToPixel(qMin(it->open, it->close)))); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26855:42: [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). painter->setPen(it->close >= it->open ? mPenPositive : mPenNegative); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26856:44: [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). painter->setBrush(it->close >= it->open ? mBrushPositive : mBrushNegative); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26863:54: [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). double openPixel = valueAxis->coordToPixel(it->open); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26866:120: [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). painter->drawLine(QPointF(valueAxis->coordToPixel(it->high), keyPixel), QPointF(valueAxis->coordToPixel(qMax(it->open, it->close)), keyPixel)); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26868:119: [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). painter->drawLine(QPointF(valueAxis->coordToPixel(it->low), keyPixel), QPointF(valueAxis->coordToPixel(qMin(it->open, it->close)), keyPixel)); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:26993: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). QCPRange boxValueRange(it->close, it->open); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:27003:186: [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). double highLineDistSqr = QCPVector2D(pos).distanceSquaredToLine(QCPVector2D(keyPixel, valueAxis->coordToPixel(it->high)), QCPVector2D(keyPixel, valueAxis->coordToPixel(qMax(it->open, it->close)))); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:27004:184: [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). double lowLineDistSqr = QCPVector2D(pos).distanceSquaredToLine(QCPVector2D(keyPixel, valueAxis->coordToPixel(it->low)), QCPVector2D(keyPixel, valueAxis->coordToPixel(qMin(it->open, it->close)))); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:27020: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). QCPRange boxValueRange(it->close, it->open); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:27030:176: [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). double highLineDistSqr = QCPVector2D(pos).distanceSquaredToLine(QCPVector2D(valueAxis->coordToPixel(it->high), keyPixel), QCPVector2D(valueAxis->coordToPixel(qMax(it->open, it->close)), keyPixel)); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.cpp:27031:174: [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). double lowLineDistSqr = QCPVector2D(pos).distanceSquaredToLine(QCPVector2D(valueAxis->coordToPixel(it->low), keyPixel), QCPVector2D(valueAxis->coordToPixel(qMin(it->open, it->close)), keyPixel)); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.h:5831: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). QCPFinancialData(double key, double open, double high, double low, double close); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.h:5838:44: [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). inline double mainValue() const { return open; } data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.h:5842: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). double key, open, high, low, close; data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.h:5910: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 setData(const QVector<double> &keys, const QVector<double> &open, const QVector<double> &high, const QVector<double> &low, const QVector<double> &close, bool alreadySorted=false); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.h:5921: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 addData(const QVector<double> &keys, const QVector<double> &open, const QVector<double> &high, const QVector<double> &low, const QVector<double> &close, bool alreadySorted=false); data/sqlitebrowser-3.12.1/libs/qcustomplot-source/qcustomplot.h:5922: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). void addData(double key, double open, double high, double low, double close); data/sqlitebrowser-3.12.1/libs/qhexedit/src/chunks.cpp:27: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). bool ok = _ioDevice->open(QIODevice::ReadOnly); data/sqlitebrowser-3.12.1/libs/qhexedit/src/chunks.cpp:68: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). _ioDevice->open(QIODevice::ReadOnly); data/sqlitebrowser-3.12.1/libs/qhexedit/src/chunks.cpp:136: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). bool ok = iODevice.open(QIODevice::WriteOnly); data/sqlitebrowser-3.12.1/libs/qhexedit/src/chunks.cpp:304: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). _ioDevice->open(QIODevice::ReadOnly); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/InputMethod.cpp:238:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fontName[64]; data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/ListBoxQt.cpp:318:45: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Append(startword, numword ? atoi(numword + 1) : -1); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/ListBoxQt.cpp:334:41: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). Append(startword, numword ? atoi(numword + 1) : -1); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/PlatQt.cpp:968:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[2000]; data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/SciAccessibility.cpp:677:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fontName[64]; data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/ScintillaQt.cpp:416:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(text, scn.text, scn.length); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciapis.cpp:274: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 (!f.open(QIODevice::ReadOnly)) data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciapis.cpp:852: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 (!pf.open(QIODevice::ReadOnly)) data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciapis.cpp:933: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 (!pf.open(QIODevice::WriteOnly|QIODevice::Truncate)) data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciscintilla.cpp:4112:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_buf, buf, data_len); data/sqlitebrowser-3.12.1/libs/qscintilla/lexers/LexHTML.cpp:96:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[100]; data/sqlitebrowser-3.12.1/libs/qscintilla/lexers/LexHTML.cpp:320:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[30 + 1]; data/sqlitebrowser-3.12.1/libs/qscintilla/lexers/LexJSON.cpp:187:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char word[51]; data/sqlitebrowser-3.12.1/libs/qscintilla/lexers/LexSQL.cpp:462:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[1000]; data/sqlitebrowser-3.12.1/libs/qscintilla/lexers/LexSQL.cpp:528:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[100]; data/sqlitebrowser-3.12.1/libs/qscintilla/lexers/LexSQL.cpp:775:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[MAX_KW_LEN + 2]; data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexAccessor.h:24:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[bufferSize+1]; data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexAccessor.h:30:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char styleBuf[bufferSize]; data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/OptionSet.h:44:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). bool option = atoi(val) != 0; data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/OptionSet.h:52:19: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int option = atoi(val); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/PropSetSimple.cpp:145:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(result, val.c_str(), n+1); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/PropSetSimple.cpp:154:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return atoi(val.c_str()); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/WordList.cpp:41:24: [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 **keywords = new char *[words + 1]; data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/WordList.cpp:124:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(list, s, lenS); data/sqlitebrowser-3.12.1/libs/qscintilla/src/AutoComplete.cpp:166:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char item[maxItemLen]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/AutoComplete.cpp:171:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(item, list + IndexSort.indices[sortMatrix[i] * 2], wordLen); data/sqlitebrowser-3.12.1/libs/qscintilla/src/AutoComplete.cpp:196:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char value[maxItemLen]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/AutoComplete.cpp:234:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char item[maxItemLen]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/AutoComplete.cpp:281:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char item[maxItemLen]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseConvert.cpp:571:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char conversion[maxConversionLength+1]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseConvert.cpp:615:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bytes[UTF8MaxBytes + 1]{}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseConvert.cpp:673:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lowerUTF8[UTF8MaxBytes+1]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseConvert.cpp:675:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char upperUTF8[UTF8MaxBytes+1]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseConvert.cpp:713:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char originUTF8[lenUTF8]{}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseConvert.cpp:714:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char foldedUTF8[lenUTF8]{}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseConvert.cpp:715:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lowerUTF8[lenUTF8]{}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseConvert.cpp:716:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char upperUTF8[lenUTF8]{}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CaseFolder.h:21:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mapping[256]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CellBuffer.cpp:288:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&data[0], data_, lenData_); data/sqlitebrowser-3.12.1/libs/qscintilla/src/CellBuffer.cpp:701:19: [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. const unsigned char back3[3] = { chBeforePrev, chPrev, ch }; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CellBuffer.cpp:874:19: [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. const unsigned char back3[3] = {chBeforePrev, chPrev, ch}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CellBuffer.cpp:983:19: [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. const unsigned char back3[3] = {chBeforePrev, chPrev, ch}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CellBuffer.cpp:1004:19: [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. const unsigned char back3[3] = {chBeforePrev, chPrev, chAt}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/CellBuffer.cpp:1102:21: [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. const unsigned char next3[3] = {ch, chNext, data/sqlitebrowser-3.12.1/libs/qscintilla/src/CharClassify.h:26:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charClass[maxChar]; // not type cc to save space data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:646:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charBytes[UTF8MaxBytes] = {leadByte,0,0,0}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:747:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charBytes[UTF8MaxBytes] = {leadByte,0,0,0}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:829:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charBytes[UTF8MaxBytes] = { leadByte, 0, 0, 0 }; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:868:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charBytes[UTF8MaxBytes] = { 0, 0, 0, 0 }; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:941:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charBytes[UTF8MaxBytes] = {leadByte,0,0,0}; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:1960:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char charBytes[UTF8MaxBytes] = { leadByte, 0, 0, 0 }; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:2029:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bytes[UTF8MaxBytes + 1] = ""; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:2030:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char folded[UTF8MaxBytes * maxFoldingExpansion + 1] = ""; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:2088:6: [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 bytes[maxBytesCharacter + 1]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:2095:6: [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 folded[maxBytesCharacter * maxFoldingExpansion + 1]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:2121:6: [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 folded[2]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:2805:2: [2] (buffer) wchar_t: 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. wchar_t buffered[2]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/EditView.cpp:925:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hexits[4] = ""; data/sqlitebrowser-3.12.1/libs/qscintilla/src/EditView.cpp:938:6: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(hexits, "x%2X", chEOL); data/sqlitebrowser-3.12.1/libs/qscintilla/src/EditView.cpp:1741:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char cc[2] = { static_cast<char>(vsDraw.controlCharSymbol), '\0' }; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:219: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. const char c[2] = { static_cast<char>(j), 0 }; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:233:10: [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. const char c1[3] = { '\xc2', static_cast<char>(0x80+j), 0 }; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:243:10: [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. const char hiByte[2] = { static_cast<char>(k), 0 }; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:244:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hexits[5]; // Really only needs 4 but that causes warning from gcc 7.1 data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:245:4: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(hexits, "x%2X", k); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:253:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. const char hiByte[2] = { ch, 0 }; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:254:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hexits[5]; // Really only needs 4 but that causes warning from gcc 7.1 data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:255:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(hexits, "x%2X", k); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:1884:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char s[2]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:3075:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char txt[2]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:5537:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[3] = "\\?"; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:5544:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(tagValue, text, length + 1); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:5743:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, val, len+1); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:5755:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(ptr, val, len); data/sqlitebrowser-3.12.1/libs/qscintilla/src/ExternalLexer.cpp:65:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lexname[100] = ""; data/sqlitebrowser-3.12.1/libs/qscintilla/src/LineMarker.cpp:380:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char character[1]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/MarginView.cpp:377:8: [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 number[100] = ""; data/sqlitebrowser-3.12.1/libs/qscintilla/src/MarginView.cpp:380:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(number, "%c%c %03X %03X", data/sqlitebrowser-3.12.1/libs/qscintilla/src/MarginView.cpp:388:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(number, "%0X", state); data/sqlitebrowser-3.12.1/libs/qscintilla/src/PerLine.cpp:379:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pa+sizeof(AnnotationHeader), text, pah->length); data/sqlitebrowser-3.12.1/libs/qscintilla/src/PerLine.cpp:411:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(allocation + sizeof(AnnotationHeader), annotations[line].get() + sizeof(AnnotationHeader), pahSource->length); data/sqlitebrowser-3.12.1/libs/qscintilla/src/PerLine.cpp:417:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(annotations[line].get() + sizeof(AnnotationHeader) + pah->length, styles, pah->length); data/sqlitebrowser-3.12.1/libs/qscintilla/src/PositionCache.cpp:573:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(positions.get(), other.positions.get(), lenData * sizeof(XYPOSITION)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/PositionCache.cpp:588:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&positions[len], s_, len); data/sqlitebrowser-3.12.1/libs/qscintilla/src/PositionCache.h:71:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bracePreviousStyles[2]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/RESearch.h:57:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char nfa[MAXNFA]; /* automaton */ data/sqlitebrowser-3.12.1/libs/qscintilla/src/RESearch.h:59:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char bittab[BITBLK]; /* bit table for CCL pre-set bits */ data/sqlitebrowser-3.12.1/libs/qscintilla/src/ScintillaBase.cpp:446:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(buffer, selected.c_str(), selected.length()+1); data/sqlitebrowser-3.12.1/libs/qscintilla/src/UniConversion.cpp:229:16: [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. const unsigned char UTF8BytesOfLead[256] = { data/sqlitebrowser-3.12.1/libs/qscintilla/src/UniConversion.h:27:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. extern const unsigned char UTF8BytesOfLead[256]; data/sqlitebrowser-3.12.1/libs/qscintilla/src/ViewStyle.cpp:368: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. const char cc[2] = { static_cast<char>(controlCharSymbol), '\0' }; data/sqlitebrowser-3.12.1/libs/qscintilla/src/XPM.cpp:240:10: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). width = atoi(line0); data/sqlitebrowser-3.12.1/libs/qscintilla/src/XPM.cpp:242:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). height = atoi(line0); data/sqlitebrowser-3.12.1/libs/qscintilla/src/XPM.cpp:245:13: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). nColours = atoi(line0); data/sqlitebrowser-3.12.1/libs/qscintilla/src/XPM.cpp:247:6: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (atoi(line0) != 1) { data/sqlitebrowser-3.12.1/libs/qscintilla/src/XPM.cpp:324:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). strings += atoi(line0); data/sqlitebrowser-3.12.1/libs/qscintilla/src/XPM.cpp:327:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). strings += atoi(line0); data/sqlitebrowser-3.12.1/src/Application.cpp:182:25: [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/sqlitebrowser-3.12.1/src/EditDialog.cpp:399: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(file.open(QIODevice::ReadOnly)) data/sqlitebrowser-3.12.1/src/EditDialog.cpp:469: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::WriteOnly)) data/sqlitebrowser-3.12.1/src/EditDialog.cpp:1219: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()) { data/sqlitebrowser-3.12.1/src/EditDialog.cpp:1251:52: [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(reply == QMessageBox::Apply && readFile.open(QIODevice::ReadOnly)){ data/sqlitebrowser-3.12.1/src/ExportDataDialog.cpp:120:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(file.open(QIODevice::WriteOnly)) data/sqlitebrowser-3.12.1/src/ExportDataDialog.cpp:206:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(file.open(QIODevice::WriteOnly)) data/sqlitebrowser-3.12.1/src/ExtendedScintilla.cpp:106:7: [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). f.open(QIODevice::ReadOnly); data/sqlitebrowser-3.12.1/src/ExtendedTableWidget.cpp:563:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QIODevice::WriteOnly); data/sqlitebrowser-3.12.1/src/ExtendedTableWidget.cpp:632:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QIODevice::WriteOnly); data/sqlitebrowser-3.12.1/src/ImportCsvDialog.cpp:373: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::ReadOnly); data/sqlitebrowser-3.12.1/src/MainWindow.cpp:540:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(db.open(wFile, readOnly)) data/sqlitebrowser-3.12.1/src/MainWindow.cpp:1465:7: [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). f.open(QIODevice::ReadOnly); data/sqlitebrowser-3.12.1/src/MainWindow.cpp:1722:37: [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, attach, import}, data/sqlitebrowser-3.12.1/src/MainWindow.cpp:1727: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 (action == open) { data/sqlitebrowser-3.12.1/src/MainWindow.cpp:2143: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). f.open(QFile::ReadOnly | QFile::Text); data/sqlitebrowser-3.12.1/src/MainWindow.cpp:2481:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open(QFile::ReadOnly | QFile::Text); data/sqlitebrowser-3.12.1/src/MainWindow.cpp:2845: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). bool opened = file.open(QFile::WriteOnly | QFile::Text); data/sqlitebrowser-3.12.1/src/MainWindow.cpp:3012: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::WriteOnly); data/sqlitebrowser-3.12.1/src/RemoteDock.cpp:606: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::WriteOnly); data/sqlitebrowser-3.12.1/src/RemoteDock.cpp:656: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(!file.open(QFile::ReadOnly)) data/sqlitebrowser-3.12.1/src/RemoteNetwork.cpp:74:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open(QFile::ReadOnly); data/sqlitebrowser-3.12.1/src/RemoteNetwork.cpp:83:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file.open(QFile::ReadOnly); data/sqlitebrowser-3.12.1/src/RemoteNetwork.cpp:226: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(QIODevice::WriteOnly); data/sqlitebrowser-3.12.1/src/RemoteNetwork.cpp:335: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). fileClientCert.open(QFile::ReadOnly); data/sqlitebrowser-3.12.1/src/RemoteNetwork.cpp:462: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::ReadOnly)) data/sqlitebrowser-3.12.1/src/SqlExecutionArea.cpp:236:7: [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). f.open(QIODevice::ReadOnly); data/sqlitebrowser-3.12.1/src/SqlExecutionArea.cpp:266:7: [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). f.open(QIODevice::WriteOnly); data/sqlitebrowser-3.12.1/src/csvparser.h:88:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m_cFieldSeparator[4]; data/sqlitebrowser-3.12.1/src/csvparser.h:89:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m_cQuoteChar[4]; data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:49:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char binary[1]; data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:50:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[1]; data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:100:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char spaces[9] = " "; data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:195:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char b[8]; data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:289:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(obj->data.text, "<Null/>"); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:292:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(obj->data.text, "<False/>"); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:295:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(obj->data.text, "<True/>"); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:298:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(obj->data.text, "<Fill/>"); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:301:24: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(obj->data.text, "***Error***"); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:373:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[76]; data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:394:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf((char *)buffer, "%06lX ", offset); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:425:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[32]; data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:433:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(text, "%ld", obj->data.integer); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:441:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(text, "%f", obj->data.real); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:485:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(text, "%lu", obj->data.uid); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:511:15: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(text, "Cannot display type: %d\n", obj->type); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:555:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char text[32]; data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:585:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(text, "<plist version = \"1.%d\">\n", version); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:609:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char map[64] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:671:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char unmap[256] = { 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, // 00 - 07 data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:847:19: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static unsigned char map[256] = { data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:776:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. zi = (char *)sqlite3_value_text(argv[0]); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:830:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. zi = (char *)sqlite3_value_text(argv[0]); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:885:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. zi = (char *)sqlite3_value_text(argv[0]); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:944:12: [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. zi1 = (char *)sqlite3_value_text(argv[0]); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:945:12: [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. zi2 = (char *)sqlite3_value_text(argv[1]); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1120: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. z = (char *)sqlite3_value_text(argv[0]); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1329:8: [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. z = (char *)sqlite3_value_text(argv[0]); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1663:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(zResult, "?000"); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1671:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zResult1[8]; data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1672:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char zResult2[8]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.cpp:3562:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char const *yyarg[YYERROR_VERBOSE_ARGS_MAXIMUM]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:454:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy1[sizeof (ColumnConstraintInfo)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:457:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy2[sizeof (ColumnConstraintInfoVector)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:460:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy3[sizeof (ColumndefData)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:467:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy4[sizeof (bool)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:470:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy5[sizeof (sqlb::ConstraintPtr)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:474:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy6[sizeof (sqlb::ConstraintSet)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:477:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy7[sizeof (sqlb::IndexPtr)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:480:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy8[sizeof (sqlb::IndexedColumn)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:483:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy9[sizeof (sqlb::IndexedColumnVector)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:487:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy10[sizeof (sqlb::StringVector)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:491:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy11[sizeof (sqlb::TablePtr)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:616:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy12[sizeof (std::string)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:619:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy13[sizeof (std::vector<ColumndefData>)]; data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_parser.hpp:631:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char yyraw[size]; data/sqlitebrowser-3.12.1/src/sqlitedb.cpp:177: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). bool DBBrowserDB::open(const QString& db, bool readOnly) data/sqlitebrowser-3.12.1/src/sqlitedb.cpp:680:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). return open(db); data/sqlitebrowser-3.12.1/src/sqlitedb.cpp:796: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/sqlitebrowser-3.12.1/src/sqlitedb.h:72: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). bool open(const QString& db, bool readOnly = false); data/sqlitebrowser-3.12.1/src/sqlitetablemodel.cpp:939:34: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(file.exists() && file.open(QFile::ReadOnly)) data/sqlitebrowser-3.12.1/src/tests/TestImport.cpp:34: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). QVERIFY(file.open()); data/sqlitebrowser-3.12.1/libs/json/json.hpp:3935:21: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). return std::fgetc(m_file); data/sqlitebrowser-3.12.1/libs/json/json.hpp:4242:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). std::strlen(reinterpret_cast<const char*>(b))) {} data/sqlitebrowser-3.12.1/libs/qhexedit/src/chunks.cpp:121:37: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). readBuffer = _ioDevice->read(byteCount); data/sqlitebrowser-3.12.1/libs/qhexedit/src/chunks.cpp:306:36: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). newChunk.data = _ioDevice->read(CHUNK_SIZE); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/Qsci/qsciscintilla.h:1140:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool read(QIODevice *io); data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciscintilla.cpp:4090:21: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). bool QsciScintilla::read(QIODevice *io) data/sqlitebrowser-3.12.1/libs/qscintilla/Qt4Qt5/qsciscintilla.cpp:4117:20: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). part = io->read(buf + data_len, buf_size - data_len - 1); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexerBase.cpp:65:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). props.Set(key, val, strlen(key), strlen(val)); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/LexerBase.cpp:65:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). props.Set(key, val, strlen(key), strlen(val)); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/SparseState.h:85: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. different = !std::equal(low, states.end(), other.states.begin()); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/WordList.cpp:43:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t slen = strlen(wordlist); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/WordList.cpp:122:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t lenS = strlen(s) + 1; data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/WordList.cpp:252:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t suffixLengthA = strlen(a); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/WordList.cpp:253:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t suffixLengthB = strlen(b); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/WordList.cpp:271:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t suffixLengthA = strlen(a); data/sqlitebrowser-3.12.1/libs/qscintilla/lexlib/WordList.cpp:272:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t suffixLengthB = strlen(b); data/sqlitebrowser-3.12.1/libs/qscintilla/src/AutoComplete.cpp:228:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t lenWord = strlen(word); data/sqlitebrowser-3.12.1/libs/qscintilla/src/CallTip.cpp:192:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). chunkEnd = chunkVal + strlen(chunkVal); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Document.cpp:3064:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t lenS = strlen(s); data/sqlitebrowser-3.12.1/libs/qscintilla/src/EditView.cpp:832:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rcSegment.top + vsDraw.maxAscent, s, static_cast<int>(s ? strlen(s) : 0), data/sqlitebrowser-3.12.1/libs/qscintilla/src/EditView.cpp:1113:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const int lengthFoldDisplayText = static_cast<int>(strlen(foldDisplayText)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/EditView.cpp:2280:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). "99999" lineNumberPrintSpace, 5 + static_cast<int>(strlen(lineNumberPrintSpace)))); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:1054:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pdoc->InsertString(pdoc->Length(), eol, strlen(eol)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:1059:101: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const Sci::Position lengthInserted = pdoc->InsertString(CurrentPosition() + selectionLength, eol, strlen(eol)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:1643:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). eol, strlen(eol)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:1816:92: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return static_cast<int>(surface->WidthText(vs.styles[style].font, text, static_cast<int>(strlen(text)))); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:2068:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const Sci::Position length = strlen(endline); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:3006:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). eolLen = strlen(eol); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:3061:78: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const Sci::Position insertLength = pdoc->InsertString(positionInsert, eol, strlen(eol)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:4037:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Sci::Position lengthFound = strlen(ft->lpstrText); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:4086:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). Sci::Position lengthFound = strlen(txt); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:4327:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). DropAt(position, value, strlen(value), moving, rectangular); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:5554:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(text); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:5739:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t len = val ? strlen(val) : 0; data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:5791:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pdoc->InsertString(0, text, strlen(text)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:5952:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sel.MainCaret(), replacement, strlen(replacement)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/Editor.cpp:6153:75: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const Sci::Position lengthInserted = pdoc->InsertString(insertPos, sz, strlen(sz)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/PerLine.cpp:372:63: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). annotations[line].reset(AllocateAnnotation(static_cast<int>(strlen(text)), style)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/PerLine.cpp:377:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). pah->length = static_cast<int>(strlen(text)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/ScintillaBase.cpp:250:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (typeSep-list) : strlen(list); data/sqlitebrowser-3.12.1/libs/qscintilla/src/ScintillaBase.cpp:706:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). props.Set(key, val, strlen(key), strlen(val)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/ScintillaBase.cpp:706:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). props.Set(key, val, strlen(key), strlen(val)); data/sqlitebrowser-3.12.1/libs/qscintilla/src/UniqueString.h:22:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). const size_t len = strlen(text); data/sqlitebrowser-3.12.1/src/Data.cpp:108:48: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if(readerBuffer.canRead() && !readerBuffer.read().isNull()) data/sqlitebrowser-3.12.1/src/ImportCsvDialog.cpp:350:40: [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. bool matchingHeader = std::equal(selectedHeader.begin(), selectedHeader.end(), header.begin(), data/sqlitebrowser-3.12.1/src/csvparser.cpp:156:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sBuffer = stream.read(m_nBufferSize).toUtf8(); data/sqlitebrowser-3.12.1/src/csvparser.cpp:313:31: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). sBuffer.append(stream.read(1)); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:79:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t textLength = strlen(text); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:591:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen((const char *)(cfg.outputBuffer)); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:782:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). resultLength = strlen(result); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:812:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). resultLength = strlen(result); data/sqlitebrowser-3.12.1/src/extensions/extension-formats.c:824:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). resultLength = strlen(result); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:205:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char *res = sqlite3_malloc( strlen(z)+1 ); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:793:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zo = sqlite3_malloc(strlen(zi)+ilen-zl+1); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:847:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zll = strlen(zi); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:902:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zll = strlen(zi); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:950:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). zo = sqlite3_malloc(strlen(zi1)+1); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:965:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(zot, z21, z22-z21); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1094:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy((char*) rz, (char*) z, zt-z); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1165:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char* ss = s+strlen(s)-1; data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1278:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lz1 = strlen(z1); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1279:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lz2 = strlen(z2); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1280:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lz3 = strlen(z3); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1330:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). l = strlen(z); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1806:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(aFuncs[i].zName), aFuncs[i].nArg, aFuncs[i].eTextRep, 0); data/sqlitebrowser-3.12.1/src/extensions/extension-functions.c:1827:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(aAggs[i].zName), aAggs[i].nArg, SQLITE_UTF8, 0); data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_lexer.cpp:1455:14: [1] (buffer) getc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). (c = getc( yyin )) != EOF && c != '\n'; ++n ) \ data/sqlitebrowser-3.12.1/src/sql/parser/sqlite3_lexer.cpp:3168:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). return yy_scan_bytes( yystr, (int) strlen(yystr) , yyscanner); data/sqlitebrowser-3.12.1/src/sql/sqlitetypes.h:25:17: [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 std::equal(a.begin(), a.end(), b.begin(), [](unsigned char c1, unsigned char c2) { ANALYSIS SUMMARY: Hits = 334 Lines analyzed = 180008 in approximately 4.22 seconds (42680 lines/second) Physical Source Lines of Code (SLOC) = 121429 Hits@level = [0] 10 [1] 69 [2] 231 [3] 1 [4] 33 [5] 0 Hits@level+ = [0+] 344 [1+] 334 [2+] 265 [3+] 34 [4+] 33 [5+] 0 Hits/KSLOC@level+ = [0+] 2.83293 [1+] 2.75058 [2+] 2.18235 [3+] 0.279999 [4+] 0.271764 [5+] 0 Dot directories skipped = 2 (--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.