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/lxappearance-obconf-0.2.3/src/preview_update.h Examining data/lxappearance-obconf-0.2.3/src/tree.h Examining data/lxappearance-obconf-0.2.3/src/preview.h Examining data/lxappearance-obconf-0.2.3/src/appearance.c Examining data/lxappearance-obconf-0.2.3/src/appearance.h Examining data/lxappearance-obconf-0.2.3/src/preview.c Examining data/lxappearance-obconf-0.2.3/src/theme.h Examining data/lxappearance-obconf-0.2.3/src/theme.c Examining data/lxappearance-obconf-0.2.3/src/main.h Examining data/lxappearance-obconf-0.2.3/src/archive.h Examining data/lxappearance-obconf-0.2.3/src/preview_update.c Examining data/lxappearance-obconf-0.2.3/src/main.c Examining data/lxappearance-obconf-0.2.3/src/tree.c Examining data/lxappearance-obconf-0.2.3/src/archive.c FINAL RESULTS: data/lxappearance-obconf-0.2.3/src/archive.c:131:43: [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. dir = g_build_path(G_DIR_SEPARATOR_S, g_get_home_dir(), ".themes", NULL); data/lxappearance-obconf-0.2.3/src/theme.c:192:26: [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. p = g_build_filename(g_get_home_dir(), ".themes", NULL); data/lxappearance-obconf-0.2.3/src/appearance.c:263:37: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). font = RrFontOpen(rrinst, name, atoi(size), rr_weight, rr_slant); data/lxappearance-obconf-0.2.3/src/appearance.c:290:42: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if (!bold && !italic && !size && atoi(c+1)) data/lxappearance-obconf-0.2.3/src/appearance.c:323:37: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return RrFontOpen(rrinst, font, atoi(size), weight, slant); data/lxappearance-obconf-0.2.3/src/preview.c:796:23: [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). gint numbuttons = strlen(titlelayout); ANALYSIS SUMMARY: Hits = 6 Lines analyzed = 2472 in approximately 0.08 seconds (29565 lines/second) Physical Source Lines of Code (SLOC) = 1726 Hits@level = [0] 0 [1] 1 [2] 3 [3] 2 [4] 0 [5] 0 Hits@level+ = [0+] 6 [1+] 6 [2+] 5 [3+] 2 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 3.47625 [1+] 3.47625 [2+] 2.89687 [3+] 1.15875 [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.