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/mpj-0.44+dfsg/test/mpi/perf/bcast_bench.c
Examining data/mpj-0.44+dfsg/test/mpi/perf/bandwidth.c
Examining data/mpj-0.44+dfsg/test/mpi/perf/barrier_bench.c
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_shared.h
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Intracomm.c
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Intracomm.h
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_NativeRecvRequest.c
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Group.h
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Group.c
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Comm.h
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Intercomm.h
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Intercomm.c
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_NativeSendRequest.h
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_NativeRecvRequest.h
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Comm.c
Examining data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_NativeSendRequest.c
Examining data/mpj-0.44+dfsg/src/xdev/mxdev/lib/xdev_mxdev_MXRecvRequest.h
Examining data/mpj-0.44+dfsg/src/xdev/mxdev/lib/xdev_mxdev_MXDevice.h
Examining data/mpj-0.44+dfsg/src/xdev/mxdev/lib/xdev_mxdev_MXSendRequest.h
Examining data/mpj-0.44+dfsg/src/xdev/mxdev/lib/xdev_mxdev_MXDevice.c
Examining data/mpj-0.44+dfsg/src/xdev/mxdev/lib/xdev_mxdev_MXSendRequest.c
Examining data/mpj-0.44+dfsg/src/xdev/mxdev/lib/mxdev_const.h
Examining data/mpj-0.44+dfsg/src/xdev/mxdev/lib/xdev_mxdev_MXRecvRequest.c

FINAL RESULTS:

data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Comm.c:385:5:  [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(sargs[i], (*env)->GetStringUTFChars(env, jc, 0));
data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Comm.c:387:5:  [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(sargs[i], (*env)->GetStringUTFChars(env, jc, 0));
data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Comm.c:364: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 name[MPI_MAX_PROCESSOR_NAME];
data/mpj-0.44+dfsg/src/mpjdev/natmpjdev/lib/mpjdev_natmpjdev_Comm.c:375:12:  [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).
    slen = strlen((*env)->GetStringUTFChars(env, jc, 0)) + 1; //why plus one?

ANALYSIS SUMMARY:

Hits = 4
Lines analyzed = 5483 in approximately 0.23 seconds (23637 lines/second)
Physical Source Lines of Code (SLOC) = 2762
Hits@level = [0]  35 [1]   1 [2]   1 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  39 [1+]   4 [2+]   3 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 14.1202 [1+] 1.44823 [2+] 1.08617 [3+] 0.724113 [4+] 0.724113 [5+]   0
Dot directories skipped = 2 (--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.