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/dm-writeboost-2.2.13/src/dm-writeboost-daemon.c
Examining data/dm-writeboost-2.2.13/src/dm-writeboost-daemon.h
Examining data/dm-writeboost-2.2.13/src/dm-writeboost-metadata.c
Examining data/dm-writeboost-2.2.13/src/dm-writeboost-metadata.h
Examining data/dm-writeboost-2.2.13/src/dm-writeboost-target.c
Examining data/dm-writeboost-2.2.13/src/dm-writeboost.h

FINAL RESULTS:

data/dm-writeboost-2.2.13/src/dm-writeboost-daemon.c:524: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(buf + (7 << 9), &o, sizeof(o));
data/dm-writeboost-2.2.13/src/dm-writeboost-metadata.c:339: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(sup, buf, sizeof(*sup));
data/dm-writeboost-2.2.13/src/dm-writeboost-metadata.c:387: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(buf, &sup, sizeof(sup));
data/dm-writeboost-2.2.13/src/dm-writeboost-metadata.c:674: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(record, buf + (7 << 9), sizeof(*record));
data/dm-writeboost-2.2.13/src/dm-writeboost-target.c:87: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 buf[BDEVNAME_SIZE];
data/dm-writeboost-2.2.13/src/dm-writeboost-target.c:478: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(buf, dst + bv_offset(vec), l);
data/dm-writeboost-2.2.13/src/dm-writeboost-target.c:503:4:  [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(dst + bv_offset(vec) + offset, buf, 1 << 9);
data/dm-writeboost-2.2.13/src/dm-writeboost-target.c:887: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(wb->current_rambuf->data + ((_mb_idx_inseg + 1) << 12), cell->data, 1 << 12);
data/dm-writeboost-2.2.13/src/dm-writeboost-target.c:1070:4:  [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(to + offset, from + offset, 1 << 9);
data/dm-writeboost-2.2.13/src/dm-writeboost-target.c:1127: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(mb_data, wio->data, 1 << 12);
data/dm-writeboost-2.2.13/src/dm-writeboost-target.c:1895: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 buf[BDEVNAME_SIZE];

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 4640 in approximately 0.12 seconds (37515 lines/second)
Physical Source Lines of Code (SLOC) = 3137
Hits@level = [0]   0 [1]   0 [2]  11 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  11 [1+]  11 [2+]  11 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 3.50653 [1+] 3.50653 [2+] 3.50653 [3+]   0 [4+]   0 [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.