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/phodav-2.5/bin/avahi-common.c
Examining data/phodav-2.5/bin/avahi-common.h
Examining data/phodav-2.5/bin/chezdav.c
Examining data/phodav-2.5/bin/output-queue.c
Examining data/phodav-2.5/bin/output-queue.h
Examining data/phodav-2.5/bin/spice-webdavd.c
Examining data/phodav-2.5/libphodav/guuid.c
Examining data/phodav-2.5/libphodav/guuid.h
Examining data/phodav-2.5/libphodav/phodav-if.c
Examining data/phodav-2.5/libphodav/phodav-lock.c
Examining data/phodav-2.5/libphodav/phodav-lock.h
Examining data/phodav-2.5/libphodav/phodav-method-delete.c
Examining data/phodav-2.5/libphodav/phodav-method-get.c
Examining data/phodav-2.5/libphodav/phodav-method-lock.c
Examining data/phodav-2.5/libphodav/phodav-method-mkcol.c
Examining data/phodav-2.5/libphodav/phodav-method-movecopy.c
Examining data/phodav-2.5/libphodav/phodav-method-propfind.c
Examining data/phodav-2.5/libphodav/phodav-method-proppatch.c
Examining data/phodav-2.5/libphodav/phodav-method-put.c
Examining data/phodav-2.5/libphodav/phodav-method-unlock.c
Examining data/phodav-2.5/libphodav/phodav-multistatus.c
Examining data/phodav-2.5/libphodav/phodav-multistatus.h
Examining data/phodav-2.5/libphodav/phodav-path.c
Examining data/phodav-2.5/libphodav/phodav-path.h
Examining data/phodav-2.5/libphodav/phodav-priv.h
Examining data/phodav-2.5/libphodav/phodav-server.c
Examining data/phodav-2.5/libphodav/phodav-server.h
Examining data/phodav-2.5/libphodav/phodav-utils.c
Examining data/phodav-2.5/libphodav/phodav-utils.h
Examining data/phodav-2.5/libphodav/phodav-virtual-dir.c
Examining data/phodav-2.5/libphodav/phodav-virtual-dir.h
Examining data/phodav-2.5/libphodav/phodav.h
Examining data/phodav-2.5/tests/virtual-dir-server.c
Examining data/phodav-2.5/tests/virtual-dir.c

FINAL RESULTS:

data/phodav-2.5/tests/virtual-dir.c:105:7:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execl ("tests/virtual-dir-server", "virtual-dir-server", NULL);
data/phodav-2.5/bin/chezdav.c:160:14:  [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.
      path = g_get_home_dir ();
data/phodav-2.5/bin/spice-webdavd.c:852:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They 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 (!no_service && !getenv("DEBUG"))
data/phodav-2.5/libphodav/guuid.c:335:15:  [3] (random) g_random_int:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    ints[i] = g_random_int ();
data/phodav-2.5/libphodav/guuid.c:413:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy (uuid->bytes, digest, 16);
data/phodav-2.5/libphodav/guuid.c:204:11:  [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).
    len = strlen (str);
data/phodav-2.5/libphodav/guuid.c:398:16:  [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).
      length = strlen ((const gchar *)name);
data/phodav-2.5/libphodav/phodav-if.c:52: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).
    state->cur += strlen (token);
data/phodav-2.5/libphodav/phodav-if.c:83:29:  [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).
  str = g_string_sized_new (strlen (state->cur));
data/phodav-2.5/libphodav/phodav-lock.c:40:25:  [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).
  g_return_val_if_fail (strlen (token) == sizeof (lock->token), NULL);
data/phodav-2.5/libphodav/phodav-method-lock.c:154:18:  [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 len = strlen (hif);
data/phodav-2.5/libphodav/phodav-method-unlock.c:27:14:  [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 len = strlen (str);
data/phodav-2.5/libphodav/phodav-utils.c:23:15:  [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).
  gsize len = strlen (str);
data/phodav-2.5/tests/virtual-dir.c:56:48:  [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).
                                test_put_data, strlen (test_put_data));

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 6943 in approximately 0.18 seconds (38083 lines/second)
Physical Source Lines of Code (SLOC) = 4854
Hits@level = [0]   0 [1]   9 [2]   1 [3]   3 [4]   1 [5]   0
Hits@level+ = [0+]  14 [1+]  14 [2+]   5 [3+]   4 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 2.88422 [1+] 2.88422 [2+] 1.03008 [3+] 0.824063 [4+] 0.206016 [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.