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/jcc-3.6/_jcc2/boot.cpp Examining data/jcc-3.6/_jcc2/java/util/Iterator.cpp Examining data/jcc-3.6/_jcc2/java/util/Enumeration.h Examining data/jcc-3.6/_jcc2/java/util/Enumeration.cpp Examining data/jcc-3.6/_jcc2/java/util/Iterator.h Examining data/jcc-3.6/_jcc2/java/io/PrintWriter.cpp Examining data/jcc-3.6/_jcc2/java/io/__init__.cpp Examining data/jcc-3.6/_jcc2/java/io/StringWriter.h Examining data/jcc-3.6/_jcc2/java/io/StringWriter.cpp Examining data/jcc-3.6/_jcc2/java/io/Writer.h Examining data/jcc-3.6/_jcc2/java/io/PrintWriter.h Examining data/jcc-3.6/_jcc2/java/io/Writer.cpp Examining data/jcc-3.6/_jcc2/java/lang/RuntimeException.h Examining data/jcc-3.6/_jcc2/java/lang/Float.h Examining data/jcc-3.6/_jcc2/java/lang/Short.h Examining data/jcc-3.6/_jcc2/java/lang/Throwable.cpp Examining data/jcc-3.6/_jcc2/java/lang/Exception.cpp Examining data/jcc-3.6/_jcc2/java/lang/Long.cpp Examining data/jcc-3.6/_jcc2/java/lang/Character.cpp Examining data/jcc-3.6/_jcc2/java/lang/__init__.cpp Examining data/jcc-3.6/_jcc2/java/lang/Object.cpp Examining data/jcc-3.6/_jcc2/java/lang/Byte.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/Type.h Examining data/jcc-3.6/_jcc2/java/lang/reflect/TypeVariable.h Examining data/jcc-3.6/_jcc2/java/lang/reflect/WildcardType.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/GenericArrayType.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/ParameterizedType.h Examining data/jcc-3.6/_jcc2/java/lang/reflect/Modifier.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/Field.h Examining data/jcc-3.6/_jcc2/java/lang/reflect/__init__.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/Method.h Examining data/jcc-3.6/_jcc2/java/lang/reflect/Constructor.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/Constructor.h Examining data/jcc-3.6/_jcc2/java/lang/reflect/ParameterizedType.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/GenericDeclaration.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/Field.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/Method.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/GenericArrayType.h Examining data/jcc-3.6/_jcc2/java/lang/reflect/TypeVariable.cpp Examining data/jcc-3.6/_jcc2/java/lang/reflect/GenericDeclaration.h Examining data/jcc-3.6/_jcc2/java/lang/reflect/Modifier.h Examining data/jcc-3.6/_jcc2/java/lang/reflect/WildcardType.h Examining data/jcc-3.6/_jcc2/java/lang/reflect/Type.cpp Examining data/jcc-3.6/_jcc2/java/lang/String.cpp Examining data/jcc-3.6/_jcc2/java/lang/Long.h Examining data/jcc-3.6/_jcc2/java/lang/Character.h Examining data/jcc-3.6/_jcc2/java/lang/Boolean.h Examining data/jcc-3.6/_jcc2/java/lang/RuntimeException.cpp Examining data/jcc-3.6/_jcc2/java/lang/Float.cpp Examining data/jcc-3.6/_jcc2/java/lang/Throwable.h Examining data/jcc-3.6/_jcc2/java/lang/Short.cpp Examining data/jcc-3.6/_jcc2/java/lang/Class.h Examining data/jcc-3.6/_jcc2/java/lang/Double.h Examining data/jcc-3.6/_jcc2/java/lang/Object.h Examining data/jcc-3.6/_jcc2/java/lang/Integer.cpp Examining data/jcc-3.6/_jcc2/java/lang/Class.cpp Examining data/jcc-3.6/_jcc2/java/lang/Boolean.cpp Examining data/jcc-3.6/_jcc2/java/lang/Exception.h Examining data/jcc-3.6/_jcc2/java/lang/Integer.h Examining data/jcc-3.6/_jcc2/java/lang/Double.cpp Examining data/jcc-3.6/_jcc2/java/lang/Byte.h Examining data/jcc-3.6/_jcc2/java/lang/String.h Examining data/jcc-3.6/jcc3/sources/jcc.cpp Examining data/jcc-3.6/jcc3/sources/JArray.cpp Examining data/jcc-3.6/jcc3/sources/types.cpp Examining data/jcc-3.6/jcc3/sources/JObject.h Examining data/jcc-3.6/jcc3/sources/jccfuncs.h Examining data/jcc-3.6/jcc3/sources/JCCEnv.cpp Examining data/jcc-3.6/jcc3/sources/JObject.cpp Examining data/jcc-3.6/jcc3/sources/JCCEnv.h Examining data/jcc-3.6/jcc3/sources/macros.h Examining data/jcc-3.6/jcc3/sources/JArray.h Examining data/jcc-3.6/jcc3/sources/functions.h Examining data/jcc-3.6/jcc3/sources/functions.cpp Examining data/jcc-3.6/_jcc3/boot.cpp Examining data/jcc-3.6/_jcc3/java/util/Iterator.cpp Examining data/jcc-3.6/_jcc3/java/util/Enumeration.h Examining data/jcc-3.6/_jcc3/java/util/Enumeration.cpp Examining data/jcc-3.6/_jcc3/java/util/Iterator.h Examining data/jcc-3.6/_jcc3/java/io/PrintWriter.cpp Examining data/jcc-3.6/_jcc3/java/io/__init__.cpp Examining data/jcc-3.6/_jcc3/java/io/StringWriter.h Examining data/jcc-3.6/_jcc3/java/io/StringWriter.cpp Examining data/jcc-3.6/_jcc3/java/io/Writer.h Examining data/jcc-3.6/_jcc3/java/io/PrintWriter.h Examining data/jcc-3.6/_jcc3/java/io/Writer.cpp Examining data/jcc-3.6/_jcc3/java/lang/RuntimeException.h Examining data/jcc-3.6/_jcc3/java/lang/Float.h Examining data/jcc-3.6/_jcc3/java/lang/Short.h Examining data/jcc-3.6/_jcc3/java/lang/Throwable.cpp Examining data/jcc-3.6/_jcc3/java/lang/Exception.cpp Examining data/jcc-3.6/_jcc3/java/lang/Long.cpp Examining data/jcc-3.6/_jcc3/java/lang/Character.cpp Examining data/jcc-3.6/_jcc3/java/lang/__init__.cpp Examining data/jcc-3.6/_jcc3/java/lang/Object.cpp Examining data/jcc-3.6/_jcc3/java/lang/Byte.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/Type.h Examining data/jcc-3.6/_jcc3/java/lang/reflect/TypeVariable.h Examining data/jcc-3.6/_jcc3/java/lang/reflect/WildcardType.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/GenericArrayType.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/ParameterizedType.h Examining data/jcc-3.6/_jcc3/java/lang/reflect/Modifier.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/Field.h Examining data/jcc-3.6/_jcc3/java/lang/reflect/__init__.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/Method.h Examining data/jcc-3.6/_jcc3/java/lang/reflect/Constructor.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/Constructor.h Examining data/jcc-3.6/_jcc3/java/lang/reflect/ParameterizedType.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/GenericDeclaration.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/Field.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/Method.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/GenericArrayType.h Examining data/jcc-3.6/_jcc3/java/lang/reflect/TypeVariable.cpp Examining data/jcc-3.6/_jcc3/java/lang/reflect/GenericDeclaration.h Examining data/jcc-3.6/_jcc3/java/lang/reflect/Modifier.h Examining data/jcc-3.6/_jcc3/java/lang/reflect/WildcardType.h Examining data/jcc-3.6/_jcc3/java/lang/reflect/Type.cpp Examining data/jcc-3.6/_jcc3/java/lang/String.cpp Examining data/jcc-3.6/_jcc3/java/lang/Long.h Examining data/jcc-3.6/_jcc3/java/lang/Character.h Examining data/jcc-3.6/_jcc3/java/lang/Boolean.h Examining data/jcc-3.6/_jcc3/java/lang/RuntimeException.cpp Examining data/jcc-3.6/_jcc3/java/lang/Float.cpp Examining data/jcc-3.6/_jcc3/java/lang/Throwable.h Examining data/jcc-3.6/_jcc3/java/lang/Short.cpp Examining data/jcc-3.6/_jcc3/java/lang/Class.h Examining data/jcc-3.6/_jcc3/java/lang/Double.h Examining data/jcc-3.6/_jcc3/java/lang/Object.h Examining data/jcc-3.6/_jcc3/java/lang/Integer.cpp Examining data/jcc-3.6/_jcc3/java/lang/Class.cpp Examining data/jcc-3.6/_jcc3/java/lang/Boolean.cpp Examining data/jcc-3.6/_jcc3/java/lang/Exception.h Examining data/jcc-3.6/_jcc3/java/lang/Integer.h Examining data/jcc-3.6/_jcc3/java/lang/Double.cpp Examining data/jcc-3.6/_jcc3/java/lang/Byte.h Examining data/jcc-3.6/_jcc3/java/lang/String.h Examining data/jcc-3.6/jcc2/sources/jcc.cpp Examining data/jcc-3.6/jcc2/sources/JArray.cpp Examining data/jcc-3.6/jcc2/sources/types.cpp Examining data/jcc-3.6/jcc2/sources/JObject.h Examining data/jcc-3.6/jcc2/sources/jccfuncs.h Examining data/jcc-3.6/jcc2/sources/JCCEnv.cpp Examining data/jcc-3.6/jcc2/sources/JObject.cpp Examining data/jcc-3.6/jcc2/sources/JCCEnv.h Examining data/jcc-3.6/jcc2/sources/macros.h Examining data/jcc-3.6/jcc2/sources/JArray.h Examining data/jcc-3.6/jcc2/sources/functions.h Examining data/jcc-3.6/jcc2/sources/functions.cpp FINAL RESULTS: data/jcc-3.6/jcc2/sources/JCCEnv.cpp:925:13: [4] (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). strcat(classpath, pathsep); data/jcc-3.6/jcc2/sources/JCCEnv.cpp:927:9: [4] (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). strcat(classpath, chars); data/jcc-3.6/jcc2/sources/jcc.cpp:136:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s%s", name, value); data/jcc-3.6/jcc2/sources/jcc.cpp:150:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s%s%c%s", name, p0, pathsep, p1); data/jcc-3.6/jcc2/sources/types.cpp:294:7: [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. } access; data/jcc-3.6/jcc2/sources/types.cpp:357:25: [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. Py_DECREF(self->access.value); data/jcc-3.6/jcc2/sources/types.cpp:370:15: [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. self->access.value = (PyObject *) value; data/jcc-3.6/jcc2/sources/types.cpp:384:15: [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. self->access.initializeClass = initializeClass; data/jcc-3.6/jcc2/sources/types.cpp:408:15: [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. self->access.value = value; data/jcc-3.6/jcc2/sources/types.cpp:435:15: [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. self->access.value = (PyObject *) value; Py_INCREF(value); data/jcc-3.6/jcc2/sources/types.cpp:449:15: [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. self->access.value = PyInt_FromLong(value); data/jcc-3.6/jcc2/sources/types.cpp:465:15: [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. self->access.value = PyUnicode_FromUnicode(&pchar, 1); data/jcc-3.6/jcc2/sources/types.cpp:479:15: [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. self->access.value = PyFloat_FromDouble(value); data/jcc-3.6/jcc2/sources/types.cpp:493:15: [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. self->access.value = PyFloat_FromDouble((double) value); data/jcc-3.6/jcc2/sources/types.cpp:507:15: [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. self->access.value = PyInt_FromLong(value); data/jcc-3.6/jcc2/sources/types.cpp:521:15: [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. self->access.value = PyLong_FromLongLong((long long) value); data/jcc-3.6/jcc2/sources/types.cpp:535:15: [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. self->access.value = PyInt_FromLong((short) value); data/jcc-3.6/jcc2/sources/types.cpp:547:25: [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. Py_INCREF(self->access.value); data/jcc-3.6/jcc2/sources/types.cpp:548:22: [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. return self->access.value; data/jcc-3.6/jcc2/sources/types.cpp:555:67: [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. return t_Class::wrap_Object(Class(env->getClass(self->access.initializeClass)), (PyTypeObject *) type); data/jcc-3.6/jcc2/sources/types.cpp:558:67: [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. return t_Class::wrap_Object(Class(env->getClass(self->access.initializeClass))); data/jcc-3.6/jcc3/sources/JCCEnv.cpp:946:13: [4] (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). strcat(classpath, pathsep); data/jcc-3.6/jcc3/sources/JCCEnv.cpp:948:9: [4] (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). strcat(classpath, chars); data/jcc-3.6/jcc3/sources/jcc.cpp:137:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s%s", name, value); data/jcc-3.6/jcc3/sources/jcc.cpp:152:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s%s%c%s", name, p0, pathsep, p1); data/jcc-3.6/jcc3/sources/jcc.cpp:214:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buffer, "%0*" PRIxMAX, (int) hexdig, hash); data/jcc-3.6/jcc3/sources/types.cpp:280:7: [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. } access; data/jcc-3.6/jcc3/sources/types.cpp:343:25: [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. Py_DECREF(self->access.value); data/jcc-3.6/jcc3/sources/types.cpp:358:15: [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. self->access.value = (PyObject *) type; data/jcc-3.6/jcc3/sources/types.cpp:372:15: [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. self->access.initializeClass = initializeClass; data/jcc-3.6/jcc3/sources/types.cpp:396:15: [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. self->access.value = value; data/jcc-3.6/jcc3/sources/types.cpp:423:15: [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. self->access.value = (PyObject *) value; Py_INCREF(value); data/jcc-3.6/jcc3/sources/types.cpp:437:15: [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. self->access.value = PyLong_FromLong(value); data/jcc-3.6/jcc3/sources/types.cpp:451:15: [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. self->access.value = c2p(value); data/jcc-3.6/jcc3/sources/types.cpp:465:15: [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. self->access.value = PyFloat_FromDouble(value); data/jcc-3.6/jcc3/sources/types.cpp:479:15: [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. self->access.value = PyFloat_FromDouble((double) value); data/jcc-3.6/jcc3/sources/types.cpp:493:15: [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. self->access.value = PyLong_FromLong(value); data/jcc-3.6/jcc3/sources/types.cpp:507:15: [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. self->access.value = PyLong_FromLongLong((long long) value); data/jcc-3.6/jcc3/sources/types.cpp:521:15: [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. self->access.value = PyLong_FromLong((short) value); data/jcc-3.6/jcc3/sources/types.cpp:533:25: [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. Py_INCREF(self->access.value); data/jcc-3.6/jcc3/sources/types.cpp:534:22: [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. return self->access.value; data/jcc-3.6/jcc3/sources/types.cpp:541:67: [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. return t_Class::wrap_Object(Class(env->getClass(self->access.initializeClass)), (PyTypeObject *) type); data/jcc-3.6/jcc3/sources/types.cpp:544:67: [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. return t_Class::wrap_Object(Class(env->getClass(self->access.initializeClass))); data/jcc-3.6/jcc2/sources/JCCEnv.cpp:36:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(mutex); data/jcc-3.6/jcc2/sources/JCCEnv.cpp:65:9: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(mutex); // recursive by default data/jcc-3.6/jcc3/sources/JCCEnv.cpp:38:9: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. EnterCriticalSection(mutex); data/jcc-3.6/jcc3/sources/JCCEnv.cpp:86:9: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. InitializeCriticalSection(mutex); // recursive by default data/jcc-3.6/jcc2/sources/JArray.h:571: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(buf, PyString_AS_STRING(sequence), length); data/jcc-3.6/jcc2/sources/JArray.h:769: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(buf, PyUnicode_AS_UNICODE(sequence), data/jcc-3.6/jcc2/sources/JCCEnv.cpp:953:5: [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(bytes, utf, len); data/jcc-3.6/jcc2/sources/functions.cpp:151:5: [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(buf, interface_bytes, name_pos); data/jcc-3.6/jcc2/sources/functions.cpp:152:5: [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(buf + name_pos + name_len, interface_bytes + name_pos, data/jcc-3.6/jcc2/sources/functions.cpp:154:5: [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(buf + extName_pos + name_len + extName_len, data/jcc-3.6/jcc2/sources/functions.cpp:159:5: [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(buf + name_pos, name, name_len); data/jcc-3.6/jcc2/sources/functions.cpp:162:5: [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(buf + extName_pos, extName, extName_len); data/jcc-3.6/jcc2/sources/functions.cpp:238:5: [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(buf, class_bytes, name_pos); data/jcc-3.6/jcc2/sources/functions.cpp:239:5: [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(buf + name_pos + name_len, class_bytes + name_pos, data/jcc-3.6/jcc2/sources/functions.cpp:241:5: [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(buf + extName_pos + name_len + extName_len, data/jcc-3.6/jcc2/sources/functions.cpp:243:5: [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(buf + implName_pos + name_len + extName_len + implName_len, data/jcc-3.6/jcc2/sources/functions.cpp:250:5: [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(buf + name_pos, name, name_len); data/jcc-3.6/jcc2/sources/functions.cpp:253:5: [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(buf + extName_pos, extName, extName_len); data/jcc-3.6/jcc2/sources/functions.cpp:256:5: [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(buf + implName_pos, implName, implName_len); data/jcc-3.6/jcc2/sources/jcc.cpp:198:5: [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 buffer[10]; data/jcc-3.6/jcc2/sources/jcc.cpp:200:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%08x", (unsigned int) hash); data/jcc-3.6/jcc2/sources/jcc.cpp:616:5: [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 buf[32]; data/jcc-3.6/jcc2/sources/jcc.cpp:619:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "libpython%d.%d.so", PY_MAJOR_VERSION, PY_MINOR_VERSION); data/jcc-3.6/jcc3/sources/JArray.h:567: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(buf, PyBytes_AS_STRING(sequence), length); data/jcc-3.6/jcc3/sources/JArray.h:776: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(buf, PyUnicode_AS_UNICODE(sequence), data/jcc-3.6/jcc3/sources/JCCEnv.cpp:1075:11: [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(PyUnicode_2BYTE_DATA(result), utf16, len16 * 2); data/jcc-3.6/jcc3/sources/functions.cpp:151:5: [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(buf, interface_bytes, name_pos); data/jcc-3.6/jcc3/sources/functions.cpp:152:5: [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(buf + name_pos + name_len, interface_bytes + name_pos, data/jcc-3.6/jcc3/sources/functions.cpp:154:5: [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(buf + extName_pos + name_len + extName_len, data/jcc-3.6/jcc3/sources/functions.cpp:159:5: [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(buf + name_pos, name, name_len); data/jcc-3.6/jcc3/sources/functions.cpp:162:5: [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(buf + extName_pos, extName, extName_len); data/jcc-3.6/jcc3/sources/functions.cpp:238:5: [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(buf, class_bytes, name_pos); data/jcc-3.6/jcc3/sources/functions.cpp:239:5: [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(buf + name_pos + name_len, class_bytes + name_pos, data/jcc-3.6/jcc3/sources/functions.cpp:241:5: [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(buf + extName_pos + name_len + extName_len, data/jcc-3.6/jcc3/sources/functions.cpp:243:5: [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(buf + implName_pos + name_len + extName_len + implName_len, data/jcc-3.6/jcc3/sources/functions.cpp:250:5: [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(buf + name_pos, name, name_len); data/jcc-3.6/jcc3/sources/functions.cpp:253:5: [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(buf + extName_pos, extName, extName_len); data/jcc-3.6/jcc3/sources/functions.cpp:256:5: [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(buf + implName_pos, implName, implName_len); data/jcc-3.6/jcc3/sources/jcc.cpp:202:5: [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 buffer[hexdig + 1]; data/jcc-3.6/jcc3/sources/jcc.cpp:204:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buffer, "%0*llx", (int) hexdig, hash); data/jcc-3.6/jcc3/sources/jcc.cpp:212:5: [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 buffer[hexdig + 1]; data/jcc-3.6/jcc3/sources/jcc.cpp:621:5: [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 buf[32]; data/jcc-3.6/jcc3/sources/jcc.cpp:624:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(buf, "libpython%d.%d.so", PY_MAJOR_VERSION, PY_MINOR_VERSION); data/jcc-3.6/jcc2/sources/JObject.cpp:153:43: [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). PyUnicode_DecodeUTF8(utf, strlen(utf), "strict"); data/jcc-3.6/jcc2/sources/functions.cpp:326:30: [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). unsigned int typeCount = strlen(types); data/jcc-3.6/jcc2/sources/functions.cpp:334:30: [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). unsigned int typeCount = strlen(types); data/jcc-3.6/jcc2/sources/jcc.cpp:134:31: [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). char *buf = (char *) malloc(strlen(name) + strlen(value) + 1); data/jcc-3.6/jcc2/sources/jcc.cpp:134:46: [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). char *buf = (char *) malloc(strlen(name) + strlen(value) + 1); data/jcc-3.6/jcc2/sources/jcc.cpp:148:33: [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). char *buf = (char *) malloc(strlen(name) + strlen(p0) + strlen(p1) + 4); data/jcc-3.6/jcc2/sources/jcc.cpp:148:48: [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). char *buf = (char *) malloc(strlen(name) + strlen(p0) + strlen(p1) + 4); data/jcc-3.6/jcc2/sources/jcc.cpp:148:61: [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). char *buf = (char *) malloc(strlen(name) + strlen(p0) + strlen(p1) + 4); data/jcc-3.6/jcc3/sources/functions.cpp:326:30: [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). unsigned int typeCount = strlen(types); data/jcc-3.6/jcc3/sources/functions.cpp:334:30: [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). unsigned int typeCount = strlen(types); data/jcc-3.6/jcc3/sources/jcc.cpp:135:33: [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). char *buf = (char *) malloc(strlen(name) + strlen(value) + 1); data/jcc-3.6/jcc3/sources/jcc.cpp:135:48: [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). char *buf = (char *) malloc(strlen(name) + strlen(value) + 1); data/jcc-3.6/jcc3/sources/jcc.cpp:150:33: [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). char *buf = (char *) malloc(strlen(name) + strlen(p0) + strlen(p1) + 4); data/jcc-3.6/jcc3/sources/jcc.cpp:150:48: [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). char *buf = (char *) malloc(strlen(name) + strlen(p0) + strlen(p1) + 4); data/jcc-3.6/jcc3/sources/jcc.cpp:150:61: [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). char *buf = (char *) malloc(strlen(name) + strlen(p0) + strlen(p1) + 4); ANALYSIS SUMMARY: Hits = 101 Lines analyzed = 30170 in approximately 0.72 seconds (41717 lines/second) Physical Source Lines of Code (SLOC) = 23190 Hits@level = [0] 2 [1] 15 [2] 39 [3] 4 [4] 43 [5] 0 Hits@level+ = [0+] 103 [1+] 101 [2+] 86 [3+] 47 [4+] 43 [5+] 0 Hits/KSLOC@level+ = [0+] 4.44157 [1+] 4.35533 [2+] 3.7085 [3+] 2.02674 [4+] 1.85425 [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.