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/libestr-0.1.10/include/libestr.h
Examining data/libestr-0.1.10/src/libestr.c
Examining data/libestr-0.1.10/src/string.c

FINAL RESULTS:

data/libestr-0.1.10/src/string.c:139: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(es_getBufAddr(s), cstr, len);
data/libestr-0.1.10/src/string.c:154: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(es_getBufAddr(s), buf, len);
data/libestr-0.1.10/src/string.c:165: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 numbuf[20];	/* 2^64 has 20 digits ;) */
data/libestr-0.1.10/src/string.c:221: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(es_getBufAddr(s), es_getBufAddr(str)+start, len);
data/libestr-0.1.10/src/string.c:487: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(es_getBufAddr(s1)+s1->lenStr, buf, lenBuf);
data/libestr-0.1.10/src/string.c:518: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(cstr, c, s->lenStr);
data/libestr-0.1.10/src/string.c:532:6:  [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(cstr + iDst, nulEsc, lenEsc);
data/libestr-0.1.10/src/string.c:524:35:  [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).
		lenEsc = (nulEsc == NULL) ? 0 : strlen(nulEsc);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 1229 in approximately 0.06 seconds (22199 lines/second)
Physical Source Lines of Code (SLOC) = 651
Hits@level = [0]   0 [1]   1 [2]   7 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]   8 [1+]   8 [2+]   7 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 12.2888 [1+] 12.2888 [2+] 10.7527 [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.