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/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaJavaRequestProcessor.h
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.h
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaParseProperties.cc
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaParseProperties.h
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.h
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaScriptablePluginObject.cc
Examining data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaScriptablePluginObject.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/AssertException.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/AssertException.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/CheckMacros.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/Checks.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/Checks.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/Config.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/CurrentTest.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/CurrentTest.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/DeferredTestReporter.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/DeferredTestReporter.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/DeferredTestResult.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/DeferredTestResult.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/ExecuteTest.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/MemoryOutStream.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/MemoryOutStream.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/Posix/SignalTranslator.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/Posix/SignalTranslator.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/Posix/TimeHelpers.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/Posix/TimeHelpers.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/ReportAssert.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/ReportAssert.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/Test.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/Test.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestDetails.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestDetails.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestList.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestList.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestMacros.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestReporter.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestReporter.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestReporterStdout.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestReporterStdout.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestResults.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestResults.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestRunner.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestRunner.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TestSuite.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TimeConstraint.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TimeConstraint.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/TimeHelpers.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/UnitTest++.h
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/XmlTestReporter.cpp
Examining data/icedtea-web-1.8.4/tests/UnitTest++/src/XmlTestReporter.h
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaJavaRequestProcessorTest.cc
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaNPPluginTest.cc
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaParsePropertiesTest.cc
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaScriptablePluginObjectTest.cc
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/MemoryLeakDetector.h
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/PluginParametersTest.cc
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/browser_mock.cc
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/browser_mock.h
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/browser_mock_npidentifier.cc
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/browser_mock_npidentifier.h
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/checked_allocations.cc
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/checked_allocations.h
Examining data/icedtea-web-1.8.4/tests/cpp-unit-tests/main.cc

FINAL RESULTS:

