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/baloo-kf5-5.74.0/autotests/benchmarks/databasebenchmark.cpp
Examining data/baloo-kf5-5.74.0/autotests/benchmarks/positioncodecbenchmark.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/codecs/doctermscodectest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/codecs/positioncodectest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/codecs/postingcodectest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/phraseanditeratortest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/idtreedbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/postingdbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/singledbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/documentdatadbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/positiondbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/singledbtest.h
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/documenttimedbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/mtimedbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/documenturldbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/termgeneratortest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/transactiontest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/andpostingiteratortest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/postingiteratortest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/idfilenamedbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/documentdbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/orpostingiteratortest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/queryparsertest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/engine/documentiddbtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/regularexpcachebenchmark.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/pendingfilequeuetest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/basicindexingjobtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/unindexedfileiteratortest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/fileinfotest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/metadatamovertest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/kinotifytest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/propertyserializationtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/fileindexerconfigtest.h
Examining data/baloo-kf5-5.74.0/autotests/unit/file/fileindexerconfigtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/filtereddiriteratortest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/file/fileindexerconfigutils.h
Examining data/baloo-kf5-5.74.0/autotests/unit/file/filewatchtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/lib/queryserializationtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/lib/advancedqueryparsertest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/lib/filemonitortest.cpp
Examining data/baloo-kf5-5.74.0/autotests/unit/lib/filefetchjobtest.cpp
Examining data/baloo-kf5-5.74.0/autotests/integration/querytest.cpp
Examining data/baloo-kf5-5.74.0/autotests/integration/filesearchstoretest.cpp
Examining data/baloo-kf5-5.74.0/autotests/integration/dbstate.h
Examining data/baloo-kf5-5.74.0/autotests/integration/writetransactiontest.cpp
Examining data/baloo-kf5-5.74.0/tests/engine/writeiotest.cpp
Examining data/baloo-kf5-5.74.0/tests/engine/memorytest.cpp
Examining data/baloo-kf5-5.74.0/tests/engine/documenturldbtest.cpp
Examining data/baloo-kf5-5.74.0/tests/engine/basicindexingtest.cpp
Examining data/baloo-kf5-5.74.0/tests/benchmarks/unindexedfileiteratortest.cpp
Examining data/baloo-kf5-5.74.0/tests/file/indexerconfigtest.cpp
Examining data/baloo-kf5-5.74.0/tests/file/filtereddiriteratorbenchmark.cpp
Examining data/baloo-kf5-5.74.0/tests/file/storagedevicestest.cpp
Examining data/baloo-kf5-5.74.0/tests/file/util.h
Examining data/baloo-kf5-5.74.0/tests/file/inotify.cpp
Examining data/baloo-kf5-5.74.0/tests/file/remainingtimetest.cpp
Examining data/baloo-kf5-5.74.0/src/codecs/coding.cpp
Examining data/baloo-kf5-5.74.0/src/codecs/postingcodec.cpp
Examining data/baloo-kf5-5.74.0/src/codecs/postingcodec.h
Examining data/baloo-kf5-5.74.0/src/codecs/positioncodec.cpp
Examining data/baloo-kf5-5.74.0/src/codecs/positioncodec.h
Examining data/baloo-kf5-5.74.0/src/codecs/doctermscodec.cpp
Examining data/baloo-kf5-5.74.0/src/codecs/doctermscodec.h
Examining data/baloo-kf5-5.74.0/src/codecs/coding.h
Examining data/baloo-kf5-5.74.0/src/engine/vectorpostingiterator.cpp
Examining data/baloo-kf5-5.74.0/src/engine/vectorpositioninfoiterator.cpp
Examining data/baloo-kf5-5.74.0/src/engine/idutils.h
Examining data/baloo-kf5-5.74.0/src/engine/database.h
Examining data/baloo-kf5-5.74.0/src/engine/enginequery.cpp
Examining data/baloo-kf5-5.74.0/src/engine/document.cpp
Examining data/baloo-kf5-5.74.0/src/engine/phraseanditerator.cpp
Examining data/baloo-kf5-5.74.0/src/engine/termgenerator.cpp
Examining data/baloo-kf5-5.74.0/src/engine/postingiterator.h
Examining data/baloo-kf5-5.74.0/src/engine/valgrind.h
Examining data/baloo-kf5-5.74.0/src/engine/database.cpp
Examining data/baloo-kf5-5.74.0/src/engine/orpostingiterator.h
Examining data/baloo-kf5-5.74.0/src/engine/documenttimedb.h
Examining data/baloo-kf5-5.74.0/src/engine/positioninfo.h
Examining data/baloo-kf5-5.74.0/src/engine/idfilenamedb.cpp
Examining data/baloo-kf5-5.74.0/src/engine/experimental/databasesanitizer.cpp
Examining data/baloo-kf5-5.74.0/src/engine/experimental/databasesanitizer.h
Examining data/baloo-kf5-5.74.0/src/engine/termgenerator.h
Examining data/baloo-kf5-5.74.0/src/engine/fsutils.cpp
Examining data/baloo-kf5-5.74.0/src/engine/documenturldb.cpp
Examining data/baloo-kf5-5.74.0/src/engine/documentoperations.h
Examining data/baloo-kf5-5.74.0/src/engine/idtreedb.cpp
Examining data/baloo-kf5-5.74.0/src/engine/queryparser.h
Examining data/baloo-kf5-5.74.0/src/engine/postingiterator.cpp
Examining data/baloo-kf5-5.74.0/src/engine/andpostingiterator.cpp
Examining data/baloo-kf5-5.74.0/src/engine/writetransaction.h
Examining data/baloo-kf5-5.74.0/src/engine/document.h
Examining data/baloo-kf5-5.74.0/src/engine/enginequery.h
Examining data/baloo-kf5-5.74.0/src/engine/idfilenamedb.h
Examining data/baloo-kf5-5.74.0/src/engine/documenturldb.h
Examining data/baloo-kf5-5.74.0/src/engine/postingdb.cpp
Examining data/baloo-kf5-5.74.0/src/engine/documentdatadb.h
Examining data/baloo-kf5-5.74.0/src/engine/mtimedb.cpp
Examining data/baloo-kf5-5.74.0/src/engine/mtimedb.h
Examining data/baloo-kf5-5.74.0/src/engine/transaction.h
Examining data/baloo-kf5-5.74.0/src/engine/databasedbis.h
Examining data/baloo-kf5-5.74.0/src/engine/documentdb.cpp
Examining data/baloo-kf5-5.74.0/src/engine/documentiddb.h
Examining data/baloo-kf5-5.74.0/src/engine/vectorpositioninfoiterator.h
Examining data/baloo-kf5-5.74.0/src/engine/vectorpostingiterator.h
Examining data/baloo-kf5-5.74.0/src/engine/databasesize.h
Examining data/baloo-kf5-5.74.0/src/engine/global.h
Examining data/baloo-kf5-5.74.0/src/engine/positiondb.h
Examining data/baloo-kf5-5.74.0/src/engine/documenttimedb.cpp
Examining data/baloo-kf5-5.74.0/src/engine/global.cpp
Examining data/baloo-kf5-5.74.0/src/engine/writetransaction.cpp
Examining data/baloo-kf5-5.74.0/src/engine/documentiddb.cpp
Examining data/baloo-kf5-5.74.0/src/engine/transaction.cpp
Examining data/baloo-kf5-5.74.0/src/engine/andpostingiterator.h
Examining data/baloo-kf5-5.74.0/src/engine/documentdatadb.cpp
Examining data/baloo-kf5-5.74.0/src/engine/postingdb.h
Examining data/baloo-kf5-5.74.0/src/engine/fsutils.h
Examining data/baloo-kf5-5.74.0/src/engine/idtreedb.h
Examining data/baloo-kf5-5.74.0/src/engine/queryparser.cpp
Examining data/baloo-kf5-5.74.0/src/engine/phraseanditerator.h
Examining data/baloo-kf5-5.74.0/src/engine/documentdb.h
Examining data/baloo-kf5-5.74.0/src/engine/orpostingiterator.cpp
Examining data/baloo-kf5-5.74.0/src/engine/positiondb.cpp
Examining data/baloo-kf5-5.74.0/src/file/filewatch.cpp
Examining data/baloo-kf5-5.74.0/src/file/filecontentindexer.h
Examining data/baloo-kf5-5.74.0/src/file/extractor/result.h
Examining data/baloo-kf5-5.74.0/src/file/extractor/app.cpp
Examining data/baloo-kf5-5.74.0/src/file/extractor/main.cpp
Examining data/baloo-kf5-5.74.0/src/file/extractor/app.h
Examining data/baloo-kf5-5.74.0/src/file/extractor/result.cpp
Examining data/baloo-kf5-5.74.0/src/file/newfileindexer.h
Examining data/baloo-kf5-5.74.0/src/file/unindexedfileiterator.h
Examining data/baloo-kf5-5.74.0/src/file/metadatamover.cpp
Examining data/baloo-kf5-5.74.0/src/file/modifiedfileindexer.h
Examining data/baloo-kf5-5.74.0/src/file/mainadaptor.h
Examining data/baloo-kf5-5.74.0/src/file/basicindexingjob.cpp
Examining data/baloo-kf5-5.74.0/src/file/extractorprocess.h
Examining data/baloo-kf5-5.74.0/src/file/mainadaptor.cpp
Examining data/baloo-kf5-5.74.0/src/file/unindexedfileindexer.h
Examining data/baloo-kf5-5.74.0/src/file/powerstatemonitor.cpp
Examining data/baloo-kf5-5.74.0/src/file/fileexcludefilters.h
Examining data/baloo-kf5-5.74.0/src/file/fileindexscheduler.h
Examining data/baloo-kf5-5.74.0/src/file/indexcleaner.cpp
Examining data/baloo-kf5-5.74.0/src/file/newfileindexer.cpp
Examining data/baloo-kf5-5.74.0/src/file/pendingfile.cpp
Examining data/baloo-kf5-5.74.0/src/file/timeestimator.cpp
Examining data/baloo-kf5-5.74.0/src/file/extractorprocess.cpp
Examining data/baloo-kf5-5.74.0/src/file/pendingfilequeue.cpp
Examining data/baloo-kf5-5.74.0/src/file/regexpcache.cpp
Examining data/baloo-kf5-5.74.0/src/file/fileexcludefilters.cpp
Examining data/baloo-kf5-5.74.0/src/file/mainhub.cpp
Examining data/baloo-kf5-5.74.0/src/file/regexpcache.h
Examining data/baloo-kf5-5.74.0/src/file/kinotify.h
Examining data/baloo-kf5-5.74.0/src/file/pendingfilequeue.h
Examining data/baloo-kf5-5.74.0/src/file/mainhub.h
Examining data/baloo-kf5-5.74.0/src/file/filtereddiriterator.cpp
Examining data/baloo-kf5-5.74.0/src/file/filtereddiriterator.h
Examining data/baloo-kf5-5.74.0/src/file/firstrunindexer.cpp
Examining data/baloo-kf5-5.74.0/src/file/unindexedfileiterator.cpp
Examining data/baloo-kf5-5.74.0/src/file/xattrindexer.cpp
Examining data/baloo-kf5-5.74.0/src/file/indexerstate.h
Examining data/baloo-kf5-5.74.0/src/file/fileinfo.h
Examining data/baloo-kf5-5.74.0/src/file/fileindexerconfig.h
Examining data/baloo-kf5-5.74.0/src/file/indexcleaner.h
Examining data/baloo-kf5-5.74.0/src/file/migrator.h
Examining data/baloo-kf5-5.74.0/src/file/unindexedfileindexer.cpp
Examining data/baloo-kf5-5.74.0/src/file/main.cpp
Examining data/baloo-kf5-5.74.0/src/file/filecontentindexerprovider.h
Examining data/baloo-kf5-5.74.0/src/file/fileindexerconfig.cpp
Examining data/baloo-kf5-5.74.0/src/file/metadatamover.h
Examining data/baloo-kf5-5.74.0/src/file/fileinfo.cpp
Examining data/baloo-kf5-5.74.0/src/file/fileindexscheduler.cpp
Examining data/baloo-kf5-5.74.0/src/file/powerstatemonitor.h
Examining data/baloo-kf5-5.74.0/src/file/propertydata.cpp
Examining data/baloo-kf5-5.74.0/src/file/timeestimator.h
Examining data/baloo-kf5-5.74.0/src/file/priority.h
Examining data/baloo-kf5-5.74.0/src/file/filecontentindexer.cpp
Examining data/baloo-kf5-5.74.0/src/file/filewatch.h
Examining data/baloo-kf5-5.74.0/src/file/basicindexingjob.h
Examining data/baloo-kf5-5.74.0/src/file/priority.cpp
Examining data/baloo-kf5-5.74.0/src/file/modifiedfileindexer.cpp
Examining data/baloo-kf5-5.74.0/src/file/firstrunindexer.h
Examining data/baloo-kf5-5.74.0/src/file/filecontentindexerprovider.cpp
Examining data/baloo-kf5-5.74.0/src/file/xattrindexer.h
Examining data/baloo-kf5-5.74.0/src/file/pendingfile.h
Examining data/baloo-kf5-5.74.0/src/file/kinotify.cpp
Examining data/baloo-kf5-5.74.0/src/file/migrator.cpp
Examining data/baloo-kf5-5.74.0/src/file/storagedevices.cpp
Examining data/baloo-kf5-5.74.0/src/file/propertydata.h
Examining data/baloo-kf5-5.74.0/src/file/storagedevices.h
Examining data/baloo-kf5-5.74.0/src/qml/queryresultsmodel.cpp
Examining data/baloo-kf5-5.74.0/src/qml/experimental/monitor.cpp
Examining data/baloo-kf5-5.74.0/src/qml/experimental/baloomonitorplugin.h
Examining data/baloo-kf5-5.74.0/src/qml/experimental/monitor.h
Examining data/baloo-kf5-5.74.0/src/qml/experimental/baloomonitorplugin.cpp
Examining data/baloo-kf5-5.74.0/src/qml/balooplugin.cpp
Examining data/baloo-kf5-5.74.0/src/qml/queryresultsmodel.h
Examining data/baloo-kf5-5.74.0/src/qml/balooplugin.h
Examining data/baloo-kf5-5.74.0/src/lib/indexerconfig.cpp
Examining data/baloo-kf5-5.74.0/src/lib/resultiterator.h
Examining data/baloo-kf5-5.74.0/src/lib/advancedqueryparser.cpp
Examining data/baloo-kf5-5.74.0/src/lib/advancedqueryparser.h
Examining data/baloo-kf5-5.74.0/src/lib/term.cpp
Examining data/baloo-kf5-5.74.0/src/lib/searchstore.h
Examining data/baloo-kf5-5.74.0/src/lib/queryrunnable.h
Examining data/baloo-kf5-5.74.0/src/lib/filemonitor.cpp
Examining data/baloo-kf5-5.74.0/src/lib/searchstore.cpp
Examining data/baloo-kf5-5.74.0/src/lib/query.h
Examining data/baloo-kf5-5.74.0/src/lib/term.h
Examining data/baloo-kf5-5.74.0/src/lib/query.cpp
Examining data/baloo-kf5-5.74.0/src/lib/file.h
Examining data/baloo-kf5-5.74.0/src/lib/queryrunnable.cpp
Examining data/baloo-kf5-5.74.0/src/lib/taglistjob.h
Examining data/baloo-kf5-5.74.0/src/lib/indexerconfig.h
Examining data/baloo-kf5-5.74.0/src/lib/filemonitor.h
Examining data/baloo-kf5-5.74.0/src/lib/file.cpp
Examining data/baloo-kf5-5.74.0/src/lib/resultiterator.cpp
Examining data/baloo-kf5-5.74.0/src/lib/taglistjob.cpp
Examining data/baloo-kf5-5.74.0/src/kioslaves/timeline/kio_timeline.h
Examining data/baloo-kf5-5.74.0/src/kioslaves/timeline/timelinetools.cpp
Examining data/baloo-kf5-5.74.0/src/kioslaves/timeline/timelinetools.h
Examining data/baloo-kf5-5.74.0/src/kioslaves/timeline/kio_timeline.cpp
Examining data/baloo-kf5-5.74.0/src/kioslaves/search/kio_search.cpp
Examining data/baloo-kf5-5.74.0/src/kioslaves/search/kio_search.h
Examining data/baloo-kf5-5.74.0/src/kioslaves/tags/kio_tags.cpp
Examining data/baloo-kf5-5.74.0/src/kioslaves/tags/kio_tags.h
Examining data/baloo-kf5-5.74.0/src/kioslaves/common/udstools.h
Examining data/baloo-kf5-5.74.0/src/kioslaves/common/usergroupcache.h
Examining data/baloo-kf5-5.74.0/src/kioslaves/kded/baloosearchmodule.cpp
Examining data/baloo-kf5-5.74.0/src/kioslaves/kded/baloosearchmodule.h
Examining data/baloo-kf5-5.74.0/src/tools/baloosearch/main.cpp
Examining data/baloo-kf5-5.74.0/src/tools/experimental/baloodb/main.cpp
Examining data/baloo-kf5-5.74.0/src/tools/balooshow/main.cpp
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/indexer.h
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/monitorcommand.cpp
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/statuscommand.h
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/configcommand.cpp
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/monitorcommand.h
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/command.h
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/statuscommand.cpp
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/main.cpp
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/indexer.cpp
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/configcommand.h
Examining data/baloo-kf5-5.74.0/src/tools/balooctl/command.cpp

