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/m17n-im-config-0.9.0/src/m17n-im-config.h
Examining data/m17n-im-config-0.9.0/src/main.c
Examining data/m17n-im-config-0.9.0/src/mim-config.c

FINAL RESULTS:

data/m17n-im-config-0.9.0/src/mim-config.c:70: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 *mim_status_str[MIM_STATUS_MAX];
data/m17n-im-config-0.9.0/src/mim-config.c:296: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 conv_buf[256];
data/m17n-im-config-0.9.0/src/mim-config.c:381:6:  [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 (imtable[i].encoded_lang, conv_buf, nbytes);
data/m17n-im-config-0.9.0/src/mim-config.c:1385:3:  [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 buf[32];
data/m17n-im-config-0.9.0/src/mim-config.c:965:65:  [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).
      mt = mconv_decode_buffer (Mcoding_utf_8, (guchar *) text, strlen (text));
data/m17n-im-config-0.9.0/src/mim-config.c:1014:65:  [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).
      mt = mconv_decode_buffer (Mcoding_utf_8, (guchar *) text, strlen (text));
data/m17n-im-config-0.9.0/src/mim-config.c:1410: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).
      nbytes = strlen (name);
data/m17n-im-config-0.9.0/src/mim-config.c:1434:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy (buf + i, name, nbytes);

ANALYSIS SUMMARY:

Hits = 8
Lines analyzed = 2053 in approximately 0.10 seconds (20269 lines/second)
Physical Source Lines of Code (SLOC) = 1631
Hits@level = [0]   2 [1]   4 [2]   4 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  10 [1+]   8 [2+]   4 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 6.13121 [1+] 4.90497 [2+] 2.45248 [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.