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/gcin-2.9.0+dfsg1/mitem.h
Examining data/gcin-2.9.0+dfsg1/win-screen-status.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-send.cpp
Examining data/gcin-2.9.0+dfsg1/locale.cpp
Examining data/gcin-2.9.0+dfsg1/qt4-im/gcin-imcontext-qt.h
Examining data/gcin-2.9.0+dfsg1/qt4-im/gcin-common-qt.h
Examining data/gcin-2.9.0+dfsg1/qt4-im/im-gcin-qt.cpp
Examining data/gcin-2.9.0+dfsg1/qt4-im/gcin-qt.cpp
Examining data/gcin-2.9.0+dfsg1/qt4-im/gcin-qt.h
Examining data/gcin-2.9.0+dfsg1/qt4-im/gcin-imcontext-qt.cpp
Examining data/gcin-2.9.0+dfsg1/juyin-learn.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-setup-list.cpp
Examining data/gcin-2.9.0+dfsg1/tsin.h
Examining data/gcin-2.9.0+dfsg1/os-dep.h
Examining data/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp
Examining data/gcin-2.9.0+dfsg1/en-miss-cand.cpp
Examining data/gcin-2.9.0+dfsg1/lang.cpp
Examining data/gcin-2.9.0+dfsg1/ts-upload.cpp
Examining data/gcin-2.9.0+dfsg1/tslearn.cpp
Examining data/gcin-2.9.0+dfsg1/pho2pinyin.cpp
Examining data/gcin-2.9.0+dfsg1/eggtrayicon.h
Examining data/gcin-2.9.0+dfsg1/table-update.cpp
Examining data/gcin-2.9.0+dfsg1/modules/chewing.cpp
Examining data/gcin-2.9.0+dfsg1/modules/anthy.cpp
Examining data/gcin-2.9.0+dfsg1/modules/gcin-setup-chewing.cpp
Examining data/gcin-2.9.0+dfsg1/modules/win-int.cpp
Examining data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp
Examining data/gcin-2.9.0+dfsg1/modules/chewing.h
Examining data/gcin-2.9.0+dfsg1/modules/intcode.h
Examining data/gcin-2.9.0+dfsg1/modules/intcode.cpp
Examining data/gcin-2.9.0+dfsg1/tray-win32.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-kbm-toggle.cpp
Examining data/gcin-2.9.0+dfsg1/gtab.cpp
Examining data/gcin-2.9.0+dfsg1/ts-share.h
Examining data/gcin-2.9.0+dfsg1/gcin-message.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-version.h
Examining data/gcin-2.9.0+dfsg1/win-save-phrase.h
Examining data/gcin-2.9.0+dfsg1/gtab-buf.cpp
Examining data/gcin-2.9.0+dfsg1/pho-play.cpp
Examining data/gcin-2.9.0+dfsg1/phrase.cpp
Examining data/gcin-2.9.0+dfsg1/ts-download.cpp
Examining data/gcin-2.9.0+dfsg1/gtk_bug_fix.c
Examining data/gcin-2.9.0+dfsg1/gtab-init.cpp
Examining data/gcin-2.9.0+dfsg1/win-pho-near.cpp
Examining data/gcin-2.9.0+dfsg1/pho-kbm-name.cpp
Examining data/gcin-2.9.0+dfsg1/t2s-file.h
Examining data/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp
Examining data/gcin-2.9.0+dfsg1/im-client/gcin-protocol.h
Examining data/gcin-2.9.0+dfsg1/im-client/gcin-im-client-attr.h
Examining data/gcin-2.9.0+dfsg1/im-client/gcin-im-client.h
Examining data/gcin-2.9.0+dfsg1/gtab-merge.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-state.h
Examining data/gcin-2.9.0+dfsg1/sim2trad.cpp
Examining data/gcin-2.9.0+dfsg1/tsin-scan.cpp
Examining data/gcin-2.9.0+dfsg1/win0.cpp
Examining data/gcin-2.9.0+dfsg1/pho-util.cpp
Examining data/gcin-2.9.0+dfsg1/im-addr.cpp
Examining data/gcin-2.9.0+dfsg1/config.h
Examining data/gcin-2.9.0+dfsg1/gcin-icon.cpp
Examining data/gcin-2.9.0+dfsg1/pho.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp
Examining data/gcin-2.9.0+dfsg1/gtab-phrase-db.h
Examining data/gcin-2.9.0+dfsg1/eve.cpp
Examining data/gcin-2.9.0+dfsg1/gcin.cpp
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/FrameMgr.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/i18nUtil.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/Xi18nX.h
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/i18nMethod.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/i18nIc.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/i18nAttr.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/FrameMgr.h
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/IMValues.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/i18nPtHdr.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/i18nIMProto.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/IMMethod.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/XimFunc.h
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/IMConn.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/i18nX.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/i18nClbk.c
Examining data/gcin-2.9.0+dfsg1/IMdkit/lib/Xtrans.h
Examining data/gcin-2.9.0+dfsg1/IMdkit/include/IMdkit.h
Examining data/gcin-2.9.0+dfsg1/IMdkit/include/XimProto.h
Examining data/gcin-2.9.0+dfsg1/IMdkit/include/Xi18n.h
Examining data/gcin-2.9.0+dfsg1/gtab-buf.h
Examining data/gcin-2.9.0+dfsg1/gcin.h
Examining data/gcin-2.9.0+dfsg1/lang.h
Examining data/gcin-2.9.0+dfsg1/qt-im/qgcininputcontextplugin.h
Examining data/gcin-2.9.0+dfsg1/qt-im/qgcininputcontext.h
Examining data/gcin-2.9.0+dfsg1/qt-im/qgcininputcontext_x11.cpp
Examining data/gcin-2.9.0+dfsg1/qt-im/qgcininputcontextplugin_my.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-settings.cpp
Examining data/gcin-2.9.0+dfsg1/win1.cpp
Examining data/gcin-2.9.0+dfsg1/eggtrayicon.cpp
Examining data/gcin-2.9.0+dfsg1/win1.h
Examining data/gcin-2.9.0+dfsg1/gcin-common.cpp
Examining data/gcin-2.9.0+dfsg1/qt5-im/gcin-imcontext-qt5.cpp
Examining data/gcin-2.9.0+dfsg1/qt5-im/qgcinplatforminputcontext.h
Examining data/gcin-2.9.0+dfsg1/qt5-im/gcin-qt5.cpp
Examining data/gcin-2.9.0+dfsg1/qt5-im/gcin-qt5.h
Examining data/gcin-2.9.0+dfsg1/util.cpp
Examining data/gcin-2.9.0+dfsg1/kbmcv.cpp
Examining data/gcin-2.9.0+dfsg1/IC.h
Examining data/gcin-2.9.0+dfsg1/IC.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-exec-script.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-tools-appearance.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-module-cb.cpp
Examining data/gcin-2.9.0+dfsg1/gcb.cpp
Examining data/gcin-2.9.0+dfsg1/win-inmd-switch.cpp
Examining data/gcin-2.9.0+dfsg1/im-dispatch.cpp
Examining data/gcin-2.9.0+dfsg1/t2s-lookup.cpp
Examining data/gcin-2.9.0+dfsg1/gtabdb-gen.cpp
Examining data/gcin-2.9.0+dfsg1/gtab.h
Examining data/gcin-2.9.0+dfsg1/pho-status.h
Examining data/gcin-2.9.0+dfsg1/unix-exec.cpp
Examining data/gcin-2.9.0+dfsg1/tray-indicator.cpp
Examining data/gcin-2.9.0+dfsg1/ts-edit.cpp
Examining data/gcin-2.9.0+dfsg1/tsin-util.cpp
Examining data/gcin-2.9.0+dfsg1/gtab-dbg.cpp
Examining data/gcin-2.9.0+dfsg1/gtab-list.h
Examining data/gcin-2.9.0+dfsg1/pho-lookup.cpp
Examining data/gcin-2.9.0+dfsg1/pho.h
Examining data/gcin-2.9.0+dfsg1/tsin.cpp
Examining data/gcin-2.9.0+dfsg1/gcin2tab.cpp
Examining data/gcin-2.9.0+dfsg1/im-srv.cpp
Examining data/gcin-2.9.0+dfsg1/data/t2s-file.c
Examining data/gcin-2.9.0+dfsg1/data/extr1.c
Examining data/gcin-2.9.0+dfsg1/tsin-char.cpp
Examining data/gcin-2.9.0+dfsg1/html-browser.cpp
Examining data/gcin-2.9.0+dfsg1/cache.cpp
Examining data/gcin-2.9.0+dfsg1/phoa2d.cpp
Examining data/gcin-2.9.0+dfsg1/win-save-phrase.cpp
Examining data/gcin-2.9.0+dfsg1/win-pho.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-exit.cpp
Examining data/gcin-2.9.0+dfsg1/tsin-parse.h
Examining data/gcin-2.9.0+dfsg1/tsd2a32.cpp
Examining data/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp
Examining data/gcin-2.9.0+dfsg1/pho-sym.cpp
Examining data/gcin-2.9.0+dfsg1/win-sym.cpp
Examining data/gcin-2.9.0+dfsg1/pho-kbd-util.cpp
Examining data/gcin-2.9.0+dfsg1/pinyin.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-conf.h
Examining data/gcin-2.9.0+dfsg1/pho-dbg.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-crypt.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-gtk-compatible.h
Examining data/gcin-2.9.0+dfsg1/gtab-util.cpp
Examining data/gcin-2.9.0+dfsg1/gtk-im/config.h
Examining data/gcin-2.9.0+dfsg1/gtk-im/gtkintl.h
Examining data/gcin-2.9.0+dfsg1/gtk-im/gtkimcontextgcin.c
Examining data/gcin-2.9.0+dfsg1/gtk-im/imgcin.c
Examining data/gcin-2.9.0+dfsg1/gtk-im/gtkimcontextgcin.h
Examining data/gcin-2.9.0+dfsg1/pho-kbm-name.h
Examining data/gcin-2.9.0+dfsg1/gcin-conf.cpp
Examining data/gcin-2.9.0+dfsg1/gtabdb.h
Examining data/gcin-2.9.0+dfsg1/gcin-module.h
Examining data/gcin-2.9.0+dfsg1/tsin-parse.cpp
Examining data/gcin-2.9.0+dfsg1/gst.h
Examining data/gcin-2.9.0+dfsg1/tray.cpp
Examining data/gcin-2.9.0+dfsg1/gtab-db.h
Examining data/gcin-2.9.0+dfsg1/gcin-setup-pho.cpp
Examining data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp
Examining data/gcin-2.9.0+dfsg1/gtab-use-count.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-endian.h
Examining data/gcin-2.9.0+dfsg1/gcin-module.cpp
Examining data/gcin-2.9.0+dfsg1/phod2a.cpp
Examining data/gcin-2.9.0+dfsg1/im-srv.h
Examining data/gcin-2.9.0+dfsg1/gcin-module-cb.h
Examining data/gcin-2.9.0+dfsg1/win-sym.h
Examining data/gcin-2.9.0+dfsg1/gcin-gb-toggle.cpp
Examining data/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp
Examining data/gcin-2.9.0+dfsg1/win-kbm.cpp
Examining data/gcin-2.9.0+dfsg1/statistic.cpp
Examining data/gcin-2.9.0+dfsg1/phrase-save-menu.cpp
Examining data/gcin-2.9.0+dfsg1/util.h
Examining data/gcin-2.9.0+dfsg1/win-message.cpp
Examining data/gcin-2.9.0+dfsg1/win-gtab.cpp
Examining data/gcin-2.9.0+dfsg1/gcin-tools.cpp
Examining data/gcin-2.9.0+dfsg1/fullchar.cpp
Examining data/gcin-2.9.0+dfsg1/gtab-list.cpp
Examining data/gcin-2.9.0+dfsg1/tsa2d32.cpp
Examining data/gcin-2.9.0+dfsg1/about.cpp
Examining data/gcin-2.9.0+dfsg1/pin-juyin.cpp

FINAL RESULTS:

data/gcin-2.9.0+dfsg1/gtk-im/gtkimcontextgcin.c:173:12:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
	int len = readlink("/proc/self/exe", tt, sizeof(tt));
