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/libxrandr-1.5.1/include/X11/extensions/Xrandr.h
Examining data/libxrandr-1.5.1/src/Xrandrint.h
Examining data/libxrandr-1.5.1/src/XrrMode.c
Examining data/libxrandr-1.5.1/src/XrrProvider.c
Examining data/libxrandr-1.5.1/src/XrrConfig.c
Examining data/libxrandr-1.5.1/src/XrrProviderProperty.c
Examining data/libxrandr-1.5.1/src/XrrMonitor.c
Examining data/libxrandr-1.5.1/src/XrrScreen.c
Examining data/libxrandr-1.5.1/src/Xrandr.c
Examining data/libxrandr-1.5.1/src/XrrCrtc.c
Examining data/libxrandr-1.5.1/src/XrrProperty.c
Examining data/libxrandr-1.5.1/src/XrrOutput.c

FINAL RESULTS:

data/libxrandr-1.5.1/src/XrrCrtc.c:465:5:  [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 (attr->pendingFilter, e, rep.pendingNbytesFilter);
data/libxrandr-1.5.1/src/XrrCrtc.c:474:2:  [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 (&f, e, 4);
data/libxrandr-1.5.1/src/XrrCrtc.c:484:5:  [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 (attr->currentFilter, e, rep.currentNbytesFilter);
data/libxrandr-1.5.1/src/XrrCrtc.c:493:2:  [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 (&f, e, 4);
data/libxrandr-1.5.1/src/XrrMode.c:46:5:  [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 (mode_info->name, name, nameLength);
data/libxrandr-1.5.1/src/XrrScreen.c:195:2:  [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 (names, wire_name, xrsr->modes[i].nameLength);
data/libxrandr-1.5.1/src/XrrCrtc.c:336:24:  [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).
    int			    nbytes = strlen (filter);

ANALYSIS SUMMARY:

Hits = 7
Lines analyzed = 4044 in approximately 0.12 seconds (34454 lines/second)
Physical Source Lines of Code (SLOC) = 3040
Hits@level = [0]   0 [1]   1 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   7 [1+]   7 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 2.30263 [1+] 2.30263 [2+] 1.97368 [3+]   0 [4+]   0 [5+]   0
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.