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/notmuch-addrlookup-9/notmuch-addrlookup.c

FINAL RESULTS:

data/notmuch-addrlookup-9/notmuch-addrlookup.c:98:58:  [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.
    config_path = g_strdup_printf ("%s/.notmuch-config", g_get_home_dir ());

ANALYSIS SUMMARY:

Hits = 1
Lines analyzed = 384 in approximately 0.02 seconds (22587 lines/second)
Physical Source Lines of Code (SLOC) = 298
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+] 3.3557 [1+] 3.3557 [2+] 3.3557 [3+] 3.3557 [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.