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/android-platform-libcore-10.0.0+r36/dalvik/src/main/native/org_apache_harmony_dalvik_NativeTestTarget.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/benchmark/native/libcore_io_Memory_bench.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/AsynchronousCloseMonitor.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/AsynchronousCloseMonitor.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/ExecStrings.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/ExecStrings.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/IcuUtilities.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/IcuUtilities.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/JniConstants.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/JniConstants.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/JniException.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/JniException.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/NetworkUtilities.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/NetworkUtilities.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/Portability.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/Register.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/ScopedIcuLocale.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/ScopedJavaUnicodeString.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/ZipUtilities.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/ZipUtilities.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/android_system_OsConstants.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/cbigint.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/cbigint.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_invoke_MethodHandle.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_invoke_VarHandle.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_math_NativeBN.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_util_regex_Matcher.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_util_regex_Pattern.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_ICU.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_NativeConverter.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_TimeZoneNames.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_AsynchronousCloseMonitor.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Memory.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_util_NativeAllocationRegistry.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/sun_misc_Unsafe.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/valueOf.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/main/native/valueOf.h
Examining data/android-platform-libcore-10.0.0+r36/luni/src/test/native/libcore_dalvik_system_JniTest.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/test/native/libcore_io_Memory_test.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/test/native/libcore_java_io_FileTest.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/test/native/libcore_java_lang_ThreadTest.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/test/native/libcore_java_nio_BufferTest.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/test/native/libcore_libcore_util_NativeAllocationRegistryTest.cpp
Examining data/android-platform-libcore-10.0.0+r36/luni/src/test/resources/blob.c
Examining data/android-platform-libcore-10.0.0+r36/luni/src/test/resources/hyts_Foo.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Adler32.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/CRC32.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Character.cpp
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Console_md.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/DatagramChannelImpl.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/DatagramDispatcher.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Deflater.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Double.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/EPoll.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/EPollPort.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileChannelImpl.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileDescriptor_md.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileDispatcherImpl.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileInputStream.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileKey.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileOutputStream_md.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileSystemPreferences.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Float.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/IOUtil.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Inet4Address.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Inet6Address.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/InetAddress.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Inflater.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/JniConstants.cpp
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/JniConstants.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/LinuxNativeDispatcher.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/LinuxWatchService.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/MappedByteBuffer.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Math.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/NativeThread.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Net.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ObjectInputStream.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ObjectOutputStream.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ObjectStreamClass.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/OnLoad.cpp
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/PollArrayWrapper.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ProcessEnvironment_md.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Register.cpp
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Runtime.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ServerSocketChannelImpl.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/SocketChannelImpl.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/SocketInputStream.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/SocketOutputStream.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/StrictMath.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixAsynchronousServerSocketChannelImpl.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixAsynchronousSocketChannelImpl.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixCopyFile.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixFileSystem_md.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ZipFile.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/classfile_constants.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/fdlibm.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/io_util.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/io_util.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/io_util_md.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/io_util_md.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/java_io_FileSystem.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/java_io_UnixFileSystem.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/java_lang_Integer.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/java_lang_Long.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/java_net_PlainDatagramSocketImpl.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/java_net_PlainSocketImpl.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/java_util_zip_ZipFile.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/jfdlibm.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/jlong.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/jlong_md.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/jni_util.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/jni_util.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/jni_util_md.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/jvm.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/jvm_md.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/linux_close.cpp
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/nio.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/nio_util.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/socket_tagger_util.cpp
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_EPoll.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_EPollPort.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_EPollPort_Event.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_EPollPort_EventHandlerTask.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_FileChannelImpl.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_FileDispatcherImpl.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_IOStatus.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_Net.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_PollArrayWrapper.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_ServerSocketChannelImpl.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_ServerSocketChannelImpl_DefaultOptionsHolder.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_SocketChannelImpl.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_SocketChannelImpl_DefaultOptionsHolder.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_UnixAsynchronousServerSocketChannelImpl.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_UnixAsynchronousSocketChannelImpl.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_ch_UnixAsynchronousSocketChannelImpl_OpType.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_fs_LinuxNativeDispatcher.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_fs_LinuxWatchService.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_fs_LinuxWatchService_LinuxWatchKey.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_fs_LinuxWatchService_Poller.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_fs_UnixCopyFile.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_fs_UnixCopyFile_Flags.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/sun_nio_fs_UnixNativeDispatcher.h
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c
Examining data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.h

