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/kgx-0.2.1/src/fp-vte-util.c Examining data/kgx-0.2.1/src/fp-vte-util.h Examining data/kgx-0.2.1/src/kgx-application.c Examining data/kgx-0.2.1/src/kgx-application.h Examining data/kgx-0.2.1/src/kgx-close-dialog-row.c Examining data/kgx-0.2.1/src/kgx-close-dialog-row.h Examining data/kgx-0.2.1/src/kgx-close-dialog.c Examining data/kgx-0.2.1/src/kgx-close-dialog.h Examining data/kgx-0.2.1/src/kgx-process-dummy.c Examining data/kgx-0.2.1/src/kgx-process.c Examining data/kgx-0.2.1/src/kgx-process.h Examining data/kgx-0.2.1/src/kgx-terminal.c Examining data/kgx-0.2.1/src/kgx-terminal.h Examining data/kgx-0.2.1/src/kgx-window.c Examining data/kgx-0.2.1/src/kgx-window.h Examining data/kgx-0.2.1/src/kgx.h Examining data/kgx-0.2.1/src/main.c Examining data/kgx-0.2.1/src/rgba.h FINAL RESULTS: data/kgx-0.2.1/src/fp-vte-util.c:194:25: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. working_directory = g_get_home_dir (); data/kgx-0.2.1/src/kgx-window.c:265:15: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. initial = g_get_home_dir (); data/kgx-0.2.1/src/kgx-window.c:820:10: [3] (buffer) g_get_home_dir: This function is synonymous with 'getenv("HOME")';it returns untrustable input if the environment can beset by an attacker. It 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. home = g_get_home_dir (); data/kgx-0.2.1/src/kgx-application.c:347:14: [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). half_msg = strlen (msg) / 2; data/kgx-0.2.1/src/kgx-window.c:823:59: [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). path + strlen (home)); ANALYSIS SUMMARY: Hits = 5 Lines analyzed = 3789 in approximately 0.09 seconds (41138 lines/second) Physical Source Lines of Code (SLOC) = 2313 Hits@level = [0] 0 [1] 2 [2] 0 [3] 3 [4] 0 [5] 0 Hits@level+ = [0+] 5 [1+] 5 [2+] 3 [3+] 3 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 2.16169 [1+] 2.16169 [2+] 1.29702 [3+] 1.29702 [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.