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/hime-0.9.10+git20170427+dfsg1/data/t2s-file.c
Examining data/hime-0.9.10+git20170427+dfsg1/data/extr1.c
Examining data/hime-0.9.10+git20170427+dfsg1/distro/dev-tools/qt3-test/ed3.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/distro/dev-tools/qt3-test/ed3.h
Examining data/hime-0.9.10+git20170427+dfsg1/distro/dev-tools/qt3-test/ed3a.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/distro/dev-tools/qt4-test/ed4a.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/distro/dev-tools/qt4-test/ed4.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/distro/dev-tools/qt4-test/ed4.h
Examining data/hime-0.9.10+git20170427+dfsg1/distro/dev-tools/qt5-test/ed5a.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/distro/dev-tools/qt5-test/ed5.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/distro/dev-tools/qt5-test/ed5.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/locale.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-qt.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-qt.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-imcontext-qt.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-imcontext-qt.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtk_bug_fix.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho-kbm-name.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/tray.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/tsin.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-module.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab-util.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-module-cb.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/include/XimProto.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/include/Xi18n.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/include/IMdkit.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nAttr.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/FrameMgr.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/FrameMgr.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nClbk.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nIc.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/XimFunc.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nX.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/Xi18nX.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nUtil.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nIMProto.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/IMMethod.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/IMConn.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-endian.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/IC.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-sym.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/win0.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/IC.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-phod2a.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho-dbg.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/t2s-lookup.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-module.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt4-im/hime-common-qt.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt4-im/hime-qt.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt4-im/im-hime-qt.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt4-im/hime-qt.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt4-im/hime-imcontext-qt.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt4-im/hime-imcontext-qt.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-pho.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/pin-juyin.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/table-update.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/modules/hime-setup-chewing.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/modules/intcode.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/modules/win-int.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/modules/intcode.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-message.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-protocol.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-send.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client-attr.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab-dbg.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-sim2trad.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/win1.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/config.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-juyin-learn.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-pho.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/tsin-scan.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-module-cb.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho-sym.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-gtab.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-gtk-compatible.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/lang.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-tsd2a32.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/fullchar.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/util.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/phrase.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt-im/qhimeinputcontext.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt-im/qhimeinputcontextplugin.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt-im/qhimeinputcontextplugin_my.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/src/qt-im/qhimeinputcontext_x11.cpp
Examining data/hime-0.9.10+git20170427+dfsg1/src/im-dispatch.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/unix-exec.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-common.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/phrase-save-menu.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/lang.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-exec-script.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/cache.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-save-phrase.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gst.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/im-srv.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/statistic.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-gtab.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-pho-near.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gdkpixbuf-drawable.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-message.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-crypt.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/win1.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/t2s-file.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho-play.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/eve.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/mitem.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/im-srv.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/os-dep.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-inmd-switch.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho-status.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho-kbm-name.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-save-phrase.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/im-addr.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho2pinyin.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-gb-toggle.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/pho-lookup.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-icon.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/about.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-list.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/util.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/tsin.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/pinyin.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-settings.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab-use-count.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtk-im/imhime.c
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtk-im/gtkimcontexthime.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtk-im/gtkintl.h
Examining data/hime-0.9.10+git20170427+dfsg1/src/gtk-im/gtkimcontexthime.c

FINAL RESULTS:

