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/libnb-platform18-java-12.1/contrib/cordova.platforms.ios/iDeviceNativeBinding/webinspectorjni.c
Examining data/libnb-platform18-java-12.1/cpplite/cpplite.debugger/test/unit/data/step-test/main.cpp
Examining data/libnb-platform18-java-12.1/cpplite/cpplite.editor/src/org/netbeans/modules/cpplite/editor/file/CPPTemplate.cpp
Examining data/libnb-platform18-java-12.1/cpplite/cpplite.editor/src/org/netbeans/modules/cpplite/editor/file/CTemplate.c
Examining data/libnb-platform18-java-12.1/cpplite/cpplite.editor/src/org/netbeans/modules/cpplite/editor/file/HPPTemplate.hpp
Examining data/libnb-platform18-java-12.1/cpplite/cpplite.editor/src/org/netbeans/modules/cpplite/editor/file/HTemplate.h
Examining data/libnb-platform18-java-12.1/harness/apisupport.harness/windows-launcher-src/app.cpp
Examining data/libnb-platform18-java-12.1/harness/apisupport.harness/windows-launcher-src/applauncher.cpp
Examining data/libnb-platform18-java-12.1/harness/apisupport.harness/windows-launcher-src/applauncher.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/error.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/error.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/killall.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/killall.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/linux/pfind.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/macosx/pfind.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/options.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/options.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/pfind.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/solaris/pfind.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/privp.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/process_start.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/env.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/env.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/error.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/error.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/loop.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/loop.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/options.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/options.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty_fork.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty_fork.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/util.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/util.h
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty_open.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/sigqueue.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/stat.c
Examining data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/unbuffer/src/unbuffer.c
Examining data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp
Examining data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.h
Examining data/libnb-platform18-java-12.1/ide/extbrowser/native/StdAfx.h
Examining data/libnb-platform18-java-12.1/java/performance/jtrace/src/jtrace.cpp
Examining data/libnb-platform18-java-12.1/nb/ide.launcher/macosx/NetBeansLauncher/NBExecutor.h
Examining data/libnb-platform18-java-12.1/nb/ide.launcher/macosx/NetBeansLauncher/NBPreferences.h
Examining data/libnb-platform18-java-12.1/nb/ide.launcher/windows/cmdargs.h
Examining data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp
Examining data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.h
Examining data/libnb-platform18-java-12.1/nb/ide.launcher/windows/netbeans.cpp
Examining data/libnb-platform18-java-12.1/nb/ide.launcher/windows/version.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/cleaner/windows/src/main.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/jnilib/windows/src/WindowsUtils.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/jnilib/windows/src/WindowsUtils.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/jnilib/windows/src/jni_WindowsNativeUtils.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/jnilib/windows/src/jni_WindowsNativeUtils.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/jnilib/windows/src/jni_WindowsRegistry.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/jnilib/windows/src/jni_WindowsRegistry.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Errors.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/FileUtils.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/FileUtils.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/JavaUtils.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/JavaUtils.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Launcher.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Launcher.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Main.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Main.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ProcessUtils.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ProcessUtils.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/RegistryUtils.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/RegistryUtils.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/StringUtils.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/StringUtils.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/SystemUtils.c
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/SystemUtils.h
Examining data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Types.h
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/argnames.h
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/include/jni.h
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/include/jni_types.h
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.h
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/nbexec.cpp
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/nbexecexe.cpp
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/nbexecloader.h
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.h
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.h
Examining data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/version.h
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Classes.c
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/GC.c
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/HeapDump.c
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Stacks.c
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Threads.c
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Threads.h
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Timers.c
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/attach.c
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/class_file_cache.c
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/common_functions.c
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/common_functions.h
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/org_netbeans_lib_profiler_server_system_Classes.h
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/org_netbeans_lib_profiler_server_system_Classes_RedefineException.h
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/org_netbeans_lib_profiler_server_system_GC.h
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/org_netbeans_lib_profiler_server_system_HeapDump.h
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/org_netbeans_lib_profiler_server_system_Stacks.h
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/org_netbeans_lib_profiler_server_system_Threads.h
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/org_netbeans_lib_profiler_server_system_Timers.h
Examining data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/windows/version.h

FINAL RESULTS:

