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/nullidentd-1.0/nullidentd.c

FINAL RESULTS:

data/nullidentd-1.0/nullidentd.c:146:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(getpid() ^ time(NULL));
data/nullidentd-1.0/nullidentd.c:83:12:  [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 buf[MAX_RANDOMID+1];
data/nullidentd-1.0/nullidentd.c:108: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		response[MAX_RESPONSE];
data/nullidentd-1.0/nullidentd.c:109: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		request[MAX_REQUEST];
data/nullidentd-1.0/nullidentd.c:57:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if( read( fd, &c, 1 ) != 1 ) {
data/nullidentd-1.0/nullidentd.c:129:6:  [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).
	if( strlen( userid ) > MAX_USERID ) {

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 170 in approximately 0.01 seconds (12824 lines/second)
Physical Source Lines of Code (SLOC) = 117
Hits@level = [0]   7 [1]   2 [2]   3 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  13 [1+]   6 [2+]   4 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 111.111 [1+] 51.2821 [2+] 34.188 [3+] 8.54701 [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.