FINAL RESULTS:

data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:1092:54:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    throwIfMinusOne(env, "chmod", TEMP_FAILURE_RETRY(chmod(path.c_str(), mode)));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:1100:54:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    throwIfMinusOne(env, "chown", TEMP_FAILURE_RETRY(chown(path.c_str(), uid, gid)));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2594:26:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    NATIVE_METHOD(Linux, chmod, "(Ljava/lang/String;I)V"),
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2595:26:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    NATIVE_METHOD(Linux, chown, "(Ljava/lang/String;II)V"),
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2669:26:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    NATIVE_METHOD(Linux, readlink, "(Ljava/lang/String;)Ljava/lang/String;"),
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileSystemPreferences.c:48:15:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    result =  chmod(fname, permission);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileSystemPreferences.c:156:42:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    NATIVE_METHOD(FileSystemPreferences, chmod, "(Ljava/lang/String;I)I"),
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c:180:5:  [5] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
    strncat(user_dir, process_path, PATH_MAX);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixFileSystem_md.c:212:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            if (chmod(path, mode) >= 0) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixFileSystem_md.c:460:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
            if (chmod(path, mode & ~(S_IWUSR | S_IWGRP | S_IWOTH)) >= 0) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:561:17:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
    RESTARTABLE(chmod(path, (mode_t)mode), err);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:587:17:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
    RESTARTABLE(chown(path, (uid_t)uid, (gid_t)gid), err);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:887:13:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    int n = readlink(path, target, sizeof(target));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_ICU.cpp:441: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(locale_name_, locale_name);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_NativeConverter.cpp:157:3:  [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(&result[0], name);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:976:33:  [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.
    int rc = TEMP_FAILURE_RETRY(access(path.c_str(), mode));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:1230:24:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    TEMP_FAILURE_RETRY(execv(path.c_str(), argv.get()));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2582:26:  [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.
    NATIVE_METHOD(Linux, access, "(Ljava/lang/String;I)Z"),
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2602:26:  [4] (shell) execv:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    NATIVE_METHOD(Linux, execv, "(Ljava/lang/String;[Ljava/lang/String;)V"),
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:273: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(copy, bytes);
data/android-platform-libcore-10.0.0+r36/luni/src/test/native/libcore_libcore_util_NativeAllocationRegistryTest.cpp:49:14:  [4] (shell) popen:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  FILE* fp = popen("uname -m", "re");
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c:219:5:  [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(java_path, library_path);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:517:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(errmsg, newsize, format, errnum, detail);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:536:5:  [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(tty, format, ap);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:587:5:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execvp(file, (char **) argv);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:604:9:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execvp(file, (char **) argv);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixFileSystem_md.c:176:49:  [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.
                                           jint access,
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixFileSystem_md.c:185:17:  [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.
        switch (access) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:933:17:  [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.
    RESTARTABLE(access(path, (int)amode), err);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:268:13:  [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(r + rn, p);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:274:13:  [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(resolved, path);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/jvm.h:1465:20:  [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.
    jint (JNICALL *vfprintf)(FILE *fp, const char *format, va_list args);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:480:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        snprintf(buf, size, format, hostname, error_string);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:122:9:  [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,         /* Read and/or write permission */
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:819: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(buf, name);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:1511: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(entryname, entry->name);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_ICU.cpp:1028:34:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* dataPathPrefix = getenv("ANDROID_DATA");
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_ICU.cpp:1042:42:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* tzdataModulePathPrefix = getenv("ANDROID_TZDATA_ROOT");
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_ICU.cpp:1055:43:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* runtimeModulePathPrefix = getenv("ANDROID_RUNTIME_ROOT");
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:1407:30:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    return env->NewStringUTF(getenv(name.c_str()));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2099:48:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    std::unique_ptr<char, c_deleter> real_path(realpath(path.c_str(), nullptr));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2618:26:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    NATIVE_METHOD(Linux, getenv, "(Ljava/lang/String;)Ljava/lang/String;"),
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2670:26:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    NATIVE_METHOD(Linux, realpath, "(Ljava/lang/String;)Ljava/lang/String;"),
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c:207:32:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char* library_path = getenv("LD_LIBRARY_PATH");
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:243:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *s = getenv("PATH");
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:914:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (realpath(path, resolved) == NULL) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:205:9:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
    if (realpath(original, resolved)) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:231:17:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
            r = realpath(path, resolved);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/JniException.cpp:23: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[BUFSIZ];
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/NetworkUtilities.cpp:41:9:  [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(&tmp, &ss, sizeof(sockaddr_in6));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/NetworkUtilities.cpp:46:9:  [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(&sin.sin_addr.s_addr, &sin6.sin6_addr.s6_addr[12], 4);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:118: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 (fNoOverflow, f, sizeof (uint64_t) * index);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:132:19:  [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 (f, fNoOverflow, sizeof (uint64_t) * index);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:299: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 (x, f, sizeof (uint64_t) * length);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:313: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 (x, f, sizeof (uint64_t) * length);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:338: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 (x, f, sizeof (uint64_t) * length);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:353: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 (D, x, DLength * sizeof (uint64_t));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:360: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 (D, y, DLength * sizeof (uint64_t));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:510: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 (fNoOverflow, f, sizeof (uint64_t) * index);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:525:19:  [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 (f, fNoOverflow, sizeof (uint64_t) * index);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:727: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 (x, f, sizeof (uint64_t) * length);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:741: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 (x, f, sizeof (uint64_t) * length);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:766: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 (x, f, sizeof (uint64_t) * length);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:781: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 (D, x, DLength * sizeof (uint64_t));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:788: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 (D, y, DLength * sizeof (uint64_t));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_math_NativeBN.cpp:57: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 message[256];
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_util_regex_Matcher.cpp:92:9:  [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(mUChars.get(), inputChars.get(), inputChars.size() * sizeof(jchar));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_ICU.cpp:103: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 maximizedLocaleID[ULOC_FULLNAME_CAPACITY];
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_ICU.cpp:464: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 locale_name_[ULOC_FULLNAME_CAPACITY];
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_ICU.cpp:732: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 versionString[U_MAX_VERSION_STRING_LENGTH];
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_ICU.cpp:892:52:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    android::base::unique_fd fd(TEMP_FAILURE_RETRY(open(path_.c_str(), O_RDONLY)));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_NativeConverter.cpp:56: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 replacementBytes[MAX_REPLACEMENT_LENGTH];
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_NativeConverter.cpp:156:3:  [2] (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). Risk is low because the source is a constant string.
  strcpy(&result[0], "x-");
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_NativeConverter.cpp:309: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 invalidBytes[32] = {'\0'};
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_NativeConverter.cpp:449: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(callbackContext->replacementBytes, replacementBytes.get(), replacementBytes.size());
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_NativeConverter.cpp:565: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 replacementBytes[MAX_REPLACEMENT_LENGTH];
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:1416: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[NI_MAXHOST]; // NI_MAXHOST is longer than INET6_ADDRSTRLEN.
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:1704: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[IF_NAMESIZE];
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:1927:62:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int fd = throwIfMinusOne(env, "open", TEMP_FAILURE_RETRY(open(path.c_str(), flags, mode)));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2334:9:  [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(&req64.gr_group, &req.gr_group, sizeof(req.gr_group));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2483: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[BUFSIZ];
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2661:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    NATIVE_METHOD(Linux, open, "(Ljava/lang/String;II)Ljava/io/FileDescriptor;"),
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Memory.cpp:239:9:  [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(dst, src, byteCount);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:81: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(newArray, array, capacity * sizeof(jstring));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:336: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(newBucket, existingBucket, size * sizeof(InternedString*));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:1275:9:  [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(destinationString, sourceString, stringLength + 1);
data/android-platform-libcore-10.0.0+r36/luni/src/test/native/libcore_io_Memory_test.cpp:49:7:  [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(src_aligned, src_buf, sizeof(T) * NUM_ELEMENTS);
data/android-platform-libcore-10.0.0+r36/luni/src/test/native/libcore_io_Memory_test.cpp:91: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(reinterpret_cast<void*>(src_aligned), &value, sizeof(T));
data/android-platform-libcore-10.0.0+r36/luni/src/test/native/libcore_libcore_util_NativeAllocationRegistryTest.cpp:50: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 buf[128];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Character.cpp:157: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[BUFSIZ]; // TODO: is there a more sensible upper bound?
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/EPollPort.c:65: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[1];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileDispatcherImpl.c:273:22:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int preCloseFD = open("/dev/null", O_RDWR | O_CLOEXEC);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileSystemPreferences.c:88:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(fname, O_RDONLY, 0);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileSystemPreferences.c:91:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(fname, O_WRONLY|O_CREAT, permission);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/IOUtil.c:114: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[128];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/LinuxNativeDispatcher.c:176: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[1024];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Net.c:191:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        major = atoi(uts.version);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Net.c:192:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        minor = atoi(uts.release);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/SocketInputStream.c:58: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[MAX_BUFFER_LEN];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/SocketOutputStream.c:60: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[MAX_BUFFER_LEN];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c:177: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 path[PATH_MAX];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c:179: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 user_dir[PATH_MAX + 10] = "user.dir=";
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c:218:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(java_path, "java.library.path=");
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:274: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(pathv[i], p, q - p);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:533:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *tty = fopen("/dev/tty", "w");
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:617: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 expanded_file[PATH_MAX];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:628: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(expanded_file, dir, dirlen);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:629: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(expanded_file + dirlen, file, filelen);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:837:32:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
    volatile pid_t resultPid = vfork();
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixCopyFile.c:56: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[8192];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixFileSystem_md.c:90: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 canonicalPath[JVM_MAXPATHLEN];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:57:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open64 open
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:297: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[PATH_MAX+1];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:322: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[256];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:356:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fp = fopen(path, mode);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:883: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 target[PATH_MAX+1];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:910: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 resolved[PATH_MAX+1];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ZipFile.c:172: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[MAXNAME+2], *path;
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ZipFile.c:313: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 errmsg[128];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ZipFile.c:331:13:  [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[128];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ZipFile.c:402:26:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  NATIVE_METHOD(ZipFile, open, "(Ljava/lang/String;IJZ)J"),
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:214: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 path[PATH_MAX + 1];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/io_util.c:81: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 stackBuf[BUF_SIZE];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/io_util.c:157: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 stackBuf[BUF_SIZE];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/io_util.c:217: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[256];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/io_util_md.c:37:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
#define open64 open
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/io_util_md.c:140:23:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        int devnull = open("/dev/null", O_WRONLY);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/jni_util.c:160: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[256];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util.c:275: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 errmsg[255];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:150: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 [64];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:154:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    s = open (driver, O_RDWR);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:166:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        value = atoi(buf);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:272: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 errmsg[255];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:285: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 fullMsg[512];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:544: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 srcp[8][5];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:545: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 hopp[8][5];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:548: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 dest_str[40];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:550: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 device[16];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:563:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen("/proc/net/ipv6_route", "r")) == NULL) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:618: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 (&loRoutes[nRoutes].addr,&dest_addr,sizeof(struct in6_addr));
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:628: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 devname[21];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:629: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 addr6p[8][5];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:632:18:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((f = fopen("/proc/net/if_inet6", "r")) != NULL) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:659: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 localaddr [16];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:670:14:  [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.
    unsigned char staddr [16];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:671: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 ifname [33];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:676:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((f = fopen("/proc/net/if_inet6", "r")) == NULL) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:713:9:  [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 (lif->localaddr, staddr, 16);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:787:9:  [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((void *)&(him6->sin6_addr), caddr, sizeof(struct in6_addr) );
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:280: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[4];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:298: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[READBLOCKSZ];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:331: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(endbuf, buf + i, ENDHDR);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:376: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 loc64[ZIP64_LOCHDR];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:491:7:  [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(zip->metanames[i], name, length);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:561:14:  [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.
    unsigned char endbuf[ENDHDR];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:581:18:  [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.
        unsigned char end64buf[ZIP64_ENDHDR];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:801: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[PATH_MAX];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:854: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 errbuf[256];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:1063: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(ze->name, cen + CENHDR, nlen);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:1073:9:  [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(ze->extra+2, extra, elen);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:1113:9:  [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(ze->comment, cen + CENHDR + nlen + elen, clen);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:1332:18:  [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.
        unsigned char loc[LOCHDR];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:1423: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 tmp[BUF_SIZE];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:1504: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 tmpbuf[1024];
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.h:65:30:  [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.
#define CH(b, n) (((unsigned char *)(b))[n])
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:158:28:  [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).
  if ((unprocessedDigits = strlen (s)) > 0)
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/java_lang_StringToReal.cpp:551:28:  [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).
  if ((unprocessedDigits = strlen (s)) > 0)
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_ICU.cpp:442:27:  [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).
    locale_name_length_ = strlen(locale_name_);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_icu_NativeConverter.cpp:155:47:  [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).
  std::unique_ptr<char[]> result(new char[2 + strlen(name) + 1]);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:563:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(req.ifr_name, interfaceName.c_str(), sizeof(req.ifr_name));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2076:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return IO_FAILURE_RETRY(env, ssize_t, read, javaFd, bytes.get() + byteOffset, byteCount);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/libcore_io_Linux.cpp:2525:12:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
    return umask(mask);
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:268:27:  [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* copy = new char[strlen(bytes) + 1];
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:553:16:  [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).
        return strlen(mPrefix) == prefixLength
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:690:51:  [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).
    bufferAndInvoke(commentMethod, data, comment, strlen(comment));
data/android-platform-libcore-10.0.0+r36/luni/src/main/native/org_apache_harmony_xml_ExpatParser.cpp:1255:22:  [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).
        int length = strlen(source[i]);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/EPollPort.c:66:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RESTARTABLE(read(fd, buf, 1), res);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileDispatcherImpl.c:72:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return convertReturnVal(env, read(fd, buf, len), JNI_TRUE);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileSystemPreferences.c:90:21:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        old_umask = umask(0);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/FileSystemPreferences.c:93:9:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
        umask(old_umask);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/IOUtil.c:118:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int n = read(fd, buf, sizeof(buf));
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/LinuxNativeDispatcher.c:195: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).
    len = strlen(name);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/LinuxNativeDispatcher.c:202: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).
    len = strlen(dir);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/LinuxNativeDispatcher.c:209: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).
    len = strlen(fstype);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/LinuxNativeDispatcher.c:216: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).
    len = strlen(options);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/Net.c:187:9:  [1] (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). Risk is low because the source is a constant character.
        strcpy(uts.sysname, "?");
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ProcessEnvironment_md.c:74: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).
            jsize valLength = strlen(valBeg);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c:151:28:  [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).
    int prefix_len = (int) strlen(JNI_LIB_PREFIX);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c:152:28:  [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).
    int suffix_len = (int) strlen(JNI_LIB_SUFFIX);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c:217: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).
    char* java_path = malloc(strlen("java.library.path=") + strlen(library_path) + 1);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/System.c:217: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* java_path = malloc(strlen("java.library.path=") + strlen(library_path) + 1);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:515:22:  [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).
    size_t newsize = strlen(format) + strlen(detail) + 3 * sizeof(errnum);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:515:39:  [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).
    size_t newsize = strlen(format) + strlen(detail) + 3 * sizeof(errnum);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:618:23:  [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).
        int filelen = strlen(file);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:623:26:  [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).
            int dirlen = strlen(dir);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UNIXProcess_md.c:684:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ssize_t n = read(fd, buf, remaining);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixCopyFile.c:61:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        RESTARTABLE(read((int)src, &buf, sizeof(buf)), n);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:304:28:  [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).
        jsize len = (jsize)strlen(buf);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:327: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).
    len = strlen(msg);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:440:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    RESTARTABLE(read((int)fd, bufp, (size_t)nbytes), n);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:756:21:  [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).
        jsize len = strlen(ptr->d_name);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:896:22:  [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).
        len = (jsize)strlen(target);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:917:28:  [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).
        jsize len = (jsize)strlen(resolved);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:1043:25:  [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).
            jsize len = strlen(p->pw_name);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/UnixNativeDispatcher.c:1099:25:  [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).
            jsize len = strlen(g->gr_name);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ZipFile.c:292:24:  [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).
            len = (int)strlen(ze->comment);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/ZipFile.c:405:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  NATIVE_METHOD(ZipFile, read, "(JJJ[BII)I"),
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:111:18:  [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 += strlen(p) + 1;
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:199:9:  [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).
    if (strlen(original) > PATH_MAX) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:216:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(path, original, sizeof(path));
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:221:22:  [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).
        end = path + strlen(path);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:258:22:  [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).
            int rn = strlen(r);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/canonicalize_md.c:259:27:  [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).
            if (rn + (int)strlen(p) >= len) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/io_util_md.c:104:32:  [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 *p = (char *)ps + strlen(ps) - 1;
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:158:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (buf, param, sizeof(buf));
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:476: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).
    size = strlen(format) + strlen(hostname) + strlen(error_string) + 2;
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:476:29:  [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).
    size = strlen(format) + strlen(hostname) + strlen(error_string) + 2;
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:476: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).
    size = strlen(format) + strlen(hostname) + strlen(error_string) + 2;
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:566:12:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    while (fscanf(f, "%4s%4s%4s%4s%4s%4s%4s%4s %02x "
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:633:20:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
            while (fscanf(f, "%4s%4s%4s%4s%4s%4s%4s%4s %02x %02x %02x %02x %20s\n",
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/net_util_md.c:679:12:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
    while (fscanf (f, "%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x%2x "
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:813:9:  [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).
    if (strlen(name) >= PATH_MAX) {
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:1164:41:  [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).
        return ZIP_GetEntry2(zip, name, strlen(name), JNI_FALSE);
data/android-platform-libcore-10.0.0+r36/ojluni/src/main/native/zip_util.c:1489:21:  [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).
        *nameLenP = strlen(entry->name);

ANALYSIS SUMMARY:

Hits = 224
Lines analyzed = 35342 in approximately 2.18 seconds (16182 lines/second)
Physical Source Lines of Code (SLOC) = 23250
Hits@level = [0]  20 [1]  59 [2] 117 [3]  12 [4]  23 [5]  13
Hits@level+ = [0+] 244 [1+] 224 [2+] 165 [3+]  48 [4+]  36 [5+]  13
Hits/KSLOC@level+ = [0+] 10.4946 [1+] 9.63441 [2+] 7.09677 [3+] 2.06452 [4+] 1.54839 [5+] 0.55914
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.