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/sic-1.1/util.c
Examining data/sic-1.1/sic.c

FINAL RESULTS:

data/sic-1.1/sic.c:30:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(bufout, sizeof bufout, fmt, ap);
data/sic-1.1/sic.c:42:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(bufout, sizeof bufout, fmt, ap);
data/sic-1.1/util.c:11:2:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	vsnprintf(bufout, sizeof bufout, fmt, ap);
data/sic-1.1/sic.c:138:21:  [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.
	const char *user = getenv("USER");
data/sic-1.1/sic.c:14: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 nick[32];
data/sic-1.1/sic.c:15: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 bufin[4096];
data/sic-1.1/sic.c:16: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 bufout[4096];
data/sic-1.1/sic.c:17: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 channel[256];
data/sic-1.1/sic.c:25:9:  [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 timestr[18];
data/sic-1.1/util.c:14:19:  [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(fmt[0] && fmt[strlen(fmt) - 1] == ':')
data/sic-1.1/util.c:70:10:  [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).
	e = s + strlen(s) - 1;

ANALYSIS SUMMARY:

Hits = 11
Lines analyzed = 281 in approximately 0.03 seconds (11231 lines/second)
Physical Source Lines of Code (SLOC) = 255
Hits@level = [0]   4 [1]   2 [2]   5 [3]   1 [4]   3 [5]   0
Hits@level+ = [0+]  15 [1+]  11 [2+]   9 [3+]   4 [4+]   3 [5+]   0
Hits/KSLOC@level+ = [0+] 58.8235 [1+] 43.1373 [2+] 35.2941 [3+] 15.6863 [4+] 11.7647 [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.