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/r-cran-uuid-0.1.4/src/unparse.c
Examining data/r-cran-uuid-0.1.4/src/uuidP.h
Examining data/r-cran-uuid-0.1.4/src/gen_uuid.c
Examining data/r-cran-uuid-0.1.4/src/clear.c
Examining data/r-cran-uuid-0.1.4/src/parse.c
Examining data/r-cran-uuid-0.1.4/src/uuidd.h
Examining data/r-cran-uuid-0.1.4/src/compare.c
Examining data/r-cran-uuid-0.1.4/src/win32/config.h
Examining data/r-cran-uuid-0.1.4/src/R.c
Examining data/r-cran-uuid-0.1.4/src/copy.c
Examining data/r-cran-uuid-0.1.4/src/rand.c
Examining data/r-cran-uuid-0.1.4/src/unpack.c
Examining data/r-cran-uuid-0.1.4/src/pack.c
Examining data/r-cran-uuid-0.1.4/src/isnull.c
Examining data/r-cran-uuid-0.1.4/src/uuid.h

FINAL RESULTS:

data/r-cran-uuid-0.1.4/src/unparse.c:56:2:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	sprintf(out, fmt,
data/r-cran-uuid-0.1.4/src/gen_uuid.c:296:16:  [3] (random) jrand48:
  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.
	    *cp++ ^= (jrand48(tmp_seed) >> 7) & 0xFF;
data/r-cran-uuid-0.1.4/src/rand.c:122:34:  [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.
void uuid_srand(unsigned seed) { srand(seed); }
data/r-cran-uuid-0.1.4/src/R.c:8: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 c[40];
data/r-cran-uuid-0.1.4/src/gen_uuid.c:145:2:  [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[1024];
data/r-cran-uuid-0.1.4/src/gen_uuid.c:209:4:  [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(node_id, a, 6);
data/r-cran-uuid-0.1.4/src/gen_uuid.c:231:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fd = open("/dev/urandom", O_RDONLY);
data/r-cran-uuid-0.1.4/src/gen_uuid.c:233:7:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	fd = open("/dev/random", O_RDONLY | O_NONBLOCK);
data/r-cran-uuid-0.1.4/src/gen_uuid.c:351:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		state_fd = open(LIBUUID_CLOCK_FILE, O_RDWR|O_CREAT, 0660);
data/r-cran-uuid-0.1.4/src/gen_uuid.c:454:18:  [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 unsigned char node_id[6];
data/r-cran-uuid-0.1.4/src/gen_uuid.c:476: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(uu.node, node_id, 6);
data/r-cran-uuid-0.1.4/src/pack.c:67: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(out+10, uu->node, 6);
data/r-cran-uuid-0.1.4/src/parse.c:47:2:  [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[3];
data/r-cran-uuid-0.1.4/src/rand.c:56:10:  [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 tb[512];
data/r-cran-uuid-0.1.4/src/unpack.c:61: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(uu->node, ptr, 6);
data/r-cran-uuid-0.1.4/src/uuid.h:44:18:  [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.
typedef unsigned char uuid_t[16];
data/r-cran-uuid-0.1.4/src/gen_uuid.c:180:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(ifr.ifr_name, ifrp->ifr_name, IFNAMSIZ);
data/r-cran-uuid-0.1.4/src/gen_uuid.c:268:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    ssize_t x = read(fd, cp, n);
data/r-cran-uuid-0.1.4/src/gen_uuid.c:350:16:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		save_umask = umask(0);
data/r-cran-uuid-0.1.4/src/gen_uuid.c:352:10:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		(void) umask(save_umask);
data/r-cran-uuid-0.1.4/src/parse.c:49: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(in) != 36)

ANALYSIS SUMMARY:

Hits = 21
Lines analyzed = 1517 in approximately 0.07 seconds (22934 lines/second)
Physical Source Lines of Code (SLOC) = 795
Hits@level = [0]   3 [1]   5 [2]  13 [3]   2 [4]   1 [5]   0
Hits@level+ = [0+]  24 [1+]  21 [2+]  16 [3+]   3 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 30.1887 [1+] 26.4151 [2+] 20.1258 [3+] 3.77358 [4+] 1.25786 [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.