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/libxsettings-client-0.17/xsettings-client.h
Examining data/libxsettings-client-0.17/xsettings-common.h
Examining data/libxsettings-client-0.17/xsettings-client.c
Examining data/libxsettings-client-0.17/xsettings-common.c

FINAL RESULTS:

data/libxsettings-client-0.17/xsettings-client.c:255:7:  [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 (setting->name, buffer.pos, name_len);
data/libxsettings-client-0.17/xsettings-client.c:293:4:  [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 (setting->data.v_string, buffer.pos, v_int);
data/libxsettings-client-0.17/xsettings-client.c:441:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buffer[256];
data/libxsettings-client-0.17/xsettings-client.c:456:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(buffer, "_XSETTINGS_S%d", screen);
data/libxsettings-client-0.17/xsettings-common.c:46: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 (result->name, setting->name, str_len + 1);
data/libxsettings-client-0.17/xsettings-common.c:64:7:  [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 (result->data.v_string, setting->data.v_string, str_len + 1);
data/libxsettings-client-0.17/xsettings-common.c:41:13:  [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_len = strlen (setting->name);
data/libxsettings-client-0.17/xsettings-common.c:59:17:  [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_len = strlen (setting->data.v_string);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 978 in approximately 0.03 seconds (31414 lines/second)
Physical Source Lines of Code (SLOC) = 710
Hits@level = [0]   5 [1]   2 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  13 [1+]   8 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 18.3099 [1+] 11.2676 [2+] 8.4507 [3+]   0 [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.