FINAL RESULTS:

data/baloo-kf5-5.74.0/src/kioslaves/common/udstools.h:45:47:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    uds.fastInsert(KIO::UDSEntry::UDS_ACCESS, access);
data/baloo-kf5-5.74.0/src/tools/balooctl/main.cpp:307:33:  [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.
        KFormat format(QLocale::system());
data/baloo-kf5-5.74.0/src/tools/balooctl/statuscommand.cpp:329:33:  [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.
        KFormat format(QLocale::system());
data/baloo-kf5-5.74.0/autotests/integration/querytest.cpp:49:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file.open(QIODevice::WriteOnly);
data/baloo-kf5-5.74.0/autotests/integration/querytest.cpp:70: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).
        db->open(Database::CreateDatabase);
data/baloo-kf5-5.74.0/autotests/integration/writetransactiontest.cpp:25: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).
        db->open(Database::CreateDatabase);
data/baloo-kf5-5.74.0/autotests/integration/writetransactiontest.cpp:49:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(QIODevice::WriteOnly);
data/baloo-kf5-5.74.0/autotests/unit/engine/documenturldbtest.cpp:21:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(QIODevice::WriteOnly);
data/baloo-kf5-5.74.0/autotests/unit/engine/transactiontest.cpp:24: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).
        db->open(Database::CreateDatabase);