data/gcin-2.9.0+dfsg1/tray-win32.cpp:65:14:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    if ((len=readlink("/proc/self/exe", exe, sizeof(exe)))>0) {
data/gcin-2.9.0+dfsg1/IC.cpp: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/gcin-2.9.0+dfsg1/IC.cpp: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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/about.cpp:85:4:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
   sprintf(tmp, "<a href='"FURL_LINUX"'>%s</a>\n"
data/gcin-2.9.0+dfsg1/data/extr1.c:21: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/gcin-2.9.0+dfsg1/data/t2s-file.c:56: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/gcin-2.9.0+dfsg1/en-miss-cand.cpp:152: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(best[midx], ln);
data/gcin-2.9.0+dfsg1/eve.cpp:110: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/gcin-2.9.0+dfsg1/eve.cpp:186: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/gcin-2.9.0+dfsg1/eve.cpp:259: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/gcin-2.9.0+dfsg1/eve.cpp:1073: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/gcin-2.9.0+dfsg1/gcin-common.cpp:101: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(GCIN_BIN_DIR"/gcin-tools &");
data/gcin-2.9.0+dfsg1/gcin-common.cpp:119:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "%s %d", gcin_font_name, size);
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:45: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,(char *)getenv("HOME"));
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:55: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:56:10:  [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)==0;
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:58: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:68: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:70: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:115: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:158: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:160: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/gcin-2.9.0+dfsg1/gcin-exec-script.cpp:11:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(scr, GCIN_SCRIPT_DIR"/%s", name);
data/gcin-2.9.0+dfsg1/gcin-exec-script.cpp: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(scr);
data/gcin-2.9.0+dfsg1/gcin-exec-script.cpp:22:8:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
strcat(strcpy(gcin_table, getenv("GCIN_DIR")), "\\table");
data/gcin-2.9.0+dfsg1/gcin-exec-script.cpp:34:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(src, "%s\\%s", gcin_table, files[i]);
data/gcin-2.9.0+dfsg1/gcin-exec-script.cpp:35:2:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
	sprintf(dest, "%s\\%s", app_gcin, files[i]);
data/gcin-2.9.0+dfsg1/gcin-icon.cpp:9:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(fname, "%s\\icons\\%s",gcin_program_files_path, iconame);
data/gcin-2.9.0+dfsg1/gcin-icon.cpp:11:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(fname, GCIN_ICON_DIR"/%s", iconame);
data/gcin-2.9.0+dfsg1/gcin-icon.cpp:19:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(uu, "icons/%s", iconame);
data/gcin-2.9.0+dfsg1/gcin-icon.cpp:21:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(uu, "icons\\%s", iconame);
data/gcin-2.9.0+dfsg1/gcin-icon.cpp:26: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, R_OK)) {
data/gcin-2.9.0+dfsg1/gcin-message.cpp:25: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/gcin-2.9.0+dfsg1/gcin-message.cpp:28: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/gcin-2.9.0+dfsg1/gcin-message.cpp:39:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(message, "#gcin_message %s %s %d", icon, text, duration);
data/gcin-2.9.0+dfsg1/gcin-settings.cpp: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, gcin_pho_kbm);
data/gcin-2.9.0+dfsg1/gcin-settings.cpp:251: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/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp:142:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(append_fname, "~/.gcin/%s.append", fname);
data/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp:145:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(prepare, GCIN_SCRIPT_DIR"/gtab.append_prepare %s", append_fname);
data/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp:146: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/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp:150: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/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp:152: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/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp:154: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_fname, fname), ".append");
data/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:412: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/gcin-2.9.0+dfsg1/gcin-setup-pho.cpp:120:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "%s %s %d %d", kbd=kbm_sel[idx].kbm, selkeys[idx_selkeys].kstr, pho_candicate_col_N, selkeys[idx_selkeys].RL);
data/gcin-2.9.0+dfsg1/gcin-tools-appearance.cpp:100: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/gcin-2.9.0+dfsg1/gcin-tools-appearance.cpp:272:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "<span foreground=\"%s\" font=\"%d\">7</span><span font=\"%d\">測試</span>", key_color, gcin_font_size_tsin_presel, gcin_font_size_tsin_presel);
data/gcin-2.9.0+dfsg1/gcin-tools-appearance.cpp:274:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "<span foreground=\"%s\" font_desc=\"%d\">7</span><span font_desc=\"%d\">測試</span>", key_color, gcin_font_size_tsin_presel, gcin_font_size_tsin_presel);
data/gcin-2.9.0+dfsg1/gcin-tools-appearance.cpp:277:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "<span foreground=\"%s\" font=\"%d\">7</span><span font=\"%d\">測試</span>", key_color, gcin_font_size_tsin_presel, gcin_font_size_tsin_presel);
data/gcin-2.9.0+dfsg1/gcin-tools-appearance.cpp:574:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "%s %d", gcin_font_name, gcin_font_size);
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:55: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("tslearn &");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:75:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tt, "%s code:%d '%s'\n%s", _(_L("結果失敗")), res, strerror(res), cmd);
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:78: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, _(_L("結果成功")));
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:143: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), ".append.gtab.tsin-db");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:145: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(strcpy(tt, filename), ".tsin-db");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:151: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), GCIN_BIN_DIR"/tsd2a32 %s -o \"%s\"", fname, selected_filename);
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:153: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:173: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:178:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
     sprintf(tt, GCIN_SCRIPT_DIR"/tsin-gtab-import %s '%s'", inmd[default_input_method].filename,
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:180: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:275: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(GCIN_BIN_DIR"/ts-edit");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:284: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(GCIN_BIN_DIR"/ts-edit-en");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:295:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "cd ~/.gcin && "GCIN_BIN_DIR"/tsd2a32 %s > tmpfile && "GCIN_BIN_DIR"/tsd2a32 %s/%s >> tmpfile && "GCIN_BIN_DIR"/tsa2d32 tmpfile",
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:298: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:307: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(GCIN_BIN_DIR"/ts-contribute &");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:316: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(GCIN_BIN_DIR"/ts-contribute-en &");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:326:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "( cd ~/.gcin && %s phrase.table ) &", utf8_edit);
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:327: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:340:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "( cd ~/.gcin && %s symbol-table ) &", utf8_edit);
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:341: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:358: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, gcin_program_files_path);
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:394: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(GCIN_BIN_DIR"/sim2trad &");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:405: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(GCIN_BIN_DIR"/juyin-learn &");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:509: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:510: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, _(_L("設定")));
data/gcin-2.9.0+dfsg1/gcin.cpp:639: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(xim_arr[0].xim_server_name, xim_server_name);
data/gcin-2.9.0+dfsg1/gcin2tab.cpp:194: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:195: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:206: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(fname, argv[i++]);
data/gcin-2.9.0+dfsg1/gcin2tab.cpp:215: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:216: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:260: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:263: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:279: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:562: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:675: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:676: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:67: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:193: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:196: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:210:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(www, "<span background=\"%s\">%s</span>", tsin_pho_mode()?tsin_cursor_color:"green", spec);
data/gcin-2.9.0+dfsg1/gtab-buf.cpp:395: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:882: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:978: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1199:5:  [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", gcin_sel_key_color,
data/gcin-2.9.0+dfsg1/gtab-buf.cpp:1201: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1365:5:  [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", gcin_sel_key_color,
data/gcin-2.9.0+dfsg1/gtab-buf.cpp:1367: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1458:6:  [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(tss.pre_sel[i].str, best[i]);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:411: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/gcin-2.9.0+dfsg1/gtab-init.cpp:137: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/gcin-2.9.0+dfsg1/gtab-init.cpp: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(out_file, fname);
data/gcin-2.9.0+dfsg1/gtab-init.cpp:172: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, inp->filename), ".append");
data/gcin-2.9.0+dfsg1/gtab-init.cpp:179: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/gcin-2.9.0+dfsg1/gtab-init.cpp:186:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(exe, "\"%s\" \"%s\" \"%s\"", ttt, append_user, append_user_gtab);
data/gcin-2.9.0+dfsg1/gtab-init.cpp:191:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(exe, GCIN_BIN_DIR"/gtab-merge %s %s %s", ttt, append_user, append_user_gtab);
data/gcin-2.9.0+dfsg1/gtab-init.cpp:193: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/gcin-2.9.0+dfsg1/gtab-init.cpp:200: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/gcin-2.9.0+dfsg1/gtab-init.cpp:230: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/gcin-2.9.0+dfsg1/gtab-init.cpp:328: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/gcin-2.9.0+dfsg1/gtab-list.cpp:121: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 %s", name, key, file, icon, phrase_txt);
data/gcin-2.9.0+dfsg1/gtab-merge.cpp:337: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/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:19: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/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:20: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/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:31: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/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:32: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/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:42: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/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:42: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/gcin-2.9.0+dfsg1/gtab.cpp:207: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/gcin-2.9.0+dfsg1/gtab.cpp:246: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/gcin-2.9.0+dfsg1/gtab.cpp:256: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/gcin-2.9.0+dfsg1/gtab.cpp:360: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/gcin-2.9.0+dfsg1/gtab.cpp:637: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, tstr);
data/gcin-2.9.0+dfsg1/gtab.cpp:669: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/gcin-2.9.0+dfsg1/gtab.cpp:693:7:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
      sprintf(www, "<span foreground=\"%s\">%s</span>", gcin_sel_key_color, htmlspecialchars(uu, vvv));
data/gcin-2.9.0+dfsg1/gtab.cpp:694: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/gcin-2.9.0+dfsg1/gtab.cpp:701: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/gcin-2.9.0+dfsg1/gtab.cpp:708: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/gcin-2.9.0+dfsg1/gtab.cpp:710: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, selback), " ");
data/gcin-2.9.0+dfsg1/gtab.cpp:721:12:  [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, _(_L("   ")));
data/gcin-2.9.0+dfsg1/gtab.cpp:731:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(tstr2, "(%s)", pgstr);
data/gcin-2.9.0+dfsg1/gtab.cpp:732: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/gcin-2.9.0+dfsg1/gtab.cpp:2131: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(seltab_save[i], seltab[i]);
data/gcin-2.9.0+dfsg1/gtab.cpp:2142:6:  [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], seltab_save[i]);
data/gcin-2.9.0+dfsg1/gtk-im/gtkimcontextgcin.c:380: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/gcin-2.9.0+dfsg1/html-browser.cpp:19:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "%s %s", html_browse, fname);
data/gcin-2.9.0+dfsg1/html-browser.cpp:21:10:  [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.
  return system(tt);
data/gcin-2.9.0+dfsg1/im-addr.cpp:18: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/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:146:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(pipe_path, GCIN_PIPE_PATH, port);
data/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:272: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, "gcin", NULL);
data/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:316: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/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:323: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/gcin-2.9.0+dfsg1/im-dispatch.cpp:411: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/gcin-2.9.0+dfsg1/im-srv.cpp:186: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/gcin-2.9.0+dfsg1/im-srv.cpp:226: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/gcin-2.9.0+dfsg1/juyin-learn.cpp:65: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/gcin-2.9.0+dfsg1/kbmcv.cpp:68: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/gcin-2.9.0+dfsg1/kbmcv.cpp:74: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/gcin-2.9.0+dfsg1/locale.cpp:18: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:622:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(cur, "<span background=\"%s\">%s</span>", *gmf.mf_tsin_cursor_color, s);
data/gcin-2.9.0+dfsg1/modules/anthy.cpp:681: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:718: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:732: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:958:11:  [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("kasumi &") < 0)  {
data/gcin-2.9.0+dfsg1/modules/anthy.cpp:962:11:  [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("kasumi -a &") < 0) {
data/gcin-2.9.0+dfsg1/modules/anthy.cpp:1431: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:1447: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:1455: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:1461: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:35:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (pszChewingConfig, "%s%s", pszHome, GCIN_CHEWING_CONFIG);
data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:148:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (pszGcinKBConfig, "%s%s", pszHome, GCIN_KB_CONFIG);
data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:163: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/gcin-2.9.0+dfsg1/modules/chewing.cpp:51:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (szTmp, "<span background=\"%s\" foreground=\"%s\">%s</span>",
data/gcin-2.9.0+dfsg1/modules/chewing.cpp:134:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (pszChewingHashDir, "%s/.chewing", pszHome);
data/gcin-2.9.0+dfsg1/modules/chewing.cpp:314: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/gcin-2.9.0+dfsg1/modules/intcode.cpp:69: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/gcin-2.9.0+dfsg1/pho-play.cpp:16: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(ogg123, R_OK)) {
data/gcin-2.9.0+dfsg1/pho-play.cpp:21: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(GCIN_OGG_DIR, R_OK)) {
data/gcin-2.9.0+dfsg1/pho-play.cpp:36:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(tt, GCIN_OGG_DIR"/%s/%s", ph, phonetic_speak_sel);
data/gcin-2.9.0+dfsg1/pho-play.cpp:50:3:  [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(ogg123, "ogg123", tt, NULL);
data/gcin-2.9.0+dfsg1/pho-play.cpp:84:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "\"%s\\bin\\oggdec.exe\" -p \"%s\\ogg\\%s\\%s\"", gcin_program_files_path, gcin_program_files_path, ph, phonetic_speak_sel);
data/gcin-2.9.0+dfsg1/pho-play.cpp:91: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(pro, gcin_program_files_path);
data/gcin-2.9.0+dfsg1/pho-play.cpp:111:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(tt, "%s\\ogg\\%s\\%s", gcin_program_files_path, ph, phonetic_speak_sel);
data/gcin-2.9.0+dfsg1/pho-util.cpp:38: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/gcin-2.9.0+dfsg1/pho-util.cpp:46: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/gcin-2.9.0+dfsg1/pho-util.cpp:47: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/gcin-2.9.0+dfsg1/pho-util.cpp:233: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(phchars, _(_L("、")));
data/gcin-2.9.0+dfsg1/pho-util.cpp:286: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/gcin-2.9.0+dfsg1/pho.cpp:728: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/gcin-2.9.0+dfsg1/pho.cpp:1014: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/gcin-2.9.0+dfsg1/pho2pinyin.cpp: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, pin_juyin[i].pinyin);
data/gcin-2.9.0+dfsg1/pho2pinyin.cpp:49: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/gcin-2.9.0+dfsg1/phoa2d.cpp:110: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/gcin-2.9.0+dfsg1/phrase-save-menu.cpp:78:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(tt, _(_L("%s shift-Enter")), str);
data/gcin-2.9.0+dfsg1/phrase-save-menu.cpp:87:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf(tt, _(_L("%s Ctrl-%d")), str, len);
data/gcin-2.9.0+dfsg1/pin-juyin.cpp:35: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/gcin-2.9.0+dfsg1/qt5-im/gcin-imcontext-qt5.cpp:47: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/gcin-2.9.0+dfsg1/qt5-im/gcin-qt5.cpp:14: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.
QGcinPlatformInputContext *QGcinPlatformInputContextPlugin::create(const QString& system, const QStringList& paramList)
data/gcin-2.9.0+dfsg1/qt5-im/gcin-qt5.cpp:19: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(GCINID), Qt::CaseInsensitive) == 0)
data/gcin-2.9.0+dfsg1/qt5-im/gcin-qt5.cpp:19: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(GCINID), Qt::CaseInsensitive) == 0)
data/gcin-2.9.0+dfsg1/qt5-im/gcin-qt5.h:14: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.
    QGcinPlatformInputContext *create(const QString& system, const QStringList& paramList);
