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/texstudio-3.0.1+ds/src/latexstructure.cpp
Examining data/texstudio-3.0.1+ds/src/diffoperations.cpp
Examining data/texstudio-3.0.1+ds/src/smallUsefulFunctions.h
Examining data/texstudio-3.0.1+ds/src/letterdialog.cpp
Examining data/texstudio-3.0.1+ds/src/scriptengine.cpp
Examining data/texstudio-3.0.1+ds/src/main.cpp
Examining data/texstudio-3.0.1+ds/src/arraydialog.h
Examining data/texstudio-3.0.1+ds/src/symbolpanel/symbollistview.cpp
Examining data/texstudio-3.0.1+ds/src/symbolpanel/proxymodels.h
Examining data/texstudio-3.0.1+ds/src/symbolpanel/symbollistview.h
Examining data/texstudio-3.0.1+ds/src/symbolpanel/symbolwidget.h
Examining data/texstudio-3.0.1+ds/src/symbolpanel/symbolwidget.cpp
Examining data/texstudio-3.0.1+ds/src/symbolpanel/proxymodels.cpp
Examining data/texstudio-3.0.1+ds/src/symbolpanel/symbollistmodel.h
Examining data/texstudio-3.0.1+ds/src/symbolpanel/symbollistmodel.cpp
Examining data/texstudio-3.0.1+ds/src/encodingdialog.cpp
Examining data/texstudio-3.0.1+ds/src/webpublishdialog.h
Examining data/texstudio-3.0.1+ds/src/usermacro.cpp
Examining data/texstudio-3.0.1+ds/src/latexstyleparser.cpp
Examining data/texstudio-3.0.1+ds/src/bibtexdialog.h
Examining data/texstudio-3.0.1+ds/src/git.cpp
Examining data/texstudio-3.0.1+ds/src/tablemanipulation.cpp
Examining data/texstudio-3.0.1+ds/src/titledpanel.h
Examining data/texstudio-3.0.1+ds/src/stylehelper.cpp
Examining data/texstudio-3.0.1+ds/src/unixutils.h
Examining data/texstudio-3.0.1+ds/src/latexoutputfilter.cpp
Examining data/texstudio-3.0.1+ds/src/scriptobject.cpp
Examining data/texstudio-3.0.1+ds/src/xkb/XKeyboard.cpp
Examining data/texstudio-3.0.1+ds/src/xkb/X11Exception.h
Examining data/texstudio-3.0.1+ds/src/xkb/XKeyboard.h
Examining data/texstudio-3.0.1+ds/src/usermenudialog.h
Examining data/texstudio-3.0.1+ds/src/texstudio.cpp
Examining data/texstudio-3.0.1+ds/src/scriptengine.h
Examining data/texstudio-3.0.1+ds/src/spellerdialog.cpp
Examining data/texstudio-3.0.1+ds/src/manhattanstyle.h
Examining data/texstudio-3.0.1+ds/src/buildmanager.h
Examining data/texstudio-3.0.1+ds/src/insertgraphics.h
Examining data/texstudio-3.0.1+ds/src/searchresultwidget.cpp
Examining data/texstudio-3.0.1+ds/src/templateselector.cpp
Examining data/texstudio-3.0.1+ds/src/sessionlist.cpp
Examining data/texstudio-3.0.1+ds/src/tests/usermacro_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/encoding_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/smallUsefulFunctions_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/tablemanipulation_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/latexeditorview_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/qeditor_t.h
Examining data/texstudio-3.0.1+ds/src/tests/scriptengine_t.h
Examining data/texstudio-3.0.1+ds/src/tests/testutil.cpp
Examining data/texstudio-3.0.1+ds/src/tests/scriptengine_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/qsearchreplacepanel_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/latexeditorview_bm.h
Examining data/texstudio-3.0.1+ds/src/tests/syntaxcheck_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/testmanager.h
Examining data/texstudio-3.0.1+ds/src/tests/codesnippet_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/syntaxcheck_t.h
Examining data/texstudio-3.0.1+ds/src/tests/buildmanager_t.h
Examining data/texstudio-3.0.1+ds/src/tests/latexparser_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/qcetestutil.h
Examining data/texstudio-3.0.1+ds/src/tests/testmanager.cpp
Examining data/texstudio-3.0.1+ds/src/tests/latexeditorview_bm.cpp
Examining data/texstudio-3.0.1+ds/src/tests/qdocumentsearch_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/qdocumentline_t.h
Examining data/texstudio-3.0.1+ds/src/tests/latexstyleparser_t.h
Examining data/texstudio-3.0.1+ds/src/tests/utilsversion_t.h
Examining data/texstudio-3.0.1+ds/src/tests/qdocumentcursor_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/qdocumentcursor_t.h
Examining data/texstudio-3.0.1+ds/src/tests/latexeditorview_t.h
Examining data/texstudio-3.0.1+ds/src/tests/qdocumentline_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/qdocumentsearch_t.h
Examining data/texstudio-3.0.1+ds/src/tests/updatechecker_t.h
Examining data/texstudio-3.0.1+ds/src/tests/codesnippet_t.h
Examining data/texstudio-3.0.1+ds/src/tests/latexoutputfilter_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/latexcompleter_t.h
Examining data/texstudio-3.0.1+ds/src/tests/help_t.h
Examining data/texstudio-3.0.1+ds/src/tests/latexoutputfilter_t.h
Examining data/texstudio-3.0.1+ds/src/tests/testutil.h
Examining data/texstudio-3.0.1+ds/src/tests/latexparsing_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/git_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/encoding_t.h
Examining data/texstudio-3.0.1+ds/src/tests/qcetestutil.cpp
Examining data/texstudio-3.0.1+ds/src/tests/qeditor_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/execprogram_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/qsearchreplacepanel_t.h
Examining data/texstudio-3.0.1+ds/src/tests/latexparsing_t.h
Examining data/texstudio-3.0.1+ds/src/tests/smallUsefulFunctions_t.h
Examining data/texstudio-3.0.1+ds/src/tests/utilsui_t.h
Examining data/texstudio-3.0.1+ds/src/tests/usermacro_t.h
Examining data/texstudio-3.0.1+ds/src/tests/structureview_t.h
Examining data/texstudio-3.0.1+ds/src/tests/git_t.h
Examining data/texstudio-3.0.1+ds/src/tests/structureview_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/latexparser_t.h
Examining data/texstudio-3.0.1+ds/src/tests/latexcompleter_t.cpp
Examining data/texstudio-3.0.1+ds/src/tests/tablemanipulation_t.h
Examining data/texstudio-3.0.1+ds/src/tests/execprogram_t.h
Examining data/texstudio-3.0.1+ds/src/minisplitter.cpp
Examining data/texstudio-3.0.1+ds/src/unixutils.cpp
Examining data/texstudio-3.0.1+ds/src/insertgraphics_config.h
Examining data/texstudio-3.0.1+ds/src/qmetautils.cpp
Examining data/texstudio-3.0.1+ds/src/pdfsplittool.cpp
Examining data/texstudio-3.0.1+ds/src/encoding.h
Examining data/texstudio-3.0.1+ds/src/tabdialog.cpp
Examining data/texstudio-3.0.1+ds/src/structuretreeview.cpp
Examining data/texstudio-3.0.1+ds/src/tabbingdialog.h
Examining data/texstudio-3.0.1+ds/src/help.cpp
Examining data/texstudio-3.0.1+ds/src/bibtexreader.h
Examining data/texstudio-3.0.1+ds/src/git.h
Examining data/texstudio-3.0.1+ds/src/maketemplatedialog.h
Examining data/texstudio-3.0.1+ds/src/mathassistant.cpp
Examining data/texstudio-3.0.1+ds/src/configdialog.cpp
Examining data/texstudio-3.0.1+ds/src/diffoperations.h
Examining data/texstudio-3.0.1+ds/src/debug/debuglogger.cpp
Examining data/texstudio-3.0.1+ds/src/debug/debughelper.cpp
Examining data/texstudio-3.0.1+ds/src/debug/debughelper.h
Examining data/texstudio-3.0.1+ds/src/debug/debuglogger.h
Examining data/texstudio-3.0.1+ds/src/toolwidgets.h
Examining data/texstudio-3.0.1+ds/src/userquickdialog.cpp
Examining data/texstudio-3.0.1+ds/src/loghighlighter.cpp
Examining data/texstudio-3.0.1+ds/src/qmetautils.h
Examining data/texstudio-3.0.1+ds/src/directoryreader.h
Examining data/texstudio-3.0.1+ds/src/texdocdialog.h
Examining data/texstudio-3.0.1+ds/src/configmanagerinterface.h
Examining data/texstudio-3.0.1+ds/src/tabbingdialog.cpp
Examining data/texstudio-3.0.1+ds/src/searchquery.h
Examining data/texstudio-3.0.1+ds/src/svn.h
Examining data/texstudio-3.0.1+ds/src/latexcompleter.cpp
Examining data/texstudio-3.0.1+ds/src/terminal_config.h
Examining data/texstudio-3.0.1+ds/src/templateselector.h
Examining data/texstudio-3.0.1+ds/src/additionaltranslations.cpp
Examining data/texstudio-3.0.1+ds/src/dblclickmenubar.h
Examining data/texstudio-3.0.1+ds/src/bookmarks.cpp
Examining data/texstudio-3.0.1+ds/src/encodingdialog.h
Examining data/texstudio-3.0.1+ds/src/utilsSystem.h
Examining data/texstudio-3.0.1+ds/src/templatemanager.cpp
Examining data/texstudio-3.0.1+ds/src/latexdocument.h
Examining data/texstudio-3.0.1+ds/src/latexcompleter_p.h
Examining data/texstudio-3.0.1+ds/src/findindirs.cpp
Examining data/texstudio-3.0.1+ds/src/bibtexdialog.cpp
Examining data/texstudio-3.0.1+ds/src/latexeditorview.h
Examining data/texstudio-3.0.1+ds/src/styleanimator.cpp
Examining data/texstudio-3.0.1+ds/src/editors.h
Examining data/texstudio-3.0.1+ds/src/thesaurusdialog.cpp
Examining data/texstudio-3.0.1+ds/src/latexoutputfilter.h
Examining data/texstudio-3.0.1+ds/src/txstabwidget.h
Examining data/texstudio-3.0.1+ds/src/structuretreeview.h
Examining data/texstudio-3.0.1+ds/src/quickbeamerdialog.cpp
Examining data/texstudio-3.0.1+ds/src/quickbeamerdialog.h
Examining data/texstudio-3.0.1+ds/src/sessionlist.h
Examining data/texstudio-3.0.1+ds/src/updatechecker.cpp
Examining data/texstudio-3.0.1+ds/src/macrobrowserui.h
Examining data/texstudio-3.0.1+ds/src/latexparser/latextokens.h
Examining data/texstudio-3.0.1+ds/src/latexparser/argumentlist.cpp
Examining data/texstudio-3.0.1+ds/src/latexparser/latexreader.h
Examining data/texstudio-3.0.1+ds/src/latexparser/latextokens.cpp
Examining data/texstudio-3.0.1+ds/src/latexparser/argumentlist.h
Examining data/texstudio-3.0.1+ds/src/latexparser/latexparsing.h
Examining data/texstudio-3.0.1+ds/src/latexparser/commanddescription.cpp
Examining data/texstudio-3.0.1+ds/src/latexparser/latexparser.h
Examining data/texstudio-3.0.1+ds/src/latexparser/latexparsing.cpp
Examining data/texstudio-3.0.1+ds/src/latexparser/latexparser.cpp
Examining data/texstudio-3.0.1+ds/src/latexparser/latexreader.cpp
Examining data/texstudio-3.0.1+ds/src/latexparser/commanddescription.h
Examining data/texstudio-3.0.1+ds/src/latexlog.h
Examining data/texstudio-3.0.1+ds/src/bookmarks.h
Examining data/texstudio-3.0.1+ds/src/bidiextender.h
Examining data/texstudio-3.0.1+ds/src/buildmanager.cpp
Examining data/texstudio-3.0.1+ds/src/webpublishdialog.cpp
Examining data/texstudio-3.0.1+ds/src/filedialog.cpp
Examining data/texstudio-3.0.1+ds/src/svn.cpp
Examining data/texstudio-3.0.1+ds/src/cursorhistory.cpp
Examining data/texstudio-3.0.1+ds/src/spellerutility.cpp
Examining data/texstudio-3.0.1+ds/src/thesaurusdialog.h
Examining data/texstudio-3.0.1+ds/src/latexrepository.cpp
Examining data/texstudio-3.0.1+ds/src/mostQtHeaders.h
Examining data/texstudio-3.0.1+ds/src/syntaxcheck.h
Examining data/texstudio-3.0.1+ds/src/kpathseaParser.h
Examining data/texstudio-3.0.1+ds/src/arraydialog.cpp
Examining data/texstudio-3.0.1+ds/src/tablemanipulation.h
Examining data/texstudio-3.0.1+ds/src/quickdocumentdialog.cpp
Examining data/texstudio-3.0.1+ds/src/titledpanel.cpp
Examining data/texstudio-3.0.1+ds/src/help.h
Examining data/texstudio-3.0.1+ds/src/fileselector.h
Examining data/texstudio-3.0.1+ds/src/txstabwidget.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagefactory.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlinemarksinfocenter.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditor.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qformat.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qce-config.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qreliablefilewatch.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qcodeedit.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qreliablefilewatch.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qcodecompletionengine.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qformatfactory.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qformatscheme.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qformat.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditor.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qformatscheme.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditorinputbindinginterface.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagedefinition.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qpanellayout.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qlinenumberpanel.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qgotolinepanel.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qstatuspanel.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qsimplecolorpicker.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qsearchreplacepanel.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qpanel.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qfoldpanel.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qstatuspanel.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qlinenumberpanel.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qlinemarkpanel.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qgotolinepanel.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qsearchreplacepanel.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qsimplecolorpicker.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qeditconfig.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qgotolinedialog.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qlinechangepanel.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qpanel.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qcalltip.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qfoldpanel.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qlinemarkpanel.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qgotolinedialog.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qeditconfig.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qformatconfig.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qlinechangepanel.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qcalltip.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qformatconfig.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qpanellayout.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditsession.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlinemarksinfocenter.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditorfactory.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditsession.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagedefinition.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditorinputbinding.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagefactory.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentcommand.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentcursor_p.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentcursor.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocument.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentline.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentsearch.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentline.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocument.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentcursor.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentsearch.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocument_p.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentbuffer.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentbuffer.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentcommand.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentline_p.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditorinputbinding.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qcodeedit.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditorfactory.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/light_vector.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/qnfadefinition.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/xml2qnfa.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/qnfadefinition.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/xml2qnfa.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/qnfa.h
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/qnfa.cpp
Examining data/texstudio-3.0.1+ds/src/qcodeedit/lib/qcodecompletionengine.h
Examining data/texstudio-3.0.1+ds/src/findindirs.h
Examining data/texstudio-3.0.1+ds/src/modifiedQObject.h
Examining data/texstudio-3.0.1+ds/src/insertgraphics.cpp
Examining data/texstudio-3.0.1+ds/src/maketemplatedialog.cpp
Examining data/texstudio-3.0.1+ds/src/bibtexreader.cpp
Examining data/texstudio-3.0.1+ds/src/grammarcheck.cpp
Examining data/texstudio-3.0.1+ds/src/encoding.cpp
Examining data/texstudio-3.0.1+ds/src/bibtexparser.cpp
Examining data/texstudio-3.0.1+ds/src/searchresultmodel.cpp
Examining data/texstudio-3.0.1+ds/src/svn_revision.cpp
Examining data/texstudio-3.0.1+ds/src/utilsVersion.cpp
Examining data/texstudio-3.0.1+ds/src/universalinputdialog.h
Examining data/texstudio-3.0.1+ds/src/manhattanstyle.cpp
Examining data/texstudio-3.0.1+ds/src/grammarcheck.h
Examining data/texstudio-3.0.1+ds/src/latexrepository.h
Examining data/texstudio-3.0.1+ds/src/styleanimator.h
Examining data/texstudio-3.0.1+ds/src/utilsUI.h
Examining data/texstudio-3.0.1+ds/src/configmanager.h
Examining data/texstudio-3.0.1+ds/src/xmltagslistwidget.h
Examining data/texstudio-3.0.1+ds/src/webpublishdialog_config.h
Examining data/texstudio-3.0.1+ds/src/tabdialog.h
Examining data/texstudio-3.0.1+ds/src/aboutdialog.h
Examining data/texstudio-3.0.1+ds/src/bidiextender.cpp
Examining data/texstudio-3.0.1+ds/src/fileselector.cpp
Examining data/texstudio-3.0.1+ds/src/flowlayout.h
Examining data/texstudio-3.0.1+ds/src/quickdocumentdialog.h
Examining data/texstudio-3.0.1+ds/src/syntaxcheck.cpp
Examining data/texstudio-3.0.1+ds/src/execprogram.cpp
Examining data/texstudio-3.0.1+ds/src/searchresultmodel.h
Examining data/texstudio-3.0.1+ds/src/loghighlighter.h
Examining data/texstudio-3.0.1+ds/src/logeditor.cpp
Examining data/texstudio-3.0.1+ds/src/latexlogwidget.cpp
Examining data/texstudio-3.0.1+ds/src/kpathseaParser.cpp
Examining data/texstudio-3.0.1+ds/src/codesnippet.h
Examining data/texstudio-3.0.1+ds/src/logeditor.h
Examining data/texstudio-3.0.1+ds/src/icondelegate.cpp
Examining data/texstudio-3.0.1+ds/src/pdfviewer/pdfannotation.cpp
Examining data/texstudio-3.0.1+ds/src/pdfviewer/pdfannotation.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/PDFDocument.cpp
Examining data/texstudio-3.0.1+ds/src/pdfviewer/PDFDocument_config.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/pdfannotationdlg.cpp
Examining data/texstudio-3.0.1+ds/src/pdfviewer/PDFDocument.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/PDFDocks.cpp
Examining data/texstudio-3.0.1+ds/src/pdfviewer/pdfrenderengine.cpp
Examining data/texstudio-3.0.1+ds/src/pdfviewer/pdfannotationdlg.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/pdfrendermanager.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/qsynctex.cpp
Examining data/texstudio-3.0.1+ds/src/pdfviewer/PDFDocks.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_advanced.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_c-auto.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_local.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c
Examining data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c
Examining data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_version.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/pdfrenderengine.h
Examining data/texstudio-3.0.1+ds/src/pdfviewer/pdfrendermanager.cpp
Examining data/texstudio-3.0.1+ds/src/pdfviewer/qsynctex.h
Examining data/texstudio-3.0.1+ds/src/cleandialog.cpp
Examining data/texstudio-3.0.1+ds/src/latexeditorview.cpp
Examining data/texstudio-3.0.1+ds/src/bibtexparser.h
Examining data/texstudio-3.0.1+ds/src/filechooser.cpp
Examining data/texstudio-3.0.1+ds/src/utilsVersion.h
Examining data/texstudio-3.0.1+ds/src/latexstyleparser.h
Examining data/texstudio-3.0.1+ds/src/filechooser.h
Examining data/texstudio-3.0.1+ds/src/latexstructure.h
Examining data/texstudio-3.0.1+ds/src/configdialog.h
Examining data/texstudio-3.0.1+ds/src/utilsSystem.cpp
Examining data/texstudio-3.0.1+ds/src/dblclickmenubar.cpp
Examining data/texstudio-3.0.1+ds/src/mathassistant.h
Examining data/texstudio-3.0.1+ds/src/usermenudialog.cpp
Examining data/texstudio-3.0.1+ds/src/editors.cpp
Examining data/texstudio-3.0.1+ds/src/codesnippet.cpp
Examining data/texstudio-3.0.1+ds/src/cursorposition.cpp
Examining data/texstudio-3.0.1+ds/src/latexeditorview_config.h
Examining data/texstudio-3.0.1+ds/src/randomtextgenerator.cpp
Examining data/texstudio-3.0.1+ds/src/latexpackage.cpp
Examining data/texstudio-3.0.1+ds/src/scriptobject.h
Examining data/texstudio-3.0.1+ds/src/session.h
Examining data/texstudio-3.0.1+ds/src/latexpackage.h
Examining data/texstudio-3.0.1+ds/src/utilsUI.cpp
Examining data/texstudio-3.0.1+ds/src/textanalysis.h
Examining data/texstudio-3.0.1+ds/src/textanalysis.cpp
Examining data/texstudio-3.0.1+ds/src/flowlayout.cpp
Examining data/texstudio-3.0.1+ds/src/letterdialog.h
Examining data/texstudio-3.0.1+ds/src/searchquery.cpp
Examining data/texstudio-3.0.1+ds/src/unicodeinsertion.h
Examining data/texstudio-3.0.1+ds/src/templatemanager.h
Examining data/texstudio-3.0.1+ds/src/latexcompleter.h
Examining data/texstudio-3.0.1+ds/src/spellerdialog.h
Examining data/texstudio-3.0.1+ds/src/searchresultwidget.h
Examining data/texstudio-3.0.1+ds/src/universalinputdialog.cpp
Examining data/texstudio-3.0.1+ds/src/xmltagslistwidget.cpp
Examining data/texstudio-3.0.1+ds/src/icondelegate.h
Examining data/texstudio-3.0.1+ds/src/latexcompleter_config.h
Examining data/texstudio-3.0.1+ds/src/smallUsefulFunctions.cpp
Examining data/texstudio-3.0.1+ds/src/templatemanager_p.h
Examining data/texstudio-3.0.1+ds/src/cursorhistory.h
Examining data/texstudio-3.0.1+ds/src/directoryreader.cpp
Examining data/texstudio-3.0.1+ds/src/libqmarkedscrollbar/src/markedscrollbar.cpp
Examining data/texstudio-3.0.1+ds/src/libqmarkedscrollbar/src/markedscrollbar.h
Examining data/texstudio-3.0.1+ds/src/execprogram.h
Examining data/texstudio-3.0.1+ds/src/userquickdialog.h
Examining data/texstudio-3.0.1+ds/src/updatechecker.h
Examining data/texstudio-3.0.1+ds/src/filedialog.h
Examining data/texstudio-3.0.1+ds/src/templatemanager_p.cpp
Examining data/texstudio-3.0.1+ds/src/latexdocument.cpp
Examining data/texstudio-3.0.1+ds/src/stylehelper.h
Examining data/texstudio-3.0.1+ds/src/spellerutility.h
Examining data/texstudio-3.0.1+ds/src/cursorposition.h
Examining data/texstudio-3.0.1+ds/src/randomtextgenerator.h
Examining data/texstudio-3.0.1+ds/src/qtsingleapplication/qtsingleapplication.cpp
Examining data/texstudio-3.0.1+ds/src/qtsingleapplication/qtsinglecoreapplication.h
Examining data/texstudio-3.0.1+ds/src/qtsingleapplication/qtsingleapplication.h
Examining data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlocalpeer.cpp
Examining data/texstudio-3.0.1+ds/src/qtsingleapplication/qtsinglecoreapplication.cpp
Examining data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlocalpeer.h
Examining data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlockedfile_unix.cpp
Examining data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlockedfile.cpp
Examining data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlockedfile_win.cpp
Examining data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlockedfile.h
Examining data/texstudio-3.0.1+ds/src/texstudio.h
Examining data/texstudio-3.0.1+ds/src/latexlogwidget.h
Examining data/texstudio-3.0.1+ds/src/latexlog.cpp
Examining data/texstudio-3.0.1+ds/src/minisplitter.h
Examining data/texstudio-3.0.1+ds/src/session.cpp
Examining data/texstudio-3.0.1+ds/src/diff/diff_match_patch.cpp
Examining data/texstudio-3.0.1+ds/src/diff/diff_match_patch.h
Examining data/texstudio-3.0.1+ds/src/grammarcheck_config.h
Examining data/texstudio-3.0.1+ds/src/texdocdialog.cpp
Examining data/texstudio-3.0.1+ds/src/pdfsplittool.h
Examining data/texstudio-3.0.1+ds/src/macrobrowserui.cpp
Examining data/texstudio-3.0.1+ds/src/toolwidgets.cpp
Examining data/texstudio-3.0.1+ds/src/usermacro.h
Examining data/texstudio-3.0.1+ds/src/cleandialog.h
Examining data/texstudio-3.0.1+ds/src/unicodeinsertion.cpp
Examining data/texstudio-3.0.1+ds/src/configmanager.cpp
Examining data/texstudio-3.0.1+ds/src/aboutdialog.cpp
Examining data/texstudio-3.0.1+ds/symbols-ng/symbolviewclasses.h
Examining data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp

