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/kactivities-stats-5.74.0/autotests/ResultWatcherTest.cpp Examining data/kactivities-stats-5.74.0/autotests/quickcheck/tables/ResourceLink.h Examining data/kactivities-stats-5.74.0/autotests/quickcheck/tables/ResourceInfo.h Examining data/kactivities-stats-5.74.0/autotests/quickcheck/tables/ResourceScoreCache.h Examining data/kactivities-stats-5.74.0/autotests/quickcheck/tables/common.h Examining data/kactivities-stats-5.74.0/autotests/QueryTest.h Examining data/kactivities-stats-5.74.0/autotests/ResultWatcherTest.h Examining data/kactivities-stats-5.74.0/autotests/QueryTest.cpp Examining data/kactivities-stats-5.74.0/autotests/ResultSetTest.cpp Examining data/kactivities-stats-5.74.0/autotests/ResultSetQuickCheckTest.cpp Examining data/kactivities-stats-5.74.0/autotests/main.cpp Examining data/kactivities-stats-5.74.0/autotests/ResultSetQuickCheckTest.h Examining data/kactivities-stats-5.74.0/autotests/ResultSetTest.h Examining data/kactivities-stats-5.74.0/autotests/common/test.h Examining data/kactivities-stats-5.74.0/autotests/common/test.cpp Examining data/kactivities-stats-5.74.0/tests/model/window.h Examining data/kactivities-stats-5.74.0/tests/model/main.cpp Examining data/kactivities-stats-5.74.0/tests/model/window.cpp Examining data/kactivities-stats-5.74.0/src/cleaning.cpp Examining data/kactivities-stats-5.74.0/src/resultset.cpp Examining data/kactivities-stats-5.74.0/src/cleaning.h Examining data/kactivities-stats-5.74.0/src/resultwatcher.h Examining data/kactivities-stats-5.74.0/src/query.h Examining data/kactivities-stats-5.74.0/src/query.cpp Examining data/kactivities-stats-5.74.0/src/utils/d_ptr_implementation.h Examining data/kactivities-stats-5.74.0/src/utils/debug_and_return.h Examining data/kactivities-stats-5.74.0/src/utils/qsqlquery_iterator.cpp Examining data/kactivities-stats-5.74.0/src/utils/qsqlquery_iterator.h Examining data/kactivities-stats-5.74.0/src/utils/member_matcher.h Examining data/kactivities-stats-5.74.0/src/utils/lazy_val.h Examining data/kactivities-stats-5.74.0/src/utils/d_ptr.h Examining data/kactivities-stats-5.74.0/src/utils/slide.h Examining data/kactivities-stats-5.74.0/src/resultmodel.cpp Examining data/kactivities-stats-5.74.0/src/terms.cpp Examining data/kactivities-stats-5.74.0/src/resultset.h Examining data/kactivities-stats-5.74.0/src/activitiessync_p.cpp Examining data/kactivities-stats-5.74.0/src/activitiessync_p.h Examining data/kactivities-stats-5.74.0/src/resultmodel.h Examining data/kactivities-stats-5.74.0/src/resultset_iterator.cpp Examining data/kactivities-stats-5.74.0/src/resultwatcher.cpp Examining data/kactivities-stats-5.74.0/src/terms.h Examining data/kactivities-stats-5.74.0/src/common/database/schema/ResourcesDatabaseSchema.h Examining data/kactivities-stats-5.74.0/src/common/database/schema/ResourcesDatabaseSchema.cpp Examining data/kactivities-stats-5.74.0/src/common/database/Database.h Examining data/kactivities-stats-5.74.0/src/common/database/Database.cpp Examining data/kactivities-stats-5.74.0/src/common/dbus/common.h Examining data/kactivities-stats-5.74.0/src/common/specialvalues.h FINAL RESULTS: data/kactivities-stats-5.74.0/src/common/database/Database.cpp:80: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). m_open = m_database.open(); data/kactivities-stats-5.74.0/autotests/ResultSetQuickCheckTest.cpp:162:14: [1] (buffer) equal: Function does not check the second iterator for over-read conditions (CWE-126). This function is often discouraged by most C++ coding standards in favor of its safer alternatives provided since C++14. Consider using a form of this function that checks the second iterator before potentially overflowing it. if (!equal) { ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 7612 in approximately 0.28 seconds (26981 lines/second) Physical Source Lines of Code (SLOC) = 4987 Hits@level = [0] 0 [1] 1 [2] 1 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 2 [1+] 2 [2+] 1 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 0.401043 [1+] 0.401043 [2+] 0.200521 [3+] 0 [4+] 0 [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.