data/gcin-2.9.0+dfsg1/statistic.cpp:27:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(tt, _(_L("1,3,5分鐘\n%d,%d,%d/分")), get_ch_count(1), get_ch_count(3), get_ch_count(5));
data/gcin-2.9.0+dfsg1/table-update.cpp:15: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/gcin-2.9.0+dfsg1/table-update.cpp:34: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/gcin-2.9.0+dfsg1/tray-indicator.cpp:125:2:  [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(t, s);
data/gcin-2.9.0+dfsg1/tray-indicator.cpp:214: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/gcin-2.9.0+dfsg1/tray-indicator.cpp:219: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(tt, capslock_on?"en-gtab-A.png":"en-gtab.png");
data/gcin-2.9.0+dfsg1/tray-win32.cpp:38: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(GCIN_BIN_DIR"/sim2trad &");
data/gcin-2.9.0+dfsg1/tray-win32.cpp: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(GCIN_BIN_DIR"/trad2sim &");
data/gcin-2.9.0+dfsg1/tray-win32.cpp:69:7:  [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(exe, "gcin", NULL);  
data/gcin-2.9.0+dfsg1/tray-win32.cpp:340: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/gcin-2.9.0+dfsg1/tray-win32.cpp:356: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/gcin-2.9.0+dfsg1/tray-win32.cpp:404: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, iconame);
data/gcin-2.9.0+dfsg1/tray-win32.cpp:423: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/gcin-2.9.0+dfsg1/tray-win32.cpp:428: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(tt, capslock_on?"en-gtab-A.png":"en-gtab.png");
data/gcin-2.9.0+dfsg1/tray-win32.cpp:512: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/gcin-2.9.0+dfsg1/ts-download.cpp:380: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(req.tag, get_tag());
data/gcin-2.9.0+dfsg1/ts-download.cpp:406:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(url, "http://hyperrate.com/ts-share/d.php?ti=%d&tag=%s&key_sz=%d",last_dl_time, get_tag(), key_sz);
data/gcin-2.9.0+dfsg1/ts-edit.cpp:254: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/gcin-2.9.0+dfsg1/ts-edit.cpp:301: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/gcin-2.9.0+dfsg1/ts-edit.cpp:310: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/gcin-2.9.0+dfsg1/ts-edit.cpp: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(line, tt);
data/gcin-2.9.0+dfsg1/ts-edit.cpp:386: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/gcin-2.9.0+dfsg1/ts-edit.cpp:599: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(src, name),".src");
data/gcin-2.9.0+dfsg1/ts-edit.cpp:612:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(minus, " -minus %s", name);
data/gcin-2.9.0+dfsg1/ts-upload.cpp:149:4:  [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, TSIN_EN_WORD_KEY"\n");
data/gcin-2.9.0+dfsg1/ts-upload.cpp:203: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(req.tag, get_tag());
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:337: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:665: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:668: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:672: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_EN_WORD_KEY);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:680: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/gcin-2.9.0+dfsg1/tsd2a32.cpp:171: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(fp_out, TSIN_EN_WORD_KEY"\n");
data/gcin-2.9.0+dfsg1/tsd2a32.cpp:176: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/gcin-2.9.0+dfsg1/tsd2a32.cpp:326: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(fp_out, phsz==1?"\t%d\n":" %d\n", usecount);
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:703:6:  [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(tss.pre_sel[i].str, best[i]);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:71: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/gcin-2.9.0+dfsg1/tsin-util.cpp:218: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, th->tsin_fname);
data/gcin-2.9.0+dfsg1/tsin.cpp:162: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/gcin-2.9.0+dfsg1/tsin.cpp:2422: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/gcin-2.9.0+dfsg1/tsin.cpp:2720: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:242: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:389: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/gcin-2.9.0+dfsg1/tslearn.cpp:377: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/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:244: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/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:388: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/gcin-2.9.0+dfsg1/unix-exec.cpp: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/gcin-2.9.0+dfsg1/unix-exec.cpp: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/gcin-2.9.0+dfsg1/util.cpp:17:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(out, fmt, args);
data/gcin-2.9.0+dfsg1/util.cpp:51:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(out, fmt, args);
data/gcin-2.9.0+dfsg1/util.cpp:94: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/gcin-2.9.0+dfsg1/util.cpp:108: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/gcin-2.9.0+dfsg1/util.cpp:195:2:  [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(bufb5, buf);
data/gcin-2.9.0+dfsg1/util.cpp:247:2:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	vprintf(format, ap);
data/gcin-2.9.0+dfsg1/util.cpp:374:3:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
  vsprintf(out, fmt, args);
data/gcin-2.9.0+dfsg1/win-gtab.cpp:122: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, _(_L("﹍")));
data/gcin-2.9.0+dfsg1/win-gtab.cpp:124: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, _(_L(" ")));
data/gcin-2.9.0+dfsg1/win-gtab.cpp:252:2:  [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/gcin-2.9.0+dfsg1/win-gtab.cpp:302: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/gcin-2.9.0+dfsg1/win-inmd-switch.cpp:36: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/gcin-2.9.0+dfsg1/win-inmd-switch.cpp:38: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, inmd[i].cname);
data/gcin-2.9.0+dfsg1/win-kbm.cpp:369: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/gcin-2.9.0+dfsg1/win-kbm.cpp:369: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/gcin-2.9.0+dfsg1/win-message.cpp:138: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/gcin-2.9.0+dfsg1/win-pho-near.cpp:64: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/gcin-2.9.0+dfsg1/win-save-phrase.cpp:115:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(tt, _(_L("%d 秒後自動加入")), sess->countdown);
data/gcin-2.9.0+dfsg1/win-save-phrase.cpp:174: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, phokey_to_str(wsp[i].key));
data/gcin-2.9.0+dfsg1/win-sym.cpp:42: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/gcin-2.9.0+dfsg1/win-sym.cpp:42: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/gcin-2.9.0+dfsg1/win-sym.cpp:44: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/gcin-2.9.0+dfsg1/win-sym.cpp:44: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/gcin-2.9.0+dfsg1/win-sym.cpp:325: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/gcin-2.9.0+dfsg1/win1.cpp:283:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(ul, "foreground=\"%s\"",gcin_sel_key_color);
data/gcin-2.9.0+dfsg1/win1.cpp:285: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/gcin-2.9.0+dfsg1/eve.cpp:219: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("GCIN_OUTPUT_FILTER");
data/gcin-2.9.0+dfsg1/gcin-common.cpp:84: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("WIN_LOGON"))
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:23: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("GCIN_TABLE_DIR"))) {
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:45: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.
    strcpy(tt,(char *)getenv("HOME"));
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:76: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("GCIN_TABLE_DIR")) {
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:171: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/gcin-2.9.0+dfsg1/gcin-exec-script.cpp:22:27:  [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.
strcat(strcpy(gcin_table, getenv("GCIN_DIR")), "\\table");
data/gcin-2.9.0+dfsg1/gcin-exec-script.cpp:23: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 *app_gcin=getenv("APPDATA_GCIN");
data/gcin-2.9.0+dfsg1/gcin-settings.cpp: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 *gcin_pho_kbm = getenv("GCIN_PHO_KBM");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:172: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.
        getenv("HOME"), tsin32_f, selected_filename, tsin32_f);
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:654: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.
  char *ctype=getenv("LC_CTYPE");
data/gcin-2.9.0+dfsg1/gcin.cpp:548: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("GCIN_DESTROY_WINDOW");
data/gcin-2.9.0+dfsg1/gcin.cpp:584: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("GCIN_DAEMON")) {
data/gcin-2.9.0+dfsg1/gcin.cpp:609: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/gcin-2.9.0+dfsg1/gcin.cpp:610: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/gcin-2.9.0+dfsg1/gcin.cpp:611: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:186: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("NO_GTK_INIT"))
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:358: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("GCIN_NO_RELOAD")==NULL;
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:366: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("NO_GTK_INIT")==NULL)
data/gcin-2.9.0+dfsg1/im-addr.cpp:11: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/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:218: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("GCIN_CONNECT_MSG_ON") != NULL;
data/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:258: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 ((gcin_win=find_gcin_window(dpy))!=None || getenv("GCIN_IM_CLIENT_NO_AUTO_EXEC"))
data/gcin-2.9.0+dfsg1/im-srv.cpp:268: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/gcin-2.9.0+dfsg1/kbmcv.cpp:59: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("NO_GTK_INIT"))
data/gcin-2.9.0+dfsg1/lang.cpp:10: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/gcin-2.9.0+dfsg1/lang.cpp:11: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/gcin-2.9.0+dfsg1/lang.cpp:12: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:29: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:142: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/gcin-2.9.0+dfsg1/modules/chewing.cpp:128: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/gcin-2.9.0+dfsg1/pho-util.cpp:35: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("GCIN_TABLE_DIR") && phonetic_char_dynamic_sequence) {
data/gcin-2.9.0+dfsg1/phoa2d.cpp:57: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("NO_GTK_INIT"))
data/gcin-2.9.0+dfsg1/phoa2d.cpp:201: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("GCIN_NO_RELOAD")==NULL) {
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:282: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("GCIN_NO_RELOAD")==NULL;
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:290: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("NO_GTK_INIT")==NULL)
data/gcin-2.9.0+dfsg1/tsd2a32.cpp:53: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("NO_GTK_INIT")==NULL)
data/gcin-2.9.0+dfsg1/util.cpp:23: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("NO_GTK_INIT"))
data/gcin-2.9.0+dfsg1/util.cpp: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("GCIN_ERR_COREDUMP"))
data/gcin-2.9.0+dfsg1/util.cpp:59: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("GCIN_ERR_COREDUMP"))
data/gcin-2.9.0+dfsg1/util.cpp:69: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("GCIN_DBG_TMP") || 0) {
data/gcin-2.9.0+dfsg1/IC.h:91: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 xim_server_name[32];
data/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/IMdkit/lib/Xtrans.h:144: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.
    unsigned char	addr[XTRANS_MAX_ADDR_LEN];
data/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/about.cpp:84: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 tmp[1024];
data/gcin-2.9.0+dfsg1/about.cpp:141: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 gcin_png[128];
data/gcin-2.9.0+dfsg1/cache.cpp:28: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/gcin-2.9.0+dfsg1/data/extr1.c:11: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/gcin-2.9.0+dfsg1/data/extr1.c:15: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/gcin-2.9.0+dfsg1/data/extr1.c:16: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/gcin-2.9.0+dfsg1/data/extr1.c:18: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/gcin-2.9.0+dfsg1/data/t2s-file.c:32: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/gcin-2.9.0+dfsg1/data/t2s-file.c:41: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/gcin-2.9.0+dfsg1/data/t2s-file.c:47: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/gcin-2.9.0+dfsg1/data/t2s-file.c:52: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/gcin-2.9.0+dfsg1/data/t2s-file.c:57: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/gcin-2.9.0+dfsg1/data/t2s-file.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(&t2s[t2sn].b, b, sizeof(t2s[0].b));
data/gcin-2.9.0+dfsg1/data/t2s-file.c:59: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/gcin-2.9.0+dfsg1/data/t2s-file.c:60: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/gcin-2.9.0+dfsg1/eggtrayicon.cpp:457: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 buffer[256];
data/gcin-2.9.0+dfsg1/eggtrayicon.cpp:577: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 (&ev.data, message, 20);
data/gcin-2.9.0+dfsg1/eggtrayicon.cpp:583: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 (&ev.data, message, len);
data/gcin-2.9.0+dfsg1/en-miss-cand.cpp:48: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 ln[512];
data/gcin-2.9.0+dfsg1/en-miss-cand.cpp: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 tt[128];
data/gcin-2.9.0+dfsg1/en-miss-cand.cpp:90: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 ch[CH_SZ];
data/gcin-2.9.0+dfsg1/en-miss-cand.cpp:103: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(tt+ttlen, ch, len);
data/gcin-2.9.0+dfsg1/eve.cpp:220: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/gcin-2.9.0+dfsg1/eve.cpp:308: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/gcin-2.9.0+dfsg1/eve.cpp:311: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/gcin-2.9.0+dfsg1/eve.cpp:333: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/gcin-2.9.0+dfsg1/eve.cpp:1072: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/gcin-2.9.0+dfsg1/eve.cpp:1213: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/gcin-2.9.0+dfsg1/eve.cpp:1621: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/gcin-2.9.0+dfsg1/gcb.cpp:42:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
     memcpy(t + tlen, p, sz);
data/gcin-2.9.0+dfsg1/gcb.cpp:54: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 tstr[16];
data/gcin-2.9.0+dfsg1/gcb.cpp:86: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 titlestr[34];
data/gcin-2.9.0+dfsg1/gcb.cpp:398: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_path[40];
data/gcin-2.9.0+dfsg1/gcin-common.cpp:14: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/gcin-2.9.0+dfsg1/gcin-common.cpp: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 s[text_pho_N * CH_SZ+1];
data/gcin-2.9.0+dfsg1/gcin-common.cpp:89: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 pidstr[32];
data/gcin-2.9.0+dfsg1/gcin-common.cpp:90: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(pidstr, "GCIN_PID=%d",
data/gcin-2.9.0+dfsg1/gcin-common.cpp:118: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/gcin-2.9.0+dfsg1/gcin-conf.cpp: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 tt[MAX_PATH];
data/gcin-2.9.0+dfsg1/gcin-conf.cpp: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(tt,"\\gcin");
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:46: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,"/.gcin");
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:68: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:70: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/gcin-2.9.0+dfsg1/gcin-conf.cpp: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 fname[MAX_GCIN_STR];
data/gcin-2.9.0+dfsg1/gcin-conf.cpp: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 out[256];
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:96: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/gcin-2.9.0+dfsg1/gcin-conf.cpp: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[32];
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:122: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_GCIN_STR];
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:124: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:127: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/gcin-2.9.0+dfsg1/gcin-conf.cpp: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 fname[256];
data/gcin-2.9.0+dfsg1/gcin-conf.cpp: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(fname,"wb"))==NULL) {
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:149: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:151: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:169: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 sstr[32]="gcin";
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:192: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/gcin-2.9.0+dfsg1/gcin-exec-script.cpp:9: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/gcin-2.9.0+dfsg1/gcin-exec-script.cpp:21: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 gcin_table[128];
data/gcin-2.9.0+dfsg1/gcin-exec-script.cpp:22:1:  [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(gcin_table, getenv("GCIN_DIR")), "\\table");
data/gcin-2.9.0+dfsg1/gcin-exec-script.cpp:33: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 src[MAX_PATH], dest[MAX_PATH];
data/gcin-2.9.0+dfsg1/gcin-icon.cpp:17: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/gcin-2.9.0+dfsg1/gcin-icon.cpp: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 tt[128];
data/gcin-2.9.0+dfsg1/gcin-message.cpp:11: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/gcin-2.9.0+dfsg1/gcin-message.cpp:12: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/gcin-2.9.0+dfsg1/gcin-message.cpp:31: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/gcin-2.9.0+dfsg1/gcin-message.cpp: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 message[512];
data/gcin-2.9.0+dfsg1/gcin-settings.cpp: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 phokbm[MAX_GCIN_STR];
data/gcin-2.9.0+dfsg1/gcin-settings.cpp:249: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/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp: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 append_fname[128];
data/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp:144: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/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp:148: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/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp:154: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_fname, fname), ".append");
data/gcin-2.9.0+dfsg1/gcin-setup-gtab.cpp:155: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 user_fname[512];
data/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:58: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/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:118: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/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:126: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/gcin-2.9.0+dfsg1/gcin-setup-list.cpp: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 ttt[128];
data/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:202: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/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:261: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/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:411: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/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:577: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/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:965:3:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  wchar_t oggdir[256];
data/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:966:3:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  wchar_t gcin16[256];
data/gcin-2.9.0+dfsg1/gcin-setup-list.cpp:975: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[256];
data/gcin-2.9.0+dfsg1/gcin-setup-pho.cpp:60: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/gcin-2.9.0+dfsg1/gcin-setup-pho.cpp:119: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/gcin-2.9.0+dfsg1/gcin-setup-pho.cpp:126: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/gcin-2.9.0+dfsg1/gcin-tools-appearance.cpp:99: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/gcin-2.9.0+dfsg1/gcin-tools-appearance.cpp:269: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/gcin-2.9.0+dfsg1/gcin-tools-appearance.cpp:573: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:72: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:132: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.
       char gcin_dir[512];
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:134: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.
       char cmd[512];
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:135: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.
       char fname[256];
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:142: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 tt[256];
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:143: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), ".append.gtab.tsin-db");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:145: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(strcpy(tt, filename), ".tsin-db");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:157: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 para[256];
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:167: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:177: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:294: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:325: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:329: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:338: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/gcin-2.9.0+dfsg1/gcin-tools.cpp:343: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/gcin-2.9.0+dfsg1/gcin-tools.cpp: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[512];
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:359: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, "\\README.html");
data/gcin-2.9.0+dfsg1/gcin-tools.cpp:508: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/gcin-2.9.0+dfsg1/gcin.cpp:550: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/gcin-2.9.0+dfsg1/gcin.h:132: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:20: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:153: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/gcin-2.9.0+dfsg1/gcin2tab.cpp: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 fname[64];
data/gcin-2.9.0+dfsg1/gcin2tab.cpp: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_cin[64];
data/gcin-2.9.0+dfsg1/gcin2tab.cpp: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_tab[64];
data/gcin-2.9.0+dfsg1/gcin2tab.cpp: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 kname[128][CH_SZ];
data/gcin-2.9.0+dfsg1/gcin2tab.cpp: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 keymap[128];
data/gcin-2.9.0+dfsg1/gcin2tab.cpp:179: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:217: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:218: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:220: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:273: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:283: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:393: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:505: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:511: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:516: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:519: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:585: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:588: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:611: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:674: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:675: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/gcin-2.9.0+dfsg1/gst.h: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 typ_pho[4];
data/gcin-2.9.0+dfsg1/gst.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 inph[8];
data/gcin-2.9.0+dfsg1/gtab-buf.cpp:50: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:56: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:146: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:179: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:180: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:206: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:216: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:388: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:693: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:748: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:759: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:773: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:796: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:973: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1001: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1095: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1169: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1191: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1196: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1357: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1362: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1445: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 en[128];
data/gcin-2.9.0+dfsg1/gtab-buf.cpp:1450: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 best[10][MAX_PHRASE_LEN];
data/gcin-2.9.0+dfsg1/gtab-buf.cpp:1481: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp: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(&ka, a, 4);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:37: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:51: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:52: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:69: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);memcpy(&text_idxa, pa, sizeof(text_idxa)); pa+=sizeof(text_idxa);  
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:72: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);memcpy(&text_idxb, pb, sizeof(text_idxb)); pb+=sizeof(text_idxb);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:144: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); memcpy(&text_idxa, pa, sizeof(text_idxa)); pa+=sizeof(text_idxa);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:145: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); memcpy(&text_idxb, pb, sizeof(text_idxb)); pb+=sizeof(text_idxb);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:216: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++], &oclen,1);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:217: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:221:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bf[ofs], &text_idx, sizeof(text_idx)); 
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:223:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bf[ofs], cphbuf, clen * phsz);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:226: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:285: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(&gn.key, p + phsz * prelen, phsz);						
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:345: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp: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 phbuf8[128];
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:377: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:389: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:390: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:409: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:487:8:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  fw = fopen(outfile, "wb");
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:541: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(&chbuf[chbufN], &s[i], len);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:590: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:637: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/gcin-2.9.0+dfsg1/gtab-db.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 dummy[128];
data/gcin-2.9.0+dfsg1/gtab-init.cpp:151: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/gcin-2.9.0+dfsg1/gtab-init.cpp: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 append[64], append_user[128];
data/gcin-2.9.0+dfsg1/gtab-init.cpp:172: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, inp->filename), ".append");
data/gcin-2.9.0+dfsg1/gtab-init.cpp: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 append_user_gtab[128];
data/gcin-2.9.0+dfsg1/gtab-init.cpp:179: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/gcin-2.9.0+dfsg1/gtab-init.cpp:183: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/gcin-2.9.0+dfsg1/gtab-init.cpp:225: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/gcin-2.9.0+dfsg1/gtab-init.cpp:281: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/gcin-2.9.0+dfsg1/gtab-init.cpp: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(inp->keyname_lookup, keyname_lookup, mkeys);
data/gcin-2.9.0+dfsg1/gtab-init.cpp:325: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/gcin-2.9.0+dfsg1/gtab-init.cpp:327: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/gcin-2.9.0+dfsg1/gtab-init.cpp:421: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/gcin-2.9.0+dfsg1/gtab-list.cpp: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 ttt[128];
data/gcin-2.9.0+dfsg1/gtab-list.cpp:72: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/gcin-2.9.0+dfsg1/gtab-list.cpp:74: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(ttt, "rb"))==NULL)
data/gcin-2.9.0+dfsg1/gtab-list.cpp:93: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/gcin-2.9.0+dfsg1/gtab-list.cpp:94: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/gcin-2.9.0+dfsg1/gtab-list.cpp:95: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/gcin-2.9.0+dfsg1/gtab-list.cpp:96: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/gcin-2.9.0+dfsg1/gtab-list.cpp:97: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/gcin-2.9.0+dfsg1/gtab-list.cpp:98: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 phrase_txt[128];
data/gcin-2.9.0+dfsg1/gtab-list.cpp:137: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/gcin-2.9.0+dfsg1/gtab-list.cpp:139: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.dll");
data/gcin-2.9.0+dfsg1/gtab-list.cpp:145: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/gcin-2.9.0+dfsg1/gtab-list.cpp:147: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.dll");
data/gcin-2.9.0+dfsg1/gtab-merge.cpp:150: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:160: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:164: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/gcin-2.9.0+dfsg1/gtab-merge.cpp: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 keymap[128];
data/gcin-2.9.0+dfsg1/gtab-merge.cpp: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 def1[256];
data/gcin-2.9.0+dfsg1/gtab-merge.cpp:182: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:239: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:240: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/gcin-2.9.0+dfsg1/gtab-merge.cpp: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(itar[i].ch, it.ch, sizeof(it.ch));
data/gcin-2.9.0+dfsg1/gtab-merge.cpp:246: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:266: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:298: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:304: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:309: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:312: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:358: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:361: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/gcin-2.9.0+dfsg1/gtab-merge.cpp: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(argv[3],"wb"))==NULL) {
data/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:16: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/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:30: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/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:31: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/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:32: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/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:49: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 phrase_txt[512];
data/gcin-2.9.0+dfsg1/gtab-tsin-fname.cpp:59: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 phrase_txt[512];
data/gcin-2.9.0+dfsg1/gtab-use-count.cpp:15: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/gcin-2.9.0+dfsg1/gtab-use-count.cpp:18: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/gcin-2.9.0+dfsg1/gtab-use-count.cpp:19: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/gcin-2.9.0+dfsg1/gtab-use-count.cpp:45: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/gcin-2.9.0+dfsg1/gtab-use-count.cpp:97: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/gcin-2.9.0+dfsg1/gtab-util.cpp:15: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/gcin-2.9.0+dfsg1/gtab-util.cpp:19: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/gcin-2.9.0+dfsg1/gtab-util.cpp:48: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/gcin-2.9.0+dfsg1/gtab.cpp:92: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/gcin-2.9.0+dfsg1/gtab.cpp:96: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/gcin-2.9.0+dfsg1/gtab.cpp:140: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/gcin-2.9.0+dfsg1/gtab.cpp: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 outbuf[512];
data/gcin-2.9.0+dfsg1/gtab.cpp:160: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/gcin-2.9.0+dfsg1/gtab.cpp:187: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/gcin-2.9.0+dfsg1/gtab.cpp:209: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/gcin-2.9.0+dfsg1/gtab.cpp:226: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/gcin-2.9.0+dfsg1/gtab.cpp: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 tt[CH_SZ+1];
data/gcin-2.9.0+dfsg1/gtab.cpp:242: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/gcin-2.9.0+dfsg1/gtab.cpp:252: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/gcin-2.9.0+dfsg1/gtab.cpp: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[128];
data/gcin-2.9.0+dfsg1/gtab.cpp:383: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/gcin-2.9.0+dfsg1/gtab.cpp:563: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/gcin-2.9.0+dfsg1/gtab.cpp:590: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/gcin-2.9.0+dfsg1/gtab.cpp:623: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/gcin-2.9.0+dfsg1/gtab.cpp:630: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/gcin-2.9.0+dfsg1/gtab.cpp:650: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/gcin-2.9.0+dfsg1/gtab.cpp:661: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/gcin-2.9.0+dfsg1/gtab.cpp:663: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/gcin-2.9.0+dfsg1/gtab.cpp:687: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/gcin-2.9.0+dfsg1/gtab.cpp:691: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/gcin-2.9.0+dfsg1/gtab.cpp:692: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/gcin-2.9.0+dfsg1/gtab.cpp:700: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/gcin-2.9.0+dfsg1/gtab.cpp:702: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/gcin-2.9.0+dfsg1/gtab.cpp:704: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/gcin-2.9.0+dfsg1/gtab.cpp:723: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/gcin-2.9.0+dfsg1/gtab.cpp:730: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/gcin-2.9.0+dfsg1/gtab.cpp:764: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/gcin-2.9.0+dfsg1/gtab.cpp:1024: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/gcin-2.9.0+dfsg1/gtab.cpp:1966: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 jstr[512];
data/gcin-2.9.0+dfsg1/gtab.h: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 quick1[MAX_GTAB_QUICK_KEYS][10][CH_SZ];
data/gcin-2.9.0+dfsg1/gtab.h: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 quick2[MAX_GTAB_QUICK_KEYS][MAX_GTAB_QUICK_KEYS][10][CH_SZ];
data/gcin-2.9.0+dfsg1/gtab.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 cname[32];         /* prompt */
data/gcin-2.9.0+dfsg1/gtab.h:54: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/gcin-2.9.0+dfsg1/gtab.h:64: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/gcin-2.9.0+dfsg1/gtab.h:66: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/gcin-2.9.0+dfsg1/gtab.h:69: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/gcin-2.9.0+dfsg1/gtabdb.h:36: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 dummy[128];
data/gcin-2.9.0+dfsg1/gtk-im/gtkimcontextgcin.c:172: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[128];
data/gcin-2.9.0+dfsg1/gtk-im/gtkimcontextgcin.c:451: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/gcin-2.9.0+dfsg1/gtk-im/gtkimcontextgcin.c:475: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/gcin-2.9.0+dfsg1/html-browser.cpp:18: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/gcin-2.9.0+dfsg1/im-addr.cpp:17: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/gcin-2.9.0+dfsg1/im-addr.cpp:21: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/gcin-2.9.0+dfsg1/im-addr.cpp:23: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/gcin-2.9.0+dfsg1/im-addr.cpp: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 my_dir[128];
data/gcin-2.9.0+dfsg1/im-addr.cpp:52: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/gcin-2.9.0+dfsg1/im-addr.cpp:71: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/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:145:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pipe_path[64];
data/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:209: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 current_exec[80];
data/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:313: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[128];
data/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp: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(handle->passwd, &srv_ip_port.passwd, sizeof(srv_ip_port.passwd));
data/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:682: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/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:701: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/gcin-2.9.0+dfsg1/im-client/gcin-protocol.h:46: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/gcin-2.9.0+dfsg1/im-client/gcin-protocol.h:81: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[80];
data/gcin-2.9.0+dfsg1/im-dispatch.cpp:204: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/gcin-2.9.0+dfsg1/im-dispatch.cpp:406: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/gcin-2.9.0+dfsg1/im-dispatch.cpp:409: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/gcin-2.9.0+dfsg1/im-dispatch.cpp:576: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[GCIN_PREEDIT_MAX_STR];
data/gcin-2.9.0+dfsg1/im-dispatch.cpp:629: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/gcin-2.9.0+dfsg1/im-srv.cpp: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 hostname[64];
data/gcin-2.9.0+dfsg1/im-srv.cpp:137: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/gcin-2.9.0+dfsg1/im-srv.cpp:158: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/gcin-2.9.0+dfsg1/im-srv.cpp:184: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[128];
data/gcin-2.9.0+dfsg1/im-srv.cpp:199: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/gcin-2.9.0+dfsg1/juyin-learn.cpp:12: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/gcin-2.9.0+dfsg1/juyin-learn.cpp: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[CH_SZ * 5 * MAX_SAME_PHO + 1];
data/gcin-2.9.0+dfsg1/juyin-learn.cpp:71: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/gcin-2.9.0+dfsg1/kbmcv.cpp:11: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/gcin-2.9.0+dfsg1/kbmcv.cpp:52: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/gcin-2.9.0+dfsg1/kbmcv.cpp: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 fnamesrc[40];
data/gcin-2.9.0+dfsg1/kbmcv.cpp:57: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/gcin-2.9.0+dfsg1/kbmcv.cpp:75: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/gcin-2.9.0+dfsg1/kbmcv.cpp:76: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/gcin-2.9.0+dfsg1/kbmcv.cpp:78: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/gcin-2.9.0+dfsg1/kbmcv.cpp:127: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/gcin-2.9.0+dfsg1/locale.cpp:53: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/gcin-2.9.0+dfsg1/locale.cpp:63: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/gcin-2.9.0+dfsg1/locale.cpp:73: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/gcin-2.9.0+dfsg1/locale.cpp: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 tt[5];
data/gcin-2.9.0+dfsg1/locale.cpp:113: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], vv[CH_SZ+1];
data/gcin-2.9.0+dfsg1/locale.cpp: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/gcin-2.9.0+dfsg1/locale.cpp: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/gcin-2.9.0+dfsg1/locale.cpp:205:10:  [2] (buffer) MultiByteToWideChar:
  Requires maximum length in CHARACTERS, not bytes (CWE-120).
  return MultiByteToWideChar( CP_UTF8, 0, text, -1, wtext, wlen/sizeof(wchar_t)) -1;
