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/thunar-dropbox-plugin-0.3.1/src/dropbox-communication.c
Examining data/thunar-dropbox-plugin-0.3.1/src/dropbox-communication.h
Examining data/thunar-dropbox-plugin-0.3.1/src/tdp-provider.c
Examining data/thunar-dropbox-plugin-0.3.1/src/tdp-provider.h
Examining data/thunar-dropbox-plugin-0.3.1/src/thunar-dropbox-plugin.c

FINAL RESULTS:

data/thunar-dropbox-plugin-0.3.1/src/dropbox-communication.c:55:9:  [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.
        g_get_home_dir()
data/thunar-dropbox-plugin-0.3.1/src/tdp-provider.c:209:27:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        char *real_path = realpath(path, NULL);
data/thunar-dropbox-plugin-0.3.1/src/dropbox-communication.c:61:22:  [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).
                   + strlen(address.sun_path);

ANALYSIS SUMMARY:

Hits = 3
Lines analyzed = 606 in approximately 0.03 seconds (24037 lines/second)
Physical Source Lines of Code (SLOC) = 356
Hits@level = [0]   2 [1]   1 [2]   0 [3]   2 [4]   0 [5]   0
Hits@level+ = [0+]   5 [1+]   3 [2+]   2 [3+]   2 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 14.0449 [1+] 8.42697 [2+] 5.61798 [3+] 5.61798 [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.