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/kpeople-5.74.0/autotests/fakecontactsource.cpp Examining data/kpeople-5.74.0/autotests/personsproxymodeltest.h Examining data/kpeople-5.74.0/autotests/persondatatests.cpp Examining data/kpeople-5.74.0/autotests/personsmodeltest.cpp Examining data/kpeople-5.74.0/autotests/fakecontactsource.h Examining data/kpeople-5.74.0/autotests/personsmodeltest.h Examining data/kpeople-5.74.0/autotests/personsproxymodeltest.cpp Examining data/kpeople-5.74.0/autotests/persondatatests.h Examining data/kpeople-5.74.0/examples/duplicatesdialog.cpp Examining data/kpeople-5.74.0/examples/duplicates.cpp Examining data/kpeople-5.74.0/examples/contactlistwidgets.cpp Examining data/kpeople-5.74.0/examples/personwidget.cpp Examining data/kpeople-5.74.0/examples/mergededicateddialog.cpp Examining data/kpeople-5.74.0/examples/contactlistqml.cpp Examining data/kpeople-5.74.0/src/personpluginmanager.cpp Examining data/kpeople-5.74.0/src/personmanager.cpp Examining data/kpeople-5.74.0/src/widgets/mergedialog.h Examining data/kpeople-5.74.0/src/widgets/actions.cpp Examining data/kpeople-5.74.0/src/widgets/persondetailsview.h Examining data/kpeople-5.74.0/src/widgets/abstractfieldwidgetfactory.h Examining data/kpeople-5.74.0/src/widgets/mergedelegate.h Examining data/kpeople-5.74.0/src/widgets/persondetailsview.cpp Examining data/kpeople-5.74.0/src/widgets/mergedialog.cpp Examining data/kpeople-5.74.0/src/widgets/persondetailsdialog.h Examining data/kpeople-5.74.0/src/widgets/mergedelegate.cpp Examining data/kpeople-5.74.0/src/widgets/persondetailsdialog.cpp Examining data/kpeople-5.74.0/src/widgets/abstractfieldwidgetfactory.cpp Examining data/kpeople-5.74.0/src/widgets/actions.h Examining data/kpeople-5.74.0/src/widgets/plugins/emaildetailswidget.cpp Examining data/kpeople-5.74.0/src/widgets/plugins/emaildetailswidget.h Examining data/kpeople-5.74.0/src/widgets/plugins/phonedetailswidget.h Examining data/kpeople-5.74.0/src/widgets/plugins/personpresentationwidget.cpp Examining data/kpeople-5.74.0/src/widgets/plugins/mergecontactswidget.h Examining data/kpeople-5.74.0/src/widgets/plugins/phonedetailswidget.cpp Examining data/kpeople-5.74.0/src/widgets/plugins/personpresentationwidget.h Examining data/kpeople-5.74.0/src/widgets/plugins/mergecontactswidget.cpp Examining data/kpeople-5.74.0/src/personpluginmanager.h Examining data/kpeople-5.74.0/src/metacontact.cpp Examining data/kpeople-5.74.0/src/metacontact_p.h Examining data/kpeople-5.74.0/src/duplicatesfinder.cpp Examining data/kpeople-5.74.0/src/personsmodel.h Examining data/kpeople-5.74.0/src/declarative/personactionsmodel.cpp Examining data/kpeople-5.74.0/src/declarative/declarativepersondata.cpp Examining data/kpeople-5.74.0/src/declarative/peopleqmlplugin.h Examining data/kpeople-5.74.0/src/declarative/personactionsmodel_p.h Examining data/kpeople-5.74.0/src/declarative/declarativepersondata.h Examining data/kpeople-5.74.0/src/declarative/peopleqmlplugin.cpp Examining data/kpeople-5.74.0/src/backends/basepersonsdatasource.h Examining data/kpeople-5.74.0/src/backends/abstracteditablecontact.cpp Examining data/kpeople-5.74.0/src/backends/abstracteditablecontact.h Examining data/kpeople-5.74.0/src/backends/defaultcontactmonitor_p.h Examining data/kpeople-5.74.0/src/backends/abstractpersonaction.cpp Examining data/kpeople-5.74.0/src/backends/basepersonsdatasource.cpp Examining data/kpeople-5.74.0/src/backends/abstractcontact.cpp Examining data/kpeople-5.74.0/src/backends/contactmonitor.h Examining data/kpeople-5.74.0/src/backends/abstractpersonaction.h Examining data/kpeople-5.74.0/src/backends/abstractcontact.h Examining data/kpeople-5.74.0/src/backends/allcontactsmonitor.cpp Examining data/kpeople-5.74.0/src/backends/defaultcontactmonitor.cpp Examining data/kpeople-5.74.0/src/backends/allcontactsmonitor.h Examining data/kpeople-5.74.0/src/backends/contactmonitor.cpp Examining data/kpeople-5.74.0/src/persondata.h Examining data/kpeople-5.74.0/src/persondata.cpp Examining data/kpeople-5.74.0/src/match.cpp Examining data/kpeople-5.74.0/src/personssortfilterproxymodel.h Examining data/kpeople-5.74.0/src/matchessolver_p.h Examining data/kpeople-5.74.0/src/personssortfilterproxymodel.cpp Examining data/kpeople-5.74.0/src/matchessolver.cpp Examining data/kpeople-5.74.0/src/duplicatesfinder_p.h Examining data/kpeople-5.74.0/src/match_p.h Examining data/kpeople-5.74.0/src/personsmodel.cpp Examining data/kpeople-5.74.0/src/global.h Examining data/kpeople-5.74.0/src/global.cpp Examining data/kpeople-5.74.0/src/personmanager_p.h Examining data/kpeople-5.74.0/src/plugins/akonadi/akonadidatasource.h Examining data/kpeople-5.74.0/src/plugins/akonadi/akonadidatasource.cpp FINAL RESULTS: data/kpeople-5.74.0/autotests/persondatatests.cpp:31: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). QVERIFY(m_database.open()); data/kpeople-5.74.0/autotests/personsmodeltest.cpp:27: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). QVERIFY(m_database.open()); data/kpeople-5.74.0/autotests/personsproxymodeltest.cpp:27: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). QVERIFY(m_database.open()); data/kpeople-5.74.0/src/personmanager.cpp:59: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 (!m_db.open()) { data/kpeople-5.74.0/src/personmanager.cpp:102:38: [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). query.bindValue(0, personUri.mid(strlen("kpeople://"))); data/kpeople-5.74.0/src/personmanager.cpp:183:58: [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). updateQuery.bindValue(0, personUriString.mid(strlen("kpeople://"))); data/kpeople-5.74.0/src/personmanager.cpp:214:58: [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). insertQuery.bindValue(1, personUriString.mid(strlen("kpeople://"))); //strip kpeople:// data/kpeople-5.74.0/src/personmanager.cpp:255:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). query.bindValue(0, id.mid(strlen("kpeople://"))); ANALYSIS SUMMARY: Hits = 8 Lines analyzed = 6230 in approximately 0.14 seconds (43000 lines/second) Physical Source Lines of Code (SLOC) = 4108 Hits@level = [0] 0 [1] 4 [2] 4 [3] 0 [4] 0 [5] 0 Hits@level+ = [0+] 8 [1+] 8 [2+] 4 [3+] 0 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 1.94742 [1+] 1.94742 [2+] 0.97371 [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.