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/r-cran-rinside-0.2.16/src/MemBuf.cpp
Examining data/r-cran-rinside-0.2.16/src/compiler.cpp
Examining data/r-cran-rinside-0.2.16/src/setenv/setenv.c
Examining data/r-cran-rinside-0.2.16/src/RInside_C.cpp
Examining data/r-cran-rinside-0.2.16/src/RInside.cpp
Examining data/r-cran-rinside-0.2.16/src/RcppExports.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/mpi/rinside_mpi_sample3.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/mpi/rinside_mpi_sample1.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/mpi/rinside_mpi_sample4.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/mpi/rinside_mpi_sample2.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/mpi/rinside_mpi_sample0.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/threads/boostEx.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/eigen/rinside_eigen0.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/eigen/rinside_eigen1.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/constants.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/typeid.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/example_client.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/callback_helper.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/example_server.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/bar.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/bar.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/foo.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/foo.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/bar_rcpp_wrapper_declarations.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/bar_rcpp_wrapper_definitions.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/foo_rcpp_wrapper_definitions.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/foo_rcpp_wrapper_declarations.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinside_callbacks.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.h
Examining data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/internalfunction_clone.h
Examining data/r-cran-rinside-0.2.16/inst/examples/armadillo/rinside_arma0.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/armadillo/rinside_arma1.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/c_interface/passdata.c
Examining data/r-cran-rinside-0.2.16/inst/examples/c_interface/hello.c
Examining data/r-cran-rinside-0.2.16/inst/examples/qt/qtdensity.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/qt/qtdensity.h
Examining data/r-cran-rinside-0.2.16/inst/examples/qt/main.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/wt/wtdensityPlain.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/wt/wtdensity.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample13.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_callbacks1.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_test1.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample6.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample11.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample10.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample8.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample7.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample0.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_module_sample0.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample5.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample9.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample1.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample14.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample12.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample4.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_interactive0.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample17.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_callbacks0.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample2.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_test0.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample15.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_test2.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample3.cpp
Examining data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample16.cpp
Examining data/r-cran-rinside-0.2.16/inst/include/Callbacks.h
Examining data/r-cran-rinside-0.2.16/inst/include/RInside_C.h
Examining data/r-cran-rinside-0.2.16/inst/include/MemBuf.h
Examining data/r-cran-rinside-0.2.16/inst/include/RInside.h
Examining data/r-cran-rinside-0.2.16/inst/include/RInsideCommon.h
Examining data/r-cran-rinside-0.2.16/inst/include/RInsideConfig.h

FINAL RESULTS:

