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/kbibtex-0.9.81/mobile/sailfishos/src/bibliographymodel.cpp Examining data/kbibtex-0.9.81/mobile/sailfishos/src/bibliographymodel.h Examining data/kbibtex-0.9.81/mobile/sailfishos/src/kbibtexnamespace.h Examining data/kbibtex-0.9.81/mobile/sailfishos/src/main.cpp Examining data/kbibtex-0.9.81/mobile/sailfishos/src/searchenginelist.cpp Examining data/kbibtex-0.9.81/mobile/sailfishos/src/searchenginelist.h Examining data/kbibtex-0.9.81/src/config/bibtexentries.cpp Examining data/kbibtex-0.9.81/src/config/bibtexentries.h Examining data/kbibtex-0.9.81/src/config/bibtexfields.cpp Examining data/kbibtex-0.9.81/src/config/bibtexfields.h Examining data/kbibtex-0.9.81/src/config/notificationhub.cpp Examining data/kbibtex-0.9.81/src/config/notificationhub.h Examining data/kbibtex-0.9.81/src/config/preferences.cpp Examining data/kbibtex-0.9.81/src/config/preferences.h Examining data/kbibtex-0.9.81/src/data/comment.cpp Examining data/kbibtex-0.9.81/src/data/comment.h Examining data/kbibtex-0.9.81/src/data/element.cpp Examining data/kbibtex-0.9.81/src/data/element.h Examining data/kbibtex-0.9.81/src/data/entry.cpp Examining data/kbibtex-0.9.81/src/data/entry.h Examining data/kbibtex-0.9.81/src/data/file.cpp Examining data/kbibtex-0.9.81/src/data/file.h Examining data/kbibtex-0.9.81/src/data/macro.cpp Examining data/kbibtex-0.9.81/src/data/macro.h Examining data/kbibtex-0.9.81/src/data/models/filemodel.cpp Examining data/kbibtex-0.9.81/src/data/models/filemodel.h Examining data/kbibtex-0.9.81/src/data/preamble.cpp Examining data/kbibtex-0.9.81/src/data/preamble.h Examining data/kbibtex-0.9.81/src/data/value.cpp Examining data/kbibtex-0.9.81/src/data/value.h Examining data/kbibtex-0.9.81/src/global/kbibtex.cpp Examining data/kbibtex-0.9.81/src/global/kbibtex.h Examining data/kbibtex-0.9.81/src/gui/config/entrylayout.cpp Examining data/kbibtex-0.9.81/src/gui/config/entrylayout.h Examining data/kbibtex-0.9.81/src/gui/element/associatedfilesui.cpp Examining data/kbibtex-0.9.81/src/gui/element/associatedfilesui.h Examining data/kbibtex-0.9.81/src/gui/element/elementeditor.cpp Examining data/kbibtex-0.9.81/src/gui/element/elementeditor.h Examining data/kbibtex-0.9.81/src/gui/element/elementwidgets.cpp Examining data/kbibtex-0.9.81/src/gui/element/elementwidgets.h Examining data/kbibtex-0.9.81/src/gui/element/findpdfui.cpp Examining data/kbibtex-0.9.81/src/gui/element/findpdfui.h Examining data/kbibtex-0.9.81/src/gui/element/findpdfui_p.h Examining data/kbibtex-0.9.81/src/gui/field/colorlabelwidget.cpp Examining data/kbibtex-0.9.81/src/gui/field/colorlabelwidget.h Examining data/kbibtex-0.9.81/src/gui/field/fieldinput.cpp Examining data/kbibtex-0.9.81/src/gui/field/fieldinput.h Examining data/kbibtex-0.9.81/src/gui/field/fieldlineedit.cpp Examining data/kbibtex-0.9.81/src/gui/field/fieldlineedit.h Examining data/kbibtex-0.9.81/src/gui/field/fieldlistedit.cpp Examining data/kbibtex-0.9.81/src/gui/field/fieldlistedit.h Examining data/kbibtex-0.9.81/src/gui/file/basicfileview.cpp Examining data/kbibtex-0.9.81/src/gui/file/basicfileview.h Examining data/kbibtex-0.9.81/src/gui/file/clipboard.cpp Examining data/kbibtex-0.9.81/src/gui/file/clipboard.h Examining data/kbibtex-0.9.81/src/gui/file/filedelegate.cpp Examining data/kbibtex-0.9.81/src/gui/file/filedelegate.h Examining data/kbibtex-0.9.81/src/gui/file/fileview.cpp Examining data/kbibtex-0.9.81/src/gui/file/fileview.h Examining data/kbibtex-0.9.81/src/gui/file/findduplicatesui.cpp Examining data/kbibtex-0.9.81/src/gui/file/findduplicatesui.h Examining data/kbibtex-0.9.81/src/gui/file/partwidget.cpp Examining data/kbibtex-0.9.81/src/gui/file/partwidget.h Examining data/kbibtex-0.9.81/src/gui/file/sortfilterfilemodel.cpp Examining data/kbibtex-0.9.81/src/gui/file/sortfilterfilemodel.h Examining data/kbibtex-0.9.81/src/gui/guihelper.cpp Examining data/kbibtex-0.9.81/src/gui/guihelper.h Examining data/kbibtex-0.9.81/src/gui/italictextitemmodel.cpp Examining data/kbibtex-0.9.81/src/gui/italictextitemmodel.h Examining data/kbibtex-0.9.81/src/gui/preferences/kbibtexpreferencesdialog.cpp Examining data/kbibtex-0.9.81/src/gui/preferences/kbibtexpreferencesdialog.h Examining data/kbibtex-0.9.81/src/gui/preferences/settingsabstractwidget.cpp Examining data/kbibtex-0.9.81/src/gui/preferences/settingsabstractwidget.h Examining data/kbibtex-0.9.81/src/gui/preferences/settingscolorlabelwidget.cpp Examining data/kbibtex-0.9.81/src/gui/preferences/settingscolorlabelwidget.h Examining data/kbibtex-0.9.81/src/gui/preferences/settingscolorlabelwidget_p.h Examining data/kbibtex-0.9.81/src/gui/preferences/settingsfileexporterpdfpswidget.cpp Examining data/kbibtex-0.9.81/src/gui/preferences/settingsfileexporterpdfpswidget.h Examining data/kbibtex-0.9.81/src/gui/preferences/settingsfileexporterwidget.cpp Examining data/kbibtex-0.9.81/src/gui/preferences/settingsfileexporterwidget.h Examining data/kbibtex-0.9.81/src/gui/preferences/settingsgeneralwidget.cpp Examining data/kbibtex-0.9.81/src/gui/preferences/settingsgeneralwidget.h Examining data/kbibtex-0.9.81/src/gui/preferences/settingsglobalkeywordswidget.cpp Examining data/kbibtex-0.9.81/src/gui/preferences/settingsglobalkeywordswidget.h Examining data/kbibtex-0.9.81/src/gui/preferences/settingsidsuggestionseditor.cpp Examining data/kbibtex-0.9.81/src/gui/preferences/settingsidsuggestionseditor.h Examining data/kbibtex-0.9.81/src/gui/preferences/settingsidsuggestionswidget.cpp Examining data/kbibtex-0.9.81/src/gui/preferences/settingsidsuggestionswidget.h Examining data/kbibtex-0.9.81/src/gui/preferences/settingsuserinterfacewidget.cpp Examining data/kbibtex-0.9.81/src/gui/preferences/settingsuserinterfacewidget.h Examining data/kbibtex-0.9.81/src/gui/valuelistmodel.cpp Examining data/kbibtex-0.9.81/src/gui/valuelistmodel.h Examining data/kbibtex-0.9.81/src/gui/widgets/filesettingswidget.cpp Examining data/kbibtex-0.9.81/src/gui/widgets/filesettingswidget.h Examining data/kbibtex-0.9.81/src/gui/widgets/filterbar.cpp Examining data/kbibtex-0.9.81/src/gui/widgets/filterbar.h Examining data/kbibtex-0.9.81/src/gui/widgets/hidingtabwidget.cpp Examining data/kbibtex-0.9.81/src/gui/widgets/hidingtabwidget.h Examining data/kbibtex-0.9.81/src/gui/widgets/menulineedit.cpp Examining data/kbibtex-0.9.81/src/gui/widgets/menulineedit.h Examining data/kbibtex-0.9.81/src/gui/widgets/radiobuttontreeview.cpp Examining data/kbibtex-0.9.81/src/gui/widgets/radiobuttontreeview.h Examining data/kbibtex-0.9.81/src/gui/widgets/rangewidget.cpp Examining data/kbibtex-0.9.81/src/gui/widgets/rangewidget.h Examining data/kbibtex-0.9.81/src/gui/widgets/starrating.cpp Examining data/kbibtex-0.9.81/src/gui/widgets/starrating.h Examining data/kbibtex-0.9.81/src/io/bibutils.cpp Examining data/kbibtex-0.9.81/src/io/bibutils.h Examining data/kbibtex-0.9.81/src/io/encoder.cpp Examining data/kbibtex-0.9.81/src/io/encoder.h Examining data/kbibtex-0.9.81/src/io/encoderlatex.cpp Examining data/kbibtex-0.9.81/src/io/encoderlatex.h Examining data/kbibtex-0.9.81/src/io/encoderxml.cpp Examining data/kbibtex-0.9.81/src/io/encoderxml.h Examining data/kbibtex-0.9.81/src/io/fileexporter.cpp Examining data/kbibtex-0.9.81/src/io/fileexporter.h Examining data/kbibtex-0.9.81/src/io/fileexporterbibtex.cpp Examining data/kbibtex-0.9.81/src/io/fileexporterbibtex.h Examining data/kbibtex-0.9.81/src/io/fileexporterbibtex2html.cpp Examining data/kbibtex-0.9.81/src/io/fileexporterbibtex2html.h Examining data/kbibtex-0.9.81/src/io/fileexporterbibtexoutput.cpp Examining data/kbibtex-0.9.81/src/io/fileexporterbibtexoutput.h Examining data/kbibtex-0.9.81/src/io/fileexporterbibutils.cpp Examining data/kbibtex-0.9.81/src/io/fileexporterbibutils.h Examining data/kbibtex-0.9.81/src/io/fileexporterpdf.cpp Examining data/kbibtex-0.9.81/src/io/fileexporterpdf.h Examining data/kbibtex-0.9.81/src/io/fileexporterps.cpp Examining data/kbibtex-0.9.81/src/io/fileexporterps.h Examining data/kbibtex-0.9.81/src/io/fileexporterris.cpp Examining data/kbibtex-0.9.81/src/io/fileexporterris.h Examining data/kbibtex-0.9.81/src/io/fileexporterrtf.cpp Examining data/kbibtex-0.9.81/src/io/fileexporterrtf.h Examining data/kbibtex-0.9.81/src/io/fileexportertoolchain.cpp Examining data/kbibtex-0.9.81/src/io/fileexportertoolchain.h Examining data/kbibtex-0.9.81/src/io/fileexporterxml.cpp Examining data/kbibtex-0.9.81/src/io/fileexporterxml.h Examining data/kbibtex-0.9.81/src/io/fileexporterxslt.cpp Examining data/kbibtex-0.9.81/src/io/fileexporterxslt.h Examining data/kbibtex-0.9.81/src/io/fileimporter.cpp Examining data/kbibtex-0.9.81/src/io/fileimporter.h Examining data/kbibtex-0.9.81/src/io/fileimporterbibtex.cpp Examining data/kbibtex-0.9.81/src/io/fileimporterbibtex.h Examining data/kbibtex-0.9.81/src/io/fileimporterbibutils.cpp Examining data/kbibtex-0.9.81/src/io/fileimporterbibutils.h Examining data/kbibtex-0.9.81/src/io/fileimporterpdf.cpp Examining data/kbibtex-0.9.81/src/io/fileimporterpdf.h Examining data/kbibtex-0.9.81/src/io/fileimporterris.cpp Examining data/kbibtex-0.9.81/src/io/fileimporterris.h Examining data/kbibtex-0.9.81/src/io/fileinfo.cpp Examining data/kbibtex-0.9.81/src/io/fileinfo.h Examining data/kbibtex-0.9.81/src/io/textencoder.cpp Examining data/kbibtex-0.9.81/src/io/textencoder.h Examining data/kbibtex-0.9.81/src/io/xsltransform.cpp Examining data/kbibtex-0.9.81/src/io/xsltransform.h Examining data/kbibtex-0.9.81/src/networking/associatedfiles.cpp Examining data/kbibtex-0.9.81/src/networking/associatedfiles.h Examining data/kbibtex-0.9.81/src/networking/findpdf.cpp Examining data/kbibtex-0.9.81/src/networking/findpdf.h Examining data/kbibtex-0.9.81/src/networking/internalnetworkaccessmanager.cpp Examining data/kbibtex-0.9.81/src/networking/internalnetworkaccessmanager.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchabstract.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchabstract.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchabstract_p.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchacmportal.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchacmportal.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearcharxiv.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearcharxiv.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchbibsonomy.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchbibsonomy.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchbiorxiv.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchbiorxiv.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchcernds.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchcernds.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchdoi.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchdoi.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchgeneral.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchgeneral.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchgooglescholar.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchgooglescholar.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchideasrepec.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchideasrepec.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchieeexplore.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchieeexplore.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchingentaconnect.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchingentaconnect.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchinspirehep.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchinspirehep.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchjstor.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchjstor.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchmathscinet.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchmathscinet.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchmrlookup.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchmrlookup.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchpubmed.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchpubmed.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchsciencedirect.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchsciencedirect.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchsemanticscholar.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchsemanticscholar.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchsimplebibtexdownload.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchsimplebibtexdownload.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchsoanasaads.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchsoanasaads.h Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchspringerlink.cpp Examining data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchspringerlink.h Examining data/kbibtex-0.9.81/src/networking/urlchecker.cpp Examining data/kbibtex-0.9.81/src/networking/urlchecker.h Examining data/kbibtex-0.9.81/src/networking/zotero/api.cpp Examining data/kbibtex-0.9.81/src/networking/zotero/api.h Examining data/kbibtex-0.9.81/src/networking/zotero/collection.cpp Examining data/kbibtex-0.9.81/src/networking/zotero/collection.h Examining data/kbibtex-0.9.81/src/networking/zotero/collectionmodel.cpp Examining data/kbibtex-0.9.81/src/networking/zotero/collectionmodel.h Examining data/kbibtex-0.9.81/src/networking/zotero/groups.cpp Examining data/kbibtex-0.9.81/src/networking/zotero/groups.h Examining data/kbibtex-0.9.81/src/networking/zotero/items.cpp Examining data/kbibtex-0.9.81/src/networking/zotero/items.h Examining data/kbibtex-0.9.81/src/networking/zotero/oauthwizard.cpp Examining data/kbibtex-0.9.81/src/networking/zotero/oauthwizard.h Examining data/kbibtex-0.9.81/src/networking/zotero/tagmodel.cpp Examining data/kbibtex-0.9.81/src/networking/zotero/tagmodel.h Examining data/kbibtex-0.9.81/src/networking/zotero/tags.cpp Examining data/kbibtex-0.9.81/src/networking/zotero/tags.h Examining data/kbibtex-0.9.81/src/parts/part.cpp Examining data/kbibtex-0.9.81/src/parts/part.h Examining data/kbibtex-0.9.81/src/parts/partfactory.cpp Examining data/kbibtex-0.9.81/src/parts/partfactory.h Examining data/kbibtex-0.9.81/src/processing/bibliographyservice.cpp Examining data/kbibtex-0.9.81/src/processing/bibliographyservice.h Examining data/kbibtex-0.9.81/src/processing/checkbibtex.cpp Examining data/kbibtex-0.9.81/src/processing/checkbibtex.h Examining data/kbibtex-0.9.81/src/processing/findduplicates.cpp Examining data/kbibtex-0.9.81/src/processing/findduplicates.h Examining data/kbibtex-0.9.81/src/processing/idsuggestions.cpp Examining data/kbibtex-0.9.81/src/processing/idsuggestions.h Examining data/kbibtex-0.9.81/src/processing/journalabbreviations.cpp Examining data/kbibtex-0.9.81/src/processing/journalabbreviations.h Examining data/kbibtex-0.9.81/src/processing/lyx.cpp Examining data/kbibtex-0.9.81/src/processing/lyx.h Examining data/kbibtex-0.9.81/src/program/docklets/documentpreview.cpp Examining data/kbibtex-0.9.81/src/program/docklets/documentpreview.h Examining data/kbibtex-0.9.81/src/program/docklets/elementform.cpp Examining data/kbibtex-0.9.81/src/program/docklets/elementform.h Examining data/kbibtex-0.9.81/src/program/docklets/filesettings.cpp Examining data/kbibtex-0.9.81/src/program/docklets/filesettings.h Examining data/kbibtex-0.9.81/src/program/docklets/referencepreview.cpp Examining data/kbibtex-0.9.81/src/program/docklets/referencepreview.h Examining data/kbibtex-0.9.81/src/program/docklets/searchform.cpp Examining data/kbibtex-0.9.81/src/program/docklets/searchform.h Examining data/kbibtex-0.9.81/src/program/docklets/searchresults.cpp Examining data/kbibtex-0.9.81/src/program/docklets/searchresults.h Examining data/kbibtex-0.9.81/src/program/docklets/statistics.cpp Examining data/kbibtex-0.9.81/src/program/docklets/statistics.h Examining data/kbibtex-0.9.81/src/program/docklets/valuelist.cpp Examining data/kbibtex-0.9.81/src/program/docklets/valuelist.h Examining data/kbibtex-0.9.81/src/program/docklets/zoterobrowser.cpp Examining data/kbibtex-0.9.81/src/program/docklets/zoterobrowser.h Examining data/kbibtex-0.9.81/src/program/documentlist.cpp Examining data/kbibtex-0.9.81/src/program/documentlist.h Examining data/kbibtex-0.9.81/src/program/mainwindow.cpp Examining data/kbibtex-0.9.81/src/program/mainwindow.h Examining data/kbibtex-0.9.81/src/program/mdiwidget.cpp Examining data/kbibtex-0.9.81/src/program/mdiwidget.h Examining data/kbibtex-0.9.81/src/program/openfileinfo.cpp Examining data/kbibtex-0.9.81/src/program/openfileinfo.h Examining data/kbibtex-0.9.81/src/program/program.cpp Examining data/kbibtex-0.9.81/src/test/kbibtexdatatest.cpp Examining data/kbibtex-0.9.81/src/test/kbibtexfilestest-rawdata.h Examining data/kbibtex-0.9.81/src/test/kbibtexfilestest.cpp Examining data/kbibtex-0.9.81/src/test/kbibtexiotest.cpp Examining data/kbibtex-0.9.81/src/test/kbibtexnetworkingtest.cpp Examining data/kbibtex-0.9.81/src/test/kbibtextest.cpp Examining data/kbibtex-0.9.81/src/test/kbibtextest.h Examining data/kbibtex-0.9.81/src/test/main.cpp FINAL RESULTS: data/kbibtex-0.9.81/src/gui/field/fieldinput.cpp:91:70: [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. QAction *monthAction = monthMenu->addAction(QLocale::system().standaloneMonthName(i)); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:109:56: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "PATH=" << getenv("PATH"); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:110:67: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "LD_LIBRARY_PATH=" << getenv("LD_LIBRARY_PATH"); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:111:65: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "XDG_DATA_DIRS=" << getenv("XDG_DATA_DIRS"); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:112:66: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "QT_PLUGIN_PATH=" << getenv("QT_PLUGIN_PATH"); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:113:59: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "KDEDIRS=" << getenv("KDEDIRS"); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:121:56: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "PATH=" << getenv("PATH"); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:122:67: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "LD_LIBRARY_PATH=" << getenv("LD_LIBRARY_PATH"); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:123:65: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "XDG_DATA_DIRS=" << getenv("XDG_DATA_DIRS"); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:124:66: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "QT_PLUGIN_PATH=" << getenv("QT_PLUGIN_PATH"); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:125:59: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "KDEDIRS=" << getenv("KDEDIRS"); data/kbibtex-0.9.81/src/program/program.cpp:92:52: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "PATH=" << getenv("PATH"); data/kbibtex-0.9.81/src/program/program.cpp:93:63: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "LD_LIBRARY_PATH=" << getenv("LD_LIBRARY_PATH"); data/kbibtex-0.9.81/src/program/program.cpp:94:61: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "XDG_DATA_DIRS=" << getenv("XDG_DATA_DIRS"); data/kbibtex-0.9.81/src/program/program.cpp:95:62: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "QT_PLUGIN_PATH=" << getenv("QT_PLUGIN_PATH"); data/kbibtex-0.9.81/src/program/program.cpp:96:55: [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. qCDebug(LOG_KBIBTEX_PROGRAM) << "KDEDIRS=" << getenv("KDEDIRS"); data/kbibtex-0.9.81/src/gui/file/clipboard.cpp:59:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QBuffer::WriteOnly); data/kbibtex-0.9.81/src/gui/file/clipboard.cpp:65:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QBuffer::ReadOnly); data/kbibtex-0.9.81/src/io/bibutils.cpp:143: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 (!source.isReadable() && !source.open(QIODevice::ReadOnly)) data/kbibtex-0.9.81/src/io/bibutils.cpp:146: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). if (!destination.isWritable() && !destination.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporter.cpp:39: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). buffer.open(QBuffer::WriteOnly); data/kbibtex-0.9.81/src/io/fileexporter.cpp:42: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 (buffer.open(QBuffer::ReadOnly)) { data/kbibtex-0.9.81/src/io/fileexporter.cpp:55: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). buffer.open(QBuffer::WriteOnly); data/kbibtex-0.9.81/src/io/fileexporter.cpp:58: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 (buffer.open(QBuffer::ReadOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtex.cpp:363:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtex.cpp:376: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). outputBuffer.open(QBuffer::WriteOnly); data/kbibtex-0.9.81/src/io/fileexporterbibtex.cpp:468: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). outputBuffer.open(QBuffer::ReadOnly); data/kbibtex-0.9.81/src/io/fileexporterbibtex.cpp:494:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtex2html.cpp:114:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtex2html.cpp:122: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 (output.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtex2html.cpp:138:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtex2html.cpp:146: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 (output.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtexoutput.cpp:48:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!ioDevice->isWritable() && !ioDevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtexoutput.cpp:56: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 (bibTeXFile.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtexoutput.cpp:75:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!ioDevice->isWritable() && !ioDevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtexoutput.cpp:83: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 (bibTeXFile.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibtexoutput.cpp:115:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (latexFile.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibutils.cpp:58:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterbibutils.cpp:74:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) data/kbibtex-0.9.81/src/io/fileexporterpdf.cpp:50:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterpdf.cpp:63:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (output.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterpdf.cpp:82:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterpdf.cpp:93: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 (output.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterpdf.cpp:131:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (latexFile.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterps.cpp:45:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterps.cpp:53: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 (output.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterps.cpp:69:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterps.cpp:77: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 (output.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterps.cpp:101:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (latexFile.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterps.cpp:166:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (postscriptFile.open(QFile::ReadOnly)) { data/kbibtex-0.9.81/src/io/fileexporterps.cpp:181:28: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (postscriptFile.open(QFile::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterris.cpp:43:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterris.cpp:64:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterrtf.cpp:45:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterrtf.cpp:53: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 (output.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterrtf.cpp:69:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterrtf.cpp:77: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 (output.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterrtf.cpp:101:19: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (latexFile.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexportertoolchain.cpp:115: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/kbibtex-0.9.81/src/io/fileexportertoolchain.cpp:119:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[buffersize]; data/kbibtex-0.9.81/src/io/fileexporterxml.cpp:46:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterxml.cpp:86:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterxslt.cpp:49:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterxslt.cpp:62: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). buffer.open(QIODevice::WriteOnly); data/kbibtex-0.9.81/src/io/fileexporterxslt.cpp:65:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QIODevice::ReadOnly); data/kbibtex-0.9.81/src/io/fileexporterxslt.cpp:83:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isWritable() && !iodevice->open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/io/fileexporterxslt.cpp:96: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). buffer.open(QIODevice::WriteOnly); data/kbibtex-0.9.81/src/io/fileexporterxslt.cpp:99:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QIODevice::ReadOnly); data/kbibtex-0.9.81/src/io/fileimporter.cpp:47: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). buffer.open(QIODevice::WriteOnly); data/kbibtex-0.9.81/src/io/fileimporter.cpp:51: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). buffer.open(QIODevice::ReadOnly); data/kbibtex-0.9.81/src/io/fileimporterbibtex.cpp:54:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isReadable() && !iodevice->open(QIODevice::ReadOnly)) { data/kbibtex-0.9.81/src/io/fileimporterbibutils.cpp:59:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isReadable() && !iodevice->open(QIODevice::ReadOnly)) { data/kbibtex-0.9.81/src/io/fileimporterpdf.cpp:43:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isReadable() && !iodevice->open(QIODevice::ReadOnly)) { data/kbibtex-0.9.81/src/io/fileimporterpdf.cpp:76: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). buffer.open(QIODevice::ReadOnly); data/kbibtex-0.9.81/src/io/fileimporterris.cpp:301:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!iodevice->isReadable() && !iodevice->open(QIODevice::ReadOnly)) { data/kbibtex-0.9.81/src/io/fileinfo.cpp:330: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 (f.open(QFile::ReadOnly)) { data/kbibtex-0.9.81/src/io/fileinfo.cpp:364: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/kbibtex-0.9.81/src/io/xsltransform.cpp:36: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 (xsltFile.open(QFile::ReadOnly)) { data/kbibtex-0.9.81/src/io/xsltransform.cpp:74: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). xsltBuffer.open(QBuffer::ReadOnly); data/kbibtex-0.9.81/src/networking/findpdf.cpp:206: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). if (resultItem.tempFilename->open()) { data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchabstract.cpp:498: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 (iconFile.open(QFile::WriteOnly)) { data/kbibtex-0.9.81/src/networking/onlinesearch/onlinesearchabstract.cpp:524: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/kbibtex-0.9.81/src/parts/part.cpp:358:24: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!inputfile.open(QIODevice::ReadOnly)) { data/kbibtex-0.9.81/src/parts/part.cpp:597: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 (file.open(QIODevice::WriteOnly)) { data/kbibtex-0.9.81/src/parts/part.cpp:611: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 (temporaryFile.open()) { data/kbibtex-0.9.81/src/processing/checkbibtex.cpp:77: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). buffer.open(QIODevice::WriteOnly); data/kbibtex-0.9.81/src/processing/checkbibtex.cpp:104:20: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QIODevice::ReadOnly); data/kbibtex-0.9.81/src/processing/journalabbreviations.cpp:47:25: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (journalFile.open(QFile::ReadOnly)) { data/kbibtex-0.9.81/src/processing/lyx.cpp:115:47: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!QFileInfo::exists(pipeName) || !pipe.open(QFile::WriteOnly)) { data/kbibtex-0.9.81/src/program/docklets/referencepreview.cpp:163: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 (tempFile.open()) { data/kbibtex-0.9.81/src/program/docklets/referencepreview.cpp:286:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QBuffer::WriteOnly); data/kbibtex-0.9.81/src/program/docklets/referencepreview.cpp:311:16: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). buffer.open(QBuffer::ReadOnly); data/kbibtex-0.9.81/src/program/mainwindow.cpp:344:66: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). OpenFileInfo *openFileInfo = OpenFileInfoManager::instance().open(url); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:465: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). ofi = p->open(fileUrl); data/kbibtex-0.9.81/src/program/openfileinfo.cpp:548: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). OpenFileInfo *OpenFileInfoManager::open(const QUrl &url) data/kbibtex-0.9.81/src/program/openfileinfo.cpp:590:29: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). OpenFileInfo *ofi = open(oldUrl); // krazy:exclude=syscalls data/kbibtex-0.9.81/src/program/openfileinfo.h:122: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). OpenFileInfo *open(const QUrl &url); data/kbibtex-0.9.81/src/test/kbibtexfilestest.cpp:112:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (rawDataFile.open(QFile::WriteOnly)) { data/kbibtex-0.9.81/src/test/kbibtexfilestest.cpp:142:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (rawDataFile.open(QFile::Append)) { data/kbibtex-0.9.81/src/test/kbibtexfilestest.cpp:259:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (file.open(QFile::ReadOnly)) { data/kbibtex-0.9.81/src/test/kbibtexfilestest.cpp:267:18: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(file.open(QFile::ReadOnly)); data/kbibtex-0.9.81/src/test/kbibtexfilestest.cpp:331:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (rawDataFile.open(QFile::Append)) { data/kbibtex-0.9.81/src/test/kbibtexfilestest.cpp:352:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (rawDataFile.open(QFile::Append)) { data/kbibtex-0.9.81/src/test/kbibtexfilestest.cpp:367:21: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (rawDataFile.open(QFile::Append)) { data/kbibtex-0.9.81/src/test/kbibtexfilestest.cpp:397:22: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). QVERIFY(tempFile.open()); data/kbibtex-0.9.81/src/test/kbibtexiotest.cpp:549: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). buffer.open(QBuffer::ReadOnly); data/kbibtex-0.9.81/src/test/kbibtexiotest.cpp:578: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). buffer.open(QBuffer::ReadOnly); data/kbibtex-0.9.81/src/test/kbibtexiotest.cpp:626: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). bufferDoubleCurleyBracketTitle.open(QBuffer::ReadOnly); data/kbibtex-0.9.81/src/test/kbibtexiotest.cpp:630: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). bufferSingleCurleyBracketTitle.open(QBuffer::ReadOnly); data/kbibtex-0.9.81/src/io/fileexportertoolchain.cpp:121:38: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). result = ((amount = file.read(buffer, buffersize)) > -1) && (device->write(buffer, amount) > -1); data/kbibtex-0.9.81/src/networking/urlchecker.cpp:109:48: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). const QByteArray data = reply->read(1024); data/kbibtex-0.9.81/src/parts/partfactory.cpp:34:77: [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). : aboutData(QStringLiteral("kbibtexpart"), i18n("KBibTeXPart"), strlen(KBIBTEX_GIT_INFO_STRING) > 0 ? QLatin1String(KBIBTEX_GIT_INFO_STRING ", near " KBIBTEX_VERSION_STRING) : QLatin1String(KBIBTEX_VERSION_STRING), i18n("A BibTeX editor by KDE"), KAboutLicense::GPL_V2, i18n("Copyright 2004-2019 Thomas Fischer"), QString(), QStringLiteral("https://userbase.kde.org/KBibTeX")) data/kbibtex-0.9.81/src/program/program.cpp:37:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(KBIBTEX_GIT_INFO_STRING) > 0) { data/kbibtex-0.9.81/src/program/program.cpp:48:70: [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). KAboutData aboutData(QStringLiteral("kbibtex"), i18n("KBibTeX"), strlen(KBIBTEX_GIT_INFO_STRING) > 0 ? QLatin1String(KBIBTEX_GIT_INFO_STRING ", near " KBIBTEX_VERSION_STRING) : QLatin1String(KBIBTEX_VERSION_STRING), i18n("A BibTeX editor by KDE"), KAboutLicense::GPL_V2, i18n("Copyright 2004-2019 Thomas Fischer"), QString(), QStringLiteral("https://userbase.kde.org/KBibTeX")); data/kbibtex-0.9.81/src/test/main.cpp:32:79: [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). KAboutData aboutData(QStringLiteral("kbibtextest"), i18n("KBibTeX Test"), strlen(KBIBTEX_GIT_INFO_STRING) > 0 ? QLatin1String(KBIBTEX_GIT_INFO_STRING ", near " KBIBTEX_VERSION_STRING) : QLatin1String(KBIBTEX_VERSION_STRING), i18n("A BibTeX editor by KDE"), KAboutLicense::GPL_V2, i18n("Copyright 2004-2019 Thomas Fischer"), QString(), QStringLiteral("https://userbase.kde.org/KBibTeX")); ANALYSIS SUMMARY: Hits = 115 Lines analyzed = 56920 in approximately 2.17 seconds (26252 lines/second) Physical Source Lines of Code (SLOC) = 40096 Hits@level = [0] 0 [1] 6 [2] 93 [3] 15 [4] 1 [5] 0 Hits@level+ = [0+] 115 [1+] 115 [2+] 109 [3+] 16 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 2.86812 [1+] 2.86812 [2+] 2.71848 [3+] 0.399042 [4+] 0.0249401 [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.