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/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseMain.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse-memcpy.h Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.h Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.h Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.h Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseOS.h Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.h Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.h Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtk.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtk.h Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkCommon.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtkInit.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c Examining data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWinCommon.c FINAL RESULTS: data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:339:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buffer,"%s -version 2>&1", command); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:340:7: [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. fp = popen(buffer, "r"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:378:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "/usr/libexec/java_home -a %s", JAVA_HOME_ARCH); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:379:7: [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. fp = popen(path, "r"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:394:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(path, "%s/bin/java", result); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:481:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(location, "%s%c%s", jvmLocations[i], dirSeparator, jvmLib); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:533:2: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(newPath, _T_ECLIPSE("%s%s"), c, ldPath); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:540:2: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(newPath, _T_ECLIPSE("%s%s"), c, dylibPath); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:557:3: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(program != NULL ? program : args[0], args); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:574:2: [4] (shell) execl: 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. execl("/usr/bin/script", "/usr/bin/script", "/dev/null", "/usr/libexec/java_home", "--request", NULL); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:629:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( c, APP_NAME_PATTERN, pid ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:635:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( c, APP_ICON_PATTERN, pid ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:126:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(fgConsoleLog, fmt, ap); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:223:2: [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(&buffer[bl], s); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:528:4: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( errorMsg, gtk2Msg, officialName ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:529:4: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), officialName, errorMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:581:9: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( errorMsg, homeMsg, officialName ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:585:10: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), officialName, errorMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:596:6: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( errorMsg, noVMMsg, officialName, msg ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:600:7: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), officialName, errorMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:610:9: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( errorMsg, startupMsg, officialName ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:614:7: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), officialName, errorMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:640:14: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), officialName, shareMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:658:8: [4] (buffer) _tcscpy: 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. cp = _tcscpy(cp, CLASSPATH_PREFIX); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:659:3: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(cp, jarFile); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:664:6: [4] (buffer) _tcscpy: 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. _tcscpy(cpValue, jarFile); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:729:23: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), officialName, shareMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:764:23: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), title, shareMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:771:16: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(errorMsg, returnCodeMsg,javaResults->runResult, msg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:778:7: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( errorMsg, exitMsg, javaResults->launchResult, msg ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:786:16: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), title, errorMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:983:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(configFile, "%s/%s.ini", osPath, bname); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1294:4: [4] (buffer) _tcscpy: 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. _tcscpy( ch, list[index] ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1380:5: [4] (buffer) _tcscpy: 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. _tcscpy( programDir, program ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1417:4: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( ch, _T_ECLIPSE("%s%c%s"), splashArg, dirSeparator, _T_ECLIPSE("splash.bmp") ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1439:4: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(path, _T_ECLIPSE("%s%c%s"), programDir, dirSeparator, splashArg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1446:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(path, _T_ECLIPSE("%s%c%s"), programDir, dirSeparator, _T_ECLIPSE("plugins")); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1456:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( path, _T_ECLIPSE("%s%c%s"), ch, dirSeparator, _T_ECLIPSE("splash.bmp") ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1488:2: [4] (buffer) _tcscpy: 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. _tcscpy(pluginsPath, programDir); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1494:2: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(pluginsPath, _T_ECLIPSE("../../../")); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1496:2: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(pluginsPath, _T_ECLIPSE("plugins")); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1685:7: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( ch, _T_ECLIPSE("%s%c%s"), vmName, dirSeparator, DEFAULT_EE ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1692:8: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( ch, _T_ECLIPSE("%s%c%s"), vmName, dirSeparator, defaultJava ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1698:9: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( ch, _T_ECLIPSE("%s%c%s"), vmName, dirSeparator, vmLibrary ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1707:9: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( *msg, _T_ECLIPSE("%s%c%s\n%s%c%s\n%s%c%s"), vmName, dirSeparator, DEFAULT_EE, data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1736:8: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( *msg, pathMsg,vmName ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1757:8: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( *msg, pathMsg, vmName ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1770:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( ch, _T_ECLIPSE("%s%s%s"), programDir, shippedVMDir, DEFAULT_EE ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1781:9: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( ch, _T_ECLIPSE("%s%s%s"), programDir, shippedVMDir, defaultJava ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1794:7: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(ch, pathMsg, defaultJava); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1798:8: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(*msg, _T_ECLIPSE("%s\n%s"), vmSearchPath, ch); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1856:7: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(c2, _T_ECLIPSE("%s%s%s"), argv[index], eeDir, c1 + 10); /* ${ee.home} is 10 characters */ data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1876:14: [4] (buffer) _tcscpy: 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. _tcscpy(c1, argv[index] + _tcslen(option->name)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1898:5: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(c1, _T_ECLIPSE("%s%s"), EE_HOME, eeDir); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1902:5: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(c1, _T_ECLIPSE("%s%s"), EE_FILENAME, eeFile); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1977:5: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(paths[i], _T_ECLIPSE("%s/lib/%s"), entry, arch); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1981:6: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(paths[i], separatorString); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1988:5: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( paths[i], _T_ECLIPSE("%s%c"), entry, pathSeparator ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:193:9: [4] (buffer) _tcscpy: 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. _tcscpy( cmdPath, command ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:211:13: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat( cmdPath, command ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:227:13: [4] (buffer) _tcscpy: 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. _tcscpy(&ch[length + 1], path); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:246:22: [4] (buffer) _tcscpy: 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. _tcscpy( cmdPath, dir ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:284:18: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat( cmdPath, command ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:304:10: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat( cmdPath, _T_ECLIPSE(".exe") ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:426:2: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(fileName, _T_ECLIPSE("%s%c%s_*"), path, dirSeparator, prefix); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:466:3: [4] (buffer) _tcscpy: 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. _tcscpy(result, path); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:469:3: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(result, candidate); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:480:2: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(fullPath, _T_ECLIPSE("%s%c%s"), path, dirSeparator, entry); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:530:6: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(buffer, _T_ECLIPSE("%s%c%s"), paths[i], dirSeparator, path); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:78:5: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(result, value); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:79:5: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(result, remaining); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:117:2: [4] (buffer) _tcscpy: 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. _tcscpy(config_file, program); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:128:3: [4] (buffer) _tcscpy: 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. _tcscpy(extension, _T_ECLIPSE(".ini")); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:134:5: [4] (buffer) _tcscpy: 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. _tcscpy(extension - 1, extension); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:147:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(config_file, "%s/Eclipse/%s.ini", dname, bname); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:333:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(results->errorMessage, failedToLoadLibrary, libPath); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:341:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(results->errorMessage, createVMSymbolNotFound, libPath); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:408:4: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(results->errorMessage, mainClassNotFound, jarFile); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:185:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( errorMsg, rootMsg, officialName ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:189:10: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), officialName, errorMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:198:9: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( errorMsg, libraryMsg, officialName ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:202:10: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), officialName, errorMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:214:4: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), officialName, entryMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:225:4: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. _ftprintf(stderr, _T_ECLIPSE("%s:\n%s\n"), officialName, entryMsg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:249:2: [4] (buffer) _tcscpy: 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. _tcscpy(ch, argv[0]); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:252:3: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(ch, _T_ECLIPSE(".exe")); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:268:6: [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( program, argv[0] ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:363:5: [4] (buffer) _tcscpy: 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. _tcscpy( programDir, program ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:463:2: [4] (buffer) _tcscpy: 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. _tcscpy(fragment, DEFAULT_EQUINOX_STARTUP); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:464:2: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(fragment, dot); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:465:2: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(fragment, wsArg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:466:2: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(fragment, dot); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:467:2: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(fragment, osArg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:471:2: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(fragment, dot); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:472:2: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(fragment, osArchArg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:479:2: [4] (buffer) _tcscpy: 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. _tcscpy(path, programDir); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:485:2: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(path, _T_ECLIPSE("../../../")); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:487:2: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). _tcscat(path, _T_ECLIPSE("plugins")); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:99:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(location, "%s%c%s", jvmLocations[i], dirSeparator, vmLibrary); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:141:2: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(newPath, _T_ECLIPSE("%s%s"), c, ldPath); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:158:2: [4] (shell) execvp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execvp( program != NULL ? program : args[0], args); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:179:2: [4] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. _stprintf(buffer,"%s -version 2>&1", javaVM); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:180:7: [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. fp = popen(buffer, "r"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:35:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(*id, _T_ECLIPSE("%lx_%I64x"), GetCurrentProcessId(), (DWORDLONG) mapHandle); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:37:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(*id, _T_ECLIPSE("%lx_%lx"), GetCurrentProcessId(), (DWORD) mapHandle); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:85:9: [4] (buffer) _stprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define _stprintf sprintf data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:85:19: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define _stprintf sprintf data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:86:9: [4] (format) _ftprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _ftprintf fprintf data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:86:19: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _ftprintf fprintf data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:87:18: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. #define _stscanf sscanf data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:88:9: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). #define _tcscat strcat data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:88:17: [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). #define _tcscat strcat data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:92:9: [4] (buffer) _tcscpy: 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. #define _tcscpy strcpy data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:92: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). #define _tcscpy strcpy data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:106:18: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define _tprintf printf data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:129:3: [4] (buffer) _tcscpy: 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. _tcscpy(result + resultLength, checked); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:160:12: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = _tcscat(result, strs[i]); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:162:13: [4] (buffer) _tcscat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). result = _tcscat(result, separatorString); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:221:2: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(buffer, _T_ECLIPSE("%s%c"), str, pathSeparator); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:273:12: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. (void) sprintf(cmd,"%s -version 2> %s", vmPath, fileName); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:274:12: [4] (shell) system: 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. (void) system(cmd); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/gtk/eclipseGtk.c:316:8: [4] (shell) execv: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execv(args[0], args); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:127:2: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(windowTitle, _T_ECLIPSE("%s%s"), windowPrefix, name); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:166:2: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(mutexName, _T_ECLIPSE("%s%s"), mutexPrefix, name); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:365:3: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(newPath, _T_ECLIPSE("%s%s%c%s"), c, path, pathSeparator, cwd); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:415:4: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(location, _T_ECLIPSE("%s%c%s"), jvmLocations[i], dirSeparator, vmLibrary); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:424:9: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf( location, _T_ECLIPSE("%s%s"), getProgramDir(), shippedVMDir ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:507:3: [4] (buffer) _tcscpy: 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. _tcscpy(ch, program); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:515:3: [4] (buffer) _tcscpy: 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. _tcscpy( ch, args[index] ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:646:5: [4] (format) _stprintf: Potential format string problem (CWE-134). Make format string constant. _stprintf(versionKey, PRODUCT_VERSION_KEY, translations[0].language, translations[0].codepage); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:505:19: [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. ldPath = (char*) getenv(LIB_PATH_VAR); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:513:22: [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. dylibPath = (char*) getenv(DYLD_FALLBACK_VAR); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:181:10: [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. dir= getenv("HOME"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:533:27: [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 *overlayScrollbar = getenv("LIBOVERLAY_SCROLLBAR"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:537:24: [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 *oxygenGtkHack = getenv("OXYGEN_DISABLE_INNER_SHADOWS_HACK"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:542:30: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char *gdkCoreDeviceEvents = getenv("GDK_CORE_DEVICE_EVENTS"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:647:18: [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 *display = getenv("DISPLAY"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:145:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char *oldval = getenv(name); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:334:12: [3] (buffer) realpath: This function does not protect against buffer overflows, and some implementations can overflow internally (CWE-120/CWE-785!). Ensure that the destination buffer is at least of size MAXPATHLEN, andto protect against implementation problems, the input argument should also be checked to ensure it is no larger than MAXPATHLEN. path = realpath(path, buffer); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:123:18: [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. ldPath = (char*)getenv(LIB_PATH_VAR); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:100:18: [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. #define _tgetenv getenv data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:539:9: [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, commandLine, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi)) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:539:9: [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, commandLine, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi)) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:563:9: [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, commandLine, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi)) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:563:9: [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, commandLine, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi)) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWinCommon.c:61:19: [3] (misc) LoadLibraryEx: 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 hm = LoadLibraryEx(getProgramPath(), 0, LOAD_LIBRARY_AS_DATAFILE & 0x2 /*LOAD_LIBRARY_AS_IMAGE_RESOURCE*/); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWinCommon.c:95:9: [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. return LoadLibrary(library); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:336:2: [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[4096]; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:376:2: [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[4096]; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:61:16: [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). fgConsoleLog= fopen("/dev/console", "w"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:167:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[100], *dir= NULL; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse-memcpy.h:20:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # if defined(memcpy) data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse-memcpy.h:21:12: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # undef memcpy data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse-memcpy.h:23:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. # define memcpy memmove data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:480:2: [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 firstThreadEnvVariable[80]; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:481:2: [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(firstThreadEnvVariable, "JAVA_STARTED_ON_FIRST_THREAD_%d", getpid()); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:703:12: [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(relaunchCommand, initialArgv, (initialArgc + 1) * sizeof(_TCHAR*)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:840:2: [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(result + 1, vmArgs, nVM * sizeof(_TCHAR*)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:841:2: [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(result + 1 + nVM, progArgs, nProg * sizeof(_TCHAR*)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:863:3: [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(&newArgv[2], &argv[1], argc * sizeof(_TCHAR*)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:152:2: [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(config_file, ".ini"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:97:18: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). int numChars = MultiByteToWideChar(CP_ACP, 0, oldArg, -1, NULL, 0); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:100:3: [2] (buffer) MultiByteToWideChar: Requires maximum length in CHARACTERS, not bytes (CWE-120). MultiByteToWideChar(CP_ACP, 0, oldArg, -1, newArg, numChars); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:133:2: [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(initialArgv, argv, (argc + 1) * sizeof(_TCHAR*)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:337:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newArray + 1, configArgv, configArgc * sizeof(_TCHAR *)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:340:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newArray + 1 + configArgc, *argv + 1, (*argc - 1) * sizeof(_TCHAR *)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:90:3: [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(newData, sharedData, length); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:121:3: [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(sharedData, data, length); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:153:3: [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(*id, "%x", shmid); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:184: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(newData, sharedData, length); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:202:3: [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(sharedData, data, length); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:98:17: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). #define _tfopen fopen data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:184:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newArray, l1, size1 * sizeof(_TCHAR *)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:187:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(newArray + size1, l2, size2 * sizeof(_TCHAR *)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:259: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 cmd[MAX_LINE_LENGTH]; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:260: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 lineString[MAX_LINE_LENGTH]; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:262: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 fileName[MAX_LINE_LENGTH]; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:270:12: [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. (void) sprintf(fileName, "/tmp/tmp%ld.txt", curTime); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:276:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(fileName, "r"); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:319:12: [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). num1 = atoi(ver1); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:320:12: [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). num2 = atoi(ver2); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:354:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(version, firstChar, numChars); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:417:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(version, start, length); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:470:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path, command, pathLength); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:531: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). length = strlen(ldPath); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:532:20: [1] (buffer) _tcslen: 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). newPath = malloc((_tcslen(c) + length + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:538: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). length = strlen(dylibPath); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:539:21: [1] (buffer) _tcslen: 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). newPath = malloc((_tcslen(c) + length + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:606:47: [1] (buffer) _tcslen: 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(_tcsncmp((*vmargs)[i], DOCK_ICON_PREFIX, _tcslen(DOCK_ICON_PREFIX)) == 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:607:26: [1] (buffer) _tcslen: 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). icon = (*vmargs)[i] + _tcslen(DOCK_ICON_PREFIX); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:610:52: [1] (buffer) _tcslen: 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(_tcsncmp((*vmargs)[i], DOCK_NAME_PREFIX, _tcslen(DOCK_NAME_PREFIX)) == 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:611:26: [1] (buffer) _tcslen: 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). name = (*vmargs)[i] + _tcslen(DOCK_NAME_PREFIX); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:628:16: [1] (buffer) _tcslen: 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). c = malloc( (_tcslen(APP_NAME_PATTERN) + pidLength + 1) * sizeof(char*)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:634:16: [1] (buffer) _tcslen: 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). c = malloc( (_tcslen(icon) + _tcslen(APP_ICON_PATTERN) + pidLength + 1) * sizeof(char*)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:634:32: [1] (buffer) _tcslen: 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). c = malloc( (_tcslen(icon) + _tcslen(APP_ICON_PATTERN) + pidLength + 1) * sizeof(char*)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoa.c:668: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). setxattr(installPath, INSTALL_UUID, timestampAsChar, strlen(timestampAsChar), 0, 0); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaCommon.c:105:101: [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). CFURLRef url = CFURLCreateFromFileSystemRepresentation(kCFAllocatorDefault, (const UInt8 *)bundle, strlen(bundle), true); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:71:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fgAppPackagePath, argv[0], l); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:187: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). int l= strlen(APP_PACKAGE); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:192:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l= strlen(JAVAROOT); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:220:10: [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 bl= strlen(buffer); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:221:10: [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 sl= strlen(s); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/cocoa/eclipseCocoaMain.c:228:10: [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 bl= strlen(buffer); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:527:24: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(gtk2Msg) + _tcslen(officialName) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:527:43: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(gtk2Msg) + _tcslen(officialName) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:580:29: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(homeMsg) + _tcslen(officialName) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:580:48: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(homeMsg) + _tcslen(officialName) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:595:25: [1] (buffer) _tcslen: 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). errorMsg = malloc((_tcslen(noVMMsg) + _tcslen(officialName) + _tcslen(msg) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:595:44: [1] (buffer) _tcslen: 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). errorMsg = malloc((_tcslen(noVMMsg) + _tcslen(officialName) + _tcslen(msg) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:595:68: [1] (buffer) _tcslen: 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). errorMsg = malloc((_tcslen(noVMMsg) + _tcslen(officialName) + _tcslen(msg) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:609:23: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(startupMsg) + _tcslen(officialName) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:609:45: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(startupMsg) + _tcslen(officialName) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:657:16: [1] (buffer) _tcslen: 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). cp = malloc((_tcslen(CLASSPATH_PREFIX) + _tcslen(jarFile) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:657:44: [1] (buffer) _tcslen: 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). cp = malloc((_tcslen(CLASSPATH_PREFIX) + _tcslen(jarFile) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:663:24: [1] (buffer) _tcslen: 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). cpValue = malloc((_tcslen(jarFile) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:745:22: [1] (buffer) _tcslen: 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 (_tcslen( errorMsg ) > 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:747:65: [1] (buffer) _tcslen: 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 (_tcsncmp(errorMsg, _T_ECLIPSE("<title>"), _tcslen(_T_ECLIPSE("<title>"))) == 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:752:37: [1] (buffer) _tcslen: 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). title = _tcsdup( errorMsg + _tcslen(_T_ECLIPSE("<title>")) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:753:30: [1] (buffer) _tcslen: 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 = _tcsdup( str + _tcslen(_T_ECLIPSE("</title>")) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:770:36: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(returnCodeMsg) + _tcslen(msg) + 10) *sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:770:61: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(returnCodeMsg) + _tcslen(msg) + 10) *sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:777:27: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(exitMsg) + _tcslen(msg) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:777:46: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(exitMsg) + _tcslen(msg) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:782:18: [1] (buffer) _tcslen: 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 (_tcslen(errorMsg) > 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:954:14: [1] (buffer) _tcslen: 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). length = _tcslen( data ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:982:22: [1] (buffer) _tcslen: 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). configFile = malloc(_tcslen(osPath) + 1 + strlen(bname) + 5 * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:982:44: [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). configFile = malloc(_tcslen(osPath) + 1 + strlen(bname) + 5 * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1073:43: [1] (buffer) _tcslen: 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 (_tcsncmp((*vmArgv)[i], ADDMODULES, _tcslen(ADDMODULES)) == 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1079:16: [1] (buffer) _tcslen: 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 (_tcslen(ADDMODULES) == _tcslen((*vmArgv)[i])) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1079:39: [1] (buffer) _tcslen: 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 (_tcslen(ADDMODULES) == _tcslen((*vmArgv)[i])) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1177:9: [1] (buffer) _tcslen: 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 (_tcslen(osArchArg) > 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1276:14: [1] (buffer) _tcslen: 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). length += _tcslen(list[index]) + 1; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1295:10: [1] (buffer) _tcslen: 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). ch += _tcslen( list[index] ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1379:27: [1] (buffer) _tcslen: 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). programDir = malloc( (_tcslen( program ) + 1) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1402:11: [1] (buffer) _tcslen: 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). length = _tcslen(splashArg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1437:20: [1] (buffer) _tcslen: 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). path = malloc( (_tcslen(programDir) + ch - splashArg + 2) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1445:19: [1] (buffer) _tcslen: 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). path = malloc( (_tcslen(programDir) + 9) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1455:18: [1] (buffer) _tcslen: 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). path = malloc((_tcslen(ch) + 12) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1483:28: [1] (buffer) _tcslen: 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). progLength = pathLength = _tcslen(programDir); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1543:54: [1] (buffer) _tcslen: 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(_tcsncmp(vmCommand[i], CLASSPATH_PREFIX, _tcslen(CLASSPATH_PREFIX)) == 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1673:22: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = _tcslen(vmName); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1684:20: [1] (buffer) _tcslen: 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). ch = malloc((_tcslen(vmName) + 1 + _tcslen(DEFAULT_EE) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1684:42: [1] (buffer) _tcslen: 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). ch = malloc((_tcslen(vmName) + 1 + _tcslen(DEFAULT_EE) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1691:21: [1] (buffer) _tcslen: 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). ch = malloc((_tcslen(vmName) + 1 + _tcslen(defaultJava) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1691:43: [1] (buffer) _tcslen: 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). ch = malloc((_tcslen(vmName) + 1 + _tcslen(defaultJava) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1697:22: [1] (buffer) _tcslen: 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). ch = malloc((_tcslen(vmName) + 1 + _tcslen(vmLibrary) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1697:44: [1] (buffer) _tcslen: 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). ch = malloc((_tcslen(vmName) + 1 + _tcslen(vmLibrary) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1706:30: [1] (buffer) _tcslen: 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). *msg = malloc( (3 * (_tcslen(vmName) + 2) + _tcslen(DEFAULT_EE) + _tcslen(defaultJava) + _tcslen(vmLibrary) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1706:53: [1] (buffer) _tcslen: 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). *msg = malloc( (3 * (_tcslen(vmName) + 2) + _tcslen(DEFAULT_EE) + _tcslen(defaultJava) + _tcslen(vmLibrary) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1706:75: [1] (buffer) _tcslen: 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). *msg = malloc( (3 * (_tcslen(vmName) + 2) + _tcslen(DEFAULT_EE) + _tcslen(defaultJava) + _tcslen(vmLibrary) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1706:98: [1] (buffer) _tcslen: 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). *msg = malloc( (3 * (_tcslen(vmName) + 2) + _tcslen(DEFAULT_EE) + _tcslen(defaultJava) + _tcslen(vmLibrary) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1735:23: [1] (buffer) _tcslen: 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). *msg = malloc((_tcslen(pathMsg) + _tcslen(vmName)) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1735:42: [1] (buffer) _tcslen: 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). *msg = malloc((_tcslen(pathMsg) + _tcslen(vmName)) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1756:23: [1] (buffer) _tcslen: 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). *msg = malloc((_tcslen(pathMsg) + _tcslen(vmName)) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1756:42: [1] (buffer) _tcslen: 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). *msg = malloc((_tcslen(pathMsg) + _tcslen(vmName)) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1769:20: [1] (buffer) _tcslen: 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). ch = malloc( (_tcslen( programDir ) + _tcslen( shippedVMDir ) + _tcslen( DEFAULT_EE ) + 1) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1769:44: [1] (buffer) _tcslen: 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). ch = malloc( (_tcslen( programDir ) + _tcslen( shippedVMDir ) + _tcslen( DEFAULT_EE ) + 1) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1769:70: [1] (buffer) _tcslen: 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). ch = malloc( (_tcslen( programDir ) + _tcslen( shippedVMDir ) + _tcslen( DEFAULT_EE ) + 1) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1780:23: [1] (buffer) _tcslen: 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). ch = malloc( (_tcslen( programDir ) + _tcslen( shippedVMDir ) + _tcslen( defaultJava ) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1780:47: [1] (buffer) _tcslen: 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). ch = malloc( (_tcslen( programDir ) + _tcslen( shippedVMDir ) + _tcslen( defaultJava ) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1780:73: [1] (buffer) _tcslen: 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). ch = malloc( (_tcslen( programDir ) + _tcslen( shippedVMDir ) + _tcslen( defaultJava ) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1793:21: [1] (buffer) _tcslen: 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). ch = malloc( (_tcslen(pathMsg) + _tcslen(defaultJava) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1793:40: [1] (buffer) _tcslen: 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). ch = malloc( (_tcslen(pathMsg) + _tcslen(defaultJava) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1797:23: [1] (buffer) _tcslen: 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). *msg = malloc((_tcslen(ch) + 1 + _tcslen(vmSearchPath) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1797:41: [1] (buffer) _tcslen: 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). *msg = malloc((_tcslen(ch) + 1 + _tcslen(vmSearchPath) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1854:21: [1] (buffer) _tcslen: 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). c2 = malloc( (_tcslen(argv[index]) + _tcslen(eeDir) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1854:44: [1] (buffer) _tcslen: 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). c2 = malloc( (_tcslen(argv[index]) + _tcslen(eeDir) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1865:56: [1] (buffer) _tcslen: 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 (_tcsncmp( argv[index], eeOptions[i].name, _tcslen(eeOptions[i].name) ) == 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1875:25: [1] (buffer) _tcslen: 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). c1 = malloc( (_tcslen(argv[index]) - _tcslen(option->name) + 1) *sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1875:48: [1] (buffer) _tcslen: 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). c1 = malloc( (_tcslen(argv[index]) - _tcslen(option->name) + 1) *sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1876:40: [1] (buffer) _tcslen: 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). _tcscpy(c1, argv[index] + _tcslen(option->name)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1897:19: [1] (buffer) _tcslen: 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). c1 = malloc( (_tcslen(EE_HOME) + _tcslen(eeDir) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1897:38: [1] (buffer) _tcslen: 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). c1 = malloc( (_tcslen(EE_HOME) + _tcslen(eeDir) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1901:19: [1] (buffer) _tcslen: 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). c1 = malloc( (_tcslen(EE_FILENAME) + _tcslen(eeFile) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1901:42: [1] (buffer) _tcslen: 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). c1 = malloc( (_tcslen(EE_FILENAME) + _tcslen(eeFile) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1976:24: [1] (buffer) _tcslen: 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). paths[i] = malloc((_tcslen(entry) + 7 + _tcslen(arch)) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1976:45: [1] (buffer) _tcslen: 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). paths[i] = malloc((_tcslen(entry) + 7 + _tcslen(arch)) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipse.c:1987:24: [1] (buffer) _tcslen: 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). paths[i] = malloc((_tcslen(entry) + 2) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:150:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). namelen = strlen(name); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:151:13: [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). valuelen = strlen(value); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:158:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(var, name, namelen); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:160:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( &var[namelen + 1], value, valuelen); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:191:18: [1] (buffer) _tcslen: 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). length = _tcslen( command ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:202:48: [1] (buffer) _tcslen: 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). length = MAX_PATH_LENGTH + EXTRA + _tcslen( command ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:205:22: [1] (buffer) _tcslen: 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). length = _tcslen(cmdPath); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:223:26: [1] (buffer) _tcslen: 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). ch = malloc((_tcslen(path) + MAX_PATH_LENGTH + 2) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:225:22: [1] (buffer) _tcslen: 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). length = _tcslen(ch); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:236:23: [1] (buffer) _tcslen: 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). length = _tcslen( path ) + _tcslen( command ) + MAX_PATH_LENGTH; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:236:41: [1] (buffer) _tcslen: 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). length = _tcslen( path ) + _tcslen( command ) + MAX_PATH_LENGTH; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:251:22: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy( cmdPath, dir, length ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:263:31: [1] (buffer) _tcslen: 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). length = _tcslen( cmdPath ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:273:22: [1] (buffer) _tcslen: 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 (_tcslen(cmdPath) == 0 || /*an empty path entry is treated as '.' */ data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:274:54: [1] (buffer) _tcslen: 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). (cmdPath[0] == _T_ECLIPSE('.') && (_tcslen(cmdPath) == 1 || (_tcslen(cmdPath) == 2 && IS_DIR_SEPARATOR(cmdPath[1]))))) data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:274:80: [1] (buffer) _tcslen: 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). (cmdPath[0] == _T_ECLIPSE('.') && (_tcslen(cmdPath) == 1 || (_tcslen(cmdPath) == 2 && IS_DIR_SEPARATOR(cmdPath[1]))))) data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:278:27: [1] (buffer) _tcslen: 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). length = _tcslen(cmdPath); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:302:15: [1] (buffer) _tcslen: 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). length = _tcslen( cmdPath ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:356:5: [1] (buffer) _tcslen: 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(_tcslen(candidate) <= prefixLength) data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:409:15: [1] (buffer) _tcslen: 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). pathLength = _tcslen(path); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:423:17: [1] (buffer) _tcslen: 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). prefixLength = _tcslen(prefix); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:425:22: [1] (buffer) _tcslen: 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). fileName = malloc( (_tcslen(path) + 1 + _tcslen(prefix) + 3) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:425:42: [1] (buffer) _tcslen: 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). fileName = malloc( (_tcslen(path) + 1 + _tcslen(prefix) + 3) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:465:37: [1] (buffer) _tcslen: 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). result = malloc((pathLength + 1 + _tcslen(candidate) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:479:30: [1] (buffer) _tcslen: 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). _TCHAR * fullPath = malloc((_tcslen(path) + _tcslen(entry) + 2) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:479:46: [1] (buffer) _tcslen: 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). _TCHAR * fullPath = malloc((_tcslen(path) + _tcslen(entry) + 2) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:526:22: [1] (buffer) _tcslen: 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). buffer = malloc((_tcslen(paths[0]) + _tcslen(paths[1]) + _tcslen(path) + 2) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:526:42: [1] (buffer) _tcslen: 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). buffer = malloc((_tcslen(paths[0]) + _tcslen(paths[1]) + _tcslen(path) + 2) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:526:62: [1] (buffer) _tcslen: 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). buffer = malloc((_tcslen(paths[0]) + _tcslen(paths[1]) + _tcslen(path) + 2) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseCommon.c:528:10: [1] (buffer) _tcslen: 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 (_tcslen(paths[i]) == 0) data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:52:31: [1] (buffer) _tcslen: 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 ((lhsOuterPos != NULL) && _tcslen(lhsOuterPos) > LHS_LEN) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:60:4: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy(var, lhsInnerPos + 1, (rhsInnerPos - lhsInnerPos - 1)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:72:13: [1] (buffer) _tcslen: 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). + _tcslen(value) /* de-referenced variable */ data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:73:13: [1] (buffer) _tcslen: 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). + _tcslen(remaining) /* rest of the string (expanded vars) */ data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:77:5: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy(result, input, beginLen); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:116:25: [1] (buffer) _tcslen: 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). config_file = malloc( (_tcslen(program) + 5) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:126:30: [1] (buffer) _tcslen: 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). extension = config_file + _tcslen(config_file); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:146: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). config_file = realloc(config_file, strlen(dname) + strlen(bname) + 16 * sizeof(char)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:146:53: [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). config_file = realloc(config_file, strlen(dname) + strlen(bname) + 16 * sizeof(char)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:188:56: [1] (buffer) _tcslen: 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). while (buffer[bufferSize - 2] != _T_ECLIPSE('\n') && _tcslen(buffer) == (bufferSize - 1)) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseConfig.c:210:13: [1] (buffer) _tcslen: 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). length = _tcslen(arg); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:77:6: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy( exitData, data, length); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:194:2: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy(copy, stringChars, length); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:244:18: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = _tcslen(str); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:249:18: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = _tcslen(str); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:332:35: [1] (buffer) _tcslen: 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). results->errorMessage = malloc((_tcslen(failedToLoadLibrary) + _tcslen(libPath) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:332:66: [1] (buffer) _tcslen: 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). results->errorMessage = malloc((_tcslen(failedToLoadLibrary) + _tcslen(libPath) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:340:35: [1] (buffer) _tcslen: 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). results->errorMessage = malloc((_tcslen(createVMSymbolNotFound) + _tcslen(libPath) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:340:69: [1] (buffer) _tcslen: 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). results->errorMessage = malloc((_tcslen(createVMSymbolNotFound) + _tcslen(libPath) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:407:36: [1] (buffer) _tcslen: 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). results->errorMessage = malloc((_tcslen(mainClassNotFound) + _tcslen(jarFile) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseJNI.c:407:65: [1] (buffer) _tcslen: 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). results->errorMessage = malloc((_tcslen(mainClassNotFound) + _tcslen(jarFile) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:184:23: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(rootMsg) + _tcslen(officialName) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:184:42: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(rootMsg) + _tcslen(officialName) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:197:23: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(libraryMsg) + _tcslen(officialName) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:197:45: [1] (buffer) _tcslen: 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). errorMsg = malloc( (_tcslen(libraryMsg) + _tcslen(officialName) + 10) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:247:15: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = _tcslen(argv[0]); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:267:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). program = malloc( (strlen( argv[0] ) + 1) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:362:27: [1] (buffer) _tcslen: 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). programDir = malloc( (_tcslen( program ) + 1) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:461:19: [1] (buffer) _tcslen: 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). fragmentLength = _tcslen(DEFAULT_EQUINOX_STARTUP) + 1 + _tcslen(wsArg) + 1 + _tcslen(osArg) + 1 + _tcslen(osArchArg) + 1; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:461:58: [1] (buffer) _tcslen: 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). fragmentLength = _tcslen(DEFAULT_EQUINOX_STARTUP) + 1 + _tcslen(wsArg) + 1 + _tcslen(osArg) + 1 + _tcslen(osArchArg) + 1; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:461:79: [1] (buffer) _tcslen: 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). fragmentLength = _tcslen(DEFAULT_EQUINOX_STARTUP) + 1 + _tcslen(wsArg) + 1 + _tcslen(osArg) + 1 + _tcslen(osArchArg) + 1; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:461:100: [1] (buffer) _tcslen: 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). fragmentLength = _tcslen(DEFAULT_EQUINOX_STARTUP) + 1 + _tcslen(wsArg) + 1 + _tcslen(osArg) + 1 + _tcslen(osArchArg) + 1; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseMain.c:474:28: [1] (buffer) _tcslen: 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). progLength = pathLength = _tcslen(programDir); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:89: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). path = malloc((pathLength + MAX_LOCATION_LENGTH + 1 + strlen(vmLibrary) + 1) * sizeof(char)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:90:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(path, command, pathLength); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:138: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). length = strlen(ldPath); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:140:20: [1] (buffer) _tcslen: 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). newPath = malloc((_tcslen(c) + length + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseNix.c:193:5: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy(version, firstChar, numChars); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:46:20: [1] (buffer) _tcslen: 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 (id != NULL && _tcslen(id) > 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:88:20: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = (_tcslen(sharedData) + 1) * sizeof(_TCHAR); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:120:20: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t length = (_tcslen(data) + 1) * sizeof(_TCHAR); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:162:20: [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 (id != NULL && strlen(id) > 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:182: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). length = strlen(sharedData) + 1; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseShm.c:201:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(data) + 1; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:95:9: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). #define _tcslen strlen data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:95: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). #define _tcslen strlen data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:96:9: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define _tcsncpy strncpy data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUnicode.h:96:18: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). #define _tcsncpy strncpy data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:108:24: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t bufferLength = _tcslen(pathList); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:119:19: [1] (buffer) _tcslen: 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). checkedLength = _tcslen(checked); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:153:13: [1] (buffer) _tcslen: 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). length += _tcslen(strs[i]) + (separator != 0 ? 1 : 0); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:220:19: [1] (buffer) _tcslen: 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). buffer = malloc((_tcslen(str) + 2) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/eclipseUtil.c:294:7: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(version, firstChar, numChars); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:100:16: [1] (buffer) _tcslen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = _tcslen(openFilePath[index++]); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:126:24: [1] (buffer) _tcslen: 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). windowTitle = malloc((_tcslen(windowPrefix) + _tcslen(name) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:126:48: [1] (buffer) _tcslen: 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). windowTitle = malloc((_tcslen(windowPrefix) + _tcslen(name) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:165:22: [1] (buffer) _tcslen: 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). mutexName = malloc((_tcslen(mutexPrefix) + _tcslen(name) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:165:45: [1] (buffer) _tcslen: 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). mutexName = malloc((_tcslen(mutexPrefix) + _tcslen(name) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:364:21: [1] (buffer) _tcslen: 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). newPath = malloc((_tcslen(c) + length + 1 + _tcslen(cwd) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:364:47: [1] (buffer) _tcslen: 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). newPath = malloc((_tcslen(c) + length + 1 + _tcslen(cwd) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:405:57: [1] (buffer) _tcslen: 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). path = malloc((pathLength + MAX_LOCATION_LENGTH + 1 + _tcslen(vmLibrary) + 1) * sizeof(_TCHAR)); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:406:3: [1] (buffer) _tcsncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). _tcsncpy(path, command, pathLength); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:423:24: [1] (buffer) _tcslen: 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). location = malloc( (_tcslen( getProgramDir() ) + _tcslen( shippedVMDir ) + 1) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:423:53: [1] (buffer) _tcslen: 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). location = malloc( (_tcslen( getProgramDir() ) + _tcslen( shippedVMDir ) + 1) * sizeof(_TCHAR) ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:425:41: [1] (buffer) _tcslen: 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( _tcsncmp(command, location, _tcslen(location)) == 0) { data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:496:12: [1] (buffer) _tcslen: 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). length = _tcslen(program) + 1; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:500:13: [1] (buffer) _tcslen: 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). length += _tcslen( args[ index ] ) + 1; data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:508:9: [1] (buffer) _tcslen: 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). ch += _tcslen(program); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:516:9: [1] (buffer) _tcslen: 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). ch += _tcslen( args[index] ); data/equinox-framework-4.17/features/org.eclipse.equinox.executable.feature/library/win32/eclipseWin.c:645:25: [1] (buffer) _tcslen: 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). versionKey = malloc((_tcslen(PRODUCT_VERSION_KEY) + 1) * sizeof(_TCHAR)); ANALYSIS SUMMARY: Hits = 378 Lines analyzed = 8005 in approximately 0.51 seconds (15574 lines/second) Physical Source Lines of Code (SLOC) = 5576 Hits@level = [0] 17 [1] 197 [2] 34 [3] 17 [4] 130 [5] 0 Hits@level+ = [0+] 395 [1+] 378 [2+] 181 [3+] 147 [4+] 130 [5+] 0 Hits/KSLOC@level+ = [0+] 70.8393 [1+] 67.7905 [2+] 32.4605 [3+] 26.363 [4+] 23.3142 [5+] 0 Dot directories skipped = 11 (--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.