data/baloo-kf5-5.74.0/autotests/unit/engine/transactiontest.cpp:40:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(QIODevice::WriteOnly);
data/baloo-kf5-5.74.0/autotests/unit/file/fileindexerconfigutils.h:102:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            file.open(QIODevice::WriteOnly);
data/baloo-kf5-5.74.0/autotests/unit/file/fileinfotest.cpp:24:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open(QIODevice::WriteOnly);
data/baloo-kf5-5.74.0/autotests/unit/file/fileinfotest.cpp:33:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        file.open();
data/baloo-kf5-5.74.0/autotests/unit/file/filewatchtest.cpp:36: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).
        f1.open(QIODevice::WriteOnly);
data/baloo-kf5-5.74.0/autotests/unit/file/filewatchtest.cpp:43: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).
        f1.open(QIODevice::Append | QIODevice::Text);
data/baloo-kf5-5.74.0/autotests/unit/file/filewatchtest.cpp:62: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).
    db.open(Baloo::Database::CreateDatabase);
data/baloo-kf5-5.74.0/autotests/unit/file/filewatchtest.cpp:139: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).
    db.open(Baloo::Database::CreateDatabase);
data/baloo-kf5-5.74.0/autotests/unit/file/kinotifytest.cpp:41:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(QIODevice::WriteOnly);
data/baloo-kf5-5.74.0/autotests/unit/file/metadatamovertest.cpp:57: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).
    m_db->open(Database::CreateDatabase);