data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:2095:8:  [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).
  std::strcpy (fileNameX, data_directory.c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:361: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(copy, str);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:1346: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(msg, message);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:133:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
      snprintf(ldebug_body, BODY_SIZE,  __VA_ARGS__);                               \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:179:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(ldebug_body, BODY_SIZE,  __VA_ARGS__);   \
data/icedtea-web-1.8.4/tests/UnitTest++/src/AssertException.cpp:11:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(m_description, description);
data/icedtea-web-1.8.4/tests/UnitTest++/src/AssertException.cpp:12:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(m_filename, filename);
data/icedtea-web-1.8.4/tests/UnitTest++/src/MemoryOutStream.cpp:34:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(txt, format, value);
data/icedtea-web-1.8.4/tests/UnitTest++/src/MemoryOutStream.cpp:77:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(m_buffer, txt);
data/icedtea-web-1.8.4/tests/UnitTest++/src/MemoryOutStream.cpp:137:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(buffer, m_buffer);
data/icedtea-web-1.8.4/tests/UnitTest++/src/TestReporterStdout.cpp:17:5:  [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.
    printf(errorFormat, details.filename, details.lineNumber, details.testName, failure);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:250:20:  [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.
int plugin_debug = getenv ("ICEDTEAPLUGIN_DEBUG") != NULL;
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:259:29:  [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.
int plugin_debug_suspend = (getenv("ICEDTEAPLUGIN_DEBUG") != NULL) &&
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:260:17:  [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.
        (strcmp(getenv("ICEDTEAPLUGIN_DEBUG"), "suspend") == 0);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:2089:7:  [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.
  if (getenv("USER") != NULL) {
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:2090:39:  [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.
    data_directory = data_directory + getenv("USER") + "-";
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaParseProperties.cc:120:6:  [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.
	if (getenv ("XDG_CONFIG_HOME") != NULL){
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaParseProperties.cc:121:17:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
		return string(getenv ("XDG_CONFIG_HOME"))+"/icedtea-web/"+default_file_ITW_deploy_props_name;
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaParseProperties.cc:131:7:  [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.
		if (getenv ("XDG_CONFIG_HOME") != NULL){
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaParseProperties.cc:132: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.
			config_dir = string(getenv("XDG_CONFIG_HOME"));
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:1298:28:  [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* tmpdir_env = getenv("TMPDIR");
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:1317: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.
 const char* rntdir_env = getenv("XDG_RUNTIME_DIR");
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:81: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.
      plugin_debug = getenv ("ICEDTEAPLUGIN_DEBUG") != NULL || is_debug_on(); \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:113:37:  [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 *userNameforDebug = (getenv("USERNAME") == NULL) ? "unknown user" : getenv("USERNAME");  \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:113:84:  [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 *userNameforDebug = (getenv("USERNAME") == NULL) ? "unknown user" : getenv("USERNAME");  \
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaParsePropertiesTest.cc:71:16:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
	string path = tmpnam(NULL); /* POSIX function, fine for test suite */
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:144:21:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
	std::string path = tmpnam(NULL); /* POSIX function, fine for test suite */
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:162:20:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
	std::string dir = tmpnam(NULL);
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:171:18:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
	std::string n = tmpnam(NULL);
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:179:18:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
	std::string d = tmpnam(NULL);
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:196:19:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
	std::string f1 = tmpnam(NULL);
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:206:19:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
	std::string f3 = tmpnam(NULL);
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:214:19:  [3] (tmpfile) tmpnam:
  Temporary file race condition (CWE-377).
	std::string f4 = tmpnam(NULL);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc:68:7:  [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).
		if (atoi(message_parts->at(1)->c_str()) == this->instance && atoi(message_parts->at(3)->c_str()) == this->reference)
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc:68:64:  [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).
		if (atoi(message_parts->at(1)->c_str()) == this->instance && atoi(message_parts->at(3)->c_str()) == this->reference)
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc:119:33:  [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).
				result->return_identifier = atoi(message_parts->at(5)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc:146:40:  [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).
			        result->return_identifier = atoi(message_parts->at(5)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc:875:6:  [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(valueStr, "%d", NPVARIANT_TO_INT32(variant));
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc:883:6:  [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(valueStr, "%f", NPVARIANT_TO_DOUBLE(variant));
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1281:25:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      int instance_id = atoi(parts[1]);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:2046: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(&browser_functions, browserTable, copySize);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:2094:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char fileNameX[data_directory.length()+1];
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:172:10:  [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).
    id = atoi(message_parts->at(1)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:173:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    reference = atoi(message_parts->at(3)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:218:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    reference = atoi(message_parts->at(3)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:273:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    reference = atoi(message_parts->at(3)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:351:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    reference = atoi(message_parts->at(3)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:403:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    reference = atoi(message_parts->at(3)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:497:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    reference = atoi(message_parts->at(3)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:500:19:  [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).
    instance_id = atoi(message_parts->at(1)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:572:10:  [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).
    id = atoi(message_parts->at(1)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:573:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    reference = atoi(message_parts->at(3)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:605:14:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int id = atoi(message_parts->at(1)->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:766:63:  [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).
    	property_identifier = browser_functions.getintidentifier(atoi(property_id->c_str()));
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:798:61:  [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).
    	member_identifier = browser_functions.getintidentifier(atoi(member_id->c_str()));
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:208: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 id_str[NUM_STR_BUFFER_SIZE];
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:317: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 int_str[NUM_STR_BUFFER_SIZE];
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:429: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 hex_value[NUM_STR_BUFFER_SIZE];
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:756:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char conv_str[NUM_STR_BUFFER_SIZE]; // conversion buffer
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:1235:30:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    int plugin_file_log_fd = open(plugin_file_log_name.c_str(), O_WRONLY | O_CREAT | O_EXCL, 0600);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:1249: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 times[96];
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:1250: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 result[100];
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:108: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 times[100];                                   \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:125:7:  [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 ldebug_header[HEADER_SIZE]; \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:126:7:  [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 ldebug_body[BODY_SIZE];     \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:127:7:  [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 ldebug_message[MESSAGE_SIZE];\
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:149:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char ldebug_channel_message[LDEBUG_MESSAGE_SIZE];                               \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:171: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 ldebug_header[HEADER_SIZE];   \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:172:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char ldebug_body[BODY_SIZE];       \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:173: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 ldebug_message[MESSAGE_SIZE]; \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:195:7:  [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 ldebug_channel_message[LDEBUG_MESSAGE_SIZE];                               \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaScriptablePluginObject.cc:629:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int length = atoi(java_result->return_string->c_str());
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaScriptablePluginObject.cc:714:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            int length = atoi(java_result->return_string->c_str());
data/icedtea-web-1.8.4/tests/UnitTest++/src/AssertException.h:21: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 m_description[512];
data/icedtea-web-1.8.4/tests/UnitTest++/src/AssertException.h:22: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 m_filename[256];
data/icedtea-web-1.8.4/tests/UnitTest++/src/MemoryOutStream.cpp:33: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 txt[32];
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaParsePropertiesTest.cc:73:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	myfile.open (path.c_str());
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:146:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	myfile.open (path.c_str());
data/icedtea-web-1.8.4/tests/cpp-unit-tests/browser_mock_npidentifier.cc:115: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(copy, contents->string.c_str(), contents->string.size() + 1);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc:276:21:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                    usleep(1000); // 1ms
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaJavaRequestProcessor.cc:280:17:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
                usleep(1000); // 1ms
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1190:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gchar* decoded_url = (gchar*) calloc(strlen(parts[4]) + 1, sizeof(gchar));
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1215:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gchar* decoded_url = (gchar*) calloc(strlen(parts[4])+1, sizeof(gchar));
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1247:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gchar* decoded_url = (gchar*) calloc(strlen(cookie_parts[4])+1, sizeof(gchar));
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1251: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).
    uint32_t len = strlen(cookie_string);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1299:11:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
          strcpy(parts[0], "");
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1300:11:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
          strcpy(parts[1], "");
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1301:11:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
          strcpy(parts[2], "");
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1415:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (moz_home == NULL || path_old == NULL || strlen (path_old) == 0)
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1418: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).
    moz_home[strlen (moz_home - 1)] = '\0';
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1439:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (path_new == NULL || strlen (path_new) == 0)
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaNPPlugin.cc:1739:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t length = strlen(to_encode);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginRequestProcessor.cc:992:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gchar* decoded_url = (gchar*) calloc(strlen(url->c_str())*4 + 1, sizeof(gchar));
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:356: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).
	v->reserve(strlen(str)/2);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:360:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	copy = (char*) malloc (sizeof(char)*strlen(str) + 1);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:969:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int length = strlen(url);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:988:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(*decoded_url, &decoded, 1);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:993:13:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
            strncat(*decoded_url, &url[i], 1);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:1018:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(utf8, result.c_str(), result.size() + 1);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:1048:13:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
            usleep(2000);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.cc:1345:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char* msg = (char*) malloc(sizeof(char)*strlen(message) + 1);
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:131:9:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
        sprintf(ldebug_header,"");     \
data/icedtea-web-1.8.4/plugin/icedteanp/IcedTeaPluginUtils.h:177:7:  [1] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source is a constant character.
      sprintf(ldebug_header,"");       \
data/icedtea-web-1.8.4/tests/UnitTest++/src/Checks.h:64:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        equal &= (expected[i] == actual[i]);
data/icedtea-web-1.8.4/tests/UnitTest++/src/Checks.h:66:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!equal)
data/icedtea-web-1.8.4/tests/UnitTest++/src/Checks.h:91:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        equal &= AreClose(expected[i], actual[i], tolerance);
data/icedtea-web-1.8.4/tests/UnitTest++/src/Checks.h:92:12:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    return equal;
data/icedtea-web-1.8.4/tests/UnitTest++/src/Checks.h:101:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!equal)
data/icedtea-web-1.8.4/tests/UnitTest++/src/Checks.h:124:9:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        equal &= ArrayAreClose(expected[i], actual[i], columns, tolerance);
data/icedtea-web-1.8.4/tests/UnitTest++/src/Checks.h:126:10:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    if (!equal)
data/icedtea-web-1.8.4/tests/UnitTest++/src/MemoryOutStream.cpp:68:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int const bytesLeft = m_capacity - (int)strlen(m_buffer);
data/icedtea-web-1.8.4/tests/UnitTest++/src/MemoryOutStream.cpp:69:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int const bytesRequired = (int)strlen(txt) + 1;
data/icedtea-web-1.8.4/tests/UnitTest++/src/MemoryOutStream.cpp:139:9:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
        strcpy(buffer, "");
data/icedtea-web-1.8.4/tests/UnitTest++/src/Posix/TimeHelpers.cpp:30:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(ms * 1000);
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaJavaRequestProcessorTest.cc:300:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        CHECK(strncmp(tostring_result.c_str(), substr, strlen(substr)) == 0);
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaJavaRequestProcessorTest.cc:365:75:  [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).
        CHECK(strncmp(jrp_get_to_string_value(object_id).c_str(), substr, strlen(substr)) == 0);
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:193:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	stdout = fmemopen (buf1, strlen (buf1), "rw");
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:194:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	stderr = fmemopen (buf2, strlen (buf2), "rw");
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:235:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	stdout = fmemopen (buf1, strlen (buf1), "rw");
data/icedtea-web-1.8.4/tests/cpp-unit-tests/IcedTeaPluginUtilsTest.cc:236:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	stderr = fmemopen (buf2, strlen (buf2), "rw");

ANALYSIS SUMMARY:

Hits = 120
Lines analyzed = 13089 in approximately 0.80 seconds (16274 lines/second)
Physical Source Lines of Code (SLOC) = 8561
Hits@level = [0]  46 [1]  41 [2]  46 [3]  22 [4]  11 [5]   0
Hits@level+ = [0+] 166 [1+] 120 [2+]  79 [3+]  33 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 19.3903 [1+] 14.0171 [2+] 9.22789 [3+] 3.85469 [4+] 1.2849 [5+]   0
Dot directories skipped = 2 (--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.