data/gcin-2.9.0+dfsg1/locale.cpp:215:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t tt[512];
data/gcin-2.9.0+dfsg1/locale.cpp:223: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[512];
data/gcin-2.9.0+dfsg1/locale.cpp:235: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[3];
data/gcin-2.9.0+dfsg1/modules/anthy.cpp:481: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:620: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/gcin-2.9.0+dfsg1/modules/anthy.cpp: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 tt[2];
data/gcin-2.9.0+dfsg1/modules/anthy.cpp:680: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:715: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:738: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:763: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:790: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:884: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:1174: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:1420: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:37: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:76: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:131: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:132: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:133: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:150: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 (pszGcinKBConfig, 
data/gcin-2.9.0+dfsg1/modules/chewing.cpp:44: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/gcin-2.9.0+dfsg1/modules/chewing.cpp:297: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/gcin-2.9.0+dfsg1/modules/chewing.cpp:330: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 szWord[4];
data/gcin-2.9.0+dfsg1/modules/chewing.cpp:418: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 (szWord, pszTmp + nBufIdx * 3, 3);
data/gcin-2.9.0+dfsg1/modules/chewing.cpp:453: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 (szWord, pszTmp + (nIdx * 3), 3);
data/gcin-2.9.0+dfsg1/modules/intcode.cpp:20: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/gcin-2.9.0+dfsg1/modules/intcode.cpp: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(t, utf8, wn);
data/gcin-2.9.0+dfsg1/pho-lookup.cpp:9: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/gcin-2.9.0+dfsg1/pho-play.cpp:35: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[128];
data/gcin-2.9.0+dfsg1/pho-play.cpp: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/gcin-2.9.0+dfsg1/pho-play.cpp:85:3:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  wchar_t tt16[MAX_PATH*2];
data/gcin-2.9.0+dfsg1/pho-play.cpp:89: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 pro[64];
data/gcin-2.9.0+dfsg1/pho-play.cpp:90:3:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  wchar_t pro16[64];
data/gcin-2.9.0+dfsg1/pho-play.cpp:92: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(pro, "\\oggdec.exe");
data/gcin-2.9.0+dfsg1/pho-play.cpp: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[512];
data/gcin-2.9.0+dfsg1/pho-play.cpp:112:3:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  wchar_t tt16[MAX_PATH];
data/gcin-2.9.0+dfsg1/pho-sym.cpp:3: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/gcin-2.9.0+dfsg1/pho-util.cpp:10: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/gcin-2.9.0+dfsg1/pho-util.cpp:42: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/gcin-2.9.0+dfsg1/pho-util.cpp:61: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/gcin-2.9.0+dfsg1/pho-util.cpp: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/gcin-2.9.0+dfsg1/pho-util.cpp: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/gcin-2.9.0+dfsg1/pho-util.cpp:220: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/gcin-2.9.0+dfsg1/pho-util.cpp:294: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/gcin-2.9.0+dfsg1/pho.cpp:178: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/gcin-2.9.0+dfsg1/pho.cpp:432: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, ttyp, sizeof(ttyp));
data/gcin-2.9.0+dfsg1/pho.cpp:514: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/gcin-2.9.0+dfsg1/pho.cpp:567: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/gcin-2.9.0+dfsg1/pho.cpp:577: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, pi, size);
data/gcin-2.9.0+dfsg1/pho.cpp:578: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(pi, pj, size);
data/gcin-2.9.0+dfsg1/pho.cpp:579: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(pj, t, size);
data/gcin-2.9.0+dfsg1/pho.cpp:629: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).
  if (!fw && (fw=fopen(phofname,"rb+"))==NULL)
