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/libdmx-1.1.4/include/X11/extensions/dmxext.h
Examining data/libdmx-1.1.4/src/dmx.c

FINAL RESULTS:

data/libdmx-1.1.4/src/dmx.c:444:9:  [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(buffer, displayName, length);
data/libdmx-1.1.4/src/dmx.c:783:9:  [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(buffer, attr->name, paddedLength);
data/libdmx-1.1.4/src/dmx.c:432:44:  [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                 = displayName ? strlen(displayName) : 0;
data/libdmx-1.1.4/src/dmx.c:772:43:  [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                 = attr->name ? strlen(attr->name) : 0;

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 1014 in approximately 0.04 seconds (23675 lines/second)
Physical Source Lines of Code (SLOC) = 708
Hits@level = [0]   0 [1]   2 [2]   2 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   2 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 5.64972 [1+] 5.64972 [2+] 2.82486 [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.