data/baloo-kf5-5.74.0/autotests/unit/file/metadatamovertest.cpp:83:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open();
data/baloo-kf5-5.74.0/autotests/unit/file/metadatamovertest.cpp:105:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(QIODevice::WriteOnly);
data/baloo-kf5-5.74.0/autotests/unit/lib/filefetchjobtest.cpp:52: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).
    tempFile.open();
data/baloo-kf5-5.74.0/autotests/unit/lib/filefetchjobtest.cpp:65: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).
        db.open(Database::CreateDatabase);
data/baloo-kf5-5.74.0/src/codecs/postingcodec.cpp:29: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(vec.data(), arr.constData(), arr.size());
data/baloo-kf5-5.74.0/src/engine/database.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).
bool Database::open(OpenMode mode)
data/baloo-kf5-5.74.0/src/engine/database.cpp:159: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).
        m_dbis.postingDbi = PostingDB::open(txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:160: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).
        m_dbis.positionDBi = PositionDB::open(txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:162: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).
        m_dbis.docTermsDbi = DocumentDB::open("docterms", txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:163: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).
        m_dbis.docFilenameTermsDbi = DocumentDB::open("docfilenameterms", txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:164: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).
        m_dbis.docXattrTermsDbi = DocumentDB::open("docxatrrterms", txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:166: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).
        m_dbis.idTreeDbi = IdTreeDB::open(txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:167: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).
        m_dbis.idFilenameDbi = IdFilenameDB::open(txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:169: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).
        m_dbis.docTimeDbi = DocumentTimeDB::open(txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:170: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).
        m_dbis.docDataDbi = DocumentDataDB::open(txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:172: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).
        m_dbis.contentIndexingDbi = DocumentIdDB::open("indexingleveldb", txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:173:44:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        m_dbis.failedIdDbi = DocumentIdDB::open("failediddb", txn);
data/baloo-kf5-5.74.0/src/engine/database.cpp:175: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).
        m_dbis.mtimeDbi = MTimeDB::open(txn);