data/gcin-2.9.0+dfsg1/pho.cpp:709: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_GCIN_STR];
data/gcin-2.9.0+dfsg1/pho.cpp:726: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/gcin-2.9.0+dfsg1/pho.cpp:728: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/gcin-2.9.0+dfsg1/pho.cpp:733: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/gcin-2.9.0+dfsg1/pho.cpp:793: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/gcin-2.9.0+dfsg1/pho.cpp:1013: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/gcin-2.9.0+dfsg1/pho.cpp:1017: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/gcin-2.9.0+dfsg1/pho.cpp:1022: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/gcin-2.9.0+dfsg1/pho.cpp:1033: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/gcin-2.9.0+dfsg1/pho.cpp:1040: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/gcin-2.9.0+dfsg1/pho.cpp:1049: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/gcin-2.9.0+dfsg1/pho.cpp:1090: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/gcin-2.9.0+dfsg1/pho.h:16: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/gcin-2.9.0+dfsg1/pho.h: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 pinyin[7];
data/gcin-2.9.0+dfsg1/pho.h:36: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/gcin-2.9.0+dfsg1/pho2pinyin.cpp:26: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/gcin-2.9.0+dfsg1/pho2pinyin.cpp:39: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/gcin-2.9.0+dfsg1/pho2pinyin.cpp:41: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/gcin-2.9.0+dfsg1/pho2pinyin.cpp:60: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/gcin-2.9.0+dfsg1/pho2pinyin.cpp:99: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/gcin-2.9.0+dfsg1/pho2pinyin.cpp:101: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/gcin-2.9.0+dfsg1/phoa2d.cpp: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 s[64];
data/gcin-2.9.0+dfsg1/phoa2d.cpp:63: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/gcin-2.9.0+dfsg1/phoa2d.cpp:105: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/gcin-2.9.0+dfsg1/phoa2d.cpp:118: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/gcin-2.9.0+dfsg1/phoa2d.cpp:138: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/gcin-2.9.0+dfsg1/phoa2d.cpp:183: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/gcin-2.9.0+dfsg1/phod2a.cpp:39: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, pho_phrase_area+ofs+1, len);
data/gcin-2.9.0+dfsg1/phrase-save-menu.cpp: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 tt[512];
data/gcin-2.9.0+dfsg1/phrase-save-menu.cpp:76: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/gcin-2.9.0+dfsg1/phrase-save-menu.cpp:85: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/gcin-2.9.0+dfsg1/phrase.cpp:78: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/gcin-2.9.0+dfsg1/phrase.cpp: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 ttt[512];
data/gcin-2.9.0+dfsg1/phrase.cpp:91: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/gcin-2.9.0+dfsg1/phrase.cpp:214: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/gcin-2.9.0+dfsg1/pin-juyin.cpp:20: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/gcin-2.9.0+dfsg1/pin-juyin.cpp:26: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/gcin-2.9.0+dfsg1/pin-juyin.cpp: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 pin[16], ju[64];
data/gcin-2.9.0+dfsg1/pin-juyin.cpp: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(pinju[pinjuN].pinyin, pin, sizeof(pinju[0].pinyin));
data/gcin-2.9.0+dfsg1/pin-juyin.cpp:58: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/gcin-2.9.0+dfsg1/pinyin.cpp:13: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/gcin-2.9.0+dfsg1/pinyin.cpp:24: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/gcin-2.9.0+dfsg1/pinyin.cpp:126: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/gcin-2.9.0+dfsg1/pinyin.cpp:132: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/gcin-2.9.0+dfsg1/qt-im/qgcininputcontext_x11.cpp:56: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/gcin-2.9.0+dfsg1/qt4-im/gcin-imcontext-qt.cpp:194: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/gcin-2.9.0+dfsg1/qt5-im/gcin-imcontext-qt5.cpp:40: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).
	  out_fp = fopen("/tmp/a.txt", "w");
