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/enet-1.3.13+ds/peer.c
Examining data/enet-1.3.13+ds/win32.c
Examining data/enet-1.3.13+ds/list.c
Examining data/enet-1.3.13+ds/host.c
Examining data/enet-1.3.13+ds/callbacks.c
Examining data/enet-1.3.13+ds/compress.c
Examining data/enet-1.3.13+ds/include/enet/types.h
Examining data/enet-1.3.13+ds/include/enet/win32.h
Examining data/enet-1.3.13+ds/include/enet/enet.h
Examining data/enet-1.3.13+ds/include/enet/utility.h
Examining data/enet-1.3.13+ds/include/enet/list.h
Examining data/enet-1.3.13+ds/include/enet/time.h
Examining data/enet-1.3.13+ds/include/enet/protocol.h
Examining data/enet-1.3.13+ds/include/enet/callbacks.h
Examining data/enet-1.3.13+ds/include/enet/unix.h
Examining data/enet-1.3.13+ds/packet.c
Examining data/enet-1.3.13+ds/protocol.c
Examining data/enet-1.3.13+ds/unix.c

FINAL RESULTS:

data/enet-1.3.13+ds/packet.c:41:10:  [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 (packet -> data, data, dataLength);
data/enet-1.3.13+ds/packet.c:92: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 (newData, packet -> data, packet -> dataLength);
data/enet-1.3.13+ds/protocol.c:612:8:  [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 (startCommand -> packet -> data + fragmentOffset,
data/enet-1.3.13+ds/protocol.c:730:8:  [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 (startCommand -> packet -> data + fragmentOffset,
data/enet-1.3.13+ds/protocol.c:1035: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 (host -> packetData [1], header, headerSize);
data/enet-1.3.13+ds/unix.c:104:5:  [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 [2048];
data/enet-1.3.13+ds/unix.c:145: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 (name, addr, addrLen + 1);
data/enet-1.3.13+ds/unix.c:160:5:  [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 [2048];
data/enet-1.3.13+ds/unix.c:183:8:  [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 (name, hostEntry -> h_name, hostLen + 1);
data/enet-1.3.13+ds/win32.c:94: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 (name, addr, addrLen + 1);
data/enet-1.3.13+ds/win32.c:115:8:  [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 (name, hostEntry -> h_name, hostLen + 1);
data/enet-1.3.13+ds/unix.c:142:26:  [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).
        size_t addrLen = strlen(addr);
data/enet-1.3.13+ds/unix.c:180: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).
       size_t hostLen = strlen (hostEntry -> h_name);
data/enet-1.3.13+ds/win32.c:91:26:  [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).
        size_t addrLen = strlen(addr);
data/enet-1.3.13+ds/win32.c:112: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).
       size_t hostLen = strlen (hostEntry -> h_name);

ANALYSIS SUMMARY:

Hits = 15
Lines analyzed = 6342 in approximately 0.23 seconds (28029 lines/second)
Physical Source Lines of Code (SLOC) = 4734
Hits@level = [0]   3 [1]   4 [2]  11 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  18 [1+]  15 [2+]  11 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 3.80228 [1+] 3.16857 [2+] 2.32362 [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.