data/baloo-kf5-5.74.0/src/engine/database.h:62: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/baloo-kf5-5.74.0/src/engine/documentdatadb.cpp:36: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).
MDB_dbi DocumentDataDB::open(MDB_txn* txn)
data/baloo-kf5-5.74.0/src/engine/documentdatadb.h:24: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).
    static MDB_dbi open(MDB_txn* txn);
data/baloo-kf5-5.74.0/src/engine/documentdb.cpp:38: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).
MDB_dbi DocumentDB::open(const char* name, MDB_txn* txn)
data/baloo-kf5-5.74.0/src/engine/documentdb.h:25: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).
    static MDB_dbi open(const char* name, MDB_txn* txn);
data/baloo-kf5-5.74.0/src/engine/documentiddb.cpp:37:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
MDB_dbi DocumentIdDB::open(const char* name, MDB_txn* txn)
data/baloo-kf5-5.74.0/src/engine/documentiddb.h:24: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).
    static MDB_dbi open(const char* name, MDB_txn* txn);
data/baloo-kf5-5.74.0/src/engine/documenttimedb.cpp:37: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).
MDB_dbi DocumentTimeDB::open(MDB_txn* txn)
data/baloo-kf5-5.74.0/src/engine/documenttimedb.h:26: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).
    static MDB_dbi open(MDB_txn* txn);
