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/rmpi-0.6-9/inst/cslavePI.c
Examining data/rmpi-0.6-9/src/Rmpi.c
Examining data/rmpi-0.6-9/src/conversion.c
Examining data/rmpi-0.6-9/src/Rmpi.h
Examining data/rmpi-0.6-9/src/internal.c

FINAL RESULTS:

data/rmpi-0.6-9/src/Rmpi.c:1287:3:  [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(srdata, CHAR(STRING_ELT(sexp_data,0)));
data/rmpi-0.6-9/src/Rmpi.c:67:9:  [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 *fake_argv[1];
data/rmpi-0.6-9/src/Rmpi.c:184: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.
 	value = (char *)Calloc(INTEGER(sexp_valuelen)[0], char);  
data/rmpi-0.6-9/src/Rmpi.c:647:3:  [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 errmsg[MPI_MAX_ERROR_STRING];
data/rmpi-0.6-9/src/conversion.c:37: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 *tmp, spchar[1]=" ";
data/rmpi-0.6-9/src/internal.c:26: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 errmsg[MPI_MAX_ERROR_STRING];

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 1970 in approximately 0.07 seconds (29485 lines/second)
Physical Source Lines of Code (SLOC) = 1617
Hits@level = [0]  10 [1]   0 [2]   5 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  16 [1+]   6 [2+]   6 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 9.89487 [1+] 3.71058 [2+] 3.71058 [3+] 0.618429 [4+] 0.618429 [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.