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/scdoc-1.11.0/include/str.h
Examining data/scdoc-1.11.0/include/unicode.h
Examining data/scdoc-1.11.0/include/util.h
Examining data/scdoc-1.11.0/src/main.c
Examining data/scdoc-1.11.0/src/string.c
Examining data/scdoc-1.11.0/src/utf8_chsize.c
Examining data/scdoc-1.11.0/src/utf8_decode.c
Examining data/scdoc-1.11.0/src/utf8_encode.c
Examining data/scdoc-1.11.0/src/utf8_fgetch.c
Examining data/scdoc-1.11.0/src/utf8_fputch.c
Examining data/scdoc-1.11.0/src/utf8_size.c
Examining data/scdoc-1.11.0/src/util.c

FINAL RESULTS:

data/scdoc-1.11.0/src/main.c:80:28:  [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 *source_date_epoch = getenv("SOURCE_DATE_EPOCH");
data/scdoc-1.11.0/src/main.c:79: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 date[256];
data/scdoc-1.11.0/src/main.c:157: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 formats[FORMAT_LAST] = {
data/scdoc-1.11.0/src/main.c:161: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 error[512];
data/scdoc-1.11.0/src/main.c:706: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 error[512];
data/scdoc-1.11.0/src/utf8_fgetch.c:6: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[UTF8_MAX_SIZE];
data/scdoc-1.11.0/src/utf8_fputch.c:6: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[UTF8_MAX_SIZE];
data/scdoc-1.11.0/src/utf8_fgetch.c:7:10:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	int c = fgetc(f);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 1107 in approximately 0.06 seconds (17879 lines/second)
Physical Source Lines of Code (SLOC) = 1007
Hits@level = [0]  53 [1]   1 [2]   6 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  61 [1+]   8 [2+]   7 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 60.576 [1+] 7.94439 [2+] 6.95134 [3+] 0.993049 [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.