data/gcin-2.9.0+dfsg1/sim2trad.cpp:9: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/gcin-2.9.0+dfsg1/statistic.cpp: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 tt[512];
data/gcin-2.9.0+dfsg1/t2s-lookup.cpp: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 fullname[128];
data/gcin-2.9.0+dfsg1/t2s-lookup.cpp:47: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/gcin-2.9.0+dfsg1/table-update.cpp:10: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[PATH_MAX];
data/gcin-2.9.0+dfsg1/table-update.cpp:11: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[PATH_MAX];
data/gcin-2.9.0+dfsg1/table-update.cpp:12: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[PATH_MAX];
data/gcin-2.9.0+dfsg1/table-update.cpp:13: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[PATH_MAX];
data/gcin-2.9.0+dfsg1/table-update.cpp:15: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/gcin-2.9.0+dfsg1/table-update.cpp:21: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/gcin-2.9.0+dfsg1/table-update.cpp: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 cmd[6*PATH_MAX];
data/gcin-2.9.0+dfsg1/tray-indicator.cpp:210: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/gcin-2.9.0+dfsg1/tray-indicator.cpp:213: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/gcin-2.9.0+dfsg1/tray-indicator.cpp:216:9:  [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-A.png");
data/gcin-2.9.0+dfsg1/tray-indicator.cpp:228: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/gcin-2.9.0+dfsg1/tray-indicator.cpp:235: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/gcin-2.9.0+dfsg1/tray-indicator.cpp: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 icon_[32];
data/gcin-2.9.0+dfsg1/tray-indicator.cpp:271: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_state_[32];
data/gcin-2.9.0+dfsg1/tray-win32.cpp:63: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 exe[512];    
data/gcin-2.9.0+dfsg1/tray-win32.cpp: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 bak[128], cur[128];
data/gcin-2.9.0+dfsg1/tray-win32.cpp:334: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/gcin-2.9.0+dfsg1/tray-win32.cpp:338: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/gcin-2.9.0+dfsg1/tray-win32.cpp:352:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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/gcin-2.9.0+dfsg1/tray-win32.cpp:403: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/gcin-2.9.0+dfsg1/tray-win32.cpp: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, "en-");
data/gcin-2.9.0+dfsg1/tray-win32.cpp:425:9:  [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-A.png");
data/gcin-2.9.0+dfsg1/tray-win32.cpp:436: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/gcin-2.9.0+dfsg1/tray-win32.cpp:443: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/gcin-2.9.0+dfsg1/tray-win32.cpp: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 tt[64];
data/gcin-2.9.0+dfsg1/tray-win32.cpp:516: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/gcin-2.9.0+dfsg1/tray.cpp:189: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/gcin-2.9.0+dfsg1/tray.cpp:207: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/gcin-2.9.0+dfsg1/tray.cpp:397: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_fname[128];
data/gcin-2.9.0+dfsg1/ts-download.cpp:112: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(&url->buffer[url->buffer_pos], buffer, size);
data/gcin-2.9.0+dfsg1/ts-download.cpp:237:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if((file->handle.file=fopen(url, operation)))
data/gcin-2.9.0+dfsg1/ts-download.cpp:349: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(ptr, file->buffer, want);
data/gcin-2.9.0+dfsg1/ts-download.cpp:405: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 url[128];
data/gcin-2.9.0+dfsg1/ts-download.cpp:417: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(downloaded_file_src,"a"))==NULL)
data/gcin-2.9.0+dfsg1/ts-download.cpp:448: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 s[256];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:19: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 private_file_src[128];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:20: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 contributed_file_src[128];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:21: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 downloaded_file_src[128];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:23: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/gcin-2.9.0+dfsg1/ts-edit.cpp:38: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/gcin-2.9.0+dfsg1/ts-edit.cpp:44: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/gcin-2.9.0+dfsg1/ts-edit.cpp:86: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, ts->ph_key_sz);
data/gcin-2.9.0+dfsg1/ts-edit.cpp:124: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, ts->ph_key_sz);
data/gcin-2.9.0+dfsg1/ts-edit.cpp:126: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, ts->ph_key_sz);
data/gcin-2.9.0+dfsg1/ts-edit.cpp:160: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/gcin-2.9.0+dfsg1/ts-edit.cpp:217: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/gcin-2.9.0+dfsg1/ts-edit.cpp:268: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(ch, pho, *len);
data/gcin-2.9.0+dfsg1/ts-edit.cpp:281: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/gcin-2.9.0+dfsg1/ts-edit.cpp:292: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/gcin-2.9.0+dfsg1/ts-edit.cpp:303: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/gcin-2.9.0+dfsg1/ts-edit.cpp:305: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[512];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:316: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/gcin-2.9.0+dfsg1/ts-edit.cpp:318: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/gcin-2.9.0+dfsg1/ts-edit.cpp:337: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(private_file_src, "a"))==NULL)
data/gcin-2.9.0+dfsg1/ts-edit.cpp:348: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.
    unsigned char str[MAX_PHRASE_STR_LEN];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:394: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/gcin-2.9.0+dfsg1/ts-edit.cpp:598: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 src[128];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:599: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(src, name),".src");
