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/gnome-color-manager-3.36.0/src/gcm-cell-renderer-color.c Examining data/gnome-color-manager-3.36.0/src/gcm-cell-renderer-color.h Examining data/gnome-color-manager-3.36.0/src/gcm-cell-renderer-profile-text.c Examining data/gnome-color-manager-3.36.0/src/gcm-cell-renderer-profile-text.h Examining data/gnome-color-manager-3.36.0/src/gcm-cie-widget.c Examining data/gnome-color-manager-3.36.0/src/gcm-cie-widget.h Examining data/gnome-color-manager-3.36.0/src/gcm-debug.c Examining data/gnome-color-manager-3.36.0/src/gcm-debug.h Examining data/gnome-color-manager-3.36.0/src/gcm-gamma-widget.c Examining data/gnome-color-manager-3.36.0/src/gcm-gamma-widget.h Examining data/gnome-color-manager-3.36.0/src/gcm-import.c Examining data/gnome-color-manager-3.36.0/src/gcm-inspect.c Examining data/gnome-color-manager-3.36.0/src/gcm-picker.c Examining data/gnome-color-manager-3.36.0/src/gcm-self-test.c Examining data/gnome-color-manager-3.36.0/src/gcm-trc-widget.c Examining data/gnome-color-manager-3.36.0/src/gcm-trc-widget.h Examining data/gnome-color-manager-3.36.0/src/gcm-utils.c Examining data/gnome-color-manager-3.36.0/src/gcm-utils.h Examining data/gnome-color-manager-3.36.0/src/gcm-viewer.c FINAL RESULTS: data/gnome-color-manager-3.36.0/src/gcm-viewer.c:363:65: [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. gtk_file_chooser_set_current_folder (GTK_FILE_CHOOSER(dialog), g_get_home_dir ()); ANALYSIS SUMMARY: Hits = 1 Lines analyzed = 5777 in approximately 0.19 seconds (29906 lines/second) Physical Source Lines of Code (SLOC) = 4462 Hits@level = [0] 0 [1] 0 [2] 0 [3] 1 [4] 0 [5] 0 Hits@level+ = [0+] 1 [1+] 1 [2+] 1 [3+] 1 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 0.224115 [1+] 0.224115 [2+] 0.224115 [3+] 0.224115 [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.