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/courier-unicode-2.1/categoriestab.h
Examining data/courier-unicode-2.1/courier-unicode-categories-tab.h
Examining data/courier-unicode-2.1/courier-unicode-script-tab.h
Examining data/courier-unicode-2.1/courier-unicode.h
Examining data/courier-unicode-2.1/eastasianwidth.h
Examining data/courier-unicode-2.1/enttest.c
Examining data/courier-unicode-2.1/graphemebreaktab.h
Examining data/courier-unicode-2.1/graphemetest.c
Examining data/courier-unicode-2.1/linebreaktab.h
Examining data/courier-unicode-2.1/linebreaktab_internal.h
Examining data/courier-unicode-2.1/linebreaktest.C
Examining data/courier-unicode-2.1/scriptstab.h
Examining data/courier-unicode-2.1/scripttest.c
Examining data/courier-unicode-2.1/unicode.c
Examining data/courier-unicode-2.1/unicode_categories.c
Examining data/courier-unicode-2.1/unicode_graphemebreak.c
Examining data/courier-unicode-2.1/unicode_htmlent.c
Examining data/courier-unicode-2.1/unicode_htmlent.h
Examining data/courier-unicode-2.1/unicode_linebreak.c
Examining data/courier-unicode-2.1/unicode_scripts.c
Examining data/courier-unicode-2.1/unicode_tablookup.c
Examining data/courier-unicode-2.1/unicode_ultcase.c
Examining data/courier-unicode-2.1/unicode_ultcasetab.c
Examining data/courier-unicode-2.1/unicode_wcwidth.c
Examining data/courier-unicode-2.1/unicode_wordbreak.c
Examining data/courier-unicode-2.1/unicodebuf.c
Examining data/courier-unicode-2.1/unicodecpp.C
Examining data/courier-unicode-2.1/unicodetest.c
Examining data/courier-unicode-2.1/wordbreaktab.h
Examining data/courier-unicode-2.1/wordbreaktab_internal.h
Examining data/courier-unicode-2.1/wordbreaktest.C

FINAL RESULTS:

data/courier-unicode-2.1/unicode.c:83:2:  [5] (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. Risk is high; the length parameter
  appears to be a constant, instead of computing the number of characters
  left.
	strncat(buf, chset, sizeof(buf)-1);
data/courier-unicode-2.1/unicode.c:69:8:  [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.
	chset=getenv("MM_CHARSET");
data/courier-unicode-2.1/unicode.c:72: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.
		chset=getenv("CHARSET");
data/courier-unicode-2.1/enttest.c:22: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[60];
data/courier-unicode-2.1/enttest.c:24: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, n + ii[j].n_start, ii[j].n_size);
data/courier-unicode-2.1/unicode.c:25:8:  [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.
static char default_chset_buf[32];
data/courier-unicode-2.1/unicode.c:67: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[sizeof(default_chset_buf)];
data/courier-unicode-2.1/unicode.c:85: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(default_chset_buf, buf, sizeof(buf));
data/courier-unicode-2.1/unicode.c:181: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 utf7encodebuf[1024];
data/courier-unicode-2.1/unicode.c:197: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 smapmunge[16];
data/courier-unicode-2.1/unicode.c:527: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 octal[4];
data/courier-unicode-2.1/unicode.c:986: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 buffer[1024]; /* Input buffer */
data/courier-unicode-2.1/unicode.c:1233: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 outbuf[1024];
data/courier-unicode-2.1/unicode.c:1450: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(fragment->fragment, text, cnt);
data/courier-unicode-2.1/unicode.c:1505: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(&(*p->cbufptr_ret)[i],
data/courier-unicode-2.1/unicode.c:1737: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(p->tail->fragment+p->tail->fragment_size,
data/courier-unicode-2.1/unicode.c:1765: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(fragment->fragment, text, cnt*sizeof(char32_t));
data/courier-unicode-2.1/unicode.c:1822: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(&(*p->ucptr_ret)[i],
data/courier-unicode-2.1/unicodebuf.c:53: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(p->ptr + p->len, uc, l * sizeof(char32_t));
data/courier-unicode-2.1/unicodetest.c:41: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 outputbuf[12];
data/courier-unicode-2.1/enttest.c:33:3:  [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.
		strcat(buf, "X");
data/courier-unicode-2.1/enttest.c:41:7:  [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[strlen(buf)-2]=0;
data/courier-unicode-2.1/unicode.c:290:11:  [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 l=strlen(unicode_x_imap_modutf7);
data/courier-unicode-2.1/unicode.c:323:2:  [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(toutf7->smapmunge, smapmunge, sizeof(toutf7->smapmunge)-1);
data/courier-unicode-2.1/unicode.c:660:11:  [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 l=strlen(unicode_x_imap_modutf7);
data/courier-unicode-2.1/unicode.c:1569: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).
	unicode_convert(h, text, strlen(text));
data/courier-unicode-2.1/unicode.c:1591: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).
	unicode_convert(h, text, strlen(text));
data/courier-unicode-2.1/unicode.c:1615: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).
	unicode_convert(h, text, strlen(text));
data/courier-unicode-2.1/unicode.c:1915:37:  [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 (unicode_convert_tou_tobuf(str, strlen(str),

ANALYSIS SUMMARY:

Hits = 29
Lines analyzed = 43547 in approximately 0.90 seconds (48384 lines/second)
Physical Source Lines of Code (SLOC) = 40955
Hits@level = [0]  16 [1]   9 [2]  17 [3]   2 [4]   0 [5]   1
Hits@level+ = [0+]  45 [1+]  29 [2+]  20 [3+]   3 [4+]   1 [5+]   1
Hits/KSLOC@level+ = [0+] 1.09877 [1+] 0.708094 [2+] 0.488341 [3+] 0.0732511 [4+] 0.024417 [5+] 0.024417
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.