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-escape-utils-1.2.1/ext/escape_utils/buffer.h
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/houdini_href_e.c
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/houdini_html_u.c
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/houdini_js_e.c
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/houdini_uri_u.c
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/escape_utils.c
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/houdini_html_e.c
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/houdini_js_u.c
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/houdini_uri_e.c
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/houdini.h
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/houdini_xml_e.c
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/html_unescape.h
Examining data/ruby-escape-utils-1.2.1/ext/escape_utils/buffer.c

FINAL RESULTS:

data/ruby-escape-utils-1.2.1/ext/escape_utils/buffer.c:155:9:  [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.
		len = vsnprintf(
data/ruby-escape-utils-1.2.1/ext/escape_utils/buffer.h:107:25:  [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.
	__attribute__((format (printf, 2, 3)));
data/ruby-escape-utils-1.2.1/ext/escape_utils/buffer.c:21:1:  [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 gh_buf__initbuf[1];
data/ruby-escape-utils-1.2.1/ext/escape_utils/buffer.c:22:1:  [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 gh_buf__oom[1];
data/ruby-escape-utils-1.2.1/ext/escape_utils/houdini_html_u.c:11:11:  [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.
	unsigned char unichar[4];
data/ruby-escape-utils-1.2.1/ext/escape_utils/html_unescape.h:36:11:  [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.
	unsigned char utf8[3];
data/ruby-escape-utils-1.2.1/ext/escape_utils/buffer.c:118:42:  [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).
	return gh_buf_set(buf, string, string ? strlen(string) : 0);
data/ruby-escape-utils-1.2.1/ext/escape_utils/buffer.c:141:33:  [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).
	return gh_buf_put(buf, string, strlen(string));
data/ruby-escape-utils-1.2.1/ext/escape_utils/buffer.c:147:44:  [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).
	const size_t expected_size = buf->size + (strlen(format) * 2);
data/ruby-escape-utils-1.2.1/ext/escape_utils/buffer.c:233:15:  [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->size = strlen(ptr);

ANALYSIS SUMMARY:

Hits = 10
Lines analyzed = 2206 in approximately 0.11 seconds (19729 lines/second)
Physical Source Lines of Code (SLOC) = 1742
Hits@level = [0]   0 [1]   4 [2]   4 [3]   0 [4]   2 [5]   0
Hits@level+ = [0+]  10 [1+]  10 [2+]   6 [3+]   2 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 5.74053 [1+] 5.74053 [2+] 3.44432 [3+] 1.14811 [4+] 1.14811 [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.