data/baloo-kf5-5.74.0/src/engine/fsutils.cpp:40: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).
    const int fd = open(qPrintable(path), O_RDONLY);
data/baloo-kf5-5.74.0/src/engine/idfilenamedb.cpp:37:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
MDB_dbi IdFilenameDB::open(MDB_txn* txn)
data/baloo-kf5-5.74.0/src/engine/idfilenamedb.cpp:59: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(data.data(), &path.parentId, 8);
data/baloo-kf5-5.74.0/src/engine/idfilenamedb.cpp:60: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(data.data() + 8, path.name.data(), path.name.size());
data/baloo-kf5-5.74.0/src/engine/idfilenamedb.h:25: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).
    static MDB_dbi open(MDB_txn* txn);
data/baloo-kf5-5.74.0/src/engine/idtreedb.cpp:36: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).
MDB_dbi IdTreeDB::open(MDB_txn* txn)
data/baloo-kf5-5.74.0/src/engine/idtreedb.cpp:84: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(list.data(), val.mv_data, val.mv_size);
data/baloo-kf5-5.74.0/src/engine/idtreedb.cpp:179:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(list.data(), val.mv_data, val.mv_size);
data/baloo-kf5-5.74.0/src/engine/idtreedb.h:26: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).
    static MDB_dbi open(MDB_txn* txn);