FINAL RESULTS:

data/texstudio-3.0.1+ds/src/configmanager.cpp:875:44:  [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.
			dic = findResourceFile(QString(QLocale::system().name()) + ".dic", true, temp, fallBackPaths);
data/texstudio-3.0.1+ds/src/configmanager.cpp:912:66:  [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.
		thesaurus_database = findResourceFile("th_" + QString(QLocale::system().name()) + "_v2.dat", true, preferredPaths, fallBackPaths);
data/texstudio-3.0.1+ds/src/configmanager.cpp:2641:29:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
		locale = QString(QLocale::system().name()).left(2);
data/texstudio-3.0.1+ds/src/debug/debughelper.cpp:443:59:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PRINT(...) do { qDebug(__VA_ARGS__); if (logFile) fprintf(logFile, __VA_ARGS__);  } while (0)
data/texstudio-3.0.1+ds/src/debug/debughelper.cpp:447:25:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PRINT(...) do { fprintf(stderr, __VA_ARGS__); qDebug(__VA_ARGS__); if (logFile) fprintf(logFile, __VA_ARGS__); } while (0)
data/texstudio-3.0.1+ds/src/debug/debughelper.cpp:447:89:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define PRINT(...) do { fprintf(stderr, __VA_ARGS__); qDebug(__VA_ARGS__); if (logFile) fprintf(logFile, __VA_ARGS__); } while (0)
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:314:13:  [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.
            printf(SYNCTEX_PRINT_CHARINDEX_FMT SYNCTEX_PRINT_CHARINDEX_WHAT)
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:318:13:  [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.
            printf(SYNCTEX_PRINT_LINEINDEX_FMT SYNCTEX_PRINT_LINEINDEX_WHAT)
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:320:13:  [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.
            printf(SYNCTEX_PRINT_CHARINDEX_FMT "\n" SYNCTEX_PRINT_CHARINDEX_WHAT)
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:322:13:  [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.
            printf(SYNCTEX_PRINT_CHARINDEX_FMT "\n"SYNCTEX_PRINT_LINEINDEX_WHAT)
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:559:25:  [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).
    if (open.synctex != strcpy(open.synctex,output)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:583:25:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    if (open.synctex != strcat(open.synctex,synctex_suffix)){
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:588:62:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    if (quoteless_synctex_name && (quoteless_synctex_name != strcat(quoteless_synctex_name,synctex_suffix))){
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:600:29:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        if (open.synctex != strcat(open.synctex,synctex_suffix_gz)){
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:607:66:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        if (quoteless_synctex_name && (quoteless_synctex_name != strcat(quoteless_synctex_name,synctex_suffix_gz))){
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:685:37:  [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).
                if (build_output != strcpy(build_output,output)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:691:33:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            if (build_output == strcat(build_output,build_directory)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:700:37:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
                if (build_output != strcat(build_output,lpc)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:739:38:  [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).
        } else if (reader->output != strcpy(reader->output,output)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3201:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"Input:%i:%s(%i)" SYNCTEX_PRINT_CHARINDEX_FMT,
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3226:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"{%i...}" SYNCTEX_PRINT_CHARINDEX_FMT,
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3250:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"<%i...>" SYNCTEX_PRINT_CHARINDEX_FMT,
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3275:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"[%i,%i:%i,%i:%i,%i,%i...]"
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3315:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"(%i,%i~%i*%i:%i,%i:%i,%i,%i...)"
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3395:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"h%i,%i:%i,%i:%i,%i,%i"
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3430:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"glue:%i,%i:%i,%i"
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3459:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"rule:%i,%i:%i,%i:%i,%i,%i"
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3494:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"math:%i,%i:%i,%i"
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3523:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"kern:%i,%i:%i,%i:%i"
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3554:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"boundary:%i,%i:%i,%i"
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3583:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"box bdry:%i,%i:%i,%i" SYNCTEX_PRINT_CHARINDEX_FMT,
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3609:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"form ref:%i:%i,%i" SYNCTEX_PRINT_CHARINDEX_FMT,
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3671:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3712:9:  [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.
        snprintf(abstract,SYNCTEX_ABSTRACT_MAX,"(*%i,%i~%i*%i:%i,%i:%i,%i,%i...*)/%p"
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8426:18:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        result = vfprintf(updater->file.as_FILE_p,
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_advanced.h:530:13:  [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.
            printf((desc), ##__VA_ARGS__); \
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:106:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		result = vsprintf(buff, reason, arg) +strlen(prompt);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:130:15:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    result += vfprintf(where, reason, arg);
data/texstudio-3.0.1+ds/src/scriptobject.cpp:108: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.
ProcessX *ScriptObject::system(const QString &commandline, const QString &workingDirectory)
data/texstudio-3.0.1+ds/src/scriptobject.h:73:12:  [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.
	ProcessX *system(const QString &commandline, const QString &workingDirectory=QString());
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:244:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   latexret = system(texcommand.toLatin1());
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:245:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   dvipngret= system(dvipngcommand.toLatin1());
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:338:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   latexret = system(texcommand.toLatin1());
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:339:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   dvipngret= system(dvipngcommand.toLatin1());
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:340:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
   convertret= system(convertCommand.toLatin1());
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:341:10:  [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.
   rmret=system(removeCommand.toLatin1());
data/texstudio-3.0.1+ds/src/buildmanager.cpp:721:14:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	QString a = getenv("PROGRAMFILES");
data/texstudio-3.0.1+ds/src/buildmanager.cpp:723:6:  [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.
	a = getenv("PROGRAMFILES(X86)");
data/texstudio-3.0.1+ds/src/randomtextgenerator.cpp:115:10:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    std::srand(QDateTime::currentDateTime().toTime_t()); //TODO: milliseconds
data/texstudio-3.0.1+ds/src/texstudio.cpp:8028:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	int rep = random() % (1 + cursorHistory->count());
data/texstudio-3.0.1+ds/src/texstudio.cpp:8030:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
	rep = random() % (1 + cursorHistory->count());
data/texstudio-3.0.1+ds/src/texstudio.cpp:8047:57:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		fillText += "\n" + QString("foobar abc xyz").repeated(random() % 100);
data/texstudio-3.0.1+ds/src/texstudio.cpp:8050:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			if (random() % 1000 < 500) documents.deleteDocument(documents.documents[random() % documents.documents.length()]);
data/texstudio-3.0.1+ds/src/texstudio.cpp:8050:76:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			if (random() % 1000 < 500) documents.deleteDocument(documents.documents[random() % documents.documents.length()]);
data/texstudio-3.0.1+ds/src/texstudio.cpp:8055:8:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			if (random() % 1000 < 500) documents.deleteDocument(documents.documents[random() % documents.documents.length()]);
data/texstudio-3.0.1+ds/src/texstudio.cpp:8055:76:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			if (random() % 1000 < 500) documents.deleteDocument(documents.documents[random() % documents.documents.length()]);
data/texstudio-3.0.1+ds/src/texstudio.cpp:8061:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		int rep = random() % 100;
data/texstudio-3.0.1+ds/src/texstudio.cpp:8064:13:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int l =  random() % currentEditor()->document()->lineCount();
data/texstudio-3.0.1+ds/src/texstudio.cpp:8065:12:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			int c = random() % (currentEditor()->document()->line(l).length() + 100);
data/texstudio-3.0.1+ds/src/texstudio.cpp:8066:73:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			currentEditor()->setCursor(currentEditor()->document()->cursor(l, c, random() % 100, random() % 100));
data/texstudio-3.0.1+ds/src/texstudio.cpp:8066:89:  [3] (random) random:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
			currentEditor()->setCursor(currentEditor()->document()->cursor(l, c, random() % 100, random() % 100));
data/texstudio-3.0.1+ds/src/utilsSystem.cpp:703:25:  [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.
	QString kdesession = ::getenv("KDE_FULL_SESSION");
data/texstudio-3.0.1+ds/src/utilsSystem.cpp:704:25:  [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.
	QString kdeversion = ::getenv("KDE_SESSION_VERSION");
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:900:25:  [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.
	QString kdesession = ::getenv("KDE_FULL_SESSION");
data/texstudio-3.0.1+ds/src/bibtexparser.cpp:18:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QFile::ReadOnly)) return; //ups...
data/texstudio-3.0.1+ds/src/bibtexreader.cpp:25:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QFile::ReadOnly)) return; //ups...
data/texstudio-3.0.1+ds/src/buildmanager.cpp:705: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 buf[1024];
data/texstudio-3.0.1+ds/src/buildmanager.cpp:1755: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).
	temp->open();
data/texstudio-3.0.1+ds/src/buildmanager.cpp:1830:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				tf->open();
data/texstudio-3.0.1+ds/src/buildmanager.cpp:1879:6:  [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).
	tf->open();
data/texstudio-3.0.1+ds/src/configmanager.cpp:937: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 (file.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/configmanager.cpp:2034: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.
		static const char *open[autoQuoteCount] = {"",  "``", "\"<", "\"`", "\\og ",  "\">", "\\enquote{", "\xE2\x80\x9C" /*“*/, ",,", "\u201E"};
data/texstudio-3.0.1+ds/src/configmanager.cpp:2034: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).
		static const char *open[autoQuoteCount] = {"",  "``", "\"<", "\"`", "\\og ",  "\">", "\\enquote{", "\xE2\x80\x9C" /*“*/, ",,", "\u201E"};
data/texstudio-3.0.1+ds/src/configmanager.cpp:2035: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.
		static const char *close[autoQuoteCount] = {"", "''", "\">", "\"'", "\\fg{}", "\"<", "}"         , "\xE2\x80\x9D" /*”*/, "''", "\u201D"};
data/texstudio-3.0.1+ds/src/configmanager.cpp:2036:91:  [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).
		completerConfig->userMacros.append(Macro(TXS_AUTO_REPLACE_QUOTE_OPEN, QString::fromUtf8(open[replaceQuotes]), "", "(?language:latex)(?<=\\s|[(:]|^)\""));
data/texstudio-3.0.1+ds/src/configmanager.cpp:2299:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (f.open(QFile::ReadOnly)) {
data/texstudio-3.0.1+ds/src/configmanager.cpp:2573: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 (settings.open(QFile::ReadOnly | QFile::Text)) {
data/texstudio-3.0.1+ds/src/debug/debughelper.cpp:452:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *logFile = fopen(qPrintable(backtraceFilename), "w");
data/texstudio-3.0.1+ds/src/debug/debughelper.cpp:687:1:  [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 staticSignalStack[SIGNAL_STACK_SIZE];
data/texstudio-3.0.1+ds/src/debug/debughelper.cpp:1064: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(&PC_FROM_UCONTEXT(context), &this->pc, sizeof(char*));
data/texstudio-3.0.1+ds/src/debug/debughelper.cpp:1065: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(&FRAME_FROM_UCONTEXT(context), &this->frame, sizeof(char*));
data/texstudio-3.0.1+ds/src/debug/debughelper.cpp:1066: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(&STACK_FROM_UCONTEXT(context), &this->stack, sizeof(char*));
data/texstudio-3.0.1+ds/src/debug/debughelper.cpp:1068: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(&RETURNTO_FROM_UCONTEXT(context), &this->returnTo, sizeof(char*));
data/texstudio-3.0.1+ds/src/debug/debuglogger.cpp:19:21:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((m_logHandle = fopen(pathname.toLocal8Bit().constData(), "a")) == nullptr) {
data/texstudio-3.0.1+ds/src/grammarcheck.cpp:80:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QFile::ReadOnly)) return QSet<QString>();
data/texstudio-3.0.1+ds/src/help.cpp:240:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QFile::ReadOnly | QFile::Text)) return;
data/texstudio-3.0.1+ds/src/kpathseaParser.cpp:13:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (f.open(QFile::WriteOnly | QFile::Text)) {
data/texstudio-3.0.1+ds/src/kpathseaParser.cpp:26:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (f.open(QFile::ReadOnly | QFile::Text)) {
data/texstudio-3.0.1+ds/src/kpathseaParser.cpp:61: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 (data.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/texstudio-3.0.1+ds/src/kpathseaParser.cpp:100:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (f.open(QFile::WriteOnly | QFile::Text)) {
data/texstudio-3.0.1+ds/src/kpathseaParser.cpp:114:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (f.open(QFile::ReadOnly | QFile::Text)) {
data/texstudio-3.0.1+ds/src/latexeditorview.cpp:1312:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (fli.open) {
data/texstudio-3.0.1+ds/src/latexeditorview.cpp:1326:50:  [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 (fli.openParentheses.size() == level && fli.open) {
data/texstudio-3.0.1+ds/src/latexlogwidget.cpp:126:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (f.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/latexpackage.cpp:90:36:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (tagsfile.exists() && tagsfile.open(QFile::ReadOnly)) {
data/texstudio-3.0.1+ds/src/latexparser/latexparser.cpp:457: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 (tagsfile.open(QFile::ReadOnly)) {
data/texstudio-3.0.1+ds/src/latexrepository.cpp:33:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (! f.open(QFile::ReadOnly)) return false;
data/texstudio-3.0.1+ds/src/latexstyleparser.cpp:159:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if (data.open(QFile::WriteOnly | QFile::Truncate)) {
data/texstudio-3.0.1+ds/src/latexstyleparser.cpp:698:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (data.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/texstudio-3.0.1+ds/src/latexstyleparser.cpp:790:6:  [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).
	tf->open();
data/texstudio-3.0.1+ds/src/pdfsplittool.cpp:330: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).
	temp->open();
data/texstudio-3.0.1+ds/src/pdfsplittool.cpp:449: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 (!file.open(QIODevice::WriteOnly | QIODevice::Text))
data/texstudio-3.0.1+ds/src/pdfviewer/pdfrendermanager.cpp:139:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QFile::ReadOnly)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:551:51:  [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 char * mode = _synctex_get_io_mode_name(open.io_mode);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:553:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (NULL == (open.synctex = (char *)malloc(size))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:555: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;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:559:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.synctex != strcpy(open.synctex,output)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:559:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.synctex != strcpy(open.synctex,output)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:562: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).
        free(open.synctex);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:563:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open.synctex = NULL;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:565: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;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:568: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).
    _synctex_strip_last_path_extension(open.synctex);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:569: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 (!strlen(open.synctex)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:575:60:  [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 (_synctex_copy_with_quoting_last_path_component(open.synctex,&quoted,size) || quoted == NULL) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:579: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).
        quoteless_synctex_name = open.synctex;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:580:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open.synctex = quoted;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:583:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.synctex != strcat(open.synctex,synctex_suffix)){
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:583:32:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.synctex != strcat(open.synctex,synctex_suffix)){
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:592:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (NULL == (open.file = gzopen(open.synctex,mode))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:592: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 (NULL == (open.file = gzopen(open.synctex,mode))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:596:60:  [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).
            _synctex_error("could not open %s, error %i\n",open.synctex,errno);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:600: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 (open.synctex != strcat(open.synctex,synctex_suffix_gz)){
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:600:36:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (open.synctex != strcat(open.synctex,synctex_suffix_gz)){
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:604:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        open.io_mode |= synctex_io_gz_mask;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:605: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).
        mode = _synctex_get_io_mode_name(open.io_mode); /* the file is a compressed and is a binary file, this caused errors on Windows */
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:611: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 (NULL == (open.file = gzopen(open.synctex,mode))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:611:41:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (NULL == (open.file = gzopen(open.synctex,mode))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:615:64:  [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).
                _synctex_error("Could not open %s, error %i\n",open.synctex,errno);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:623: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).
        gzclose(open.file);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:624:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (rename(open.synctex,quoteless_synctex_name)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:625: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).
            _synctex_error("Could not rename %s to %s, error %i\n",open.synctex,quoteless_synctex_name,errno);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:627:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (NULL == (open.file = gzopen(open.synctex,mode))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:627: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).
            if (NULL == (open.file = gzopen(open.synctex,mode))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:632:74:  [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).
                    _synctex_error("Could not open again %s, error %i\n",open.synctex,errno);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:638:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if (NULL == (open.file = gzopen(quoteless_synctex_name,mode))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:647: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).
            free(open.synctex);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:648: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).
            open.synctex = quoteless_synctex_name;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:653:5:  [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.status = SYNCTEX_STATUS_OK;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:654: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).
    return open;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:666:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.status == SYNCTEX_STATUS_OK) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:667: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;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:687: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).
                    return open;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:696:32:  [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;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:702: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).
                    return open;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:709: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).
    return open;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:728: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 (open.status<SYNCTEX_STATUS_OK) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:730: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 (open.status<SYNCTEX_STATUS_OK) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:734: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).
        reader->synctex = open.synctex;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:735: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).
        reader->file = open.file;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:2906:18:  [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 const char * isa[synctex_node_number_of_types] =
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3199: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3224: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3248: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3273: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3313: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3357: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3393: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3428: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3457: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3492: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3521: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3552: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3581: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3607: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3630: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3669: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3710: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3755: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.
    static char abstract[SYNCTEX_ABSTRACT_MAX] = "none";
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:4190: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.
            if (memcpy(string+already_len,SYNCTEX_CUR,len)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8489: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).
    synctex_open_s open;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8497:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.status < SYNCTEX_STATUS_OK) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8499: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 (open.status < SYNCTEX_STATUS_OK) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8507: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).
    gzclose(open.file);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8509:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    mode = _synctex_get_io_mode_name(open.io_mode|synctex_io_append_mask);/* either "a" or "ab", depending on the file extension */
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8510:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open.io_mode&synctex_io_gz_mask) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8511:48:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (NULL == (updater->file.as_FILE_p = fopen(open.synctex,mode))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8511: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).
        if (NULL == (updater->file.as_FILE_p = fopen(open.synctex,mode))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8513:83:  [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).
            _synctex_error("!  synctex_updater_new_with_file: Can't append to %s",open.synctex);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8514: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).
            free(open.synctex);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8520: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).
        if (NULL == (updater->file.as_gzFile = gzopen(open.synctex,mode))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8526:38:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    printf("SyncTeX: updating %s...",open.synctex);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8527: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).
    _synctex_free(open.synctex);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8580: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(copy,name,strlen(name)+1);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8774: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 n[25]; /* name */
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:548:24:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            FILE * F = fopen(synctex_name, "r");
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:567:18:  [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 const char * synctex_io_modes[4] = {"r","rb","a","ab"}; 
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocument.cpp:767:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( !f.open(QFile::ReadOnly) )
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocument.cpp:2008: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 (fli.open && !fli.collapsedBlockStart) foldAt=fli.lineNr;
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocument.cpp:2071:53:  [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).
			blockStartList << QPair<int,int>(fli.lineNr, fli.open);
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocument.cpp:2101:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (fli.open && !fli.collapsedBlockStart && lines.contains(fli.lineNr)) {
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditor.cpp:1004: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 (file.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditor.cpp:1083:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( !f.open(QFile::WriteOnly) ) {
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditor.cpp:1166:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if ( !f.open(QFile::WriteOnly) ) 
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditsession.cpp:236:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( f.open(QFile::WriteOnly) )
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditsession.cpp:251:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( f.open(QFile::ReadOnly) )
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditsession.cpp:306: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 magic[4];
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qformatscheme.cpp:138:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( settings.open(QFile::ReadOnly | QFile::Text) )
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qformatscheme.cpp:157:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( settings.open(QFile::WriteOnly | QFile::Text) )
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagedefinition.cpp:245:48:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	collapsedBlockStart = collapsedBlockStart  && open;
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagedefinition.cpp:247:49:  [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).
	hiddenCollapsedBlockEnd = oldHiddenDepth>0 && !open && maxClosedParenthesisWeight <= maxClosedHiddenParenthesisWeight;
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagedefinition.cpp:253: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).
		hiddenDepth+=open;
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagedefinition.cpp:266:53:  [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).
	int firstParenthesisPos = openParentheses.size() - open;
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagedefinition.h:37:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define QCE_FOLD_FLAGS(flags, open, close) ((flags) | (open & QLanguageDefinition::OpenMask) | ((close << 12) & QLanguageDefinition::CloseMask))
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagedefinition.h:37:56:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define QCE_FOLD_FLAGS(flags, open, close) ((flags) | (open & QLanguageDefinition::OpenMask) | ((close << 12) & QLanguageDefinition::CloseMask))
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlanguagedefinition.h:119:6:  [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).
	int open, close;
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlinemarksinfocenter.cpp:251:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( !file.open(QFile::ReadOnly) )
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlinemarksinfocenter.cpp:286:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( !file.open(QFile::WriteOnly) )
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qlinemarksinfocenter.cpp:338:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( !file.open(QFile::ReadOnly | QFile::Text) )
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/qnfadefinition.cpp:150:46:  [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).
static inline bool match(const QParenthesis& open, const QParenthesis& close)
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/qnfadefinition.cpp:152:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	return open.id == close.id;
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/qnfadefinition.cpp:169:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ( !f.open(QFile::ReadOnly | QFile::Text) )
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/qnfadefinition.cpp:998: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).
		Q_ASSERT(fli_check.open && !fli_check.collapsedBlockStart);
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/qnfadefinition.cpp:999:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (!fli_check.open  || fli_check.collapsedBlockStart) return;
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qnfa/qnfadefinition.cpp:1008:61:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int firstParenthesisPos = fli.openParentheses.size() - fli.open;
data/texstudio-3.0.1+ds/src/qcodeedit/lib/widgets/qfoldpanel.cpp:227: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 ( fli.open ) {
data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlocalpeer.cpp:108: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).
    lockFile.open(QIODevice::ReadWrite);
data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlockedfile.cpp:123: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).
bool QtLockedFile::open(OpenMode mode)
data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlockedfile.cpp:129: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).
    return QFile::open(mode);
data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlockedfile.h:76: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(OpenMode mode);
data/texstudio-3.0.1+ds/src/randomtextgenerator.cpp:123:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (!f.open(QFile::WriteOnly)) {
data/texstudio-3.0.1+ds/src/scriptengine.cpp:980:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (!f.open(QFile::ReadOnly))
data/texstudio-3.0.1+ds/src/scriptobject.cpp:132:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QFile::WriteOnly))
data/texstudio-3.0.1+ds/src/scriptobject.cpp:143:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QFile::ReadOnly))
data/texstudio-3.0.1+ds/src/scriptobject.cpp:199: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(QFile::ReadOnly)) return nullptr;
data/texstudio-3.0.1+ds/src/smallUsefulFunctions.cpp:935:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	buffer.open(QIODevice::WriteOnly);
data/texstudio-3.0.1+ds/src/spellerutility.cpp:69:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QFile::ReadOnly)) {
data/texstudio-3.0.1+ds/src/spellerutility.cpp:97:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (f.open(QFile::WriteOnly)) {
data/texstudio-3.0.1+ds/src/symbolpanel/symbollistmodel.cpp:52: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 (!file.open( QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/tablemanipulation.cpp:776: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 (!file.open(QIODevice::ReadOnly | QIODevice::Text))
data/texstudio-3.0.1+ds/src/templatemanager.cpp:167: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 (!file.open(QFile::ReadOnly)) {
data/texstudio-3.0.1+ds/src/templatemanager_p.cpp:118:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/texstudio-3.0.1+ds/src/templatemanager_p.cpp:137:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QIODevice::WriteOnly | QIODevice::Text))
data/texstudio-3.0.1+ds/src/templatemanager_p.cpp:156:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QIODevice::ReadOnly | QIODevice::Text)) {
data/texstudio-3.0.1+ds/src/tests/git_t.cpp:27:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (data.open(QFile::WriteOnly | QFile::Truncate)) {
data/texstudio-3.0.1+ds/src/tests/qeditor_t.cpp:28: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).
	return(fli.open && !fli.collapsedBlockStart);
data/texstudio-3.0.1+ds/src/tests/qeditor_t.cpp:89:5:  [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).
	tf.open();
data/texstudio-3.0.1+ds/src/tests/qeditor_t.cpp:108:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if(tf2.open(QIODevice::ReadOnly)){
data/texstudio-3.0.1+ds/src/tests/testmanager.cpp:57:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QIODevice::ReadOnly))
data/texstudio-3.0.1+ds/src/tests/testmanager.cpp:65:5:  [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).
	tf.open();
data/texstudio-3.0.1+ds/src/texstudio.cpp:199: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(styleSheetFile.open(QFile::ReadOnly)){
data/texstudio-3.0.1+ds/src/texstudio.cpp:2023: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 (!file.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/texstudio.cpp:2084:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if (f.open(QFile::ReadOnly)) {
data/texstudio-3.0.1+ds/src/texstudio.cpp:2301: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_txt.open(QIODevice::WriteOnly | QIODevice::Text)) {
data/texstudio-3.0.1+ds/src/texstudio.cpp:2327: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/texstudio-3.0.1+ds/src/texstudio.cpp:2380: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::ReadOnly)) {
data/texstudio-3.0.1+ds/src/texstudio.cpp:2442: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::ReadOnly)) {
data/texstudio-3.0.1+ds/src/texstudio.cpp:4277: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 (file.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/texstudio.cpp:4307:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (f.open(QFile::WriteOnly)) {
data/texstudio-3.0.1+ds/src/texstudio.cpp:6961: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).
	xmlFile.open(QIODevice::ReadOnly);
data/texstudio-3.0.1+ds/src/texstudio.cpp:6988:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	xmlFile2.open(QIODevice::ReadOnly);
data/texstudio-3.0.1+ds/src/texstudio.cpp:7002: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).
            xmlFile3.open(QIODevice::ReadOnly);
data/texstudio-3.0.1+ds/src/texstudio.cpp:7041: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 (translationFile.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/texstudio.cpp:10038: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 (!file.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/texstudio.cpp:10303:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (tf.open(QFile::WriteOnly)) {
data/texstudio-3.0.1+ds/src/textanalysis.cpp:451:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QFile::WriteOnly))
data/texstudio-3.0.1+ds/src/thesaurusdialog.cpp:42:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QFile::WriteOnly)) return;
data/texstudio-3.0.1+ds/src/thesaurusdialog.cpp:85:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (f.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/thesaurusdialog.cpp:405: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 (!file.open(QIODevice::ReadOnly)) return;
data/texstudio-3.0.1+ds/src/usermacro.cpp:246:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
data/texstudio-3.0.1+ds/src/usermacro.cpp:266:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!file.open(QIODevice::ReadOnly | QIODevice::Text))
data/texstudio-3.0.1+ds/src/utilsSystem.cpp:367:31:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (fi.exists()) result = fi.open(QIODevice::ReadWrite);
data/texstudio-3.0.1+ds/src/utilsSystem.cpp:369: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).
		result = fi.open(QIODevice::WriteOnly);
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:210: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 (!bboxf.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:227: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 (!linkf.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:244: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 (!linkf.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:355:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:385:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!f.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:391: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 (!outf.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:433:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!psf.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:439: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 (!outf.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:489: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 (!outf.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:496:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (!texf.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:527: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 (!auxf.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:548: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 (!outf.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:555:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (!texf.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:581: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 (!auxf.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:632:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (!bboxf.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:679:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			if (!htmf.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:691:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if (!linkf.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:744: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 (!htmf.open(QIODevice::WriteOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:762:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
				if (!linkf.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/webpublishdialog.cpp:828: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 (!logf.open(QIODevice::ReadOnly)) {
data/texstudio-3.0.1+ds/src/xmltagslistwidget.cpp:42:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		if (tagsFile.open(QFile::ReadOnly)) {
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:108: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::ReadOnly ) ){
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:126: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/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:157:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if( !file.open( QIODevice::ReadOnly ) ){
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:190:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
   if( !file.open( QIODevice::WriteOnly ) )
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:220: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()) {
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:310: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()) {
data/texstudio-3.0.1+ds/symbols-ng/gesymb-ng.cpp:479: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::ReadOnly ) ){
data/texstudio-3.0.1+ds/src/configmanager.cpp:2356:52:  [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).
			act->setProperty("editorViewSlot", slotName.mid(strlen("editorView:")));
data/texstudio-3.0.1+ds/src/configmanager.cpp:2358:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			act->setProperty("editorSlot", slotName.mid(strlen("editor:")));
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:552:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t size = strlen(output)+strlen(synctex_suffix)+strlen(synctex_suffix_gz)+1;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:552: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).
    size_t size = strlen(output)+strlen(synctex_suffix)+strlen(synctex_suffix_gz)+1;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:552:57:  [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 size = strlen(output)+strlen(synctex_suffix)+strlen(synctex_suffix_gz)+1;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:569:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (!strlen(open.synctex)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:669:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (build_directory && strlen(build_directory)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:676: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).
        size = strlen(build_directory)+strlen(lpc)+2;   /*  One for the '/' and one for the '\0'.   */
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:676:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size = strlen(build_directory)+strlen(lpc)+2;   /*  One for the '/' and one for the '\0'.   */
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:679: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).
            size += strlen(output);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:693: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).
                if (!SYNCTEX_IS_PATH_SEPARATOR(build_output[strlen(build_directory)-1])) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:694:41:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
                    if (build_output != strcat(build_output,"/")) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:737: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).
        if (NULL == (reader->output = (char *)_synctex_malloc(strlen(output)+1))){
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3158:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (scanR->display_prompt+1<_synctex_display_prompt+strlen(_synctex_display_prompt)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:3948: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).
    remaining_len = strlen(the_string); /*  All the_string should match */
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:6027:67:  [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).
        scanner->display_prompt = (char *)_synctex_display_prompt+strlen(_synctex_display_prompt)-1;
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:6255:29:  [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(_synctex_data_name(input))!=strlen(_synctex_data_name(other_input))
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:6255:64:  [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(_synctex_data_name(input))!=strlen(_synctex_data_name(other_input))
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:6256:98:  [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).
                            || strncmp(_synctex_data_name(other_input),_synctex_data_name(input),strlen(_synctex_data_name(input))))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:6269: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).
    size_t char_index = strlen(name);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:6283: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).
                while((strlen(relative) > 0) && (strlen(ptr) > 0) && (*relative == *ptr))
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:6283:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                while((strlen(relative) > 0) && (strlen(ptr) > 0) && (*relative == *ptr))
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8465: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).
        } else if ((result = (int)strlen(buffer))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8535: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).
    if (magnification && strlen(magnification)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8545: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).
    if (x_offset && strlen(x_offset)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8554: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).
    if (y_offset && strlen(y_offset)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8579: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).
    char * copy = _synctex_malloc(strlen(name)+1);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser.c:8580: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).
    memcpy(copy,name,strlen(name)+1);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:106:41:  [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).
		result = vsprintf(buff, reason, arg) +strlen(prompt);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:118: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).
        result = (int)strlen(buffer2);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:122: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).
        result = (int)strlen(prompt);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:270:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(!strlen(name)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:274:5:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if(strlen(name)>2) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:285: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 char * c = name+strlen(name);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:306:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(strlen(lpc)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:307:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(strchr(lpc,' ') && lpc[0]!='"' && lpc[strlen(lpc)-1]!='"') {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:312:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if(strlen(src)<size) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:315:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
						if(dest != strncpy(dest,src,size)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:321: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).
						memmove(dpc+1,dpc,strlen(dpc)+1);	/*	Also move the null terminating character. */
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:323: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).
						dpc[strlen(dpc)+1]='\0';/*	Consistency test */
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:324: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).
						dpc[strlen(dpc)]='"';
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:351: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).
		size_t len = strlen(temp);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:368: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).
				if((size = strlen(temp))>0) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:370:17:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
					if(dest != strncpy(dest,temp,size)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:402:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if(strlen(base_name)>0) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:427:21:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				if(core_name != strncpy(core_name,base_name,size)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:441: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).
			size = strlen(output)-strlen(base_name);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:441: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).
			size = strlen(output)-strlen(base_name);
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:449:20:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
				if(dir_name != strncpy(dir_name,output,size)) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:465:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(dir_name &&strlen(dir_name)>0) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:467:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if(quoted_core_name && strlen(quoted_core_name)>0) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:472:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if(quoted_core_name && strlen(quoted_core_name)>0) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:476:72:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if(!_synctex_path_is_absolute(output) && build_directory && (size = strlen(build_directory))) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:480:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if(quoted_core_name && strlen(quoted_core_name)>0) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:485:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if(quoted_core_name && strlen(quoted_core_name)>0) {
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:551:26:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                && 31 == fgetc(F)
data/texstudio-3.0.1+ds/src/pdfviewer/synctex/synctex_parser_utils.c:553:27:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                && 139 == fgetc(F)) {
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocument.cpp:796:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		ba = f.read(100000);
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocument.cpp:806:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ba = f.read(100000);
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocument.cpp:6417:29:  [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 QDocumentCursorHandle::equal(const QDocumentCursorHandle* c){
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentcursor.cpp:297:23:  [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 QDocumentCursor::equal(const QDocumentCursor& c) const{
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentcursor.cpp:300:19:  [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 m_handle->equal(c.m_handle);
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentcursor.h:125:20:  [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.
		Q_INVOKABLE bool equal(const QDocumentCursor& c) const;
data/texstudio-3.0.1+ds/src/qcodeedit/lib/document/qdocumentcursor_p.h:153:8:  [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 equal(const QDocumentCursorHandle* c);
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditor.cpp:2234:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
		if (cc.equal(m_placeHolders[j].cursor)) {
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditor.cpp:3780:58:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
					if ( m_cursor.isWithinSelection(cursor) || m_cursor.equal(cursor) )
data/texstudio-3.0.1+ds/src/qcodeedit/lib/qeditor.cpp:3793:68:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
							if ( m_mirrors[i].isWithinSelection(cursor) || m_mirrors[i].equal(cursor) )
data/texstudio-3.0.1+ds/src/qtsingleapplication/qtlocalpeer.cpp:165:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            res &= (socket.read(qstrlen(ack)) == ack);
data/texstudio-3.0.1+ds/src/usermacro.cpp:75: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 int langlen = strlen("(?language:");

ANALYSIS SUMMARY:

Hits = 359
Lines analyzed = 145061 in approximately 3.64 seconds (39847 lines/second)
Physical Source Lines of Code (SLOC) = 108758
Hits@level = [0] 200 [1]  69 [2] 226 [3]  18 [4]  46 [5]   0
Hits@level+ = [0+] 559 [1+] 359 [2+] 290 [3+]  64 [4+]  46 [5+]   0
Hits/KSLOC@level+ = [0+] 5.13985 [1+] 3.30091 [2+] 2.66647 [3+] 0.588462 [4+] 0.422957 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.