data/gcin-2.9.0+dfsg1/ts-edit.cpp:628: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 minus_priv[128];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:630: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 minus_contributed[128];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:633: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 minus_downloaded[128];
data/gcin-2.9.0+dfsg1/ts-edit.cpp: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 sys_tsfname[128], contrib_temp[128];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:640: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_user_fname[128];
data/gcin-2.9.0+dfsg1/ts-edit.cpp: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 *argv[32];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:741: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 gcin_dir[512];
data/gcin-2.9.0+dfsg1/ts-edit.cpp:760: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(downloaded_file_src, ".src");
data/gcin-2.9.0+dfsg1/ts-share.h: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 os_str[32];
data/gcin-2.9.0+dfsg1/ts-share.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 tag[32];
data/gcin-2.9.0+dfsg1/ts-share.h:43: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 tag[32];
data/gcin-2.9.0+dfsg1/ts-upload.cpp:55: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 port_s[8];
data/gcin-2.9.0+dfsg1/ts-upload.cpp:56: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(port_s, "%d", TS_SHARE_SERVER_PORT);
data/gcin-2.9.0+dfsg1/ts-upload.cpp:121: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(format.os_str, "Linux");
data/gcin-2.9.0+dfsg1/ts-upload.cpp:128: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(format.os_str, "Win32 %d.%d", osvi.dwMajorVersion, osvi.dwMinorVersion);
data/gcin-2.9.0+dfsg1/ts-upload.cpp:139: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, "r")) != NULL) {
data/gcin-2.9.0+dfsg1/ts-upload.cpp:144: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, "a"))==NULL) {
data/gcin-2.9.0+dfsg1/ts-upload.cpp:164: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 tmpf[128]="/tmp/gcin-uploadXXXXXX";
data/gcin-2.9.0+dfsg1/ts-upload.cpp:165:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
  int fd = mkstemp(tmpf);
data/gcin-2.9.0+dfsg1/ts-upload.cpp:174: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 tmpf[MAX_PATH];
data/gcin-2.9.0+dfsg1/ts-upload.cpp: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 lpTempPathBuffer[MAX_PATH];
data/gcin-2.9.0+dfsg1/ts-upload.cpp:186: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 (!(fu=fopen(tmpf, "wb")))
data/gcin-2.9.0+dfsg1/ts-upload.cpp:217: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(contributed_file_src, "a"))==NULL)
data/gcin-2.9.0+dfsg1/ts-upload.cpp:222: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[MAX_PHRASE_LEN * CH_SZ + 1];
data/gcin-2.9.0+dfsg1/ts-upload.cpp: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 ksz[4];
data/gcin-2.9.0+dfsg1/ts-upload.cpp: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(ksz, "%d", key_sz);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp: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/gcin-2.9.0+dfsg1/tsa2d32.cpp: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/gcin-2.9.0+dfsg1/tsa2d32.cpp: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/gcin-2.9.0+dfsg1/tsa2d32.cpp: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/gcin-2.9.0+dfsg1/tsa2d32.cpp: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/gcin-2.9.0+dfsg1/tsa2d32.cpp: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:94:45:  [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++); if (lena < 0) lena = -lena; memcpy(&usecounta, pa, sizeof(usecount_t)); pa+= sizeof(usecount_t);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:97:45:  [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++); if (lenb < 0) lenb = -lenb; memcpy(&usecountb, pb, sizeof(usecount_t)); pb+= sizeof(usecount_t);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:172:45:  [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++); if (lena < 0) lena = -lena; memcpy(&usecounta, pa, sizeof(usecount_t)); pa+= sizeof(usecount_t);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:173:45:  [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++); if (lenb < 0) lenb = -lenb; memcpy(&usecountb, pb, sizeof(usecount_t)); pb+= sizeof(usecount_t);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:254: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++], &oclen,1);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:256:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&bf[ofs],&usecount, sizeof(usecount_t)); ofs+=sizeof(usecount_t);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:258:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bf[ofs], cphbuf, clen * phsz);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:261: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:269: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:271: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 phbuf8[128];
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:301: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:318: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:319: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:335: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:425: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(&chbuf[chbufN], &s[i], len);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:496: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:522: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:523: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:525:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&bf[ofs], cphbuf, clen * phsz);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:528: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:534: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(chbuf, cphbuf, clen);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:589: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:614: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(&v, &sf[idx], phsz);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:617: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:621: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:626: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:657: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/gcin-2.9.0+dfsg1/tsa2d32.cpp: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 outfileidx[512];
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:680: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:683: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/gcin-2.9.0+dfsg1/tsd2a32.cpp:43: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 *fnames_minus[MAX_MINUS_FILES];
data/gcin-2.9.0+dfsg1/tsd2a32.cpp: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 fname_tmp[128];
data/gcin-2.9.0+dfsg1/tsd2a32.cpp:50: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_user_fname[128];
data/gcin-2.9.0+dfsg1/tsd2a32.cpp:144: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/gcin-2.9.0+dfsg1/tsd2a32.cpp:152: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/gcin-2.9.0+dfsg1/tsd2a32.cpp:219: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[MAX_PHRASE_STR_LEN];
data/gcin-2.9.0+dfsg1/tsd2a32.cpp:227: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 ch[CH_SZ];
data/gcin-2.9.0+dfsg1/tsd2a32.cpp:237: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(tt+ttlen, ch, len);
data/gcin-2.9.0+dfsg1/tsd2a32.cpp:269:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_k[MAX_PHRASE_STR_LEN];
data/gcin-2.9.0+dfsg1/tsd2a32.cpp:316: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 tkey[512];
data/gcin-2.9.0+dfsg1/tsin-char.cpp:7: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/gcin-2.9.0+dfsg1/tsin-char.cpp: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 t[CH_SZ];
data/gcin-2.9.0+dfsg1/tsin-char.cpp: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 fname[256];
data/gcin-2.9.0+dfsg1/tsin-char.cpp: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).
    if (fp=fopen(fname, "rb")) {
data/gcin-2.9.0+dfsg1/tsin-char.cpp:80: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_CIN_PHR];
data/gcin-2.9.0+dfsg1/tsin-char.cpp:128:10:  [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")) {
data/gcin-2.9.0+dfsg1/tsin-parse.cpp:128: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/gcin-2.9.0+dfsg1/tsin-parse.cpp:131: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/gcin-2.9.0+dfsg1/tsin-parse.cpp:183: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/gcin-2.9.0+dfsg1/tsin-parse.cpp:245: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/gcin-2.9.0+dfsg1/tsin-parse.cpp:249: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(pbest[0].pho, pho, sizeof(phokey_t)*plen);
data/gcin-2.9.0+dfsg1/tsin-parse.cpp:294: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/gcin-2.9.0+dfsg1/tsin-parse.cpp: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, pbest, sizeof(TSIN_PARSE) * (tsin_parse_len - start));
data/gcin-2.9.0+dfsg1/tsin-parse.cpp:324: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/gcin-2.9.0+dfsg1/tsin-parse.cpp:367:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char pinyin_set[MAX_PH_BF_EXT];
data/gcin-2.9.0+dfsg1/tsin-parse.h:3: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/gcin-2.9.0+dfsg1/tsin-scan.cpp:133: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/gcin-2.9.0+dfsg1/tsin-scan.cpp:182: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(mtko, mtk, sizeof(phokey_t)*match_len);
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:254: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(sel[selN].phkey, mtk_src, match_len*th->ph_key_sz);
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:262: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_nu[sel_nuN].phkey, mtk_src, match_len*th->ph_key_sz);
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:308: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/gcin-2.9.0+dfsg1/tsin-scan.cpp:386: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/gcin-2.9.0+dfsg1/tsin-scan.cpp:458: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 pp8_o[MAX_PHRASE_LEN * 8];
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:459: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(pp8_o, pp8, plen);
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:465: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(pp8, pp8_o, plen);
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:508: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(mtch, mtk8, match_len);
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:566: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].str, mtch, match_len);
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:582: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 t[CH_SZ + 1];
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:605: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/gcin-2.9.0+dfsg1/tsin-scan.cpp:695: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 best[10][MAX_PHRASE_LEN];
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:726: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/gcin-2.9.0+dfsg1/tsin-util.cpp: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 tsidxfname[512];
data/gcin-2.9.0+dfsg1/tsin-util.cpp:72: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/gcin-2.9.0+dfsg1/tsin-util.cpp:80:19:  [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_phidx=fopen(tsidxfname, fmod))==NULL) {
data/gcin-2.9.0+dfsg1/tsin-util.cpp:103: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, fmod))==NULL)
data/gcin-2.9.0+dfsg1/tsin-util.cpp:189: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/gcin-2.9.0+dfsg1/tsin-util.cpp:198: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/gcin-2.9.0+dfsg1/tsin-util.cpp:213: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/gcin-2.9.0+dfsg1/tsin-util.cpp:326: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, th->ph_key_sz * mlen);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:327: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, th->ph_key_sz * mlen);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:363: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/gcin-2.9.0+dfsg1/tsin-util.cpp:374: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, th->ph_key_sz * len);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:376: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(&tbuf[th->ph_key_sz*len + 1 + sizeof(usecount_t)], utf8str, tlen);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:472: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(len, p, 1);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:496: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(usecount, p, sizeof(usecount_t));
data/gcin-2.9.0+dfsg1/tsin-util.cpp:499: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(pho, p, tlen);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:508: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(ch, p, tlen);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:749: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*MAX_PHRASE_LEN];
data/gcin-2.9.0+dfsg1/tsin-util.cpp:980: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(ss, pho, plen);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:1024: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(ss, pho, plen);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:1105: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/gcin-2.9.0+dfsg1/tsin-util.cpp:1136: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(th->mem_tsin + sofs, &n_usecount, sizeof(usecount_t));
data/gcin-2.9.0+dfsg1/tsin.cpp:235: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/gcin-2.9.0+dfsg1/tsin.cpp:263: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/gcin-2.9.0+dfsg1/tsin.cpp:449: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/gcin-2.9.0+dfsg1/tsin.cpp:451: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/gcin-2.9.0+dfsg1/tsin.cpp:793: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/gcin-2.9.0+dfsg1/tsin.cpp:824: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[tss.phrase_count++], (char *)stch, len);
data/gcin-2.9.0+dfsg1/tsin.cpp:1013: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/gcin-2.9.0+dfsg1/tsin.cpp:1014: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.
      set_sele_text(i, (char *)selstr[i], tlen);
data/gcin-2.9.0+dfsg1/tsin.cpp:1042: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/gcin-2.9.0+dfsg1/tsin.cpp:1418: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[2];
data/gcin-2.9.0+dfsg1/tsin.cpp:1532: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/gcin-2.9.0+dfsg1/tsin.cpp:1842: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, ch, CH_SZ);
data/gcin-2.9.0+dfsg1/tsin.cpp:2416: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/gcin-2.9.0+dfsg1/tsin.cpp:2443: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/gcin-2.9.0+dfsg1/tsin.cpp:2687: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/gcin-2.9.0+dfsg1/tsin.cpp:2803: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(temp_chpho, tss.chpho, sizeof(CHPHO) * MAX_PH_BF_EXT);
data/gcin-2.9.0+dfsg1/tsin.cpp:2804: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(temp_pre_sel, tss.pre_sel, sizeof(PRE_SEL) * 10);
data/gcin-2.9.0+dfsg1/tsin.cpp:2814: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.chpho, temp_chpho, sizeof(CHPHO) * MAX_PH_BF_EXT);
data/gcin-2.9.0+dfsg1/tsin.cpp:2815: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, temp_pre_sel, sizeof(PRE_SEL) * 10);
data/gcin-2.9.0+dfsg1/tsin.h: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 cha[CH_SZ+1];
data/gcin-2.9.0+dfsg1/tsin.h:63: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/gcin-2.9.0+dfsg1/tsin.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 keymap[128];
data/gcin-2.9.0+dfsg1/tsin.h: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 str[MAX_PHRASE_LEN*CH_SZ+1];  
data/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:183: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:187: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp: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 kname[128][CH_SZ];
data/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:226: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:228: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 kno[128];
data/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:265: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:269: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:284: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:297: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:327: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:356: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:372: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:376: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[512];
data/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:380: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[vz[i]].key, 8);
data/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:383: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[vz[i]].key, 4);
data/gcin-2.9.0+dfsg1/tslearn.cpp:20: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/gcin-2.9.0+dfsg1/tslearn.cpp: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/gcin-2.9.0+dfsg1/tslearn.cpp:50: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, tsin_hand.ph_key_sz);
data/gcin-2.9.0+dfsg1/tslearn.cpp:85: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, tsin_hand.ph_key_sz);
data/gcin-2.9.0+dfsg1/tslearn.cpp:87: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, tsin_hand.ph_key_sz);
data/gcin-2.9.0+dfsg1/tslearn.cpp:121: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/gcin-2.9.0+dfsg1/tslearn.cpp:213: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/gcin-2.9.0+dfsg1/tslearn.cpp:311: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/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:186: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/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:190: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/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:227: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/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:228: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/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:230: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 kno[128];
data/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:270: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(txtfile,"rb"))==NULL) {
data/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:287: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[4096];
data/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:355: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/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:371: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/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:375: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[512];
data/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:379: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[vz[i]].key, 8);
data/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:382: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[vz[i]].key, 4);
data/gcin-2.9.0+dfsg1/unix-exec.cpp: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/gcin-2.9.0+dfsg1/util.cpp:14: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/gcin-2.9.0+dfsg1/util.cpp: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 out[4096];
data/gcin-2.9.0+dfsg1/util.cpp:70: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/gcin-2.9.0+dfsg1/util.cpp:71:7:  [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(fname, "/tmp/gcindbg-%d-%d", getuid(), getpid());
data/gcin-2.9.0+dfsg1/util.cpp:72: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/gcin-2.9.0+dfsg1/util.cpp:155: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/gcin-2.9.0+dfsg1/util.cpp:157: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, "C:\\dbg\\ime%x", GetCurrentProcessId());
data/gcin-2.9.0+dfsg1/util.cpp:160: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, "C:\\dbg\\svr%x", GetCurrentProcessId());
data/gcin-2.9.0+dfsg1/util.cpp:162: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, "C:\\dbg\\gcin");
data/gcin-2.9.0+dfsg1/util.cpp:165: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, "C:\\dbg\\other", GetCurrentProcessId());
data/gcin-2.9.0+dfsg1/util.cpp: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 exe[MAX_PATH];
data/gcin-2.9.0+dfsg1/util.cpp:188: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 buf[1024];
data/gcin-2.9.0+dfsg1/util.cpp:191: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 bufb5[1024];
data/gcin-2.9.0+dfsg1/util.cpp:200:2:  [2] (buffer) wchar_t:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	wchar_t wchstr[1024];
data/gcin-2.9.0+dfsg1/util.cpp:213: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.
	static char msg8[256];
data/gcin-2.9.0+dfsg1/util.cpp:250: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[512];
data/gcin-2.9.0+dfsg1/util.cpp:314: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/gcin-2.9.0+dfsg1/util.cpp:371: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/gcin-2.9.0+dfsg1/win-gtab.cpp:21: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/gcin-2.9.0+dfsg1/win-gtab.cpp:132: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/gcin-2.9.0+dfsg1/win-inmd-switch.cpp:34: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/gcin-2.9.0+dfsg1/win-inmd-switch.cpp:44: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/gcin-2.9.0+dfsg1/win-kbm.cpp:366: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/gcin-2.9.0+dfsg1/win-kbm.cpp:399: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/gcin-2.9.0+dfsg1/win-kbm.cpp:427: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/gcin-2.9.0+dfsg1/win-kbm.cpp:454: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/gcin-2.9.0+dfsg1/win-kbm.cpp:482: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/gcin-2.9.0+dfsg1/win-kbm.cpp:512: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/gcin-2.9.0+dfsg1/win-message.cpp: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 head[32];
data/gcin-2.9.0+dfsg1/win-message.cpp:132: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/gcin-2.9.0+dfsg1/win-message.cpp:133: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/gcin-2.9.0+dfsg1/win-pho-near.cpp:11: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/gcin-2.9.0+dfsg1/win-pho-near.cpp:39: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/gcin-2.9.0+dfsg1/win-pho-near.cpp:63: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/gcin-2.9.0+dfsg1/win-pho-near.cpp:89: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/gcin-2.9.0+dfsg1/win-pho-near.cpp:91: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/gcin-2.9.0+dfsg1/win-pho-near.cpp:134: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/gcin-2.9.0+dfsg1/win-save-phrase.cpp: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[1024];
data/gcin-2.9.0+dfsg1/win-save-phrase.cpp:113: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/gcin-2.9.0+dfsg1/win-save-phrase.cpp:164: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/gcin-2.9.0+dfsg1/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+1];
data/gcin-2.9.0+dfsg1/win-sym.cpp:36: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/gcin-2.9.0+dfsg1/win-sym.cpp:40: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/gcin-2.9.0+dfsg1/win-sym.cpp: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(fname, "rb"))==NULL)
data/gcin-2.9.0+dfsg1/win-sym.cpp: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[1024];
data/gcin-2.9.0+dfsg1/win-sym.cpp:322: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/gcin-2.9.0+dfsg1/win-sym.cpp:330: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/gcin-2.9.0+dfsg1/win-sym.cpp:472: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/gcin-2.9.0+dfsg1/win1.cpp:267: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/gcin-2.9.0+dfsg1/win1.cpp:268: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/gcin-2.9.0+dfsg1/win1.cpp:270: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/gcin-2.9.0+dfsg1/win1.cpp:272: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/gcin-2.9.0+dfsg1/win1.cpp: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 cc[2];
data/gcin-2.9.0+dfsg1/win1.cpp:277: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/gcin-2.9.0+dfsg1/win1.cpp:281: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/gcin-2.9.0+dfsg1/win1.cpp:291: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/gcin-2.9.0+dfsg1/IC.cpp: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/gcin-2.9.0+dfsg1/IC.cpp: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/gcin-2.9.0+dfsg1/IC.cpp: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/gcin-2.9.0+dfsg1/IC.cpp: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/gcin-2.9.0+dfsg1/IC.cpp: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/gcin-2.9.0+dfsg1/IC.cpp: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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/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/gcin-2.9.0+dfsg1/eggtrayicon.cpp:548: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 (message);
data/gcin-2.9.0+dfsg1/en-miss-cand.cpp:118: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(ln);
data/gcin-2.9.0+dfsg1/eve.cpp:79: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(10000);
data/gcin-2.9.0+dfsg1/eve.cpp:109: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/gcin-2.9.0+dfsg1/eve.cpp:204: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/gcin-2.9.0+dfsg1/eve.cpp:248: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/gcin-2.9.0+dfsg1/eve.cpp:285: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).
    trad2sim(output_buffer_raw_bak, strlen(output_buffer_raw_bak),
data/gcin-2.9.0+dfsg1/eve.cpp:1346: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).
  callback_str_buffer && strlen(callback_str_buffer)) {
data/gcin-2.9.0+dfsg1/gcb.cpp:37: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 slen = strlen(s);
data/gcin-2.9.0+dfsg1/gcb.cpp:110: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).
  textlen=strlen(text);