data/baloo-kf5-5.74.0/src/engine/idutils.h:27: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(&res, arr, sizeof(arr));
data/baloo-kf5-5.74.0/src/engine/mtimedb.cpp:39: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).
MDB_dbi MTimeDB::open(MDB_txn* txn)
data/baloo-kf5-5.74.0/src/engine/mtimedb.h:31: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).
    static MDB_dbi open(MDB_txn* txn);
data/baloo-kf5-5.74.0/src/engine/positiondb.cpp:41: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).
MDB_dbi PositionDB::open(MDB_txn* txn)
data/baloo-kf5-5.74.0/src/engine/positiondb.h:30: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).
    static MDB_dbi open(MDB_txn* txn);
data/baloo-kf5-5.74.0/src/engine/postingdb.cpp:39: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).
MDB_dbi PostingDB::open(MDB_txn* txn)
data/baloo-kf5-5.74.0/src/engine/postingdb.h:34: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).
    static MDB_dbi open(MDB_txn* txn);
data/baloo-kf5-5.74.0/src/file/extractor/app.cpp:40:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    m_input.open(STDIN_FILENO, QIODevice::ReadOnly | QIODevice::Unbuffered );
data/baloo-kf5-5.74.0/src/file/extractor/app.cpp:74:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (!db->open(Database::ReadWriteDatabase)) {
data/baloo-kf5-5.74.0/src/file/kinotify.cpp:92: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();
data/baloo-kf5-5.74.0/src/file/kinotify.cpp:178: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).
    void open() {
data/baloo-kf5-5.74.0/src/file/main.cpp:63: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 (!db->open(Baloo::Database::CreateDatabase)) {
data/baloo-kf5-5.74.0/src/file/main.cpp:71: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 (!db->open(Baloo::Database::CreateDatabase)) {
data/baloo-kf5-5.74.0/src/lib/file.cpp:86: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 (!db->open(Database::ReadOnlyDatabase)) {
data/baloo-kf5-5.74.0/src/lib/searchstore.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).
    if (!m_db->open(Database::ReadOnlyDatabase)) {
data/baloo-kf5-5.74.0/src/lib/taglistjob.cpp:36: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 (!db->open(Database::ReadOnlyDatabase)) {
data/baloo-kf5-5.74.0/src/qml/experimental/monitor.cpp:106: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 (db->open(Baloo::Database::ReadOnlyDatabase)) {
data/baloo-kf5-5.74.0/src/tools/balooctl/main.cpp:205: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 (!db->open(Database::ReadWriteDatabase)) {
data/baloo-kf5-5.74.0/src/tools/balooctl/main.cpp:244: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 (!db->open(Database::ReadWriteDatabase)) {
data/baloo-kf5-5.74.0/src/tools/balooctl/main.cpp:269: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 (!db->open(Database::ReadOnlyDatabase)) {
data/baloo-kf5-5.74.0/src/tools/balooctl/main.cpp:295: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 (!db->open(Database::ReadOnlyDatabase)) {
data/baloo-kf5-5.74.0/src/tools/balooctl/statuscommand.cpp:277: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 (!db->open(Database::ReadOnlyDatabase)) {
data/baloo-kf5-5.74.0/src/tools/balooshow/main.cpp:90: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 (!db->open(Baloo::Database::ReadOnlyDatabase)) {
data/baloo-kf5-5.74.0/src/tools/experimental/baloodb/main.cpp:218: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 (!db->open(Database::ReadOnlyDatabase)) {
data/baloo-kf5-5.74.0/src/tools/experimental/baloodb/main.cpp:226:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (!db->open(Database::ReadOnlyDatabase)) {
data/baloo-kf5-5.74.0/src/tools/experimental/baloodb/main.cpp:236: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 (!db->open(dbMode)) {
data/baloo-kf5-5.74.0/tests/benchmarks/unindexedfileiteratortest.cpp:28: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).
    db.open(Baloo::Database::CreateDatabase);
data/baloo-kf5-5.74.0/tests/engine/basicindexingtest.cpp:30: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).
    db.open(Baloo::Database::CreateDatabase);
data/baloo-kf5-5.74.0/tests/engine/writeiotest.cpp:41: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).
    db.open(Baloo::Database::CreateDatabase);
data/baloo-kf5-5.74.0/tests/file/remainingtimetest.cpp:81: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).
    m_db.open(Baloo::Database::CreateDatabase);
data/baloo-kf5-5.74.0/tests/file/util.h:18:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file.open(QIODevice::ReadOnly | QIODevice::Text);
data/baloo-kf5-5.74.0/src/file/kinotify.cpp:325:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    const int len = read(socket, buffer, avail);
data/baloo-kf5-5.74.0/src/lib/searchstore.cpp:166:16:  [1] (obsolete) ulimit:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name, which is NOT obsolete) (CWE-676). Use getrlimit(2),
  setrlimit(2), and sysconf(3) instead.
        while (ulimit && it->next()) {
data/baloo-kf5-5.74.0/tests/file/util.h:40:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        QString read(QStringLiteral("read_bytes: "));
data/baloo-kf5-5.74.0/tests/file/util.h:41:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (str.startsWith(read)) {
data/baloo-kf5-5.74.0/tests/file/util.h:42:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ulong amt = str.midRef(read.size()).toULong();

ANALYSIS SUMMARY:

Hits = 91
Lines analyzed = 33889 in approximately 0.85 seconds (40044 lines/second)
Physical Source Lines of Code (SLOC) = 24730
Hits@level = [0]   3 [1]   5 [2]  83 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  94 [1+]  91 [2+]  86 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 3.80105 [1+] 3.67974 [2+] 3.47756 [3+] 0.12131 [4+] 0.12131 [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.