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-askpass-1.1/src/askpass.c
Examining data/r-cran-askpass-1.1/src/win32/win-askpass.c

FINAL RESULTS:

data/r-cran-askpass-1.1/src/askpass.c:11:22:  [4] (misc) getpass:
  This function is obsolete and not portable. It was in SUSv2 but removed by
  POSIX.2. What it does exactly varies considerably between systems,
  particularly in where its prompt is displayed and where it gets its data
  (e.g., /dev/tty, stdin, stderr, etc.). In addition, some implementations
  overflow buffers. (CWE-676, CWE-120, CWE-20). Make the specific calls to do
  exactly what you want. If you continue to use it, or write your own, be
  sure to zero the password as soon as possible to avoid leaving the
  cleartext password visible in the process' address space.
  const char *pass = getpass(text);
data/r-cran-askpass-1.1/src/win32/win-askpass.c:6: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 buf[1000], *p;
data/r-cran-askpass-1.1/src/win32/win-askpass.c:24:3:  [2] (buffer) TCHAR:
  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.
  TCHAR pszPwd[CREDUI_MAX_PASSWORD_LENGTH+1];
data/r-cran-askpass-1.1/src/win32/win-askpass.c:11:11:  [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).
  p = buf+strlen(buf) -1;
data/r-cran-askpass-1.1/src/win32/win-askpass.c:13:11:  [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).
  p = buf+strlen(buf) -1;
data/r-cran-askpass-1.1/src/win32/win-askpass.c:15:11:  [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).
  p = buf+strlen(buf) -1;

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 86 in approximately 0.01 seconds (7452 lines/second)
Physical Source Lines of Code (SLOC) = 76
Hits@level = [0]   2 [1]   3 [2]   2 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]   8 [1+]   6 [2+]   3 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 105.263 [1+] 78.9474 [2+] 39.4737 [3+] 13.1579 [4+] 13.1579 [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.