data/gcin-2.9.0+dfsg1/gcb.cpp:164: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 len = strlen(hist_strArr[i]);
data/gcin-2.9.0+dfsg1/gcin-conf.cpp:55: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:58: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:102: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:176: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/gcin-2.9.0+dfsg1/gcin-conf.cpp:177: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/gcin-2.9.0+dfsg1/gcin-message.cpp:20: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/gcin-2.9.0+dfsg1/gcin-message.cpp:21: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/gcin-2.9.0+dfsg1/gcin-settings.cpp:255: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/gcin-2.9.0+dfsg1/gcin-settings.cpp:256: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/gcin-2.9.0+dfsg1/gcin-setup-pho.cpp:113: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/gcin-2.9.0+dfsg1/gcin-setup-pho.cpp:114: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/gcin-2.9.0+dfsg1/gcin-tools-appearance.cpp:101: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:39: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:58: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:62: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:249: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:258: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:268: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:270: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:380: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:386: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:428: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:480: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/gcin-2.9.0+dfsg1/gcin2tab.cpp:515: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:119: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:132: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:181: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 len = i<N?strlen(gbuf[i].ch):0;
data/gcin-2.9.0+dfsg1/gtab-buf.cpp:192: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:200:7:  [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/gcin-2.9.0+dfsg1/gtab-buf.cpp:214: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:977: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:986: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1157: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1203: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1369: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/gcin-2.9.0+dfsg1/gtab-buf.cpp:1457: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).
					tss.pre_sel[i].len = strlen(best[i]);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:86: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 tlena = strlen(textArr[text_idxa]);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:87: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 tlenb = strlen(textArr[text_idxb]);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:125: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 tlena = strlen(textArr[text_idxa]);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:126: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 tlenb = strlen(textArr[text_idxb]);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:161: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 tlena = strlen(textArr[text_idxa]);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:162: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 tlenb = strlen(textArr[text_idxb]);  
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:406: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:450: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/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:501: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).
	  ste.len = strlen(textArr[i]);
data/gcin-2.9.0+dfsg1/gtab-db-gen.cpp:517: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/gcin-2.9.0+dfsg1/gtab-init.cpp:137: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/gcin-2.9.0+dfsg1/gtab-list.cpp:111: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/gcin-2.9.0+dfsg1/gtab-list.cpp:124: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:38: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:56: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:60: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:283: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/gcin-2.9.0+dfsg1/gtab-merge.cpp:308: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/gcin-2.9.0+dfsg1/gtab-use-count.cpp:37: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/gcin-2.9.0+dfsg1/gtab-use-count.cpp:86: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/gcin-2.9.0+dfsg1/gtab-util.cpp:45: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/gcin-2.9.0+dfsg1/gtab.cpp:112: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/gcin-2.9.0+dfsg1/gtab.cpp:112: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/gcin-2.9.0+dfsg1/gtab.cpp:206: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/gcin-2.9.0+dfsg1/gtab.cpp:359: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/gcin-2.9.0+dfsg1/gtab.cpp:382: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/gcin-2.9.0+dfsg1/gtab.cpp:671: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/gcin-2.9.0+dfsg1/gtab.cpp:673: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/gcin-2.9.0+dfsg1/gtab.cpp:697: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/gcin-2.9.0+dfsg1/gtab.cpp:701: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/gcin-2.9.0+dfsg1/gtab.cpp:710: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, selback), " ");
data/gcin-2.9.0+dfsg1/gtab.cpp:715: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/gcin-2.9.0+dfsg1/gtab.cpp:735: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/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:327: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/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:564: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/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:649: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/gcin-2.9.0+dfsg1/im-client/gcin-im-client.cpp:1171: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/gcin-2.9.0+dfsg1/im-dispatch.cpp:51:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((rn=read(fd, ((char *)buf) + ofs, toN)) < 0) {
data/gcin-2.9.0+dfsg1/im-dispatch.cpp:215:5:  [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/gcin-2.9.0+dfsg1/im-dispatch.cpp:590: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/gcin-2.9.0+dfsg1/im-srv.cpp:191: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/gcin-2.9.0+dfsg1/juyin-learn.cpp:68: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/gcin-2.9.0+dfsg1/kbmcv.cpp:92: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/gcin-2.9.0+dfsg1/locale.cpp:25: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:559: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/gcin-2.9.0+dfsg1/modules/anthy.cpp:588: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:33: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 (GCIN_CHEWING_CONFIG) + 1);
data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:33: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 (GCIN_CHEWING_CONFIG) + 1);
data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:34: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 (GCIN_CHEWING_CONFIG) + 1);
data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:34: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 (GCIN_CHEWING_CONFIG) + 1);
data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:52: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:146: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).
    pszGcinKBConfig = malloc (strlen (pszHome) + strlen (GCIN_KB_CONFIG) + 1);
data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:146: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).
    pszGcinKBConfig = malloc (strlen (pszHome) + strlen (GCIN_KB_CONFIG) + 1);
data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:147: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 (pszGcinKBConfig, 0x00, strlen (pszHome) + strlen (GCIN_KB_CONFIG) + 1);
data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:147: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 (pszGcinKBConfig, 0x00, strlen (pszHome) + strlen (GCIN_KB_CONFIG) + 1);
data/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:159: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:165: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:165: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:168: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:170: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/gcin-2.9.0+dfsg1/modules/chewing-conf.cpp:177: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/gcin-2.9.0+dfsg1/modules/chewing.cpp:132: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/gcin-2.9.0+dfsg1/modules/chewing.cpp:132: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/gcin-2.9.0+dfsg1/modules/chewing.cpp:133: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/gcin-2.9.0+dfsg1/modules/chewing.cpp:133: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/gcin-2.9.0+dfsg1/modules/intcode.cpp:76: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/gcin-2.9.0+dfsg1/pho-util.cpp: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/gcin-2.9.0+dfsg1/pho-util.cpp:234: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/gcin-2.9.0+dfsg1/pho-util.cpp:288: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/gcin-2.9.0+dfsg1/pho.cpp:740: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/gcin-2.9.0+dfsg1/pho.cpp:1016: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/gcin-2.9.0+dfsg1/pho.cpp:1021: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/gcin-2.9.0+dfsg1/pho.cpp:1032: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/gcin-2.9.0+dfsg1/pho.cpp:1039: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/gcin-2.9.0+dfsg1/pho.cpp:1041: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/gcin-2.9.0+dfsg1/pho.cpp:1048: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/gcin-2.9.0+dfsg1/phoa2d.cpp: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(s);
data/gcin-2.9.0+dfsg1/phoa2d.cpp:103: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/gcin-2.9.0+dfsg1/pin-juyin.cpp:30: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/gcin-2.9.0+dfsg1/pin-juyin.cpp:37: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/gcin-2.9.0+dfsg1/pinyin.cpp:21: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/gcin-2.9.0+dfsg1/pinyin.cpp:26: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/gcin-2.9.0+dfsg1/qt5-im/gcin-imcontext-qt5.cpp:109: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(str) > 0) {
data/gcin-2.9.0+dfsg1/sim2trad.cpp:43: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/gcin-2.9.0+dfsg1/sim2trad.cpp:45: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/gcin-2.9.0+dfsg1/statistic.cpp:60: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/gcin-2.9.0+dfsg1/tray.cpp:31: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/gcin-2.9.0+dfsg1/ts-download.cpp:16:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read(a,b,c) recv(a,b,c,0)
data/gcin-2.9.0+dfsg1/ts-download.cpp:398:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  rn = read(sock, (char*)&rep, sizeof(rep));
data/gcin-2.9.0+dfsg1/ts-download.cpp:427:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rn = read(sock, &len, sizeof(len));
data/gcin-2.9.0+dfsg1/ts-download.cpp:435:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    rn = read(sock, (char*)pho, len * key_sz);
data/gcin-2.9.0+dfsg1/ts-download.cpp:456:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      rn = read(sock, &slen, sizeof(slen));
data/gcin-2.9.0+dfsg1/ts-download.cpp:457:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      rn = read(sock, s, slen);
data/gcin-2.9.0+dfsg1/ts-edit.cpp:312: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/gcin-2.9.0+dfsg1/ts-upload.cpp:226: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).
    slen = strlen(s);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp: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((char *)s);
data/gcin-2.9.0+dfsg1/tsa2d32.cpp:332: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/gcin-2.9.0+dfsg1/tsa2d32.cpp:402: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/gcin-2.9.0+dfsg1/tsin-scan.cpp:305: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).
    tss.pre_selN = Min(selN, (int)strlen(cur_inmd->selkey));
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:406: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 slen = strlen(s);
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:419: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(en_sel_keys(is_gtab));
data/gcin-2.9.0+dfsg1/tsin-scan.cpp:702: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).
					tss.pre_sel[i].len = strlen(best[i]);
data/gcin-2.9.0+dfsg1/tsin-util.cpp:1093: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 tlen = ch?strlen(ch):0;
data/gcin-2.9.0+dfsg1/tsin.cpp:163: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/gcin-2.9.0+dfsg1/tsin.cpp:254: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/gcin-2.9.0+dfsg1/tsin.cpp:1393: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/gcin-2.9.0+dfsg1/tsin.cpp:2721: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/gcin-2.9.0+dfsg1/tsin2gtab-phrase.cpp:390: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/gcin-2.9.0+dfsg1/tslearn.cpp:211: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/gcin-2.9.0+dfsg1/txt2gtab-phrase.cpp:389: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/gcin-2.9.0+dfsg1/win-kbm.cpp:356: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/gcin-2.9.0+dfsg1/win-save-phrase.cpp:175: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/gcin-2.9.0+dfsg1/win-sym.cpp:42: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/gcin-2.9.0+dfsg1/win-sym.cpp:44: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/gcin-2.9.0+dfsg1/win-sym.cpp:119: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/gcin-2.9.0+dfsg1/win-sym.cpp:476: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/gcin-2.9.0+dfsg1/win1.cpp:265: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/gcin-2.9.0+dfsg1/win1.cpp:511: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 = 1246
Lines analyzed = 55527 in approximately 1.33 seconds (41774 lines/second)
Physical Source Lines of Code (SLOC) = 43272
Hits@level = [0] 228 [1] 191 [2] 738 [3]  40 [4] 275 [5]   2
Hits@level+ = [0+] 1474 [1+] 1246 [2+] 1055 [3+] 317 [4+] 277 [5+]   2
Hits/KSLOC@level+ = [0+] 34.0636 [1+] 28.7946 [2+] 24.3807 [3+] 7.32575 [4+] 6.40137 [5+] 0.0462193
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.