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/scim-skk-0.5.2/src/conv_table.h
Examining data/scim-skk-0.5.2/src/cdb.h
Examining data/scim-skk-0.5.2/src/scim_skk_core.h
Examining data/scim-skk-0.5.2/src/scim_skk_intl.h
Examining data/scim-skk-0.5.2/src/scim_skk_automaton.cpp
Examining data/scim-skk-0.5.2/src/scim_skk_keybind.cpp
Examining data/scim-skk-0.5.2/src/scim_skk_automaton.h
Examining data/scim-skk-0.5.2/src/scim_skk_lookup_table.cpp
Examining data/scim-skk-0.5.2/src/scim_skk_dictionary.cpp
Examining data/scim-skk-0.5.2/src/scim_skk_imengine.cpp
Examining data/scim-skk-0.5.2/src/conv_table.cpp
Examining data/scim-skk-0.5.2/src/scim_skk_history.cpp
Examining data/scim-skk-0.5.2/src/scim_skk_prefs.h
Examining data/scim-skk-0.5.2/src/scim_skk_setup_dictionaries.h
Examining data/scim-skk-0.5.2/src/scim_skk_config.h
Examining data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp
Examining data/scim-skk-0.5.2/src/scim_skk_core.cpp
Examining data/scim-skk-0.5.2/src/scim_skk_config.cpp
Examining data/scim-skk-0.5.2/src/scim_skk_keybind.h
Examining data/scim-skk-0.5.2/src/scim_skk_imengine.h
Examining data/scim-skk-0.5.2/src/scim_skk_lookup_table.h
Examining data/scim-skk-0.5.2/src/cdb.cpp
Examining data/scim-skk-0.5.2/src/scim_skk_history.h
Examining data/scim-skk-0.5.2/src/scim_skk_dictionary.h
Examining data/scim-skk-0.5.2/src/scim_skk_setup_dictionaries.cpp
Examining data/scim-skk-0.5.2/intl/plural.c
Examining data/scim-skk-0.5.2/intl/vasnwprintf.h
Examining data/scim-skk-0.5.2/intl/gmo.h
Examining data/scim-skk-0.5.2/intl/log.c
Examining data/scim-skk-0.5.2/intl/finddomain.c
Examining data/scim-skk-0.5.2/intl/localename.c
Examining data/scim-skk-0.5.2/intl/xsize.h
Examining data/scim-skk-0.5.2/intl/localcharset.c
Examining data/scim-skk-0.5.2/intl/localcharset.h
Examining data/scim-skk-0.5.2/intl/vasnprintf.c
Examining data/scim-skk-0.5.2/intl/vasnprintf.h
Examining data/scim-skk-0.5.2/intl/wprintf-parse.h
Examining data/scim-skk-0.5.2/intl/dngettext.c
Examining data/scim-skk-0.5.2/intl/relocatable.c
Examining data/scim-skk-0.5.2/intl/relocatable.h
Examining data/scim-skk-0.5.2/intl/os2compat.c
Examining data/scim-skk-0.5.2/intl/os2compat.h
Examining data/scim-skk-0.5.2/intl/dcigettext.c
Examining data/scim-skk-0.5.2/intl/ngettext.c
Examining data/scim-skk-0.5.2/intl/gettextP.h
Examining data/scim-skk-0.5.2/intl/explodename.c
Examining data/scim-skk-0.5.2/intl/l10nflist.c
Examining data/scim-skk-0.5.2/intl/gettext.c
Examining data/scim-skk-0.5.2/intl/dcgettext.c
Examining data/scim-skk-0.5.2/intl/loadinfo.h
Examining data/scim-skk-0.5.2/intl/dcngettext.c
Examining data/scim-skk-0.5.2/intl/bindtextdom.c
Examining data/scim-skk-0.5.2/intl/printf-args.c
Examining data/scim-skk-0.5.2/intl/printf-args.h
Examining data/scim-skk-0.5.2/intl/printf.c
Examining data/scim-skk-0.5.2/intl/plural-exp.c
Examining data/scim-skk-0.5.2/intl/plural-exp.h
Examining data/scim-skk-0.5.2/intl/hash-string.h
Examining data/scim-skk-0.5.2/intl/intl-compat.c
Examining data/scim-skk-0.5.2/intl/osdep.c
Examining data/scim-skk-0.5.2/intl/eval-plural.h
Examining data/scim-skk-0.5.2/intl/localealias.c
Examining data/scim-skk-0.5.2/intl/loadmsgcat.c
Examining data/scim-skk-0.5.2/intl/dgettext.c
Examining data/scim-skk-0.5.2/intl/printf-parse.c
Examining data/scim-skk-0.5.2/intl/printf-parse.h
Examining data/scim-skk-0.5.2/intl/textdomain.c

