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-password-0.5.3/rbcrack.c

FINAL RESULTS:

data/ruby-password-0.5.3/rbcrack.c:67:2:  [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(buffer, StringValuePtr(dict));
data/ruby-password-0.5.3/rbcrack.c:70:6:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	if (access(buffer, R_OK) != 0) {
data/ruby-password-0.5.3/rbcrack.c:68:2:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
	strcat(buffer, ".pwd");
data/ruby-password-0.5.3/rbcrack.c:66:18:  [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).
	buffer = malloc(strlen(StringValuePtr(dict)) + 8);

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 113 in approximately 0.02 seconds (5254 lines/second)
Physical Source Lines of Code (SLOC) = 48
Hits@level = [0]   0 [1]   1 [2]   1 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]   4 [1+]   4 [2+]   3 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 83.3333 [1+] 83.3333 [2+] 62.5 [3+] 41.6667 [4+] 41.6667 [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.