data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ProcessUtils.c:129:5:  [5] (misc) SetSecurityDescriptorDacl:
  Never create NULL ACLs; an attacker can set it to Everyone (Deny All
  Access), which would even forbid administrator access (CWE-732).
    SetSecurityDescriptorDacl(&sd, TRUE, NULL, FALSE);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ProcessUtils.c:129:5:  [5] (misc) SetSecurityDescriptorDacl:
  Never create NULL ACLs; an attacker can set it to Everyone (Deny All
  Access), which would even forbid administrator access (CWE-732).
    SetSecurityDescriptorDacl(&sd, TRUE, NULL, FALSE);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/error.c:32:5:  [4] (format) vsnprintf:
  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.
    vsnprintf(buf + strlen(buf), MAXLINE, fmt, ap);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/macosx/pfind.c:31:15:  [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.
    if ((fp = popen("/bin/ps -AEww", "r")) == NULL) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/macosx/pfind.c:36:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(env, " %s ", magicenv);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/privp.c:158:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(command, "/bin/ppriv -s A+%s %s", argv[2], argv[3]);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/privp.c:171:5:  [4] (shell) execlp:
  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.
    execlp("/sbin/su", "-", argv[1], "-c", command, NULL);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/process_start.c:137:13:  [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.
        if (execvp(argv[optind], &argv[optind]) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/env.c:63:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(p, *env);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/error.c:33:5:  [4] (format) vsnprintf:
  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.
    vsnprintf(buf, MAXLINE, fmt, ap);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:219:13:  [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.
        if (execvp(argv[0], argv) < 0) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:369:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(info, "SIG: %s\n", WIFSIGNALED(status) ? strsignal(WTERMSIG(status)) : "-");
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:301:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(msg, "DdeConnect errno >%X< when connecting to server %s, topic %s.\n", DdeGetLastError(InstId), Server, Topic);
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:374:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(sSubKey, "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths\\%s.exe", b);
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:384:13:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
            strcat(msg, sSubKey);
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:408:17:  [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(sPath, sReg);
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:461:25:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
                        wcscpy(sBrowser, sReg);
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:511:25:  [4] (buffer) wcscpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using a function version that stops copying at the end
  of the buffer.
                        wcscpy(sPath, sReg);
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/cmdargs.h:56:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(args[used++], arg);
data/libnb-platform18-java-12.1/nbi/engine/native/jnilib/windows/src/jni_WindowsRegistry.c:48:56:  [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.
    result = (RegOpenKeyExW(getHKEY(jSection), key, 0, access | getMode(jMode), &hkey) == ERROR_SUCCESS);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/FileUtils.c:490:17:  [4] (buffer) lstrcpynW:
  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).
                lstrcpynW(expanded, curdir, MAX_PATH);
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp:385:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(cmdLineStr, cmdLine.c_str());
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:713:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(cmdLineStr, cmdLine.c_str());
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:219:5:  [4] (format) vsnprintf:
  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.
    vsnprintf(msg, 4096, format, args);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/attach.c:82:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(jfluid_added_boot_path, _jfluid_dir);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/attach.c:83:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(jfluid_added_boot_path + path_len, jfluid_boot_class_subpaths[i]);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/class_file_cache.c:186: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(_ctable_classnames[pos], name);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/process_start.c:54:32:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while (pty == NULL && (c = getopt(argc, argv, "qp:")) != EOF) {
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:349:33:  [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.
            char *userProfile = getenv(ENV_USER_PROFILE);
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:378:33:  [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.
            char *userProfile = getenv(ENV_USER_PROFILE);
data/libnb-platform18-java-12.1/nbi/engine/native/cleaner/windows/src/main.c:388:13:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
            CreateProcess(0, command, 0, 0, FALSE, CREATE_NO_WINDOW | IDLE_PRIORITY_CLASS, 0, 0, &si, &pi);
data/libnb-platform18-java-12.1/nbi/engine/native/cleaner/windows/src/main.c:388:13:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
            CreateProcess(0, command, 0, 0, FALSE, CREATE_NO_WINDOW | IDLE_PRIORITY_CLASS, 0, 0, &si, &pi);
data/libnb-platform18-java-12.1/nbi/engine/native/jnilib/windows/src/jni_WindowsNativeUtils.c:100:14:  [3] (misc) AddAccessAllowedAce:
  This doesn't set the inheritance bits in the access control entry (ACE)
  header (CWE-732). Make sure that you set inheritance by hand if you wish it
  to inherit.
        if (!AddAccessAllowedAce(pACL, ACL_REVISION2, ACCESS_READ | ACCESS_WRITE , psidAdmin)) {
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp:170:20:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
    HMODULE hDll = LoadLibrary(javaDllPath.c_str());
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp:226:24:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
                hDll = LoadLibrary(jvmLauncher->javaDllPath.c_str());
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp:236:27:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
                hSplash = LoadLibrary(splash.c_str());
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp:386:10:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    if (!CreateProcess(NULL, cmdLineStr, NULL, NULL, FALSE, CREATE_SUSPENDED, NULL, NULL, &si, &pi)) {
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp:386:10:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
    if (!CreateProcess(NULL, cmdLineStr, NULL, NULL, FALSE, CREATE_SUSPENDED, NULL, NULL, &si, &pi)) {
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/nbexecloader.h:45:20:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
            hLib = LoadLibrary(path);
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:717:14:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
        if (!CreateProcess(NULL, cmdLineStr, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:717:14:  [3] (shell) CreateProcess:
  This causes a new process to execute and is difficult to use safely
  (CWE-78). Specify the application path in the first argument, NOT as part
  of the second, or embedded spaces could allow an attacker to force a
  different program to run.
        if (!CreateProcess(NULL, cmdLineStr, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi)) {
data/libnb-platform18-java-12.1/contrib/cordova.platforms.ios/iDeviceNativeBinding/webinspectorjni.c:74: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 str[100];
data/libnb-platform18-java-12.1/contrib/cordova.platforms.ios/iDeviceNativeBinding/webinspectorjni.c:75:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(str, "Error receiving message: %d", res);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/error.c:29: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[MAXLINE];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/killall.c:247: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).
    params.id = atoi(argv[0]);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/killall.c:259:27:  [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.sival_int = atoi(argv[1]);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/linux/pfind.c:37: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 fname[PATH_MAX];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/linux/pfind.c:38: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[MAX_LEN];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/linux/pfind.c:56:19:  [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).
        if ((fd = open(fname, O_RDONLY)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/linux/pfind.c:73:41:  [2] (integer) atol:
  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).
                result[res++] = (pid_t) atol(pid);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/macosx/pfind.c:35: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 env[strlen(magicenv) + 2];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/macosx/pfind.c:40: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 line[LINE_LEN];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/solaris/pfind.c:51: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 fname[PATH_MAX];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/solaris/pfind.c:52: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 envvar[MAX_LEN];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/solaris/pfind.c:71:19:  [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).
        if ((fd = open(fname, O_RDONLY)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/solaris/pfind.c:88:19:  [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).
        if ((fd = open(fname, O_RDONLY)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/solaris/pfind.c:145:41:  [2] (integer) atol:
  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).
                result[res++] = (pid_t) atol(pid);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/privp.c:80:21:  [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 master_fd = open("/dev/ptmx", O_RDWR);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/privp.c:113:20:  [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 slave_fd = open(slave_name, O_RDWR);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/privp.c:142: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 pwd[MAX_PASSWORD_LENGTH];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/privp.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 command[MAX_CMD_LENGTH];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/process_start.c:85:18:  [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 pty_fd = open(pty, O_RDWR);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/env.c:73: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).
    int fd = open(fname, O_TRUNC | O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/env.c:109: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).
    int fd = open(fname, O_RDONLY);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/error.c:29: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[MAXLINE];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/loop.c:38: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/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/loop.c:96: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[FRAGSIZ];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:163: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 magic[20];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:349: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 reportfile[sz];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:362: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).
    int fd = open(fname, O_TRUNC | O_CREAT | O_WRONLY, S_IRUSR | S_IWUSR);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:365: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 info[100];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:367:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(info, "RC: %d\n", WIFEXITED(status) ? WEXITSTATUS(status) : 1);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:371:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(info, "CORE: %d\n", WCOREDUMP(status) ? 1 : 0);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:375:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
        sprintf(info, "RTIME: %ld\n", start == 0 ? 0 : (long) ((1000 * (end - start)) / tps));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:378:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(info, "UTIME: %ld\n", (long) ((1000 * (end_tms.tms_cutime - start_tms.tms_cutime)) / tps));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:380:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(info, "STIME: %ld\n", (long) ((1000 * (end_tms.tms_cstime - start_tms.tms_cstime)) / tps));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:386:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(info, "UTIME: %ld\n", (long) (rusage->ru_utime.tv_sec + rusage->ru_utime.tv_usec / 1000000.0));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:388:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(info, "STIME: %ld\n", (long) (rusage->ru_stime.tv_sec + rusage->ru_stime.tv_usec / 1000000.0));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:392:13:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
            sprintf(info, "MAXRSS: %ld\n", rusage->ru_maxrss);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty_fork.c:39:12:  [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).
    return open("/dev/ptmx", flags);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty_fork.c:80:20:  [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).
    if ((slavefd = open(name, O_RDWR)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty_fork.c:200: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).
        if ((pty_fd = open(pty, O_RDWR)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/util.h:39: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 buf[BUFSIZ];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty_open.c:65:20:  [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).
    if ((slavefd = open(name, O_RDWR)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty_open.c:105: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/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty_open.c:158: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/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty_open.c:256:12:  [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).
    return open("/dev/ptmx", flags);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/sigqueue.c:44: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).
    pid_t pid = atoi(argv[1]);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/sigqueue.c:47: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).
    int signo = atoi(argv[2]);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/sigqueue.c:51:23:  [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.sival_int = atoi(argv[3]);
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:116: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 Item[256];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:117: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 Service[256];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:118: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 Topic[256];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:271: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 buff[1024];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:272: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 msg[1024];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:316:17:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
                sprintf(msg, "DdeClientTransaction errno >%X<\n", DdeGetLastError(InstId));
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:323: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(buff, pData, len);
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:363: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 sSubKey[1024];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:364: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 sReg[1024];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:365: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 sPath[1024];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:382: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 msg[1024];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:383:13:  [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(msg, "RegOpenKeyEx() failed for ");
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:445:9:  [2] (buffer) wchar_t:
  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.
        wchar_t sBrowser[1024];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:446:9:  [2] (buffer) wchar_t:
  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.
        wchar_t sReg[1024];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:447:9:  [2] (buffer) wchar_t:
  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.
        wchar_t sPath[1024];
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:491:9:  [2] (buffer) wcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Risk is low because the source is a constant string.
        wcscat(sBrowser, L"\\shell\\open\\command");
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/cmdargs.h:49: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(newArgs, args, size * sizeof (char*));
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/cmdargs.h:60: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 arg[1024] = "";
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:136: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 tmp[16] = "";
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:143: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 olddir[MAX_PATH];
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:161: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[MAX_PATH] = "";
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:227: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 oldCurDir[MAX_PATH];
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:232: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 clusterPath[MAX_PATH + 1] = {0};
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:263: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).
    FILE* file = fopen(clusterFile.c_str(), "r");
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:269: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 line[4096] = "";
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:319: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 tmp[MAX_PATH + 1] = {0};
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp: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 tmp[MAX_PATH + 1] = {0};
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:353:17:  [2] (buffer) TCHAR:
  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.
                TCHAR userHomeChar[MAX_PATH]; 
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:382:17:  [2] (buffer) TCHAR:
  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.
                TCHAR userHomeChar[MAX_PATH]; 
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:404:5:  [2] (buffer) TCHAR:
  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.
    TCHAR defUserDirRootChar[MAX_PATH];
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:415:5:  [2] (buffer) TCHAR:
  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.
    TCHAR defCacheDirRootChar[MAX_PATH];
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:443: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).
    FILE *file = fopen(path, "r");
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:449: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 line[4096] = "";
data/libnb-platform18-java-12.1/nbi/engine/native/cleaner/windows/src/main.c:359: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 * strings [4] = {
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/JavaUtils.c:685: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 executablePath [MAX_PATH];
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/JavaUtils.c:688: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 installationFolder [MAX_PATH]= "";
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/JavaUtils.c:695:5:  [2] (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). Risk is low because the
  source is a constant string.
    strcat(installationFolder, "\\bin\\jre");
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Launcher.c:155:5:  [2] (buffer) TCHAR:
  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.
    TCHAR appDataValueTChar[MAX_PATH];
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Launcher.c:156:5:  [2] (buffer) TCHAR:
  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.
    TCHAR localAppDataValueTChar[MAX_PATH];    
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Main.c:33:1:  [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 mainClassName[80] = "Main NBI Window Class";
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Main.c:34:1:  [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 mainTitle [80] = "NBI Launcher";
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/StringUtils.c:626:14:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    length = MultiByteToWideChar(CP_ACP, 0, str, len, NULL, 0);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/StringUtils.c:628:5:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    MultiByteToWideChar(CP_ACP, 0, str, len, wstr, length);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/Types.h:39: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 build [128];
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp:140: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 absoluteJavaDllPath[MAX_PATH] = "";
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp:335: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 utf8[len] = "";
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp:384: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 cmdLineStr[32*1024] = "";
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.h:118: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 oldCurDir[MAX_PATH];
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:169: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[MAX_PATH] = "";
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:217: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 tmp[MAX_PATH + 1] = {0};
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:227: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 tmp[MAX_PATH + 1] = {0};
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:309: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).
    FILE *file = fopen(listPath.c_str(), "r");
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:712: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 cmdLineStr[32 * 1024] = "";
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:74: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 val[4096] = "";
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:140: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[MAX_PATH] = "";
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:152: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 dir[MAX_PATH] = "";
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:218: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 msg[4096] = "";
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:222: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 sysErr[512] = "";
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:228:22:  [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 *file = fopen(gLogFileName.c_str(), "a");
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:365:21:  [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 *console = fopen("CON", "a");
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:443:9:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
    if (MultiByteToWideChar(CP_ACP, MB_PRECOMPOSED, ansi, -1, tmp, len) == 0)
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Classes.c:267: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((jbyte*) classDef->class_bytes, tmpClassBytes, classBytesLen);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Stacks.c:197: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(byteData, oldByteData, dataOfs);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Timers.c:116: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 procname[1024];
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Timers.c:118:5:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
    sprintf(procname, "/proc/%d/ctl", getpid());
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Timers.c:119:13:  [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).
    ctlfd = open(procname, O_WRONLY);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/attach.c:51: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 *jfluid_boot_class_subpaths[2];
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/attach.c:66:21:  [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).
        _time_out = atoi(timeout_str+1);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/class_file_cache.c:193: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(_ctable_classdata[pos], class_data, class_data_len);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/class_file_cache.c:236: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(*class_data, _ctable_classdata[pos], len);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/class_file_cache.c:296: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(*new_class_data,BOGUS_CLASSFILE,sizeof(BOGUS_CLASSFILE));
data/libnb-platform18-java-12.1/contrib/cordova.platforms.ios/iDeviceNativeBinding/webinspectorjni.c:101: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).
    int const xmllength = strlen(xml);
data/libnb-platform18-java-12.1/harness/apisupport.harness/windows-launcher-src/applauncher.cpp:84: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).
        userDir.replace(pos, strlen(APPNAME_TOKEN), appName);
data/libnb-platform18-java-12.1/harness/apisupport.harness/windows-launcher-src/applauncher.cpp:96: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).
        cacheDir.replace(pos, strlen(APPNAME_TOKEN), appName);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/error.c:32: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).
    vsnprintf(buf + strlen(buf), MAXLINE, fmt, ap);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/error.c:35: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).
        snprintf(buf + strlen(buf), MAXLINE - strlen(buf), ": %s", strerror(error));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/error.c:35: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).
        snprintf(buf + strlen(buf), MAXLINE - strlen(buf), ": %s", strerror(error));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/error.c:38:5:  [1] (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). Risk is low because the
  source is a constant character.
    strcat(buf, "\n");
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/linux/pfind.c:61:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if ((size = read(fd, buffer, MAX_LEN)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/linux/pfind.c:76: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/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/macosx/pfind.c:35:14:  [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 env[strlen(magicenv) + 2];
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/macosx/pfind.c:46:14:  [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).
        line[strlen(line) - 1] = '\0';
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/solaris/pfind.c:75:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(fd, &procinfo, sizeof (psinfo_t)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/solaris/pfind.c:101:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(fd, &env_offset, pointer_size) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/killall/src/solaris/pfind.c:116:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (read(fd, &next_offset, pointer_size) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/privp.c:143:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int passwdLength = read(STDIN_FILENO, pwd, MAX_PASSWORD_LENGTH);
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/env.c:45:17:  [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(*env) + 1;
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/env.c:64:14:  [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(*env) + 1;
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/env.c:132:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, &count, sizeof (count)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/env.c:138:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (read(fd, env_data, datasize) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/env.c:147:14:  [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/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/error.c:36: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).
        snprintf(buf + strlen(buf), MAXLINE - strlen(buf), ": %s", strerror(error));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/error.c:36: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).
        snprintf(buf + strlen(buf), MAXLINE - strlen(buf), ": %s", strerror(error));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/error.c:39:5:  [1] (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). Risk is low because the
  source is a constant character.
    strcat(buf, "\n");
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/loop.c:58:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((n = read(STDIN_FILENO, buf, BUFSIZ)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/loop.c:72:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((n = read(master_fd, buf, BUFSIZ)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/loop.c:125:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((n = read(master_fd, buf, FRAGSIZ)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/loop.c:151:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((n = read(STDIN_FILENO, to_master.buf, FRAGSIZ)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:348: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 sz = strlen(params.reportfile) + 10;
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:368: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).
        writen(fd, info, strlen(info));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:370: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).
        writen(fd, info, strlen(info));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:372: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).
        writen(fd, info, strlen(info));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:376: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).
        writen(fd, info, strlen(info));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:379: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).
            writen(fd, info, strlen(info));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:381: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).
            writen(fd, info, strlen(info));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:387:34:  [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).
                writen(fd, info, strlen(info));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:389:34:  [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).
                writen(fd, info, strlen(info));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty/src/pty.c:393: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).
            writen(fd, info, strlen(info));
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty_open.c:121:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((n = read(STDIN_FILENO, buf, BUFSIZ)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty_open.c:137:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((n = read(master_fd, buf, BUFSIZ)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty_open.c:188:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((n = read(STDIN_FILENO, buf, BUFSIZ)) == -1) {
data/libnb-platform18-java-12.1/ide/dlight.nativeexecution/tools/pty_open.c:204:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if ((n = read(master_fd, buf, BUFSIZ)) == -1) {
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:193:58:  [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).
                            (InstId, (unsigned char*) s, strlen(s), 0, Str2, CF_TEXT, 0))) {
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:385:13:  [1] (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). Risk is low because the
  source is a constant character.
            strcat(msg, ".");
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:485:13:  [1] (buffer) wcslen:
  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 (wcslen(sBrowser) == 0) {
data/libnb-platform18-java-12.1/ide/extbrowser/native/NbDDEBrowserImpl.cpp:538:52:  [1] (buffer) wcslen:
  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 ((path = env->NewString((jchar*) sPath, wcslen(sPath))) == NULL) {
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/cmdargs.h:55: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).
        args[used] = new char[strlen(arg) + 1];
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:233:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(clusterPath, cluster, MAX_PATH);
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:287:42:  [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 (strncmp(dir, "platform", strlen("platform")) == 0) {
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:320:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmp, argv[++i], MAX_PATH);
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:332:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmp, argv[++i], MAX_PATH);
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:347:34:  [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 (strncmp(str, HOME_TOKEN, strlen(HOME_TOKEN)) == 0) {
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:362:37:  [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).
        userDir = userHome + (str + strlen(HOME_TOKEN));
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:363:57:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if (strncmp(str, DEFAULT_USERDIR_ROOT_TOKEN, strlen(DEFAULT_USERDIR_ROOT_TOKEN)) == 0) {       
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:366:52:  [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).
        userDir = getDefaultUserDirRoot() + (str + strlen(DEFAULT_USERDIR_ROOT_TOKEN));
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:376:34:  [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 (strncmp(str, HOME_TOKEN, strlen(HOME_TOKEN)) == 0) {
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:391:38:  [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).
        cacheDir = userHome + (str + strlen(HOME_TOKEN));
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:392:58:  [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).
    } else if (strncmp(str, DEFAULT_CACHEDIR_ROOT_TOKEN, strlen(DEFAULT_CACHEDIR_ROOT_TOKEN)) == 0) {   
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:395:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        cacheDir = getDefaultCacheDirRoot() + (str + strlen(DEFAULT_CACHEDIR_ROOT_TOKEN));
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:426: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 (strncmp(str, opt, strlen(opt)) == 0) {
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:427: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).
        str += strlen(opt);
data/libnb-platform18-java-12.1/nb/ide.launcher/windows/nblauncher.cpp:463: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 len = strlen(str);
data/libnb-platform18-java-12.1/nbi/engine/native/cleaner/windows/src/main.c:251:48:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(ReadFile(fileHandle, charBuffer, size, &read, 0) && read >=2) {
data/libnb-platform18-java-12.1/nbi/engine/native/cleaner/windows/src/main.c:251:60:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if(ReadFile(fileHandle, charBuffer, size, &read, 0) && read >=2) {
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:44:57:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while(ReadFile(hFileRead, offsetbuf, sizeLeft, &read, 0) && sizeLeft && read) {
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:44:81:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while(ReadFile(hFileRead, offsetbuf, sizeLeft, &read, 0) && sizeLeft && read) {
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:45:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            sizeLeft-=read;
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:46:40:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            addProgressPosition(props, read);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:144:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (ReadFile(hFileRead, buf, bufferSize, &read, 0) && read) {
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:144:62:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (ReadFile(hFileRead, buf, bufferSize, &read, 0) && read) {
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:145:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        addProgressPosition(props, read);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:146:69:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rest->bytes = appendStringN(rest->bytes, rest->length, buf, read);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:147:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        rest->length = rest->length + read;
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:354:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while (ReadFile(hFileRead, buf, bufsize, &read, 0) && read && compare(size, 0) > 0) {
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:354:67:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while (ReadFile(hFileRead, buf, bufsize, &read, 0) && read && compare(size, 0) > 0) {
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:355:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                addProgressPosition(props, read);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:356:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                WriteFile(hFileWrite, buf, read, &read, 0);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:356:51:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                WriteFile(hFileWrite, buf, read, &read, 0);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:357:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                update_crc32(&crc32, buf, read);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ExtractUtils.c:359:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                minus(size, read);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/JavaUtils.c:192:17:  [1] (buffer) lstrcpyn:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
                lstrcpyn(vers->build, p, min(127, getLengthA(p)+1));
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ProcessUtils.c:86:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    DWORD read;
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ProcessUtils.c:93:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ReadFile(hRead, buf, STREAM_BUF_LENGTH - 1, &read, NULL);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ProcessUtils.c:95:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        output = appendStringN(output, total, buf, read);
data/libnb-platform18-java-12.1/nbi/engine/native/launcher/windows/src/ProcessUtils.c:96:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        total+=read;
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/jvmlauncher.cpp:141:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(absoluteJavaDllPath, javaDllPath.c_str(), MAX_PATH);
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:218:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmp, argv[++i], MAX_PATH);
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:228:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(tmp, argv[++i], MAX_PATH);
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:270:58:  [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 (strncmp(argv[i] + 2, OPT_HEAP_DUMP_PATH, strlen(OPT_HEAP_DUMP_PATH)) == 0) {
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:323: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(str) - 1;
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:690: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).
            cmdLine.erase(pos, strlen(ARG_NAME_LA_START_APP));
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/platformlauncher.cpp:694: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).
            cmdLine.erase(pos, strlen(ARG_NAME_LA_START_AU));
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:155:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dir, path, sep - path);
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:183: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).
    char *end = str + strlen(str) - 1;
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:224:9:  [1] (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.
        strncat(msg, sysErr, 4096 - strlen(msg));
data/libnb-platform18-java-12.1/platform/o.n.bootstrap/launcher/windows/utilsfuncs.cpp:224:37:  [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).
        strncat(msg, sysErr, 4096 - strlen(msg));
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Classes.c:146:15:  [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).
    class_sig[strlen(class_sig) - 1] = 0;
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Stacks.c:188:15:  [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 len = strlen(s);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Stacks.c:202:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy((char*)(byteData + dataOfs), s, len);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/Stacks.c:290:15:  [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(className);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/attach.c:65: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(timeout_str) > 1) {
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/attach.c:74:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(_jfluid_dir, options, path_len);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/attach.c:81:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        jfluid_added_boot_path = (char*) malloc(path_len + strlen(jfluid_boot_class_subpaths[i]) + 1);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/class_file_cache.c:110:15:  [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 len = strlen(name);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/class_file_cache.c:185:38:  [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).
    _ctable_classnames[pos] = malloc(strlen(name) + 1);
data/libnb-platform18-java-12.1/profiler/lib.profiler/native/src-jdk15/common_functions.c:138: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 (options != NULL && strlen(options) > 0) { /* The spec says no options means options == "", but in reality it's NULL */

ANALYSIS SUMMARY:

Hits = 266
Lines analyzed = 21252 in approximately 10.32 seconds (2060 lines/second)
Physical Source Lines of Code (SLOC) = 14517
Hits@level = [0] 137 [1] 105 [2] 120 [3]  14 [4]  25 [5]   2
Hits@level+ = [0+] 403 [1+] 266 [2+] 161 [3+]  41 [4+]  27 [5+]   2
Hits/KSLOC@level+ = [0+] 27.7606 [1+] 18.3233 [2+] 11.0904 [3+] 2.82427 [4+] 1.85989 [5+] 0.13777
Dot directories skipped = 9 (--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.