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/xdg-user-dirs-gtk-0.10/update.c
Examining data/xdg-user-dirs-gtk-0.10/parse.h
Examining data/xdg-user-dirs-gtk-0.10/parse.c

FINAL RESULTS:

data/xdg-user-dirs-gtk-0.10/parse.c:16:39:  [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.
  legacy_filename = g_build_filename (g_get_home_dir (), ".gtk-bookmarks", NULL);
data/xdg-user-dirs-gtk-0.10/parse.c:124:37:  [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.path = g_build_filename (g_get_home_dir (), unescaped, NULL);
data/xdg-user-dirs-gtk-0.10/update.c:241:41:  [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.
	      if (strcmp (old_entries[i].path, g_get_home_dir ()) == 0)
data/xdg-user-dirs-gtk-0.10/update.c:327:38:  [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.
	  if (entry && strcmp (entry->path, g_get_home_dir ()) != 0 &&
data/xdg-user-dirs-gtk-0.10/parse.c:93:19:  [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).
	  type_end = p + strlen (p) - 4;
data/xdg-user-dirs-gtk-0.10/parse.c:111:30:  [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).
	  d = unescaped = g_malloc (strlen (value) + 1);

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 614 in approximately 0.03 seconds (24129 lines/second)
Physical Source Lines of Code (SLOC) = 501
Hits@level = [0]   0 [1]   2 [2]   0 [3]   4 [4]   0 [5]   0
Hits@level+ = [0+]   6 [1+]   6 [2+]   4 [3+]   4 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 11.976 [1+] 11.976 [2+] 7.98403 [3+] 7.98403 [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.