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/jpy-0.9.0/src/main/c/jpy_diag.c
Examining data/jpy-0.9.0/src/main/c/jpy_jarray.c
Examining data/jpy-0.9.0/src/main/c/jpy_jmethod.h
Examining data/jpy-0.9.0/src/main/c/jpy_module.h
Examining data/jpy-0.9.0/src/main/c/jpy_jtype.h
Examining data/jpy-0.9.0/src/main/c/jpy_conv.c
Examining data/jpy-0.9.0/src/main/c/jpy_jarray.h
Examining data/jpy-0.9.0/src/main/c/jpy_compat.c
Examining data/jpy-0.9.0/src/main/c/jpy_jfield.c
Examining data/jpy-0.9.0/src/main/c/jpy_jmethod.c
Examining data/jpy-0.9.0/src/main/c/jpy_conv.h
Examining data/jpy-0.9.0/src/main/c/jpy_diag.h
Examining data/jpy-0.9.0/src/main/c/jpy_jtype.c
Examining data/jpy-0.9.0/src/main/c/jpy_jfield.h
Examining data/jpy-0.9.0/src/main/c/jpy_jobj.h
Examining data/jpy-0.9.0/src/main/c/jpy_compat.h
Examining data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib_CallableKind.h
Examining data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib_Diag.h
Examining data/jpy-0.9.0/src/main/c/jni/org_jpy_DL.c
Examining data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib.c
Examining data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib.h
Examining data/jpy-0.9.0/src/main/c/jni/org_jpy_DL.h
Examining data/jpy-0.9.0/src/main/c/jpy_module.c
Examining data/jpy-0.9.0/src/main/c/jpy_jobj.c
Examining data/jpy-0.9.0/pysobug/mypymod.c
Examining data/jpy-0.9.0/pysobug/mypydl.c
Examining data/jpy-0.9.0/pysobug/mypy.c

FINAL RESULTS:

data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib.c:1097:13:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            sprintf(javaMessage,
data/jpy-0.9.0/src/main/c/jpy_conv.c:100: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(utfCharsCopy, utfChars);
data/jpy-0.9.0/src/main/c/jpy_diag.c:30:9:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vfprintf(stdout, format, args);
data/jpy-0.9.0/src/main/c/jpy_jtype.c:95:9:  [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((char*) resourceName, typeName);
data/jpy-0.9.0/src/main/c/jpy_jtype.c:1763:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(arrayItems, pyBuffer->buf, itemCount * itemSize);
data/jpy-0.9.0/src/main/c/jpy_jtype.c:1828:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pyBuffer->buf, arrayItems, pyBuffer->len);
data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib.c:1032:35:  [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).
#define JPY_NOT_AVAILABLE_MSG_LEN strlen(JPY_NOT_AVAILABLE_MSG)
data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib.c:1091:54:  [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).
                                (typeChars != NULL ? strlen(typeChars) : JPY_NOT_AVAILABLE_MSG_LEN)
data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib.c:1092:56:  [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).
                               + (valueChars != NULL ? strlen(valueChars) : JPY_NOT_AVAILABLE_MSG_LEN)
data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib.c:1093:57:  [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).
                               + (linenoChars != NULL ? strlen(linenoChars) : JPY_NOT_AVAILABLE_MSG_LEN)
data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib.c:1094:59:  [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).
                               + (filenameChars != NULL ? strlen(filenameChars) : JPY_NOT_AVAILABLE_MSG_LEN)
data/jpy-0.9.0/src/main/c/jni/org_jpy_PyLib.c:1095:60:  [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).
                               + (namespaceChars != NULL ? strlen(namespaceChars) : JPY_NOT_AVAILABLE_MSG_LEN) + 80);
data/jpy-0.9.0/src/main/c/jpy_conv.c:94:36:  [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).
    utfCharsCopy = PyMem_New(char, strlen(utfChars) + 1);
data/jpy-0.9.0/src/main/c/jpy_jtype.c:90:40:  [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).
        resourceName = PyMem_New(char, strlen(typeName) + 1);

ANALYSIS SUMMARY:

Hits = 14
Lines analyzed = 8215 in approximately 0.26 seconds (31549 lines/second)
Physical Source Lines of Code (SLOC) = 5830
Hits@level = [0]  34 [1]   8 [2]   2 [3]   0 [4]   4 [5]   0
Hits@level+ = [0+]  48 [1+]  14 [2+]   6 [3+]   4 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 8.23328 [1+] 2.40137 [2+] 1.02916 [3+] 0.686106 [4+] 0.686106 [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.