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/ruby-rinku-1.7.3/ext/rinku/autolink.c
Examining data/ruby-rinku-1.7.3/ext/rinku/rinku.h
Examining data/ruby-rinku-1.7.3/ext/rinku/buffer.c
Examining data/ruby-rinku-1.7.3/ext/rinku/buffer.h
Examining data/ruby-rinku-1.7.3/ext/rinku/autolink.h
Examining data/ruby-rinku-1.7.3/ext/rinku/rinku.c

FINAL RESULTS:

data/ruby-rinku-1.7.3/ext/rinku/buffer.c:31:25:  [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.
#	define _buf_vsnprintf vsnprintf
data/ruby-rinku-1.7.3/ext/rinku/buffer.h:90:73:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void bufprintf(struct buf *, const char *, ...) __attribute__ ((format (printf, 2, 3)));
data/ruby-rinku-1.7.3/ext/rinku/autolink.c:43:17:  [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.
			strncasecmp((char *)link, valid_uris[i], len) == 0 &&
data/ruby-rinku-1.7.3/ext/rinku/buffer.c:162: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->data + buf->size, data, len);
data/ruby-rinku-1.7.3/ext/rinku/rinku.c:199: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 active_chars[256];
data/ruby-rinku-1.7.3/ext/rinku/autolink.c:40:16:  [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 len = strlen(valid_uris[i]);
data/ruby-rinku-1.7.3/ext/rinku/autolink.c:175:39:  [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 (size < 4 || memcmp(data, "www.", strlen("www.")) != 0)
data/ruby-rinku-1.7.3/ext/rinku/autolink.c:272:13:  [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).
	link_end = strlen("://");
data/ruby-rinku-1.7.3/ext/rinku/buffer.c:170: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).
	bufput(buf, str, strlen(str));
data/ruby-rinku-1.7.3/ext/rinku/buffer.h:53:24:  [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).
	{ (uint8_t *)strname, strlen(strname), 0, 0, 0 }

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 1145 in approximately 0.04 seconds (25975 lines/second)
Physical Source Lines of Code (SLOC) = 710
Hits@level = [0]   0 [1]   5 [2]   3 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]   5 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 14.0845 [1+] 14.0845 [2+] 7.04225 [3+] 2.8169 [4+] 2.8169 [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.