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/ruby-posix-spawn-0.3.13/ext/posix-spawn.c

FINAL RESULTS:

data/ruby-posix-spawn-0.3.13/ext/posix-spawn.c:119:4:  [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 error_context[32];
data/ruby-posix-spawn-0.3.13/ext/posix-spawn.c:350: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 *cargv[argc + 1];
data/ruby-posix-spawn-0.3.13/ext/posix-spawn.c:277: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).
	const size_t name_len = strlen(name);
data/ruby-posix-spawn-0.3.13/ext/posix-spawn.c:285:7:  [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(ev) > name_len && !memcmp(ev, name, name_len) && ev[name_len] == '=') {
data/ruby-posix-spawn-0.3.13/ext/posix-spawn.c:302:21:  [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 cval_len = strlen(cval);
data/ruby-posix-spawn-0.3.13/ext/posix-spawn.c:309:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(*ep, name, name_len);
data/ruby-posix-spawn-0.3.13/ext/posix-spawn.c:311:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
		strncpy(*ep + name_len + 1, cval, cval_len);
data/ruby-posix-spawn-0.3.13/ext/posix-spawn.c:466:21:  [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 len = 15 + strlen(file) + 1 + 1;

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 486 in approximately 0.02 seconds (21553 lines/second)
Physical Source Lines of Code (SLOC) = 312
Hits@level = [0]   2 [1]   6 [2]   2 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  10 [1+]   8 [2+]   2 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 32.0513 [1+] 25.641 [2+] 6.41026 [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.