FINAL RESULTS:

data/scim-skk-0.5.2/intl/localcharset.c:189:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy (res_ptr + res_size - (l2 + 1) - (l1 + 1), buf1);
data/scim-skk-0.5.2/intl/localcharset.c:190:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy (res_ptr + res_size - (l2 + 1), buf2);
data/scim-skk-0.5.2/intl/log.c:78:7:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
      strcpy (last_logfilename, logfilename);
data/scim-skk-0.5.2/intl/os2compat.c:97:5:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
    strcpy (libintl_nl_default_dirname, _nlos2_localedir);
data/scim-skk-0.5.2/intl/plural.c:626:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#  define YYFPRINTF fprintf
data/scim-skk-0.5.2/intl/printf.c:83:12:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfprintf (stream, format, args);
data/scim-skk-0.5.2/intl/printf.c:137:12:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
    return vsprintf (resultbuf, format, args);
data/scim-skk-0.5.2/intl/printf.c:172:28:  [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 system_vsnprintf vsnprintf
data/scim-skk-0.5.2/intl/printf.c:268:28:  [4] (buffer) vswprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define system_vswprintf vswprintf
data/scim-skk-0.5.2/intl/printf.c:276:12:  [4] (format) vfwprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    return vfwprintf (stream, format, args);
data/scim-skk-0.5.2/intl/relocatable.c:440:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	      strcpy (result + curr_prefix_len, pathname_tail);
data/scim-skk-0.5.2/intl/vasnprintf.c:91:20:  [4] (buffer) swprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
#  define SNPRINTF swprintf
data/scim-skk-0.5.2/intl/vasnprintf.c:102:20:  [4] (format) _snprintf:
  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 SNPRINTF _snprintf
data/scim-skk-0.5.2/intl/vasnprintf.c:105:20:  [4] (format) snprintf:
  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 SNPRINTF snprintf
data/scim-skk-0.5.2/intl/vasnprintf.c:622:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, arg);		    \
data/scim-skk-0.5.2/intl/vasnprintf.c:625:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, prefixes[0], arg);	    \
data/scim-skk-0.5.2/intl/vasnprintf.c:628:12:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			count = sprintf (tmp, buf, prefixes[0], prefixes[1],\
data/scim-skk-0.5.2/intl/vasnprintf.h:37:22:  [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.
#  define __printf__ printf
data/scim-skk-0.5.2/intl/dcigettext.c:148:7:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
char *getwd ();
data/scim-skk-0.5.2/intl/dcigettext.c:149:28:  [3] (buffer) getwd:
  This does not protect against buffer overflows by itself, so use with
  caution (CWE-120, CWE-20). Use getcwd instead.
#  define getcwd(buf, max) getwd (buf)
data/scim-skk-0.5.2/intl/dcigettext.c:705:33:  [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.
      const char *logfilename = getenv ("GETTEXT_LOG_UNTRANSLATED");
data/scim-skk-0.5.2/intl/dcigettext.c:1136:14:  [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.
  language = getenv ("LANGUAGE");
data/scim-skk-0.5.2/intl/loadmsgcat.c:830:21:  [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.
	      outcharset = getenv ("OUTPUT_CHARSET");
data/scim-skk-0.5.2/intl/localcharset.c:297:16:  [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.
      locale = getenv ("LC_ALL");
data/scim-skk-0.5.2/intl/localcharset.c:300:13:  [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.
	  locale = getenv ("LC_CTYPE");
data/scim-skk-0.5.2/intl/localcharset.c:302:15:  [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.
	    locale = getenv ("LANG");
data/scim-skk-0.5.2/intl/localcharset.c:330:12:  [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.
  locale = getenv ("LC_ALL");
data/scim-skk-0.5.2/intl/localcharset.c:333:16:  [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.
      locale = getenv ("LC_CTYPE");
data/scim-skk-0.5.2/intl/localcharset.c:335:11:  [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.
	locale = getenv ("LANG");
data/scim-skk-0.5.2/intl/localename.c:715:12:  [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.
  retval = getenv ("LC_ALL");
data/scim-skk-0.5.2/intl/localename.c:719:16:  [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.
      retval = getenv (categoryname);
data/scim-skk-0.5.2/intl/localename.c:723:13:  [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.
	  retval = getenv ("LANG");
data/scim-skk-0.5.2/intl/localename.c:747:12:  [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.
  retval = getenv ("LC_ALL");
data/scim-skk-0.5.2/intl/localename.c:750:12:  [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.
  retval = getenv (categoryname);
data/scim-skk-0.5.2/intl/localename.c:753:12:  [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.
  retval = getenv ("LANG");
data/scim-skk-0.5.2/intl/os2compat.c:51:16:  [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.
  char *root = getenv ("UNIXROOT");
data/scim-skk-0.5.2/intl/os2compat.c:52:24:  [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.
  char *gnulocaledir = getenv ("GNULOCALEDIR");
data/scim-skk-0.5.2/intl/os2compat.h:43:9:  [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.
#define getenv _nl_getenv
data/scim-skk-0.5.2/intl/bindtextdom.c:157:4:  [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 (result, dirname, len);
data/scim-skk-0.5.2/intl/bindtextdom.c:195:7:  [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 (result, codeset, len);
data/scim-skk-0.5.2/intl/bindtextdom.c:231:7:  [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 (new_binding->domainname, domainname, len);
data/scim-skk-0.5.2/intl/bindtextdom.c:256:5:  [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 (result, dirname, len);
data/scim-skk-0.5.2/intl/bindtextdom.c:287:8:  [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 (result, codeset, len);
data/scim-skk-0.5.2/intl/dcigettext.c:240: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 msgid[ZERO];
data/scim-skk-0.5.2/intl/dcigettext.c:367: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 data[ZERO];
data/scim-skk-0.5.2/intl/dcigettext.c:483: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 (search->msgid, msgid1, msgid_len);
data/scim-skk-0.5.2/intl/dcigettext.c:657:9:  [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 (newp->domainname, domainname, domainname_len + 1);
data/scim-skk-0.5.2/intl/dcigettext.c:1181:29:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  return (void *) ((char *) memcpy (dest, src, n) + n);
data/scim-skk-0.5.2/intl/finddomain.c:130:7:  [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 (locale, alias_value, len);
data/scim-skk-0.5.2/intl/gettextP.h:145: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 domainname[ZERO];
data/scim-skk-0.5.2/intl/l10nflist.c:219:7:  [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 (cp, dirlist, dirlist_len);
data/scim-skk-0.5.2/intl/loadmsgcat.c:460:10:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
# define open   __open
data/scim-skk-0.5.2/intl/loadmsgcat.c:817:4:  [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 (charset, charsetstr, len);
data/scim-skk-0.5.2/intl/loadmsgcat.c:864:8:  [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 (tmp, outcharset, len);
data/scim-skk-0.5.2/intl/loadmsgcat.c:865:8:  [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 (tmp + len, "//TRANSLIT", 10 + 1);
data/scim-skk-0.5.2/intl/loadmsgcat.c:940:8:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fd = open (domain_file->filename, O_RDONLY | O_BINARY);
data/scim-skk-0.5.2/intl/loadmsgcat.c:1293:10:  [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 (mem, static_segments, segsize);
data/scim-skk-0.5.2/intl/loadmsgcat.c:1302: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 (mem, sysdep_segment_values[sysdepref], n);
data/scim-skk-0.5.2/intl/localcharset.c:131: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 (file_name, dir, dir_len);
data/scim-skk-0.5.2/intl/localcharset.c:134: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 (file_name + dir_len + add_slash, base, base_len + 1);
data/scim-skk-0.5.2/intl/localcharset.c:138:38:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      if (file_name == NULL || (fp = fopen (file_name, "r")) == NULL)
data/scim-skk-0.5.2/intl/localcharset.c:145:4:  [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 buf1[50+1];
data/scim-skk-0.5.2/intl/localcharset.c:146:4:  [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 buf2[50+1];
data/scim-skk-0.5.2/intl/localcharset.c:315:10:  [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 buf[2 + 10 + 1];
data/scim-skk-0.5.2/intl/localcharset.c:318:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf (buf, "CP%u", GetACP ());
data/scim-skk-0.5.2/intl/localcharset.c:324:10:  [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 buf[2 + 10 + 1];
data/scim-skk-0.5.2/intl/localcharset.c:353:8:  [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, dot, modifier - dot);
data/scim-skk-0.5.2/intl/localcharset.c:369:4:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
	  sprintf (buf, "CP%u", cp[0]);
data/scim-skk-0.5.2/intl/localealias.c:229: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 (full_fname, fname, fname_len);
data/scim-skk-0.5.2/intl/localealias.c:230: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 (&full_fname[fname_len], aliasfile, sizeof aliasfile);
data/scim-skk-0.5.2/intl/localealias.c:233:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen (relocate (full_fname), "r");
data/scim-skk-0.5.2/intl/localealias.c:253: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 buf[400];
data/scim-skk-0.5.2/intl/localealias.c:333:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      map[nmap].alias = memcpy (&string_space[string_space_act],
data/scim-skk-0.5.2/intl/localealias.c:337:26:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	      map[nmap].value = memcpy (&string_space[string_space_act],
data/scim-skk-0.5.2/intl/log.c:79:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      last_logfile = fopen (logfilename, "a");
data/scim-skk-0.5.2/intl/os2compat.c:42: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 libintl_nl_default_dirname[MAXPATHLEN+1];
data/scim-skk-0.5.2/intl/os2compat.c:61:11:  [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 (_nlos2_libdir, root, sl);
data/scim-skk-0.5.2/intl/os2compat.c:62:11:  [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 (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
data/scim-skk-0.5.2/intl/os2compat.c:75:11:  [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 (_nlos2_localealiaspath, root, sl);
data/scim-skk-0.5.2/intl/os2compat.c:76:11:  [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 (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
data/scim-skk-0.5.2/intl/os2compat.c:89:11:  [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 (_nlos2_localedir, root, sl);
data/scim-skk-0.5.2/intl/os2compat.c:90:11:  [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 (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
data/scim-skk-0.5.2/intl/printf.c:191:8:  [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 (resultbuf, result, maxlength - 1);
data/scim-skk-0.5.2/intl/printf.c:345:8:  [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 (resultbuf, result, (maxlength - 1) * sizeof (wchar_t));
data/scim-skk-0.5.2/intl/relocatable.c:124:4:  [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 (memory, orig_prefix_arg, orig_prefix_len + 1);
data/scim-skk-0.5.2/intl/relocatable.c:127:4:  [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 (memory, curr_prefix_arg, curr_prefix_len + 1);
data/scim-skk-0.5.2/intl/relocatable.c:208:5:  [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 (q, curr_pathname, p - curr_pathname);
data/scim-skk-0.5.2/intl/relocatable.c:268:7:  [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 (curr_prefix, curr_installdir, curr_prefix_len);
data/scim-skk-0.5.2/intl/relocatable.c:295:14:  [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 location[MAX_PATH];
data/scim-skk-0.5.2/intl/relocatable.c:321:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fp = fopen ("/proc/self/maps", "r");
data/scim-skk-0.5.2/intl/relocatable.c:439:8:  [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 (result, curr_prefix, curr_prefix_len);
data/scim-skk-0.5.2/intl/textdomain.c:115: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 (new_domain, domainname, len);
data/scim-skk-0.5.2/intl/vasnprintf.c:203:4:  [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 (memory, result, length * sizeof (CHAR_T));		     \
data/scim-skk-0.5.2/intl/vasnprintf.c:215: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 (result + length, cp, n * sizeof (CHAR_T));
data/scim-skk-0.5.2/intl/vasnprintf.c:520:7:  [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 (p, dp->width_start, n * sizeof (CHAR_T));
data/scim-skk-0.5.2/intl/vasnprintf.c:526:7:  [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 (p, dp->precision_start, n * sizeof (CHAR_T));
data/scim-skk-0.5.2/intl/vasnprintf.c:837:7:  [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 (result + length, tmp, count * sizeof (CHAR_T));
data/scim-skk-0.5.2/src/cdb.cpp:37:17:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        (m_fd = open(m_filename.data(), O_RDONLY)) > 0) {
data/scim-skk-0.5.2/src/scim_skk_core.cpp:1079: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.
                char str[2] = {code, '\0'};
data/scim-skk-0.5.2/src/scim_skk_dictionary.cpp:219:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(m_dictpath.c_str(), O_RDONLY)) < 0) return;
data/scim-skk-0.5.2/src/scim_skk_dictionary.cpp:366:5:  [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 writebuf[skey.size() + 3];
data/scim-skk-0.5.2/src/scim_skk_dictionary.cpp:367:5:  [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 readbuf[buflen];
data/scim-skk-0.5.2/src/scim_skk_dictionary.cpp:457:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(m_dictpath.c_str(), O_RDONLY)) == -1) return;
data/scim-skk-0.5.2/src/scim_skk_dictionary.cpp:498:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        dictfs.open(m_dictpath.c_str());
data/scim-skk-0.5.2/intl/bindtextdom.c:154: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).
		      size_t len = strlen (dirname) + 1;
data/scim-skk-0.5.2/intl/bindtextdom.c:192:18:  [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 (codeset) + 1;
data/scim-skk-0.5.2/intl/bindtextdom.c:224: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).
      size_t len = strlen (domainname) + 1;
data/scim-skk-0.5.2/intl/bindtextdom.c:252:18:  [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 (dirname) + 1;
data/scim-skk-0.5.2/intl/bindtextdom.c:283:21:  [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 (codeset) + 1;
data/scim-skk-0.5.2/intl/dcigettext.c:477: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).
  msgid_len = strlen (msgid1) + 1;
data/scim-skk-0.5.2/intl/dcigettext.c:531:28:  [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 dirname_len = strlen (binding->dirname) + 1;
data/scim-skk-0.5.2/intl/dcigettext.c:564: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).
  domainname_len = strlen (domainname);
data/scim-skk-0.5.2/intl/dcigettext.c:565:34:  [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).
  xdomainname = (char *) alloca (strlen (categoryname)
data/scim-skk-0.5.2/intl/dcigettext.c:574:36:  [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).
  single_locale = (char *) alloca (strlen (categoryvalue) + 1);
data/scim-skk-0.5.2/intl/dcigettext.c:745: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).
      nls_uint32 len = strlen (msgid);
data/scim-skk-0.5.2/intl/eval-plural.h:88:13:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	      case equal:
data/scim-skk-0.5.2/intl/finddomain.c:89: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).
			       strlen (dirname) + 1, 0, locale, NULL, NULL,
data/scim-skk-0.5.2/intl/finddomain.c:125: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).
      size_t len = strlen (alias_value) + 1;
data/scim-skk-0.5.2/intl/finddomain.c:144: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).
			       strlen (dirname) + 1, mask, language, territory,
data/scim-skk-0.5.2/intl/l10nflist.c:93:25:  [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 part_len = strlen (argz);
data/scim-skk-0.5.2/intl/l10nflist.c:116:25:  [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 part_len = strlen (argz);
data/scim-skk-0.5.2/intl/l10nflist.c:192: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).
				  + strlen (language)
data/scim-skk-0.5.2/intl/l10nflist.c:194:12:  [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).
				     ? strlen (territory) + 1 : 0)
data/scim-skk-0.5.2/intl/l10nflist.c:196:12:  [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).
				     ? strlen (codeset) + 1 : 0)
data/scim-skk-0.5.2/intl/l10nflist.c:198:12:  [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).
				     ? strlen (normalized_codeset) + 1 : 0)
data/scim-skk-0.5.2/intl/l10nflist.c:201:12:  [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).
				     ? strlen (modifier) + 1 : 0)
data/scim-skk-0.5.2/intl/l10nflist.c:203:12:  [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).
				     ? strlen (special) + 1 : 0)
data/scim-skk-0.5.2/intl/l10nflist.c:207: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).
					     ? strlen (sponsor) : 0)
data/scim-skk-0.5.2/intl/l10nflist.c:209: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).
					   ? strlen (revision) + 1 : 0)) : 0)
data/scim-skk-0.5.2/intl/l10nflist.c:210: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).
				  + 1 + strlen (filename) + 1);
data/scim-skk-0.5.2/intl/l10nflist.c:346:45:  [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).
		= _nl_make_l10nflist (l10nfile_list, dir, strlen (dir) + 1,
data/scim-skk-0.5.2/intl/loadmsgcat.c:462:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define read   __read
data/scim-skk-0.5.2/intl/loadmsgcat.c:810:18:  [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).
	  charsetstr += strlen ("charset=");
data/scim-skk-0.5.2/intl/loadmsgcat.c:862:14:  [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 (outcharset);
data/scim-skk-0.5.2/intl/loadmsgcat.c:988:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  long int nb = (long int) read (fd, read_ptr, to_read);
data/scim-skk-0.5.2/intl/loadmsgcat.c:1166:18:  [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).
			      need += strlen (sysdep_segment_values[sysdepref]);
data/scim-skk-0.5.2/intl/loadmsgcat.c:1301:10:  [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).
					n = strlen (sysdep_segment_values[sysdepref]);
data/scim-skk-0.5.2/intl/localcharset.c:90:9:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# undef getc
data/scim-skk-0.5.2/intl/localcharset.c:91:10:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define getc getc_unlocked
data/scim-skk-0.5.2/intl/localcharset.c:125: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).
	size_t dir_len = strlen (dir);
data/scim-skk-0.5.2/intl/localcharset.c:126: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).
	size_t base_len = strlen (base);
data/scim-skk-0.5.2/intl/localcharset.c:153:12:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      c = getc (fp);
data/scim-skk-0.5.2/intl/localcharset.c:162:11:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    c = getc (fp);
data/scim-skk-0.5.2/intl/localcharset.c:169:12:  [1] (buffer) fscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
	      if (fscanf (fp, "%50s %50s", buf1, buf2) < 2)
data/scim-skk-0.5.2/intl/localcharset.c:171: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).
	      l1 = strlen (buf1);
data/scim-skk-0.5.2/intl/localcharset.c:172: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).
	      l2 = strlen (buf2);
data/scim-skk-0.5.2/intl/localcharset.c:383: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).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/scim-skk-0.5.2/intl/localcharset.c:383:52:  [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).
       aliases += strlen (aliases) + 1, aliases += strlen (aliases) + 1)
data/scim-skk-0.5.2/intl/localcharset.c:387: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).
	codeset = aliases + strlen (aliases) + 1;
data/scim-skk-0.5.2/intl/localealias.c:305: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).
	      alias_len = strlen (alias) + 1;
data/scim-skk-0.5.2/intl/localealias.c:306: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).
	      value_len = strlen (value) + 1;
data/scim-skk-0.5.2/intl/log.c:75:43:  [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).
      last_logfilename = (char *) malloc (strlen (logfilename) + 1);
data/scim-skk-0.5.2/intl/os2compat.c:59:23:  [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 sl = strlen (root);
data/scim-skk-0.5.2/intl/os2compat.c:60:49:  [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).
          _nlos2_libdir = (char *) malloc (sl + strlen (LIBDIR) + 1);
data/scim-skk-0.5.2/intl/os2compat.c:62:47:  [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).
          memcpy (_nlos2_libdir + sl, LIBDIR, strlen (LIBDIR) + 1);
data/scim-skk-0.5.2/intl/os2compat.c:73:23:  [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 sl = strlen (root);
data/scim-skk-0.5.2/intl/os2compat.c:74:58:  [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).
          _nlos2_localealiaspath = (char *) malloc (sl + strlen (LOCALE_ALIAS_PATH) + 1);
data/scim-skk-0.5.2/intl/os2compat.c:76:67:  [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).
          memcpy (_nlos2_localealiaspath + sl, LOCALE_ALIAS_PATH, strlen (LOCALE_ALIAS_PATH) + 1);
data/scim-skk-0.5.2/intl/os2compat.c:87:23:  [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 sl = strlen (root);
data/scim-skk-0.5.2/intl/os2compat.c:88:52:  [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).
          _nlos2_localedir = (char *) malloc (sl + strlen (LOCALEDIR) + 1);
data/scim-skk-0.5.2/intl/os2compat.c:90:53:  [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).
          memcpy (_nlos2_localedir + sl, LOCALEDIR, strlen (LOCALEDIR) + 1);
data/scim-skk-0.5.2/intl/os2compat.c:96:7:  [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 (strlen (_nlos2_localedir) <= MAXPATHLEN)
data/scim-skk-0.5.2/intl/plural-exp.h:54:5:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    equal,			/* Comparison for equality.  */
data/scim-skk-0.5.2/intl/plural.c:736:21:  [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).
#   define yystrlen strlen
data/scim-skk-0.5.2/intl/plural.c:1543:15:  [1] (buffer) equal:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	  lval->op = equal;
data/scim-skk-0.5.2/intl/relocatable.c:117:25:  [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).
      orig_prefix_len = strlen (orig_prefix_arg);
data/scim-skk-0.5.2/intl/relocatable.c:118:25:  [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).
      curr_prefix_len = strlen (curr_prefix_arg);
data/scim-skk-0.5.2/intl/relocatable.c:184:53:  [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 (strncmp (orig_installprefix, orig_installdir, strlen (orig_installprefix))
data/scim-skk-0.5.2/intl/relocatable.c:188:38:  [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).
  rel_installdir = orig_installdir + strlen (orig_installprefix);
data/scim-skk-0.5.2/intl/relocatable.c:193:37:  [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 char *p = curr_pathname + strlen (curr_pathname);
data/scim-skk-0.5.2/intl/relocatable.c:216: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).
    const char *rp = rel_installdir + strlen (rel_installdir);
data/scim-skk-0.5.2/intl/relocatable.c:217:40:  [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 char *cp = curr_installdir + strlen (curr_installdir);
data/scim-skk-0.5.2/intl/relocatable.c:335:19:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	      while (c = getc (fp), c != EOF && c != '\n' && c != '/')
data/scim-skk-0.5.2/intl/relocatable.c:354:15:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	  while (c = getc (fp), c != EOF && c != '\n')
data/scim-skk-0.5.2/intl/relocatable.c:433: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).
	    (char *) xmalloc (curr_prefix_len + strlen (pathname_tail) + 1);
data/scim-skk-0.5.2/intl/textdomain.c:112: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).
      size_t len = strlen (domainname) + 1;
data/scim-skk-0.5.2/intl/vasnprintf.c:57:24:  [1] (buffer) wcslen:
  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).
#  define local_wcslen wcslen
data/scim-skk-0.5.2/intl/vasnprintf.c:463:17:  [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).
			tmp_length = strlen (a.arg[dp->arg_index].a.a_string);
data/scim-skk-0.5.2/src/scim_skk_dictionary.cpp:379:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int len = m_socket.read(readbuf, buflen);
data/scim-skk-0.5.2/src/scim_skk_dictionary.cpp:382:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            len = m_socket.read(readbuf, buflen);
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:198:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        m_sysdicts = config->read(String(SCIM_SKK_CONFIG_SYSDICT),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:208:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        m_userdictname = config->read(String(SCIM_SKK_CONFIG_USERDICT),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:212:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read(String(SCIM_SKK_CONFIG_CANDVEC_SIZE),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:215:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read(String(SCIM_SKK_CONFIG_ANNOT_VIEW),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:217:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_ANNOT_POS),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:221:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_ANNOT_TARGET),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:226:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read(String(SCIM_SKK_CONFIG_ANNOT_HIGHLIGHT),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:228:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_ANNOT_BGCOLOR),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:233:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read(String(SCIM_SKK_CONFIG_IGNORE_RETURN),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:236:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_KAKUTEI_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:239:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_KATAKANA_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:242:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_HALF_KATAKANA_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:245:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_ASCII_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:248:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_WIDE_ASCII_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:251:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_CONVERT_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:254:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_START_PREEDIT_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:257:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_CANCEL_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:260:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_ASCII_CONVERT_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:263:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_PREVCAND_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:266:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_BACKSPACE_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:269:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_DELETE_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:272:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_FORWARD_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:275:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_BACKWARD_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:278:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_HOME_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:281:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_END_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:284:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_UPCASE_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:287:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_COMPLETION_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:290:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_COMPLETION_BACK_KEY),
data/scim-skk-0.5.2/src/scim_skk_imengine.cpp:293:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = config->read(String(SCIM_SKK_CONFIG_SELECTION_STYLE),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:896:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_SKK_CONFIG_SYSDICT),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:899:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_SKK_CONFIG_USERDICT),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:902:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_SKK_CONFIG_CANDVEC_SIZE),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:905:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_SKK_CONFIG_ANNOT_VIEW),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:908:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_SKK_CONFIG_ANNOT_POS),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:911:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_SKK_CONFIG_ANNOT_TARGET),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:914:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_SKK_CONFIG_SELECTION_STYLE),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:918:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_SKK_CONFIG_ANNOT_HIGHLIGHT),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:922:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_SKK_CONFIG_IGNORE_RETURN),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:925:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        annot_bgcolor.value = config->read(String(annot_bgcolor.key),
data/scim-skk-0.5.2/src/scim_skk_imengine_setup.cpp:931:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                    config->read (String (__key_conf_pages[j].data[i].key),

ANALYSIS SUMMARY:

Hits = 220
Lines analyzed = 19825 in approximately 0.46 seconds (42986 lines/second)
Physical Source Lines of Code (SLOC) = 14839
Hits@level = [0]   7 [1] 116 [2]  66 [3]  20 [4]  18 [5]   0
Hits@level+ = [0+] 227 [1+] 220 [2+] 104 [3+]  38 [4+]  18 [5+]   0
Hits/KSLOC@level+ = [0+] 15.2975 [1+] 14.8258 [2+] 7.00856 [3+] 2.56082 [4+] 1.21302 [5+]   0
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.