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-uconv-0.6.1/uconv.c
Examining data/ruby-uconv-0.6.1/u2e.c
Examining data/ruby-uconv-0.6.1/s2u.c
Examining data/ruby-uconv-0.6.1/s2u.h
Examining data/ruby-uconv-0.6.1/u2e.h
Examining data/ruby-uconv-0.6.1/uconv.h
Examining data/ruby-uconv-0.6.1/hojo2u.h
Examining data/ruby-uconv-0.6.1/ustring.c
Examining data/ruby-uconv-0.6.1/e2u.c
Examining data/ruby-uconv-0.6.1/u2s.h
Examining data/ruby-uconv-0.6.1/ustring.h
Examining data/ruby-uconv-0.6.1/u2s.c
Examining data/ruby-uconv-0.6.1/e2u.h

FINAL RESULTS:

data/ruby-uconv-0.6.1/e2u.c:22:12:  [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 ue[4];
data/ruby-uconv-0.6.1/e2u.c:65:16:  [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 estr[4];
data/ruby-uconv-0.6.1/s2u.c:27:12:  [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 us[3];
data/ruby-uconv-0.6.1/s2u.c:71:16:  [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 sstr[3];
data/ruby-uconv-0.6.1/s2u.c:113:16:  [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 ustr[sizeof(WCHAR)*2];
data/ruby-uconv-0.6.1/s2u.c:114:18:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
      int ulen = MultiByteToWideChar(SJIS_CODEPAGE, MB_PRECOMPOSED, s + i, 2,
data/ruby-uconv-0.6.1/u2s.c:72:16:  [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 str[3];
data/ruby-uconv-0.6.1/ustring.c:54: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(s->str + s->len, a, len);
data/ruby-uconv-0.6.1/e2u.c:55: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).
  int len = strlen((char*)e);
data/ruby-uconv-0.6.1/s2u.c:62: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).
  int len = strlen((char*)s);
data/ruby-uconv-0.6.1/uconv.c:136: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).
  inlen = strlen((char*)in);
data/ruby-uconv-0.6.1/uconv.c:267: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).
  inlen = strlen((char*)in);

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 161659 in approximately 3.29 seconds (49211 lines/second)
Physical Source Lines of Code (SLOC) = 161247
Hits@level = [0]   3 [1]   4 [2]   8 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  15 [1+]  12 [2+]   8 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 0.093025 [1+] 0.07442 [2+] 0.0496133 [3+]   0 [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.