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/lxqt-sudo-0.14.1/main.cpp Examining data/lxqt-sudo-0.14.1/passworddialog.cpp Examining data/lxqt-sudo-0.14.1/passworddialog.h Examining data/lxqt-sudo-0.14.1/sudo.h Examining data/lxqt-sudo-0.14.1/sudo.cpp FINAL RESULTS: data/lxqt-sudo-0.14.1/sudo.cpp:303:5: [4] (shell) execvp: 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. execvp(params[0], const_cast<char **>(params.get())); data/lxqt-sudo-0.14.1/sudo.cpp:276:37: [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. char const * const env_lc_all = getenv("LC_ALL"); data/lxqt-sudo-0.14.1/sudo.cpp:248:48: [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. std::unique_ptr<char const *[]> params{new char const *[params_cnt]}; ANALYSIS SUMMARY: Hits = 3 Lines analyzed = 670 in approximately 0.04 seconds (18968 lines/second) Physical Source Lines of Code (SLOC) = 422 Hits@level = [0] 0 [1] 0 [2] 1 [3] 1 [4] 1 [5] 0 Hits@level+ = [0+] 3 [1+] 3 [2+] 3 [3+] 2 [4+] 1 [5+] 0 Hits/KSLOC@level+ = [0+] 7.109 [1+] 7.109 [2+] 7.109 [3+] 4.73934 [4+] 2.36967 [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.