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/dashel-1.3.3/dashel/dashel-private.h
Examining data/dashel-1.3.3/dashel/dashel-posix.h
Examining data/dashel-1.3.3/dashel/dashel.h
Examining data/dashel-1.3.3/dashel/poll_emu.h
Examining data/dashel-1.3.3/dashel/dashel-common.cpp
Examining data/dashel-1.3.3/dashel/dashel-win32.cpp
Examining data/dashel-1.3.3/dashel/poll_emu.c
Examining data/dashel-1.3.3/dashel/dashel-posix.cpp
Examining data/dashel-1.3.3/examples/portlist.cpp
Examining data/dashel-1.3.3/examples/dws.cpp
Examining data/dashel-1.3.3/examples/microterm.cpp
Examining data/dashel-1.3.3/examples/reconnect.cpp
Examining data/dashel-1.3.3/examples/chat.cpp
Examining data/dashel-1.3.3/examples/udp.cpp

FINAL RESULTS:

data/dashel-1.3.3/dashel/dashel-win32.cpp:166: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(dcn, co+1);
data/dashel-1.3.3/dashel/dashel-common.cpp:88: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(_data + _pos, (unsigned char *)data, size);
data/dashel-1.3.3/dashel/dashel-posix.cpp:166: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 cStr[255];
data/dashel-1.3.3/dashel/dashel-posix.cpp:339:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char recvBuffer[RECV_BUFFER_SIZE]; //!< reception buffer
data/dashel-1.3.3/dashel/dashel-posix.cpp:526: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(ptr, recvBuffer + recvBufferPos, toCopy);
data/dashel-1.3.3/dashel/dashel-posix.cpp:743:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char buf[4096];
data/dashel-1.3.3/dashel/dashel-posix.cpp:838: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(ptr, recvBuffer + recvBufferPos, toCopy);
data/dashel-1.3.3/dashel/dashel-posix.cpp:903:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					fd = open(name.c_str(), O_RDONLY);
data/dashel-1.3.3/dashel/dashel-posix.cpp:907:11:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
					fd = open(name.c_str(), O_RDWR);
data/dashel-1.3.3/dashel/dashel-posix.cpp:1003: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).
			fd = open(devFileName.c_str(), O_RDWR);
data/dashel-1.3.3/dashel/dashel-posix.cpp:1321:21:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
						targetName << atoi(serverStream->getTargetParameter("port").c_str());
data/dashel-1.3.3/dashel/dashel-win32.cpp:102: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 sysMessage[1024] = {0};
data/dashel-1.3.3/dashel/dashel-win32.cpp:126: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 dn[1024], dcn[1024];
data/dashel-1.3.3/dashel/dashel-win32.cpp:169:13:  [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 v = atoi(&dcn[3]);
data/dashel-1.3.3/dashel/dashel-win32.cpp:373: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).
				buf << atoi(getTargetParameter("port").c_str());
data/dashel-1.3.3/dashel/dashel-win32.cpp:1372:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			unsigned char buf[4006];
data/dashel-1.3.3/dashel/dashel-common.cpp:315:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	void MemoryPacketStream::read(void *data, size_t size)
data/dashel-1.3.3/dashel/dashel-posix.cpp:513:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void* data, size_t size)
data/dashel-1.3.3/dashel/dashel-posix.cpp:599:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void* data, size_t size) { /* hook for use by derived classes */ }
data/dashel-1.3.3/dashel/dashel-posix.cpp:663:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void* data, size_t size) { /* hook for use by derived classes */ }
data/dashel-1.3.3/dashel/dashel-posix.cpp:825:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void* data, size_t size)
data/dashel-1.3.3/dashel/dashel-posix.cpp:846:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				ssize_t len = ::read(fd, ptr, left);
data/dashel-1.3.3/dashel/dashel-posix.cpp:868:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			ssize_t len = ::read(fd, &recvBuffer, RECV_BUFFER_SIZE);
data/dashel-1.3.3/dashel/dashel-posix.cpp:1357:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				const ssize_t ret = read(pollFdsArray[i].fd, &c, 1);
data/dashel-1.3.3/dashel/dashel-private.h:96:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void *data, size_t size);
data/dashel-1.3.3/dashel/dashel-win32.cpp:383:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void *data, size_t size) { /* hook for use by derived classes */ }
data/dashel-1.3.3/dashel/dashel-win32.cpp:460:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void *data, size_t size)
data/dashel-1.3.3/dashel/dashel-win32.cpp:545:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void *data, size_t size) 
data/dashel-1.3.3/dashel/dashel-win32.cpp:700:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void *data, size_t size)
data/dashel-1.3.3/dashel/dashel-win32.cpp:1159:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void *data, size_t size)
data/dashel-1.3.3/dashel/dashel-win32.cpp:1277:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void *data, size_t size) { /* hook for use by derived classes */ }
data/dashel-1.3.3/dashel/dashel.h:372:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		virtual void read(void *data, size_t size) = 0;
data/dashel-1.3.3/dashel/dashel.h:379:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		template<typename T> T read()
data/dashel-1.3.3/dashel/dashel.h:382:4:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			read(&v, sizeof(T));
data/dashel-1.3.3/examples/chat.cpp:14:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stream->read(&c, 1);
data/dashel-1.3.3/examples/dws.cpp:19:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stream->read(&c, 1);
data/dashel-1.3.3/examples/microterm.cpp:34:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		stream->read(&c, 1);
data/dashel-1.3.3/examples/reconnect.cpp:56:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		char c = stream->read<char>();
data/dashel-1.3.3/examples/udp.cpp:36:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			packetStream->read(&c, 1);

ANALYSIS SUMMARY:

Hits = 39
Lines analyzed = 5191 in approximately 0.18 seconds (28225 lines/second)
Physical Source Lines of Code (SLOC) = 3379
Hits@level = [0]   6 [1]  23 [2]  15 [3]   0 [4]   1 [5]   0
Hits@level+ = [0+]  45 [1+]  39 [2+]  16 [3+]   1 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 13.3175 [1+] 11.5419 [2+] 4.73513 [3+] 0.295946 [4+] 0.295946 [5+]   0
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.