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/libaccounts-qt-1.15/Accounts/account-service.cpp Examining data/libaccounts-qt-1.15/Accounts/account-service.h Examining data/libaccounts-qt-1.15/Accounts/account.cpp Examining data/libaccounts-qt-1.15/Accounts/account.h Examining data/libaccounts-qt-1.15/Accounts/accountscommon.h Examining data/libaccounts-qt-1.15/Accounts/application.cpp Examining data/libaccounts-qt-1.15/Accounts/application.h Examining data/libaccounts-qt-1.15/Accounts/auth-data.cpp Examining data/libaccounts-qt-1.15/Accounts/auth-data.h Examining data/libaccounts-qt-1.15/Accounts/error.cpp Examining data/libaccounts-qt-1.15/Accounts/error.h Examining data/libaccounts-qt-1.15/Accounts/manager.cpp Examining data/libaccounts-qt-1.15/Accounts/manager.h Examining data/libaccounts-qt-1.15/Accounts/manager_p.h Examining data/libaccounts-qt-1.15/Accounts/provider.cpp Examining data/libaccounts-qt-1.15/Accounts/provider.h Examining data/libaccounts-qt-1.15/Accounts/service-type.cpp Examining data/libaccounts-qt-1.15/Accounts/service-type.h Examining data/libaccounts-qt-1.15/Accounts/service.cpp Examining data/libaccounts-qt-1.15/Accounts/service.h Examining data/libaccounts-qt-1.15/Accounts/utils.cpp Examining data/libaccounts-qt-1.15/Accounts/utils.h Examining data/libaccounts-qt-1.15/tests/tst_libaccounts.cpp FINAL RESULTS: data/libaccounts-qt-1.15/tests/tst_libaccounts.cpp:113:25: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. QDir dbroot(QString(getenv("ACCOUNTS"))); data/libaccounts-qt-1.15/Accounts/account.cpp:924:11: [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. const char *tmp[tokensCount + 1]; ANALYSIS SUMMARY: Hits = 2 Lines analyzed = 5852 in approximately 0.24 seconds (24682 lines/second) Physical Source Lines of Code (SLOC) = 3225 Hits@level = [0] 0 [1] 0 [2] 1 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 2 [1+] 2 [2+] 2 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 0.620155 [1+] 0.620155 [2+] 0.620155 [3+] 0.310078 [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.