data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/example_server.cpp:169:2:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	chmod(ris_socket_address, 0777);
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.cpp:62: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(server_addr.sun_path, server_path);
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/example_server.cpp:42:53:  [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 LOG(...) {fprintf(stderr, "%d: ", getpid());fprintf(stderr, __VA_ARGS__);fprintf(stderr, "\n");}
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/example_server.cpp:162: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(server_addr.sun_path, ris_socket_address);
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:5:53:  [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 LOG(...) {fprintf(stderr, "%d: ", getpid());fprintf(stderr, __VA_ARGS__);fprintf(stderr, "\n");}
data/r-cran-rinside-0.2.16/src/setenv/setenv.c:38: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(a, env_var);
data/r-cran-rinside-0.2.16/src/setenv/setenv.c:39: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(b, env_val);
data/r-cran-rinside-0.2.16/src/setenv/setenv.c:45:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy(buf, a); strcat(buf, "=");
data/r-cran-rinside-0.2.16/src/RInside.cpp:127:9:  [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("R_HOME") == NULL) { 		// if on Windows and not set
data/r-cran-rinside-0.2.16/src/RInside.cpp:136:13:  [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(R_VARS[i]) == NULL) { // if env variable is not yet set
data/r-cran-rinside-0.2.16/src/RInside.cpp:168: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 *temp = getenv("R_HOME");       // which is set above as part of R_VARS
data/r-cran-rinside-0.2.16/src/RInside.cpp:215:11:  [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.
    tmp = getenv("TMPDIR");
data/r-cran-rinside-0.2.16/src/RInside.cpp:217:15:  [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.
        tmp = getenv("TMP");
data/r-cran-rinside-0.2.16/src/RInside.cpp:219: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.
            tmp = getenv("TEMP");
data/r-cran-rinside-0.2.16/src/RInside.cpp:236:5:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srand(seed);
data/r-cran-rinside-0.2.16/inst/examples/qt/qtdensity.cpp:135:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    infile.open(QFile::ReadOnly);
data/r-cran-rinside-0.2.16/inst/examples/qt/qtdensity.cpp:137:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    outfile.open(QFile::WriteOnly | QFile::Truncate);
data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample11.cpp:24:44:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  std::cout << "Could now use plot in " << tmpfile << std::endl;
data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample11.cpp:25:10:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
  unlink(tmpfile.c_str());		// cleaning up
data/r-cran-rinside-0.2.16/inst/examples/standard/rinside_sample15.cpp:27:44:  [2] (tmpfile) tmpfile:
  Function tmpfile() has a security flaw on some systems (e.g., older System
  V systems) (CWE-377).
    std::cout << "Can now use plot in " << tmpfile << std::endl;
data/r-cran-rinside-0.2.16/src/RInside.cpp:40:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char rHome[MAX_PATH];
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/callback_helper.h:39:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		auto result = stream.read<char>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/callback_helper.h:41:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto error = stream.read<std::string>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/callback_helper.h:47:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		auto type = stream.read<int32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/callback_helper.h:52:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		return stream.read<T>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.cpp:35:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		auto reply = stream.read<char>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.cpp:37:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto callback_id = stream.read<uint32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.cpp:62:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto type = stream.read<int32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.cpp:73:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto result = stream.read<std::string>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.cpp:90:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto result = stream.read<std::string>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.cpp:106:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto reply = stream.read<char>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.cpp:108:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		auto error = stream.read<std::string>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.h:32:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto result = stream.read<T>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.h:56:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto type = stream.read<int32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/client/rinsideclient.h:59:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto result = stream.read<T>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.cpp:84:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
size_t BinaryStream::read(char *buffer, size_t len) {
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.cpp:93:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		auto r = ::read(read_fd, buffer, remaining);
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.cpp:125:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		auto len = stream.read<size_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.cpp:133:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stream.read(buffer.get(), len);
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.cpp:152:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		auto size = stream.read<size_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.cpp:157:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			vec.push_back(stream.read<T>());
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.h:62:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		size_t read(char *buffer, size_t len);
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.h:64:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read(T *t) { return read((char *) t, sizeof(T)); }
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.h:64:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read(T *t) { return read((char *) t, sizeof(T)); }
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.h:66:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			T read();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.h:157:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stream.read(&value);
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/common/binarystream.h:182:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
template<typename T> T BinaryStream::read() {
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/bar.cpp:16:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto name = stream.read<std::string>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/bar.cpp:17:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto foo = stream.read<Foo>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/foo.cpp:20:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto name = stream.read<std::string>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/foo.cpp:21:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto a = stream.read<int32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/datatypes/foo.cpp:22:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto b = stream.read<int32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:32:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		in.read(&contents[0], contents.size());
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:64:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto magic = stream.read<int>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:69:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		auto cmd = stream.read<char>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:78:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto name = stream.read<std::string>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:87:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto name = stream.read<std::string>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:89:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto type = stream.read<int32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:97:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto name = stream.read<std::string>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:99:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto callback_id = stream.read<uint32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:100:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto result_type = stream.read<uint32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:101:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto paramcount = stream.read<size_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:107:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				auto type = stream.read<int32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:118:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto source = stream.read<std::string>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:122:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto type = stream.read<int32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:157:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto width = stream.read<uint32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:158:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			auto height = stream.read<uint32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.cpp:183:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	auto type = stream.read<int32_t>();
data/r-cran-rinside-0.2.16/inst/examples/sandboxed_server/server/rinsideserver.h:51:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				T value = stream.read<T>();
data/r-cran-rinside-0.2.16/src/RInside.cpp:169:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(rHome, temp, MAX_PATH);
data/r-cran-rinside-0.2.16/src/RInside.cpp:447:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy( (char*)buf, res.c_str(), last ) ;
data/r-cran-rinside-0.2.16/src/setenv/setenv.c:33:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    a = (char *) malloc((strlen(env_var) + 1) * sizeof(char));
data/r-cran-rinside-0.2.16/src/setenv/setenv.c:34:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    b = (char *) malloc((strlen(env_val) + 1) * sizeof(char));
data/r-cran-rinside-0.2.16/src/setenv/setenv.c:41:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    buf = (char *) malloc((strlen(a) + strlen(b) + 2) * sizeof(char));
data/r-cran-rinside-0.2.16/src/setenv/setenv.c:41:40:  [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).
    buf = (char *) malloc((strlen(a) + strlen(b) + 2) * sizeof(char));
data/r-cran-rinside-0.2.16/src/setenv/setenv.c:45:21:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcpy(buf, a); strcat(buf, "=");
data/r-cran-rinside-0.2.16/src/setenv/setenv.c:46: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).
    value = buf+strlen(buf);

ANALYSIS SUMMARY:

Hits = 77
Lines analyzed = 5496 in approximately 0.17 seconds (32124 lines/second)
Physical Source Lines of Code (SLOC) = 3453
Hits@level = [0]  38 [1]  56 [2]   6 [3]   7 [4]   7 [5]   1
Hits@level+ = [0+] 115 [1+]  77 [2+]  21 [3+]  15 [4+]   8 [5+]   1
Hits/KSLOC@level+ = [0+] 33.3044 [1+] 22.2994 [2+] 6.08167 [3+] 4.34405 [4+] 2.31683 [5+] 0.289603
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.