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/uim-chewing-0.1.0/src/chewing.c
Examining data/uim-chewing-0.1.0/src/keytab.h

FINAL RESULTS:

data/uim-chewing-0.1.0/src/chewing.c:109:10:  [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.
  home = getenv("HOME");
data/uim-chewing-0.1.0/src/chewing.c:273: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.
        char mb[MB_CUR_MAX];
data/uim-chewing-0.1.0/src/chewing.c:328:7:  [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 mb[MB_CUR_MAX];
data/uim-chewing-0.1.0/src/chewing.c:113:9:  [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).
  len = strlen(home) + strlen("/.chewing/");
data/uim-chewing-0.1.0/src/chewing.c:113: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).
  len = strlen(home) + strlen("/.chewing/");
data/uim-chewing-0.1.0/src/chewing.c:278:9:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
        strncat(buf, mb, len);
data/uim-chewing-0.1.0/src/chewing.c:287: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).
        preedit_len += strlen(buf);
data/uim-chewing-0.1.0/src/chewing.c:342:2:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
	strncat(buf, mb, len);
data/uim-chewing-0.1.0/src/chewing.c:351:22:  [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).
      preedit_len += strlen(buf);
data/uim-chewing-0.1.0/src/chewing.c:395:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
    strncat(buf, "; ", 2);
data/uim-chewing-0.1.0/src/chewing.c:396:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
    strncat(buf, str, len);
data/uim-chewing-0.1.0/src/chewing.c:404:20:  [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).
    preedit_len += strlen(buf);

ANALYSIS SUMMARY:

Hits = 12
Lines analyzed = 1128 in approximately 0.07 seconds (17156 lines/second)
Physical Source Lines of Code (SLOC) = 895
Hits@level = [0]   1 [1]   9 [2]   2 [3]   1 [4]   0 [5]   0
Hits@level+ = [0+]  13 [1+]  12 [2+]   3 [3+]   1 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 14.5251 [1+] 13.4078 [2+] 3.35196 [3+] 1.11732 [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.