data/hime-0.9.10+git20170427+dfsg1/data/extr1.c:38:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(line, "%s %s %d", aa, bb, &usecount);
data/hime-0.9.10+git20170427+dfsg1/data/t2s-file.c:83:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(tt,"%s %s",a,b);
data/hime-0.9.10+git20170427+dfsg1/src/IC.c:243:4:  [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(rec->pre_attr.base_font, (char *)pre_attr->value);
data/hime-0.9.10+git20170427+dfsg1/src/IC.c:287:4:  [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(rec->sts_attr.base_font, (char *)sts_attr->value);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nIc.c:540: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(attr_ret[n].name, xic_attr[j].name);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nIc.c:561:3:  [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(attr_ret[n].name, xic_attr[j].name);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:169:9:  [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 ((*p_encoding)->supported_encodings[i],
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:194:17:  [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 (address->im_locale, p->value);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:206:17:  [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(address->im_addr, p->value);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:218:17:  [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 (address->im_name, p->value);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:344:17:  [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 (p->value, address->im_locale);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:352:17:  [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 (p->value, address->im_addr);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:362:21:  [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 (p->value, address->im_name);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c:50:2:  [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.
	fprintf(stderr, msg);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c:421:13:  [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 (ext_list[i].name, im_ext[i].name);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c:439:21:  [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 (ext_list[n].name, im_ext[i].name);
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:103:3:  [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(callback_str_buffer, text);
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:197:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(*buf, text);
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:263:11:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      if (execl(filter, filter, NULL) < 0) {
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:971:9:  [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(ttt, inmd[in_no].filename);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:75:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(out, gbuf[i+start].ch);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:188:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(addspc, gbuf[i].ch);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:190:9:  [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(addspc, gbuf[i].ch);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:194: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(addspc, gbuf[i].ch);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:205:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(www, "<span foreground=\"white\" background=\"%s\">%s</span>", tsin_cursor_color, spec);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:207:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(www, "<span foreground=\"white\" background=\""TSIN_CURSOR_COLOR_DEFAULT"\">%s</span>", spec);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:356:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(t, gbuf[j].ch);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:767: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(seltab[i], pbuf->sel[v]);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:849:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
          strcat(tt, s);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:1056:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(ts, "<span foreground=\"%s\">%c</span>%s%s", hime_sel_key_color, cur_inmd->selkey[i], tss.pre_sel[i].str, br);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:1058:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(ts, "<span foreground=\""HIME_SEL_KEY_COLOR_DEFAULT"\">%c</span>%s%s", cur_inmd->selkey[i], tss.pre_sel[i].str, br);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:1059:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(tt, ts);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:133:12:  [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).
    strcat(strcpy(out_file,TableDir),"/");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:134:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(out_file, fname);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:168:10:  [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).
  strcat(strcpy(append, inmd[inmdno].filename), ".append");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:175:12:  [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).
    strcat(strcpy(append_user_gtab, append_user), ".gtab");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:181:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(exe, HIME_BIN_DIR"/hime-gtab-merge %s %s %s", ttt, append_user, append_user_gtab);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:183:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      system(exe);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:189: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(ttt, append_user_gtab);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:219:3:  [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(uuu,ttt);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:317:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(tt, th.selkey2);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:96:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(line, "%s %s %s %s", name, key, file, icon);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c:32: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(fname, p->filename_append);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c:33: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(gtabfname, fname);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c:44:10:  [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).
  strcat(strcpy(fname_idx, fname), ".idx");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c:45:10:  [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).
  strcat(strcpy(gtab_phrase_src, fname), ".src");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c:50:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(fname, W_OK) < 0 || access(fname_idx, W_OK) < 0)
data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c:50:34:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(fname, W_OK) < 0 || access(fname_idx, W_OK) < 0)
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:213:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(out, tbuf[i]);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:268:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  return strcat(s, t);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:278:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  return strcat(s, t);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:369: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(tt+ttN, p);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:683:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(tt, htmlspecialchars(seltab[0], uu));
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:708:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(www, "<span foreground=\"%s\">%s</span>", hime_sel_key_color, htmlspecialchars(uu, vvv));
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:710:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(www, "<span foreground=\""HIME_SEL_KEY_COLOR_DEFAULT"\">%s</span>", htmlspecialchars(uu, vvv));
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:711:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(tt, www);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:718:16:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(strcat(tt, selback), " ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:725:11:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
          strcat(tt, uu);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:739:18:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
          strcat(strcat(tt, uu), " ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:760:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tstr2, "(%s)", pgstr);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:761:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(tt, tstr2);
data/hime-0.9.10+git20170427+dfsg1/src/gtk-im/gtkimcontexthime.c:354: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(buffer, utf8);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:191:11:  [4] (buffer) scanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
          scanf("%s", fname);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:192:10:  [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).
  } else strcpy(fname,argv[1]);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:204:3:  [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(fname_cin,fname);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:205:3:  [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(fname_tab,fname);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:248: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(th.selkey2, arg+sizeof(th.selkey));
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:251: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(th.selkey,arg);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:267: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(th.endkey, arg);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:520: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(&phrbuf[prbf_cou],arg);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:633:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(strcpy(bzip2, "bzip2 -f -k "), fname_tab);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:634:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(bzip2);
data/hime-0.9.10+git20170427+dfsg1/src/hime-common.c:96:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(HIME_BIN_DIR"/hime-setup &");
data/hime-0.9.10+git20170427+dfsg1/src/hime-common.c:111:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "%s %d", hime_font_name, size);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:43: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(tt,home);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:59:3:  [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.
  snprintf(omni_config_fname + len, 256 - len, HIME_CONF);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:89:3:  [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.
  snprintf(omni_config_fname + len, 256 - len, HIME_CONF);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:104:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(strcat(fname,"/"),name);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:105:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return !access(fname, R_OK);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:112:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
  strcat(strcat(fname,"/config/"),name);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:162:3:  [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(rstr, tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:207:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fname, "%s/%s", TableDir, name);
data/hime-0.9.10+git20170427+dfsg1/src/hime-exec-script.c:35:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(scr, HIME_SCRIPT_DIR"/%s", name);
data/hime-0.9.10+git20170427+dfsg1/src/hime-exec-script.c:37:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(scr);
data/hime-0.9.10+git20170427+dfsg1/src/hime-exec-script.c:48:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(hime_conf_dir);
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:342: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(&phrbuf[prbf_cou],arg);
data/hime-0.9.10+git20170427+dfsg1/src/hime-icon.c:23:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(fname, HIME_DEFAULT_ICON_DIR"/%s", iconame);
data/hime-0.9.10+git20170427+dfsg1/src/hime-icon.c:26:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(fname, HIME_DEFAULT_ICON_DIR"/%s/%s", hime_icon_dir, iconame);
data/hime-0.9.10+git20170427+dfsg1/src/hime-icon.c:33:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(uu, "icons/%s", iconame);
data/hime-0.9.10+git20170427+dfsg1/src/hime-juyin-learn.c:82:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(tt, phostr);
data/hime-0.9.10+git20170427+dfsg1/src/hime-message.c:37: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(icon, argv[i+1]);
data/hime-0.9.10+git20170427+dfsg1/src/hime-message.c:40: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(text, argv[i+1]);
data/hime-0.9.10+git20170427+dfsg1/src/hime-message.c:51:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(message, "#hime_message %s %s %d", icon, text, duration);
data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c:122: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(phrase_area + phrase_area_N, str);
data/hime-0.9.10+git20170427+dfsg1/src/hime-settings.c:239: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(phokbm, hime_pho_kbm);
data/hime-0.9.10+git20170427+dfsg1/src/hime-settings.c:249:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  sscanf(phokbm, "%s %s %d %d",phokbm_name, selkey, &pho_candicate_col_N, &pho_candicate_R2L);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c:121:3:  [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(fname, gtk_font_button_get_font_name(GTK_FONT_BUTTON(font_sel)));
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c:259:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c:263:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c:424:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "%s %d", hime_font_name, hime_font_size);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-gtab.c:157:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(append_fname, "~/.config/hime/%s.append", fname);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-gtab.c:160:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(prepare, HIME_SCRIPT_DIR"/gtab.append_prepare %s", append_fname);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-gtab.c:161:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(prepare);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-gtab.c:165:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(exec, "%s %s", utf8_edit, append_fname);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-gtab.c:167:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(exec);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-list.c:374:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "%s %s", key, file);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-pho.c:132:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "%s %s %d %d", kbm_sel[idx].kbm, selkeys[idx_selkeys].kstr, pho_candicate_col_N, selkeys[idx_selkeys].RL);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:35:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "( cd ~/.config/hime && %s phrase.table ) &", utf8_edit);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:36:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:42:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "( cd ~/.config/hime && %s symbol-table ) &", utf8_edit);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:43:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:60:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(HIME_BIN_DIR"/hime-sim2trad &");
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:66:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(HIME_BIN_DIR"/hime-juyin-learn &");
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:115:14:  [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).
      strcat(strcpy(tt, filename), ".append.gtab.tsin-db");
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:117:17:  [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).
         strcat(strcpy(tt, filename), ".tsin-db");
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:127:8:  [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.
       snprintf(cmd, sizeof(cmd), HIME_BIN_DIR"/hime-tsd2a32 %s -o %s", fname, selected_filename);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:129:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
       int res = system(cmd);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:146:16:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
     int res = system(cmd);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:151:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
     sprintf(tt, HIME_SCRIPT_DIR"/tsin-gtab-import %s '%s'", inmd[default_input_method].filename,
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:153:6:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
     system(tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:186:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(HIME_BIN_DIR"/hime-ts-edit");
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:191:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system("hime-tslearn &");
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:198:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "cd ~/.config/hime && "HIME_BIN_DIR"/hime-tsd2a32 %s > tmpfile && "HIME_BIN_DIR"/hime-tsd2a32 %s/%s >> tmpfile && "HIME_BIN_DIR"/hime-tsa2d32 tmpfile",
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:201:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:322: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(tt, pinmd->cname);
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:214:4:  [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(out_str, phostr);
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:250: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(line, t=g_markup_escape_text(chbuf, -1));
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:260:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(line, t=g_markup_escape_text(tt, -1));
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:266:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(line, tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:304:3:  [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(txt, gtk_entry_get_text(GTK_ENTRY(find_textentry)));
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:265:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(s, "%s %d %d %s", aa, &keybits, &maxkey, keymap+1);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:524: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(head.signature, TSIN_GTAB_KEY);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:527: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(head.keymap, keymap);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:535:10:  [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).
  strcat(strcpy(outfileidx, outfile), ".idx");
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsd2a32.c:99:5:  [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.
    fprintf(fp_out,TSIN_GTAB_KEY" %d %d %s\n", head.keybits, head.maxkey, head.keymap+1);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:184:3:  [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.
  fprintf(fp_out,TSIN_GTAB_KEY" %d %d %s\n", th.keybits, th.MaxPress, keymap+1);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:321:10:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
         strcat(kstr, tkey);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c:376:3:  [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(current_str, utf8);
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:313: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(temp_current_CS_inmd_filename, inmd[current_CS->in_method].filename);
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:323: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(temp_inmd_filenames[c], inmd[cs->in_method].filename);
data/hime-0.9.10+git20170427+dfsg1/src/im-addr.c:35:3:  [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(tdisp, disp);
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:112:9:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        execl(execbin, "hime", NULL);
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:156: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(sock_path, srv_sock_path.sock_path);
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:163:3:  [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(serv_addr.sun_path, sock_path);
data/hime-0.9.10+git20170427+dfsg1/src/im-dispatch.c:199:11:  [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(tt, XKeysymToString(req.keyeve.key));
data/hime-0.9.10+git20170427+dfsg1/src/im-srv.c:192:3:  [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(serv_addr.sun_path, sock_path);
data/hime-0.9.10+git20170427+dfsg1/src/im-srv.c:232:3:  [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(srv_sockpath.sock_path, sock_path);
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:78:3:  [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(fnameout,argv[1]);
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:84:3:  [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(fnamesrc,fnameout);
data/hime-0.9.10+git20170427+dfsg1/src/locale.c:35:3:  [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(out, big5);
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:639:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cur, "<span foreground=\"white\" background=\"%s\">%s</span>", *gmf.mf_tsin_cursor_color, s);
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:641:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(cur, "<span foreground=\"white\" background=\""TSIN_CURSOR_COLOR_DEFAULT"\">%s</span>", s);
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:691: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(tt, gtk_label_get_text(GTK_LABEL(seg[i].label)));
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:728:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(out, gtk_label_get_text(GTK_LABEL(seg[i].label)));
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:742:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(out, idx_hira_kata(jp[i], always_hira));
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:966:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      system("kasumi &");
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:969:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      system("kasumi -a &");
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:1433:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(str, s);
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:1449:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(str, keys);
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:1457:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(str, s);
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:1463:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(str, keys);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:52:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (pszChewingConfig, "%s%s", pszHome, HIME_CHEWING_CONFIG);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:169:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (pszHimeKBConfig, "%s%s", pszHome, HIME_KB_CONFIG);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:184:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf (szBuf, "%s %s ", szKbType, szKbSelKey);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:91:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (szTmp, "<span background=\"%s\" foreground=\"white\">%s</span>",
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:95:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf (szTmp, "<span background=\""TSIN_CURSOR_COLOR_DEFAULT"\">%s</span>",
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:177:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (pszChewingHashDir, "%s/.chewing", pszHome);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:613:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (pszStr, pszTmpStr);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:618:6:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
	    strcat (pszStr, pszZuinStr);
data/hime-0.9.10+git20170427+dfsg1/src/modules/intcode.c:81:3:  [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(out, utf8);
data/hime-0.9.10+git20170427+dfsg1/src/pho-play.c:44:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(tt, HIME_OGG_DIR"/%s/%s", ph, phonetic_speak_sel);
data/hime-0.9.10+git20170427+dfsg1/src/pho-play.c:46:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(tt, R_OK))
data/hime-0.9.10+git20170427+dfsg1/src/pho-play.c:57:3:  [4] (shell) execlp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  execlp("ogg123", "ogg123", tt, NULL);
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:50:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(phofname, W_OK) < 0){
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:53:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(vv,"cp %s %s\n", sys_file, phofname);
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:54:7:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      system(vv);
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:277:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(out, pstr);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:472:10:  [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).
  strcat(strcpy(pho_kbm_name_kbm, pho_kbm_name), ".kbm");
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:749:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tt, "<span foreground=\"%s\">%c</span>",
data/hime-0.9.10+git20170427+dfsg1/src/pho2pinyin.c:57: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(tt, pin_juyin[i].pinyin);
data/hime-0.9.10+git20170427+dfsg1/src/pho2pinyin.c:63:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(tt, tone);
data/hime-0.9.10+git20170427+dfsg1/src/phrase-save-menu.c:88:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tt, _("%s shift-Enter"), str);
data/hime-0.9.10+git20170427+dfsg1/src/phrase-save-menu.c:97:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(tt, _("%s Ctrl-%d"), str, len);
data/hime-0.9.10+git20170427+dfsg1/src/pin-juyin.c:42:5:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
    sscanf(tt, "%s %s",pin, ju);
data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-imcontext-qt.cpp:43:5:  [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.
    vfprintf(out_fp, fmt, args);
data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-qt.cpp:16:83:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
QHimePlatformInputContext *QHimePlatformInputContextPlugin::create(const QString& system, const QStringList& paramList)
data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-qt.cpp:21:9:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system.compare(system, QStringLiteral(HIMEID), Qt::CaseInsensitive) == 0)
data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-qt.cpp:21:24:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    if (system.compare(system, QStringLiteral(HIMEID), Qt::CaseInsensitive) == 0)
data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-qt.h:16:54:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    QHimePlatformInputContext *create(const QString& system, const QStringList& paramList);
data/hime-0.9.10+git20170427+dfsg1/src/table-update.c:43:10:  [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).
  strcat(strcpy(version_name, name), ".version");
data/hime-0.9.10+git20170427+dfsg1/src/table-update.c:59:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(cmd, "mv -f %s %s.old && cp %s %s && echo %d > %s", fname_user, fname_user,
data/hime-0.9.10+git20170427+dfsg1/src/table-update.c:62:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(cmd);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:89:20:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  icon_readable = !access(iconpath, R_OK);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:92: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(icondir, iconpath);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:95: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(iconame, iconfile);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:99: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(iconfile, fallback);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:111: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(iconfile, HIME_TRAY_PNG);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:113: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(iconfile, inmd[current_CS->in_method].icon);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:119:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(s, iconfile);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:120: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(iconfile, s);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:138:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(st_str, st_full);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:140:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(st_str, st_half);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:142:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(st_str, st_gb);
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:39:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(HIME_BIN_DIR"/hime-sim2trad &");
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:44:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(HIME_BIN_DIR"/hime-trad2sim &");
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:280:9:  [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(kbm, bak);
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:295:13:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
            sprintf(tt, "注音換 %s %s", kbm_sel[i].name, p);
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:348:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(tt, iconame);
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:419: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(tt, inmd[current_CS->in_method].cname);
data/hime-0.9.10+git20170427+dfsg1/src/tray.c:164: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(pixbuf_ch_fname, fname);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:53:3:  [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(tsidxfname, infname);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:143:3:  [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(tt, current_tsin_fname);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:159:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(ch + ofs, str);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:1944:11:  [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(tstr, half_char_to_full_char(xkey));
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:2173: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(str+tn, tss.chpho[i].ch);
data/hime-0.9.10+git20170427+dfsg1/src/unix-exec.c:9:3:  [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.
  vsnprintf(tt,sizeof(tt), fmt, args);
data/hime-0.9.10+git20170427+dfsg1/src/unix-exec.c:12:3:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
  system(tt);
data/hime-0.9.10+git20170427+dfsg1/src/util.c:31:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(out, fmt, args);
data/hime-0.9.10+git20170427+dfsg1/src/util.c:51:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(fname, "%s/himedbg-%d-%d", g_get_tmp_dir(), getuid(), getpid());
data/hime-0.9.10+git20170427+dfsg1/src/util.c:75:3:  [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.
  vfprintf(out_fp, fmt, args);
data/hime-0.9.10+git20170427+dfsg1/src/util.c:90:3:  [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.
  vfprintf(out_fp, fmt, args);
data/hime-0.9.10+git20170427+dfsg1/src/win-gtab.c:284: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(str_key_codes, s);
data/hime-0.9.10+git20170427+dfsg1/src/win-inmd-switch.c:50:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tt, "%s ctrl-alt-%c", inmd[i].cname, inmd[i].key_ch);
data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.c:350:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(strcpy(tt, t), str);
data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.c:350:12:  [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).
    strcat(strcpy(tt, t), str);
data/hime-0.9.10+git20170427+dfsg1/src/win-message.c:130:3:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function.
  sscanf(message, "%s %s %s %d", head, icon, text, &duration);
data/hime-0.9.10+git20170427+dfsg1/src/win-pho-near.c:80:3:  [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(tt, ch);
data/hime-0.9.10+git20170427+dfsg1/src/win-save-phrase.c:176:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(tt, phokey_to_str(wsp[i].key));
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:58:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat(strcat(strcpy(fname, TableDir), "/"), filename);
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:58:19:  [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).
    strcat(strcat(strcpy(fname, TableDir), "/"), filename);
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:331:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat(outstr, tt);
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:263:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ul, "foreground=\"%s\"", hime_sel_key_color);
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:267:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(ul, "foreground=\"white\" background=\"%s\"", tsin_cursor_color);
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:272:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(ul, "foreground=\"%s\"", hime_sel_key_color);
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:277:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(selma, "<span %s>%s</span>", ul, htmlspecialchars(cc, uu));
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:224: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.
  filter = getenv("HIME_OUTPUT_FILTER");
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:31: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.
  if ((dname=getenv("HIME_TABLE_DIR"))) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:40:18:  [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 *home = getenv("HOME");
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:117:8:  [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.
  if (!getenv("HIME_TABLE_DIR")) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:215:17:  [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.
  if ((xim_name=getenv("XMODIFIERS"))) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:121:17:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((opt = getopt(argc, argv, "i:o:bh")) != -1) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-module-cb.c:46:23:  [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 *module_path = getenv("HIME_MODULE_DIR");
data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c:213:7:  [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.
  if (getenv("HIME_NO_RELOAD")==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-settings.c:94:25:  [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* desktop = getenv("XDG_CURRENT_DESKTOP");
data/hime-0.9.10+git20170427+dfsg1/src/hime-settings.c:237: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 *hime_pho_kbm = getenv("HIME_PHO_KBM");
data/hime-0.9.10+git20170427+dfsg1/src/hime-settings.c:271:25:  [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* desktop = getenv("XDG_CURRENT_DESKTOP");
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:139:17:  [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 *home = getenv("HOME");
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:212: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.
  gboolean reload = getenv("HIME_NO_RELOAD")==NULL;
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:596:19:  [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 *destroy = getenv("HIME_DESTROY_WINDOW");
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:606:7:  [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.
  if (getenv("HIME_DAEMON")) {
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:617:20:  [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 *lc_ctype = getenv("LC_CTYPE");
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:618:18:  [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 *lc_all = getenv("LC_ALL");
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:619: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 *lang = getenv("LANG");
data/hime-0.9.10+git20170427+dfsg1/src/im-addr.c:28: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 *disp = getenv("DISPLAY");
data/hime-0.9.10+git20170427+dfsg1/src/im-addr.c:45:51:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
  snprintf(my_dir, sizeof(my_dir), "%s/.hime-%s", g_get_tmp_dir(), pw->pw_name);
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:65:17:  [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.
  int dbg_msg = getenv("HIME_CONNECT_MSG_ON") != NULL;
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:98:51:  [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.
    if ((hime_win=find_hime_window(dpy))!=None || getenv("HIME_IM_CLIENT_NO_AUTO_EXEC"))
data/hime-0.9.10+git20170427+dfsg1/src/im-srv.c:274:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
  srand(time(&t));
data/hime-0.9.10+git20170427+dfsg1/src/lang.c:26:20:  [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 *lc_ctype = getenv("LC_CTYPE");
data/hime-0.9.10+git20170427+dfsg1/src/lang.c:27:18:  [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 *lc_all = getenv("LC_ALL");
data/hime-0.9.10+git20170427+dfsg1/src/lang.c:28: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 *lang = getenv("LANG");
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:46: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.
    pszHome = getenv ("HOME");
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:163: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.
    pszHome = getenv ("HOME");
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:171: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.
    pszHome = getenv ("HOME");
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:48:8:  [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.
  if (!getenv("HIME_TABLE_DIR") && phonetic_char_dynamic_sequence) {
data/hime-0.9.10+git20170427+dfsg1/src/util.c:39:7:  [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.
  if (getenv("HIME_ERR_COREDUMP"))
data/hime-0.9.10+git20170427+dfsg1/src/util.c:49: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.
    if (getenv("HIME_DBG_TMP") || 0) {
data/hime-0.9.10+git20170427+dfsg1/src/util.c:51:42:  [3] (buffer) g_get_tmp_dir:
  This function is synonymous with 'getenv("TMP")';it returns untrustable
  input if the environment can beset by an attacker. It 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.
      sprintf(fname, "%s/himedbg-%d-%d", g_get_tmp_dir(), getuid(), getpid());
data/hime-0.9.10+git20170427+dfsg1/data/extr1.c:28:11:  [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 ((fp=fopen("tsin.src", "r"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/data/extr1.c:32: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 aa[128];
data/hime-0.9.10+git20170427+dfsg1/data/extr1.c:33: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 bb[128];
data/hime-0.9.10+git20170427+dfsg1/data/extr1.c:35: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 line[256];
data/hime-0.9.10+git20170427+dfsg1/data/t2s-file.c:52:11:  [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 ((fw=fopen(name,"w"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/data/t2s-file.c:68:12:  [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).
  FILE *fp=fopen(fname, "r");
data/hime-0.9.10+git20170427+dfsg1/data/t2s-file.c:74: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/data/t2s-file.c:79: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 a[9],b[9];
data/hime-0.9.10+git20170427+dfsg1/data/t2s-file.c:84: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(&t2s[t2sn].a, a, sizeof(t2s[0].a));
data/hime-0.9.10+git20170427+dfsg1/data/t2s-file.c:85: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(&t2s[t2sn].b, b, sizeof(t2s[0].b));
data/hime-0.9.10+git20170427+dfsg1/data/t2s-file.c:86: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(&s2t[t2sn].b, a, sizeof(s2t[0].a));
data/hime-0.9.10+git20170427+dfsg1/data/t2s-file.c:87: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(&s2t[t2sn].a, b, sizeof(s2t[0].b));
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/FrameMgr.c:465:13:  [2] (buffer) bcopy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            bcopy (*(char **) data, fm->area + fm->idx, info.num);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nIc.c:109: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 *) *value_buf)[base_length] = (char) 0;
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nIc.c:702: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 *)attrib_list[attrib_num].value)[value_length] = '\0';
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:509: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 buf[256];
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:597: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 buf[256];
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:701: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 buf[4096];
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nX.c:256:5:  [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 (atomName,
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nX.c:281: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 atomName[16];
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nX.c:324:18:  [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 buffer[XCM_DATA_LIMIT];
data/hime-0.9.10+git20170427+dfsg1/src/cache.c:45: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(cache[cacheN].best, out, sizeof(TSIN_PARSE) * (tc_len - start));
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:225: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 filter_text[512];
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:285: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 tt[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:288: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(tt, bchar, len);
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:310: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 outbuf[512];
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:970: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 ttt[256];
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:1118: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 tt[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:1435: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 strbuf[STRBUFLEN];
data/hime-0.9.10+git20170427+dfsg1/src/gst.h:48: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 typ_pho[4];
data/hime-0.9.10+git20170427+dfsg1/src/gst.h:49: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 inph[8];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:59: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, &k, sizeof(k));
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:64: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, &gbuf[i+start].keys[0], sizeof(u_int64_t));
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:150: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(out + outN, t, len);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:177: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 addspc[MAX_CIN_PHR * 2 + 2];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:178: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 spec[MAX_CIN_PHR * 2 + 2];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:200: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 www[MAX_CIN_PHR * 2 + 2];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:213: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(out + outN, t, len);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:350: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 t[MAX_CIN_PHR+1];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:604: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 ch[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:652: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(&t, cur_inmd->tbl64[i].key, sizeof(u_int64_t));
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:661: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(&t, cur_inmd->tbl[i].key, sizeof(u_int));
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:673: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(e->keys, keys, sizeof(u_int64_t) * keysN);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:687: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 t[2];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:844: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 tt[MAX_CIN_PHR+2];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:872: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(str+strN, s, len);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:957: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 fname[256];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:1026: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 out[MAX_PHRASE_LEN * CH_SZ + 1];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:1048: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 tt[4096];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:1053: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 ts[(MAX_PHRASE_LEN+3) * CH_SZ + 1];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:147: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 ttt[128],uuu[128];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:167: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 append[64], append_user[128];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:168:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(strcpy(append, inmd[inmdno].filename), ".append");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:173: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 append_user_gtab[128];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:175:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(strcpy(append_user_gtab, append_user), ".gtab");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:179: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 exe[256];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:214:11:  [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 ((fp=fopen(ttt, "rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:270: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 keyname_lookup[256];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:305: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(inp->keyname_lookup, keyname_lookup, mkeys);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:314: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 tt[32];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:316: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(tt,th.selkey, sizeof(th.selkey));
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:403: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(inp->qkeys, &th.qkeys, sizeof(th.qkeys));
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:40: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 filename[128];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:45:11:  [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 ((fp=fopen(filename, "rb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:47:13:  [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 ((fp=fopen(filename, "rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:70: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 line[256];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:71: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 name_ar[32], *name=name_ar;
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:72: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 key[32];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:73: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 file[32];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:74: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 icon[128];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:112:8:  [2] (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). Risk is low because the source is a constant string.
       strcpy(file, "anthy-module.so");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:116:8:  [2] (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). Risk is low because the source is a constant string.
       strcpy(file, "intcode-module.so");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c:29: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 fname_idx[256], gtab_phrase_src[256], gtabfname[256];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c:43:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(fname, ".tsin-db");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c:44:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(strcpy(fname_idx, fname), ".idx");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-tsin-fname.c:45:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(strcpy(gtab_phrase_src, fname), ".src");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-use-count.c:32: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 fname[128];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-use-count.c:35:29:  [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 (!(fp_gtab_use_count=fopen(fname, "rb+"))) {
data/hime-0.9.10+git20170427+dfsg1/src/gtab-use-count.c:36:31:  [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 (!(fp_gtab_use_count=fopen(fname, "wb+"))) {
data/hime-0.9.10+git20170427+dfsg1/src/gtab-use-count.c:57: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-use-count.c:109: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/gtab-util.c:32: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(&kk, inmd->tbl64[i].key, sizeof(u_int64_t));
data/hime-0.9.10+git20170427+dfsg1/src/gtab-util.c:36: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(&tt, inmd->tbl[i].key, sizeof(u_int));
data/hime-0.9.10+git20170427+dfsg1/src/gtab-util.c:65: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(&t[tlen], keyname, len);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:46: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.
extern char str_key_codes[128];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:101:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(tt,"err");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:105: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(tt, inm->phrbuf + ofs, len);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:146: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 tstr[512];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:165: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 outbuf[512];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:166: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 *tbuf[128];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:193: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 t[CH_SZ * 10 + 1];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:215:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(out, " |");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:232: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 tt[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.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 tt[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:264: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 t[2];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:274: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 t[CH_SZ + 1];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:356: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:391: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(out+outN, p, len);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:555: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 tt[MAX_CIN_PHR];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:581: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 ts[32];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:614:5:  [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(tstr, "%d/%d", pg /cur_inmd->M_DUP_SEL + 1, pgN);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:621:5:  [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(tstr, "%d/%d", (ggg.pg_idx - ggg.S1)/page_len()+1, pgN);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:645: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(&out[outn],s, sz);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:652: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(&out[outn], chs[i].str, len);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:666: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 pgstr[32];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:677: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 tt[1024];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:679: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 uu[MAX_CIN_PHR];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:701: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 selback[MAX_CIN_PHR+16];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:705: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 vvv[16];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:706: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 www[1024];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:717:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(tt, "<span foreground=\"red\">");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:719:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(tt, "</span>");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:721: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 uu[MAX_CIN_PHR];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:750:12:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
           strcat(tt, "   ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:752:12:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
           strcat(tt, "   ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:759: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 tstr2[16];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:789: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 regstr[32];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:967: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 seltab_phrase[MAX_SELKEY];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.h:37: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 quick1[46][10][CH_SZ];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.h:38: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 quick2[46][46][10][CH_SZ];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.h:66: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 cname[32];         /* prompt */
data/hime-0.9.10+git20170427+dfsg1/src/gtab.h:67: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 selkey[12];        /* select keys */
data/hime-0.9.10+git20170427+dfsg1/src/gtab.h:77: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 endkey[99];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.h:79: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 selkey2[10];
data/hime-0.9.10+git20170427+dfsg1/src/gtab.h:82: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 dummy[128];  // for future use
data/hime-0.9.10+git20170427+dfsg1/src/gtk-im/gtkimcontexthime.c:422: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(context_xim->pe_att, att, attsz);
data/hime-0.9.10+git20170427+dfsg1/src/gtk-im/gtkimcontexthime.c:446: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(rstr, buffer, num_bytes);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:32: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 tt[1024];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:165: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 kno[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:170: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 fname[64];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:171: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 fname_cin[64];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:172: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 fname_tab[64];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:176: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 kname[128][CH_SZ];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:177: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 keymap[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:180: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 def1[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:206:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(fname_cin,".cin");
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:207:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(fname_tab,".gtab");
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:209:11:  [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 ((fr=fopen(fname_cin,"rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:261:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    th.M_DUP_SEL=atoi(arg);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:271:46:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      th.space_style = (GTAB_space_pressed_E)atoi(arg);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:369: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.
          char tp[4];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:481: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(&itar64[chno].key, &kk, 8);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:487: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(&itar[chno].key, &key32, 4);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:492: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 out[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:495: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(out, arg, len);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:543: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(&itout64[i],&itar64[i],sizeof(ITEM64));
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:546: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(&itout[i],&itar[i],sizeof(ITEM));
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:569:11:  [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 ((fw=fopen(fname_tab,"wb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:632: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 bzip2[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:633:10:  [2] (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). Risk is low because the source is a constant string.
  strcat(strcpy(bzip2, "bzip2 -f -k "), fname_tab);
data/hime-0.9.10+git20170427+dfsg1/src/hime-common.c:27: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 text_pho[6][CH_SZ];
data/hime-0.9.10+git20170427+dfsg1/src/hime-common.c:77: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 s[text_pho_N * CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-common.c:110: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 tt[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:44:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(tt,"/.config/hime");
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:49: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 omni_config_fname[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:76: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 omni_config_fname[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:90:7:  [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).
  f = fopen(omni_config_fname, "w");
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:112:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(strcat(fname,"/config/"),name);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:127: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 fname[MAX_HIME_STR];
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:128: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 out[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:143:11:  [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 ((fp=fopen(fname, "rb")) == NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:168: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 tt[32];
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:169: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 default_value_str[MAX_HIME_STR];
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:171: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(default_value_str, "%d", default_value);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:174:10:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  return atoi(tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:181: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 fname[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:188:11:  [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 ((fp=fopen(fname,"wb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:199: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 tt[16];
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:201: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(tt, "%d", val);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:217: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.
    static char sstr[32];
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:239: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-exec-script.c:34: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 scr[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-exec-script.c:45: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 hime_conf_dir[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:162: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 kno[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:167: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:171: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 kname[128][CH_SZ];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:172: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 keymap[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:175: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 def1[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:187:11:  [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 ((fr=fopen(argv[1], "rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:244: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(itar64[i].ch, it64.ch, sizeof(it64.ch));
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:245: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(&itar64[i].key, it64.key, sizeof(it64.key));
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:250: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(itar[i].ch, it.ch, sizeof(it.ch));
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:251: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(&itar[i].key, it.key, sizeof(it.key));
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:271:11:  [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 ((fr=fopen(argv[2], "rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:303: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(&itar64[chno].key, &kk, 8);
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:309: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(&itar[chno].key, &key32, 4);
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:314: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 out[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:317: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(out, arg, len);
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:363: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(&itout64[i],&itar64[i],sizeof(ITEM64));
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:366: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(&itout[i],&itar[i],sizeof(ITEM));
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:393:11:  [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 ((fw=fopen(argv[3],"wb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:104: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 fname[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:105: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 fname_cin[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:106: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 fname_tab[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:150:11:  [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 ((fr=fopen(fname_tab,"rb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:172:11:  [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 ((fw=fopen(fname_cin,"wb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:291: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 phr_str[MAX_CIN_PHR + 1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:297: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(phr_str, phrbuf + *(phridx + idx + 1), phr_len);
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:328: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 phr_str[MAX_CIN_PHR + 1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:334: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(phr_str, phrbuf + *(phridx + idx + 1), phr_len);
data/hime-0.9.10+git20170427+dfsg1/src/hime-icon.c:32: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 uu[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-juyin-learn.c:29: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 current_str[MAX_PHRASE_LEN*CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-juyin-learn.c:66: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 tt[CH_SZ * 5 * MAX_SAME_PHO + 1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-juyin-learn.c:88: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(outtext + outlen, tt, ttlen);
data/hime-0.9.10+git20170427+dfsg1/src/hime-message.c:23: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 text[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-message.c:24: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 icon[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-message.c:43:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      duration = atoi(argv[i+1]);
data/hime-0.9.10+git20170427+dfsg1/src/hime-message.c:49: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 message[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-module-cb.c:45: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 so_absolute_path[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c:70: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 s[64];
data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c:77:11:  [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 ((fp=fopen(fname,"rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c:117: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.
      u8cpy((char *)items[itemsN].ch, str);
data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c:130:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    items[itemsN].count = atoi(p);
data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c:150:21:  [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.
      utf8_putchar((char *)items[i].ch);
data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c:195:11:  [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 ((fp=fopen(fname_out,"wb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/hime-settings.c:234: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 phokbm[MAX_HIME_STR];
data/hime-0.9.10+git20170427+dfsg1/src/hime-settings.c:247: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 phokbm_name[32], selkey[32];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c:120: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 fname[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c:128:38:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
  save_hime_conf_int(HIME_FONT_SIZE, atoi(&(fname[len+1])));
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c:275: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
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c:278: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
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c:423: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-gtab.c:156: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 append_fname[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-gtab.c:159: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 prepare[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-gtab.c:163: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 exec[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-list.c:54: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 *pho_speaker[16];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-list.c:117: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 key[2];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-list.c:125: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 icon_path[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-list.c:196: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 ttt[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-list.c:201:11:  [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 ((fp=fopen(ttt, "w"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-list.c:258: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-list.c:373: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-list.c:520:9:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (atoi(tkey) == key) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-pho.c:81: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.
extern char *pho_speaker[16];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-pho.c:131: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-pho.c:134: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 phokbm_name[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:34: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:41: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:105: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 hime_dir[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:107: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 cmd[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:108: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 fname[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:110: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 tt[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:115:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(strcpy(tt, filename), ".append.gtab.tsin-db");
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:117:10:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
         strcat(strcpy(tt, filename), ".tsin-db");
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:138: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 cmd[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:150:6:  [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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:197: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:321: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup.c:323:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(tt, _("設定"));
data/hime-0.9.10+git20170427+dfsg1/src/hime-sim2trad.c:26: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 current_str[MAX_PHRASE_LEN*CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:32: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 txt[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:46: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 gtab_tsin_fname[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:52: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 current_str[MAX_PHRASE_LEN*CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:79: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(dest, in, ph_key_sz);
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:114: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(get_ph_key_ptr(out, outN), &key32, ph_key_sz);
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:116: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(get_ph_key_ptr(out, outN), &key, ph_key_sz);
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:152: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 chbuf[MAX_PHRASE_LEN * CH_SZ + 1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:193: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 t[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:231: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 line[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:242: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 chbuf[MAX_PHRASE_LEN * CH_SZ + 1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:252:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(line, " <span foreground=\"blue\">");
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:255: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:265:5:  [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(tt, " %d", usecount);
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:267:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(line, "</span>");
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:274: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 tt[32];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:275: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(tt, "%d", page_ofs+1);
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:312: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 chbuf[MAX_PHRASE_LEN * CH_SZ + 1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:445: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 t[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:591: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 hime_dir[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:46: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(&ka, a, 2);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:47: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(&kb, b, 2);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:62: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(&ka, a, 4);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:63: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(&kb, b, 4);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:77: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(&ka, a, 8);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:78: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(&kb, b, 8);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:94:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  lena=*(pa++); memcpy(&usecounta, pa, sizeof(usecount_t)); pa+= sizeof(usecount_t);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:97:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  lenb=*(pb++); memcpy(&usecountb, pb, sizeof(usecount_t)); pb+= sizeof(usecount_t);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:167:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  lena=*(pa++); memcpy(&usecounta, pa, sizeof(usecount_t)); pa+= sizeof(usecount_t);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:168:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  lenb=*(pb++); memcpy(&usecountb, pb, sizeof(usecount_t)); pb+= sizeof(usecount_t);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:201: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 s[1024];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:228:11:  [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 ((fp=fopen(argv[1], "rb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:246: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 keymap[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:247: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 kno[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:263: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 aa[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:337: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(&chbuf[chbufN], &s[i], len);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:398:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
      usecount = atoi((char *)&s[i]);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:419: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(&bf[ofs++],&clen,1);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:420: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(&bf[ofs],&usecount, sizeof(usecount_t)); ofs+=sizeof(usecount_t);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:422: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(&bf[ofs], cphbuf, clen * phsz);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:425: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(&bf[ofs], chbuf, chbufN);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:460: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(&sf[ofs], &bf[idx], clen);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:481: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(&kk, &sf[idx], phsz);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:485: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(&kk32, &sf[idx], phsz);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:490: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(&kk64, &sf[idx], phsz);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:517:11:  [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 ((fw=fopen(outfile,"wb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:534: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 outfileidx[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:535:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(strcpy(outfileidx, outfile), ".idx");
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:538:11:  [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 ((fw=fopen(outfileidx,"wb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsd2a32.c:71:14:  [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_out = fopen(fname_out, "w");
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsd2a32.c:80:11:  [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 ((fp=fopen(fname,"rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsd2a32.c:128: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsd2a32.c:132: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 ch[CH_SZ];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsd2a32.c:142: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(tt+ttlen, ch, len);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsd2a32.c:170: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 tkey[16];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:124:11:  [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 ((fr=fopen(infile, "rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:128:15:  [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 ((fp_out=fopen(outfile,"w"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:165: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 kname[128][CH_SZ];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:166: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 keymap[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:207: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 fname[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:211:11:  [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 ((fp=fopen(fname,"rb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:227: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 str[MAX_PHRASE_LEN * CH_SZ + 1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:240: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 ch[CH_SZ];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:259: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(str+strN, ch, len);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:288: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 vz[MAX_PHRASE_LEN];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:304: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 kstr[512];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:308: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.
         char tkey[16];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:312:12:  [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(&k, kk64[i].arr[(int)vz[i]].key, 8);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:315:12:  [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(&t, kk[i].arr[(int)vz[i]].key, 4);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c:37: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 gtab_tsin_fname[256];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c:43: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 current_str[MAX_PHRASE_LEN*CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c:66: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(dest, in, ph_key_sz);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c:101: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(get_ph_key_ptr(out, outN), &key32, ph_key_sz);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c:103: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(get_ph_key_ptr(out, outN), &key, ph_key_sz);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c:137: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 chbuf[MAX_PHRASE_LEN * CH_SZ + 1];
data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c:228: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(&txt[txtN], utf8, wn);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c:323: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 t[128];
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:307: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 temp_inmd_filenames[hime_clientsN][128];
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:309: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 temp_current_CS_inmd_filename[128] = "";
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:598:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    destroy_window = atoi(destroy);
data/hime-0.9.10+git20170427+dfsg1/src/hime.h:140:21:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define bchcpy(a,b) memcpy(a,b, CH_SZ)
data/hime-0.9.10+git20170427+dfsg1/src/im-addr.c:34: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 tdisp[64];
data/hime-0.9.10+git20170427+dfsg1/src/im-addr.c:38:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(tdisp, ":0");
data/hime-0.9.10+git20170427+dfsg1/src/im-addr.c:40:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(tdisp, ".0");
data/hime-0.9.10+git20170427+dfsg1/src/im-addr.c:42: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 my_dir[128];
data/hime-0.9.10+git20170427+dfsg1/src/im-addr.c:69: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/im-addr.c:88: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:153: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 sock_path[UNIX_PATH_MAX];
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:256: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(handle->passwd, &srv_ip_port.passwd, sizeof(srv_ip_port.passwd));
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:387: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(tmp, ptr, n);
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-protocol.h:62: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 dummy[32];   // for future expansion
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-protocol.h:93: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 sock_path[UNIX_PATH_MAX];
data/hime-0.9.10+git20170427+dfsg1/src/im-dispatch.c:68: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(tmp, p, n);
data/hime-0.9.10+git20170427+dfsg1/src/im-dispatch.c:194: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/im-dispatch.c:197:11:  [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(tt,"'%c'", req.keyeve.key);
data/hime-0.9.10+git20170427+dfsg1/src/im-dispatch.c:316: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 str[HIME_PREEDIT_MAX_STR];
data/hime-0.9.10+git20170427+dfsg1/src/im-dispatch.c:353: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 buf[512];
data/hime-0.9.10+git20170427+dfsg1/src/im-srv.c:129: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 hostname[64];
data/hime-0.9.10+git20170427+dfsg1/src/im-srv.c:143: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(ip, hent->h_addr_list[0], hent->h_length);
data/hime-0.9.10+git20170427+dfsg1/src/im-srv.c:164: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(ip, &padd->sin_addr.s_addr, INET_ADDRSTRLEN);
data/hime-0.9.10+git20170427+dfsg1/src/im-srv.c:190: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 sock_path[UNIX_PATH_MAX];
data/hime-0.9.10+git20170427+dfsg1/src/im-srv.c:205: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:24: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 tt[CH_SZ+1], *pp;
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:65: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 s[128];
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:69: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 fnamesrc[40];
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:70: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 fnameout[40];
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:85:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(fnamesrc,".kbmsrc");
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:86:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(fnameout,".kbm");
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:88:11:  [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 ((fp=fopen(fnamesrc,"r"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:138:11:  [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 ((fp=fopen(fnameout,"w"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/locale.c:70: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(t, s, utf8sz);
data/hime-0.9.10+git20170427+dfsg1/src/locale.c:80: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(t, s, len);
data/hime-0.9.10+git20170427+dfsg1/src/locale.c:90: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(t, s, utf8sz);
data/hime-0.9.10+git20170427+dfsg1/src/locale.c:176: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(t+tn, s, sz);
data/hime-0.9.10+git20170427+dfsg1/src/locale.c:194: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(t+tn, s, sz);
data/hime-0.9.10+git20170427+dfsg1/src/locale.c:206:2:  [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 tt[3];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:497: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 keys[MAX_KEYS];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:636: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 cur[256];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:648: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 tt[2];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:690: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 tt[256];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:725: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 out[512];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:748: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 out[512];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:773: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 buf[256];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:800: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 buf[256];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:892: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 buf[256];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:1181: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:1422:18:  [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 *s = (char *)gtk_label_get_text(GTK_LABEL(seg[i].label));
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:54:13:  [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).
    g_nFd = open (pszChewingConfig,
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:90: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 (pChewingConfig, &g_chewingConfig, sizeof (ChewingConfigData));
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:152: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 szBuf[32];
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:153: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 szKbType[16];
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:154: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 szKbSelKey[16];
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:171:11:  [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).
    nFd = open (pszHimeKBConfig,
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:83: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 szTmp[128];
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:251:13:  [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 (pszWord, pszTmp + nIdx * 3, 3);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:319:13:  [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 (pszWord, pHead, nWordSize);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:596:22:  [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.
        pszTmpStr = (char *)gtk_label_get_text (GTK_LABEL (g_pSeg[nIdx].label));
data/hime-0.9.10+git20170427+dfsg1/src/modules/intcode.c:32: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 inch[MAX_INTCODE];
data/hime-0.9.10+git20170427+dfsg1/src/modules/intcode.c:58: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(t, utf8, wn);
data/hime-0.9.10+git20170427+dfsg1/src/pho-lookup.c:26: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 tt[CH_SZ+1], *pp;
data/hime-0.9.10+git20170427+dfsg1/src/pho-play.c:41: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/pho-sym.c:1: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 *pho_chars[4]={
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:24: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 phofname[128]="";
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:51: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 sys_file[256], vv[256];
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:65:11:  [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 ((fr=fopen(phofname,"rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:112: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 tt[5];
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:123: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 tt[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:211: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 phchars[PHO_CHAR_LEN * 4 + 1];
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:285:7:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
      strcat(out, " | ");
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:132: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(mtyp_pho, poo.typ_pho, sizeof(poo.typ_pho));
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:318: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.
extern char phofname[128];
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:388:11:  [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 ((fw=fopen(phofname,"rb+"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:453: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 kbmfname[MAX_HIME_STR];
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:470: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 pho_kbm_name_kbm[128];
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:472:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(strcpy(pho_kbm_name_kbm, pho_kbm_name), ".kbm");
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:477:11:  [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 ((fr=fopen(kbmfname,"rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:535: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 out_buffer[512];
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:748: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:752: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(out_buffer+out_bufferN, tt, ttlen);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:757: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(&out_buffer[out_bufferN], pho_str, len);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:767: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(out_buffer+out_bufferN, tt, ttlen);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:774: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(out_buffer+out_bufferN, tt, ttlen);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:783: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(&out_buffer[out_bufferN], pho_str, len);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:824: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 xkeys[4];
data/hime-0.9.10+git20170427+dfsg1/src/pho.h:30: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 ch[CH_SZ];
data/hime-0.9.10+git20170427+dfsg1/src/pho.h:41: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 pinyin[7];
data/hime-0.9.10+git20170427+dfsg1/src/pho.h:52: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.
extern char phofname[128];
data/hime-0.9.10+git20170427+dfsg1/src/pho2pinyin.c:40: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 tt[32];
data/hime-0.9.10+git20170427+dfsg1/src/pho2pinyin.c:53:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(tt, "??");
data/hime-0.9.10+git20170427+dfsg1/src/pho2pinyin.c:55: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 tone[2];
data/hime-0.9.10+git20170427+dfsg1/src/pho2pinyin.c:73: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 kbm_str[32];
data/hime-0.9.10+git20170427+dfsg1/src/pho2pinyin.c:111: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 t[16];
data/hime-0.9.10+git20170427+dfsg1/src/pho2pinyin.c:113: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(t, s, mlen);
data/hime-0.9.10+git20170427+dfsg1/src/phrase-save-menu.c:76: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/phrase-save-menu.c:86: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 str[MAX_PHRASE_STR_LEN];
data/hime-0.9.10+git20170427+dfsg1/src/phrase-save-menu.c:95: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 str[MAX_PHRASE_STR_LEN];
data/hime-0.9.10+git20170427+dfsg1/src/phrase.c:87: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 kname[32];
data/hime-0.9.10+git20170427+dfsg1/src/phrase.c:88: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 ttt[512];
data/hime-0.9.10+git20170427+dfsg1/src/phrase.c:100: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 str[512];
data/hime-0.9.10+git20170427+dfsg1/src/phrase.c:207: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 tt[2];
data/hime-0.9.10+git20170427+dfsg1/src/pin-juyin.c:29:11:  [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 ((fp=fopen(fnamein, "r"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/pin-juyin.c:33: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/pin-juyin.c:40: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 pin[16], ju[64];
data/hime-0.9.10+git20170427+dfsg1/src/pin-juyin.c:54: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(pinju[pinjuN].pinyin, pin, sizeof(pinju[0].pinyin));
data/hime-0.9.10+git20170427+dfsg1/src/pin-juyin.c:64:11:  [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 ((fp=fopen(fnameout, "wb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/pinyin.c:30: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 pin[8];
data/hime-0.9.10+git20170427+dfsg1/src/pinyin.c:41: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(pin,  pin_juyin[i].pinyin, sizeof(pin_juyin[0].pinyin));
data/hime-0.9.10+git20170427+dfsg1/src/pinyin.c:140: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 pinfname[128];
data/hime-0.9.10+git20170427+dfsg1/src/pinyin.c:146:11:  [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 ((fr=fopen(pinfname,"rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/qt-im/qhimeinputcontext_x11.cpp:71: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 static_buffer[256];
data/hime-0.9.10+git20170427+dfsg1/src/qt4-im/hime-imcontext-qt.cpp:207: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 static_buffer[256];
data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-imcontext-qt.cpp:36:18:  [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).
        out_fp = fopen("/tmp/a.txt", "w");
data/hime-0.9.10+git20170427+dfsg1/src/statistic.c:42: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/statistic.c:44: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(tt, _("1,3,5分鐘\n%d,%d,%d/分"), get_ch_count(1), get_ch_count(3), get_ch_count(5));
data/hime-0.9.10+git20170427+dfsg1/src/t2s-lookup.c:55: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 fullname[128];
data/hime-0.9.10+git20170427+dfsg1/src/t2s-lookup.c:59:11:  [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 ((fp=fopen(fullname, "rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/table-update.c:38: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 fname_user[256];
data/hime-0.9.10+git20170427+dfsg1/src/table-update.c:39: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 fname_version[256];
data/hime-0.9.10+git20170427+dfsg1/src/table-update.c:40: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 fname_sys[256];
data/hime-0.9.10+git20170427+dfsg1/src/table-update.c:41: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 version_name[256];
data/hime-0.9.10+git20170427+dfsg1/src/table-update.c:43:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(strcpy(version_name, name), ".version");
data/hime-0.9.10+git20170427+dfsg1/src/table-update.c:49:11:  [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 ((fp=fopen(fname_version, "r"))) {
data/hime-0.9.10+git20170427+dfsg1/src/table-update.c:58: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 cmd[256];
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:83: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 iconfile[64], icondir[256], iconame[64];
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:86: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 iconpath[256];
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:117: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 s[64];
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:118:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(s, "en-");
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:124: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 bak[128], cur[128];
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:274: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 bak[512], cur[512];
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:278: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 kbm[512];
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:344: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 tt[32];
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:347:7:  [2] (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). Risk is low because the source is a constant string.
      strcpy(tt, "en-");
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:350:7:  [2] (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). Risk is low because the source is a constant string.
      strcpy(tt, "en-tsin.png");
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:357: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 fname[128];
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:364: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 fname_state[128];
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:417: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 tt[64];
data/hime-0.9.10+git20170427+dfsg1/src/tray-double.c:422:7:  [2] (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). Risk is low because the source is a constant string.
      strcpy(tt, "English");
data/hime-0.9.10+git20170427+dfsg1/src/tray.c:42: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 pixbuf_ch_fname[512];
data/hime-0.9.10+git20170427+dfsg1/src/tray.c:148: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 icon_fname[128];
data/hime-0.9.10+git20170427+dfsg1/src/tray.c:157: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 fname[512];
data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.c:94:25:  [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.
        ofs += utf8cpy((char *)pbest[0].str + ofs, gbuf[start + i].ch);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.c:97:25:  [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.
        ofs += utf8cpy((char *)pbest[0].str + ofs, tss.chpho[start + i].ch);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.c:139: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 mtch[MAX_PHRASE_LEN*CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.c:189: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.
      utf8cpyN((char *)pbest[0].str, mtch, plen);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.c:232: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(&pbest[1], pca->best, (tsin_parse_len - next) * sizeof(TSIN_PARSE));
data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.c:257: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(out, pbest, sizeof(TSIN_PARSE) * (tsin_parse_len - start));
data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.c:263:24:  [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.
        utf8_putcharn((char *)out[i].str, out[i].len);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.c:299: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 pinyin_set[MAX_PH_BF_EXT];
data/hime-0.9.10+git20170427+dfsg1/src/tsin-parse.h:21: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 str[MAX_PHRASE_LEN*CH_SZ+1];  // use malloc
data/hime-0.9.10+git20170427+dfsg1/src/tsin-scan.c:90: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 pinyin_set[MAX_PH_BF_EXT];
data/hime-0.9.10+git20170427+dfsg1/src/tsin-scan.c:179: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(sel[selN].phkey, mtk, match_len*ph_key_sz);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-scan.c:207: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(tss.pre_sel, sel, sizeof(PRE_SEL) * tss.pre_selN);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-scan.c:265: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 out[MAX_PHRASE_LEN * CH_SZ + 1];
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:47: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 tsidxfname[512];
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:54:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(tsidxfname, ".idx");
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:60:11:  [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 ((fr=fopen(tsidxfname,"rb+"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:79:12:  [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 ((fph=fopen(infname,"rb+"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:124: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 tsfname[512];
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:139: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:225: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(ka, a, ph_key_sz * mlen);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:226: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(kb, b, ph_key_sz * mlen);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:250: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(&tbuf[1], &usecount, sizeof(usecount));  // usecount
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:261: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(&tbuf[1 + sizeof(usecount_t)], phkeys, ph_key_sz * len);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:262: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(&tbuf[ph_key_sz*len + 1 + sizeof(usecount_t)], utf8str, tlen);
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:627: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 stch[MAX_PHRASE_LEN * CH_SZ * 2];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:223: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 ch[MAX_PHRASE_LEN * CH_SZ * 2];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:245: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(&tt[idx], tss.chpho[i].ch, len);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:417: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 tt[16];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:419: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(tt, s, len*CH_SZ);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:699: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 pinyin_set[MAX_PH_BF_EXT];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:722: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.
      utf8cpyN((char *)selstr[phrase_count++], (char *)stch, len);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:815:29:  [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.
      int tlen = utf8_tlen((char *)selstr[i], sellen[i]);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:816:51:  [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.
      set_sele_text(phrase_count + pho_count, i, (char *)selstr[i], tlen);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:844: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.
    *seltext = (char *)selstr[idx];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:1246: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 tt[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:1513: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(wsp[i].ch, tss.chpho[i+idx0].ch, CH_SZ);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:1938: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 tstr[CH_SZ + 1];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:1956: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(tss.chpho[tss.c_idx].ch, tstr, CH_SZ);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:2145: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 ch[MAX_PHRASE_LEN * CH_SZ * 2];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.h:25: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 cha[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.h:53: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 signature[32];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.h:56: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 keymap[128];
data/hime-0.9.10+git20170427+dfsg1/src/tsin.h:62: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 str[MAX_PHRASE_LEN*CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/unix-exec.c:6: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/util.c:28: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 out[4096];
data/hime-0.9.10+git20170427+dfsg1/src/util.c:50: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 fname[64];
data/hime-0.9.10+git20170427+dfsg1/src/util.c:52:16:  [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).
      out_fp = fopen(fname, "w");
data/hime-0.9.10+git20170427+dfsg1/src/util.c:115: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(q, p, n);
data/hime-0.9.10+git20170427+dfsg1/src/win-gtab.c:34: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 str_key_codes[128];
data/hime-0.9.10+git20170427+dfsg1/src/win-gtab.c:127: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 tt[64];
data/hime-0.9.10+git20170427+dfsg1/src/win-inmd-switch.c:49: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 tt[64];
data/hime-0.9.10+git20170427+dfsg1/src/win-inmd-switch.c:54: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 fname[512];
data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.c:347: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 tt[64];
data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.c:380: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 tt[64];
data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.c:408: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.
          char kstr[2];
data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.c:435: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 tt[64];
data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.c:463: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 tt[64];
data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.c:489: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(tt, keyname, 2);
data/hime-0.9.10+git20170427+dfsg1/src/win-message.c:123: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 head[32];
data/hime-0.9.10+git20170427+dfsg1/src/win-message.c:124: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 icon[128];
data/hime-0.9.10+git20170427+dfsg1/src/win-message.c:125: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 text[128];
data/hime-0.9.10+git20170427+dfsg1/src/win-pho-near.c:27: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 group[5];
data/hime-0.9.10+git20170427+dfsg1/src/win-pho-near.c:55: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 alone[2]={-1, -1};
data/hime-0.9.10+git20170427+dfsg1/src/win-pho-near.c:79: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 tt[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/win-pho-near.c:109: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 t_typ_pho[4], mtyp_pho[4];
data/hime-0.9.10+git20170427+dfsg1/src/win-pho-near.c:111: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(mtyp_pho, t_typ_pho, 4);
data/hime-0.9.10+git20170427+dfsg1/src/win-pho-near.c:154: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.
          char tt[CH_SZ+1];
data/hime-0.9.10+git20170427+dfsg1/src/win-save-phrase.c:88: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/win-save-phrase.c:121: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 tt[64];
data/hime-0.9.10+git20170427+dfsg1/src/win-save-phrase.c:123: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(tt, _("%d 秒後自動加入"), sess->countdown);
data/hime-0.9.10+git20170427+dfsg1/src/win-save-phrase.c:167: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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/win-save-phrase.h:3:2:  [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 ch[CH_SZ];
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:53: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 fname[256];
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:57:11:  [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 ((fp=fopen(fname, "rb"))==NULL) {
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:60:13:  [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 ((fp=fopen(fname, "rb"))==NULL)
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:120: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 tt[1024];
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.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 tt[512];
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:336:11:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
          strcat(outstr, " | ");
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:476: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 phos[512];
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:25: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 wselkey[16];
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:246: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 tt[128];
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:247: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 utf8[128];
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:249: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(utf8, text, len);
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:251: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 uu[32], selma[128];
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:253: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 cc[2];
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:256: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 ul[128];
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:261:5:  [2] (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). Risk is low because the source is a constant string.
    strcpy(ul, " foreground=\"yellow\" background=\"black\"");
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:269:7:  [2] (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). Risk is low because the source is a constant string.
      strcpy(ul, "foreground=\"white\" background=\""TSIN_CURSOR_COLOR_DEFAULT"\"");
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:274:7:  [2] (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). Risk is low because the source is a constant string.
      strcpy(ul, "foreground=\""HIME_SEL_KEY_COLOR_DEFAULT"\"");
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:283: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 vv[128];
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:428: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 (wselkey, s, strlen (s));
data/hime-0.9.10+git20170427+dfsg1/src/IC.c:235: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).
			int str_length = strlen((char *)pre_attr->value);
data/hime-0.9.10+git20170427+dfsg1/src/IC.c:279: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).
			int str_length = strlen((char *)sts_attr->value);
data/hime-0.9.10+git20170427+dfsg1/src/IC.c:391:32:  [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).
	    CARD16 base_len = (CARD16)strlen(rec->pre_attr.base_font);
data/hime-0.9.10+git20170427+dfsg1/src/IC.c:399:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(p, rec->pre_attr.base_font, base_len);
data/hime-0.9.10+git20170427+dfsg1/src/IC.c:435:32:  [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).
	    CARD16 base_len = (CARD16)strlen(rec->sts_attr.base_font);
data/hime-0.9.10+git20170427+dfsg1/src/IC.c:443:6:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	    strncpy(p, rec->sts_attr.base_font, base_len);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nAttr.c:119: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).
        p->length = strlen (attr->name);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nAttr.c:171: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).
        ext_list->length = strlen(ext_list->name);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nIc.c:108:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy ((char *) (*value_buf), base_name, base_length);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:168:32:  [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 *) malloc (strlen (p->supported_encodings[i]) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:190:55:  [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).
                address->im_locale = (char *) malloc (strlen (p->value) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:202: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).
                address->im_addr = (char *) malloc (strlen (p->value) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:214: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).
                address->im_name = (char *) malloc (strlen (p->value) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:340: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).
                p->value = (char *) malloc (strlen (address->im_locale) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:348: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).
                p->value = (char *) malloc (strlen (address->im_addr) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:358: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).
                    p->value = (char *) malloc (strlen (address->im_name) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:725: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).
                     strlen (buf));
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:955: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).
        str_length = strlen (call_data->commit_string);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nMethod.c:986: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).
        str_length = strlen (call_data->commit_string);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c:215:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (imopen->lang.name, name, str_length);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c:246: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).
        str_size = strlen (i18n_core->address.xim_attr[i].name);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c:255: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).
        str_size = strlen (i18n_core->address.xic_attr[i].name);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c:494:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (query_ext->extension[number].name, name, str_length);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c:533: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).
        str_size = strlen (ext_list[i].name);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c:1491:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (enc_nego->encoding[i].name, name, str_length);
data/hime-0.9.10+git20170427+dfsg1/src/IMdkit/lib/i18nPtHdr.c:1516:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (enc_nego->encodinginfo[i].name, name, str_length);
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:102:62:  [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).
  callback_str_buffer = (char *)realloc(callback_str_buffer, strlen(text)+1);
data/hime-0.9.10+git20170427+dfsg1/src/eve.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).
  int len = strlen(text);
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:252:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      int rn = read(pfdr[0], filter_text, sizeof(filter_text) - 1);
data/hime-0.9.10+git20170427+dfsg1/src/eve.c:1247:30:  [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 (callback_str_buffer && strlen(callback_str_buffer)) {
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:126: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).
  return strlen(bf);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:138: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).
    int len = strlen(t);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:187:9:  [1] (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). Risk is low because the source is a constant character.
        strcpy(addspc, " ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:211: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).
    len = strlen(t);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:848:11:  [1] (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). Risk is low because the source is a constant character.
          strcpy(tt, " ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:857: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).
      int len = strlen(s);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:1014: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).
  if (max_len < 0 || max_selN >= strlen(cur_inmd->selkey) * 2) {
data/hime-0.9.10+git20170427+dfsg1/src/gtab-buf.c:1061:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(tt, " ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-init.c:133:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(strcpy(out_file,TableDir),"/");
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:86: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).
    if (strlen(line) < 2)
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:99: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).
    if (strlen(name) < 1)
data/hime-0.9.10+git20170427+dfsg1/src/gtab-list.c:146: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).
    if (strlen(icon))
data/hime-0.9.10+git20170427+dfsg1/src/gtab-use-count.c:49: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).
  int bytes = strlen(s);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-use-count.c:98: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).
  int bytes = strlen(s);
data/hime-0.9.10+git20170427+dfsg1/src/gtab-util.c:62:54:  [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 = (*keyname & 0x80) ? utf8_sz(keyname) : strlen(keyname);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:121: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).
  return strlen(a) - strlen(b);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:121: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).
  return strlen(a) - strlen(b);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:212: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).
    if (strlen(out) < MAX_DISP_MATCH) {
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:368: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).
      len = strlen(p);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:390: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).
      int len = strlen(p);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:651: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).
      int len=strlen(chs[i].str);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:685:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(tt, "\n");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:687:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(tt, " ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:714:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(tt, " ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:718:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(strcat(tt, selback), " ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:733:46:  [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(seltab[i], skip[j], strlen(skip[j]))) {
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:734: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).
              p+=strlen(skip[j]);
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:739:11:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
          strcat(strcat(tt, uu), " ");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:744:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(tt, "\n");
data/hime-0.9.10+git20170427+dfsg1/src/gtab.c:764: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(tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:51: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).
  int len=strlen(s);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:70: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(tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:74: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).
    if (tt[0]=='#' || strlen(tt) < 3)
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:238:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(th.cname, arg, MAX_CNAME);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:246: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(arg) >= sizeof(th.selkey)) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:256: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).
      th.M_DUP_SEL = sizeof(th.selkey) + strlen(th.selkey2);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:258: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).
      th.M_DUP_SEL = strlen(th.selkey);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:360: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).
      if (strlen(cmd)==1) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:366: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).
      if (strlen(cmd)==2) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:404: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(cmd);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:456: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(cmd);
data/hime-0.9.10+git20170427+dfsg1/src/hime-cin2gtab.c:491: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).
    if ((len=strlen(arg)) <= CH_SZ && (arg[0] & 0x80)) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:58: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(omni_config_fname);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:88: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(omni_config_fname);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:104:10:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
  strcat(strcat(fname,"/"),name);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:149: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(out);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:222: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).
    p += strlen(find);
data/hime-0.9.10+git20170427+dfsg1/src/hime-conf.c:223:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(sstr, p, sizeof(sstr));
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:50: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).
  int len=strlen(s);
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:68: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(tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:72: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).
    if (tt[0]=='#' || strlen(tt) < 3)
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:288: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(cmd);
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab-merge.c:313: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).
    if ((len=strlen(arg)) <= CH_SZ && (arg[0] & 0x80)) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:124: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).
        if (strlen(optarg) < 256)
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:125:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(fname_tab, optarg, 256);
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:128: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).
        if (strlen(optarg) < 256)
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:129:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
          strncpy(fname_cin, optarg, 256);
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:141:8:  [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(fname_cin) || !strlen(fname_tab)) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:141:30:  [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(fname_cin) || !strlen(fname_tab)) {
data/hime-0.9.10+git20170427+dfsg1/src/hime-gtab2cin.c:195: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(th->endkey))
data/hime-0.9.10+git20170427+dfsg1/src/hime-juyin-learn.c:85: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).
    int ttlen = strlen(tt);
data/hime-0.9.10+git20170427+dfsg1/src/hime-message.c:32:3:  [1] (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). Risk is low because the source is a constant character.
  strcpy(text, "-");
data/hime-0.9.10+git20170427+dfsg1/src/hime-message.c:33:3:  [1] (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). Risk is low because the source is a constant character.
  strcpy(icon, "-");
data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c:84: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(s);
data/hime-0.9.10+git20170427+dfsg1/src/hime-phoa2d.c:115: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).
    int slen = strlen(str);
data/hime-0.9.10+git20170427+dfsg1/src/hime-settings.c:253:29:  [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 (pho_candicate_col_N > strlen(selkey))
data/hime-0.9.10+git20170427+dfsg1/src/hime-settings.c:254:26:  [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).
    pho_candicate_col_N =strlen(selkey);
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-appearance.c:122: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(fname)-1;
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-pho.c:126:29:  [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 (pho_candicate_col_N > strlen(selkeys[idx_selkeys].kstr))
data/hime-0.9.10+git20170427+dfsg1/src/hime-setup-pho.c:127:27:  [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).
    pho_candicate_col_N = strlen(selkeys[idx_selkeys].kstr);
data/hime-0.9.10+git20170427+dfsg1/src/hime-sim2trad.c:60: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).
    trad2sim((char *)text, strlen(text), &out);
data/hime-0.9.10+git20170427+dfsg1/src/hime-sim2trad.c:62: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).
    sim2trad((char *)text, strlen(text), &out);
data/hime-0.9.10+git20170427+dfsg1/src/hime-ts-edit.c:262:7:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
      strcat(line, " ");
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:260: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((char *)s);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsa2d32.c:318: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((char *)s);
data/hime-0.9.10+git20170427+dfsg1/src/hime-tsin2gtab-phrase.c:322:10:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
         strcat(kstr, " ");
data/hime-0.9.10+git20170427+dfsg1/src/hime-tslearn.c:226: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).
        int wn = strlen(utf8);
data/hime-0.9.10+git20170427+dfsg1/src/hime.c:317:5:  [1] (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). Risk is low because the source is a constant character.
    strcpy(temp_inmd_filenames[c], "");
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:167: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).
  servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family);
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:340:3:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
  usleep(100000);
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:363:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int r = read(fd, ptr, n);
data/hime-0.9.10+git20170427+dfsg1/src/im-client/hime-im-client.c:807: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(message)+1;
data/hime-0.9.10+git20170427+dfsg1/src/im-dispatch.c:35:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  return read(fd, buf, bufN);
data/hime-0.9.10+git20170427+dfsg1/src/im-dispatch.c:326: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).
      int len = strlen(str)+1; // including \0
data/hime-0.9.10+git20170427+dfsg1/src/im-srv.c:197: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).
  servlen = strlen(serv_addr.sun_path) + sizeof(serv_addr.sun_family);
data/hime-0.9.10+git20170427+dfsg1/src/kbmcv.c:102: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(s);
data/hime-0.9.10+git20170427+dfsg1/src/locale.c:42: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).
  utf8_big5_n(s, strlen(s), out);
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:575: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).
    if (!strncmp(keys, en, strlen(en))) {
data/hime-0.9.10+git20170427+dfsg1/src/modules/anthy.c:604: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).
    int len =strlen(en);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:50:32:  [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).
    pszChewingConfig = malloc (strlen (pszHome) + strlen (HIME_CHEWING_CONFIG) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:50:51:  [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).
    pszChewingConfig = malloc (strlen (pszHome) + strlen (HIME_CHEWING_CONFIG) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:51: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).
    memset (pszChewingConfig, 0x00, strlen (pszHome) + strlen (HIME_CHEWING_CONFIG) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:51:56:  [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).
    memset (pszChewingConfig, 0x00, strlen (pszHome) + strlen (HIME_CHEWING_CONFIG) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:69:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nReadSize = read (g_nFd, &g_chewingConfig, sizeof (g_chewingConfig));
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:167:31:  [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).
    pszHimeKBConfig = malloc (strlen (pszHome) + strlen (HIME_KB_CONFIG) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:167:50:  [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).
    pszHimeKBConfig = malloc (strlen (pszHome) + strlen (HIME_KB_CONFIG) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:168: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).
    memset (pszHimeKBConfig, 0x00, strlen (pszHome) + strlen (HIME_KB_CONFIG) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:168:55:  [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).
    memset (pszHimeKBConfig, 0x00, strlen (pszHome) + strlen (HIME_KB_CONFIG) + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:180:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    nRead = read (nFd, szBuf, 32);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:186: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).
    if (!strlen (szKbType) || !strlen (szKbSelKey))
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:186:32:  [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 (szKbType) || !strlen (szKbSelKey))
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:189:27:  [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).
    for (nIdx = 0; nIdx < strlen (szKbSelKey); nIdx++)
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:191:62:  [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).
    chewing_set_selKey (pChewingCtx, g_chewingConfig.selKey, strlen (szKbSelKey));
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:192:73:  [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).
    chewing_set_candPerPage (pChewingCtx, g_chewingConfig.candPerPage > strlen (szKbSelKey) ? strlen (szKbSelKey) : g_chewingConfig.candPerPage);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:192:95:  [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).
    chewing_set_candPerPage (pChewingCtx, g_chewingConfig.candPerPage > strlen (szKbSelKey) ? strlen (szKbSelKey) : g_chewingConfig.candPerPage);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing-conf.c:199: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 (szKbType)))
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:175: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).
    pszChewingHashDir = malloc (strlen (pszHome) + strlen ("/.chewing/") + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:175: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).
    pszChewingHashDir = malloc (strlen (pszHome) + strlen ("/.chewing/") + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:176: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).
    memset (pszChewingHashDir, 0x00, strlen (pszHome) + strlen ("/.chewing/") + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:176:57:  [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).
    memset (pszChewingHashDir, 0x00, strlen (pszHome) + strlen ("/.chewing/") + 1);
data/hime-0.9.10+git20170427+dfsg1/src/modules/chewing.c:307:57:  [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).
        for (nPos = 0, pHead = pszTmp, nIdx = 0; nPos < strlen (pszTmp); nPos += nWordSize, pHead += nWordSize)
data/hime-0.9.10+git20170427+dfsg1/src/modules/intcode.c:88: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).
  big5_utf8_n(s, strlen(s), out);
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:98: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).
    for(i=0; i <pho_phrase_area_sz; i+=strlen(pho_phrase_area+i)+1) {
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:224:5:  [1] (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). Risk is low because the source is a constant character.
    strcpy(phchars, "、");
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:225: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(phchars);
data/hime-0.9.10+git20170427+dfsg1/src/pho-util.c:279:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat(out, " ");
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:484: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).
  phkbm.selkeyN = strlen(pho_selkey);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:751: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).
      int ttlen = strlen(tt);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:756: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).
      int len = strlen(pho_str);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:766: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).
    int ttlen = strlen(tt);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:773: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).
      ttlen = strlen(tt);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:775: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).
      out_bufferN+=strlen(tt);
data/hime-0.9.10+git20170427+dfsg1/src/pho.c:782: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).
      int len = strlen(pho_str);
data/hime-0.9.10+git20170427+dfsg1/src/pin-juyin.c:37: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).
    if (strlen(tt) < 3)
data/hime-0.9.10+git20170427+dfsg1/src/pin-juyin.c:45: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).
    int len = strlen(ju);
data/hime-0.9.10+git20170427+dfsg1/src/pinyin.c:38: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).
  int inphN = strlen(poo.inph);
data/hime-0.9.10+git20170427+dfsg1/src/pinyin.c:43: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).
    int pinN = strlen(pin);
data/hime-0.9.10+git20170427+dfsg1/src/qt5-im/hime-imcontext-qt.cpp:97: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).
        if (strlen(str) > 0) {
data/hime-0.9.10+git20170427+dfsg1/src/statistic.c:74: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).
  int len= strlen(s);
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:93: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).
    icondir[strlen(icondir)-strlen(iconfile)] = 0;
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:93:29:  [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).
    icondir[strlen(icondir)-strlen(iconfile)] = 0;
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:96: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).
    iconame[strlen(iconame)-4] = 0;
data/hime-0.9.10+git20170427+dfsg1/src/tray-appindicator.c:136:3:  [1] (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). Risk is low because the source is a constant character.
  strcpy(st_str, "");
data/hime-0.9.10+git20170427+dfsg1/src/tray.c:72:35:  [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).
  pango_layout_set_text(pango, s, strlen(s));
data/hime-0.9.10+git20170427+dfsg1/src/tsin-scan.c:204:30:  [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).
    tss.pre_selN = Min(selN, strlen(cur_inmd->selkey));
data/hime-0.9.10+git20170427+dfsg1/src/tsin-scan.c:256: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).
  if (max_len < 0 || max_selN >= strlen(pho_selkey) * 2) {
data/hime-0.9.10+git20170427+dfsg1/src/tsin-util.c:614: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).
  int tlen = strlen(ch);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:160: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).
      ofs+=strlen(str);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:236: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).
    int len = strlen(tss.chpho[i].ch);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:1151: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).
  char *endp = pp+strlen(pp);
data/hime-0.9.10+git20170427+dfsg1/src/tsin.c:2174: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).
    tn+=strlen(tss.chpho[i].ch);
data/hime-0.9.10+git20170427+dfsg1/src/win-gtab.c:120:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(tt, " "); /* Full width space */
data/hime-0.9.10+git20170427+dfsg1/src/win-gtab.c:253: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).
  if (s && strlen(s)) {
data/hime-0.9.10+git20170427+dfsg1/src/win-kbm.c:337: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(str)==1 && !(str[0] & 0x80))
data/hime-0.9.10+git20170427+dfsg1/src/win-save-phrase.c:177:5:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(tt, " ");
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:58:12:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
    strcat(strcat(strcpy(fname, TableDir), "/"), filename);
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:127: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(tt);
data/hime-0.9.10+git20170427+dfsg1/src/win-sym.c:480: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).
        int phos_len = strlen(phos);
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:244: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(text);
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:428: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).
    memcpy (wselkey, s, strlen (s));
data/hime-0.9.10+git20170427+dfsg1/src/win1.c:429: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).
    wselkeyN = strlen (s);

ANALYSIS SUMMARY:

Hits = 1009
Lines analyzed = 46135 in approximately 1.15 seconds (39954 lines/second)
Physical Source Lines of Code (SLOC) = 34214
Hits@level = [0] 249 [1] 181 [2] 560 [3]  33 [4] 235 [5]   0
Hits@level+ = [0+] 1258 [1+] 1009 [2+] 828 [3+] 268 [4+] 235 [5+]   0
Hits/KSLOC@level+ = [0+] 36.7686 [1+] 29.4909 [2+] 24.2006 [3+] 7.83305 [4+] 6.86853 [5+]   0
Symlinks skipped = 5 (--allowlink overrides but see doc for security issue)
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.