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/libwcat1-1.1/watchcat.c
Examining data/libwcat1-1.1/watchcat.h

FINAL RESULTS:

data/libwcat1-1.1/watchcat.c:127:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(addr.sun_path, DEVICE);
data/libwcat1-1.1/watchcat.c:138:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        count = snprintf(buf, CAT_BUFSIZE,
data/libwcat1-1.1/watchcat.c:146:17:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        count = snprintf(buf, CAT_BUFSIZE,
data/libwcat1-1.1/watchcat.c:20:8:  [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.
static char DEVICE[CAT_DEVICE_SIZE] = "/var/run/watchcat.socket";
data/libwcat1-1.1/watchcat.c:37:9:  [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 cred[CMSG_SPACE(sizeof(struct cmsgcred))];
data/libwcat1-1.1/watchcat.c:114: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 buf[CAT_BUFSIZE];
data/libwcat1-1.1/watchcat.c:132:9:  [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 linfo[121], *p;
data/libwcat1-1.1/watchcat.c:24:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(DEVICE, dev, CAT_DEVICE_SIZE);
data/libwcat1-1.1/watchcat.c:91:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        r = read(fd, buf, count);
data/libwcat1-1.1/watchcat.c:133:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(linfo, info, sizeof(linfo)-1);

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 212 in approximately 0.02 seconds (9549 lines/second)
Physical Source Lines of Code (SLOC) = 157
Hits@level = [0]   0 [1]   3 [2]   4 [3]   0 [4]   3 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]   7 [3+]   3 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 63.6943 [1+] 63.6943 [2+] 44.586 [3+] 19.1083 [4+] 19.1083 [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.