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/fcitx-configtool-0.4.10/gtk/common.h
Examining data/fcitx-configtool-0.4.10/gtk/config_widget.c
Examining data/fcitx-configtool-0.4.10/gtk/config_widget.h
Examining data/fcitx-configtool-0.4.10/gtk/configdesc.c
Examining data/fcitx-configtool-0.4.10/gtk/configdesc.h
Examining data/fcitx-configtool-0.4.10/gtk/gdm-languages.c
Examining data/fcitx-configtool-0.4.10/gtk/gdm-languages.h
Examining data/fcitx-configtool-0.4.10/gtk/im.c
Examining data/fcitx-configtool-0.4.10/gtk/im.h
Examining data/fcitx-configtool-0.4.10/gtk/im_widget.c
Examining data/fcitx-configtool-0.4.10/gtk/im_widget.h
Examining data/fcitx-configtool-0.4.10/gtk/keygrab.c
Examining data/fcitx-configtool-0.4.10/gtk/keygrab.h
Examining data/fcitx-configtool-0.4.10/gtk/locarchive.h
Examining data/fcitx-configtool-0.4.10/gtk/main.c
Examining data/fcitx-configtool-0.4.10/gtk/main_window.c
Examining data/fcitx-configtool-0.4.10/gtk/main_window.h
Examining data/fcitx-configtool-0.4.10/gtk/sub_config_parser.c
Examining data/fcitx-configtool-0.4.10/gtk/sub_config_parser.h
Examining data/fcitx-configtool-0.4.10/gtk/sub_config_widget.c
Examining data/fcitx-configtool-0.4.10/gtk/sub_config_widget.h
Examining data/fcitx-configtool-0.4.10/gtk3/common.c
Examining data/fcitx-configtool-0.4.10/gtk3/common.h
Examining data/fcitx-configtool-0.4.10/gtk3/config_widget.c
Examining data/fcitx-configtool-0.4.10/gtk3/config_widget.h
Examining data/fcitx-configtool-0.4.10/gtk3/configdesc.c
Examining data/fcitx-configtool-0.4.10/gtk3/configdesc.h
Examining data/fcitx-configtool-0.4.10/gtk3/dummy_config.c
Examining data/fcitx-configtool-0.4.10/gtk3/dummy_config.h
Examining data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c
Examining data/fcitx-configtool-0.4.10/gtk3/gdm-languages.h
Examining data/fcitx-configtool-0.4.10/gtk3/im_config_dialog.c
Examining data/fcitx-configtool-0.4.10/gtk3/im_config_dialog.h
Examining data/fcitx-configtool-0.4.10/gtk3/im_dialog.c
Examining data/fcitx-configtool-0.4.10/gtk3/im_dialog.h
Examining data/fcitx-configtool-0.4.10/gtk3/im_widget.c
Examining data/fcitx-configtool-0.4.10/gtk3/im_widget.h
Examining data/fcitx-configtool-0.4.10/gtk3/keygrab.c
Examining data/fcitx-configtool-0.4.10/gtk3/keygrab.h
Examining data/fcitx-configtool-0.4.10/gtk3/locarchive.h
Examining data/fcitx-configtool-0.4.10/gtk3/main.c
Examining data/fcitx-configtool-0.4.10/gtk3/main_window.c
Examining data/fcitx-configtool-0.4.10/gtk3/main_window.h
Examining data/fcitx-configtool-0.4.10/gtk3/sub_config_parser.c
Examining data/fcitx-configtool-0.4.10/gtk3/sub_config_parser.h
Examining data/fcitx-configtool-0.4.10/gtk3/sub_config_widget.c
Examining data/fcitx-configtool-0.4.10/gtk3/sub_config_widget.h
Examining data/fcitx-configtool-0.4.10/gtk3/ui_widget.c
Examining data/fcitx-configtool-0.4.10/gtk3/ui_widget.h

FINAL RESULTS:

data/fcitx-configtool-0.4.10/gtk/im_widget.c:257:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(self->servicename, "%s-%d", FCITX_DBUS_SERVICE, fcitx_utils_get_display_number());
data/fcitx-configtool-0.4.10/gtk/sub_config_parser.c:203:25:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        char* dirpath = realpath(xdgpath[i], NULL);
data/fcitx-configtool-0.4.10/gtk/sub_config_parser.c:259:48:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
                result = g_list_append(result, realpath(path, NULL));
data/fcitx-configtool-0.4.10/gtk3/sub_config_parser.c:212:25:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
        char* dirpath = realpath(xdgpath[i], NULL);
data/fcitx-configtool-0.4.10/gtk3/sub_config_parser.c:267:48:  [3] (buffer) realpath:
  This function does not protect against buffer overflows, and some
  implementations can overflow internally (CWE-120/CWE-785!). Ensure that the
  destination buffer is at least of size MAXPATHLEN, andto protect against
  implementation problems, the input argument should also be checked to
  ensure it is no larger than MAXPATHLEN.
                result = g_list_append(result, realpath(path, NULL));
data/fcitx-configtool-0.4.10/gtk/config_widget.c:354:25:  [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).
            int value = atoi(option->rawValue);
data/fcitx-configtool-0.4.10/gtk/config_widget.c:360: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 scolor[9];
data/fcitx-configtool-0.4.10/gtk/config_widget.c:479: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 *strkey[2] = { NULL, NULL };
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:553: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 curline[256];
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:559: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).
    langlist = fopen(locale_file, "r");
data/fcitx-configtool-0.4.10/gtk/im_widget.h:58: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 servicename[IC_NAME_MAX];
data/fcitx-configtool-0.4.10/gtk/locarchive.h: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 sum[16];
data/fcitx-configtool-0.4.10/gtk/locarchive.h:88: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 sum[16];
data/fcitx-configtool-0.4.10/gtk3/config_widget.c:694: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 scolor[10];
data/fcitx-configtool-0.4.10/gtk3/config_widget.c:731: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[2] = {*(char*)value};
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:553: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 curline[256];
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:559: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).
    langlist = fopen(locale_file, "r");
data/fcitx-configtool-0.4.10/gtk3/locarchive.h: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 sum[16];
data/fcitx-configtool-0.4.10/gtk3/locarchive.h:88: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 sum[16];
data/fcitx-configtool-0.4.10/gtk/config_widget.c:168: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).
                if (codesc->desc && strlen(codesc->desc) != 0)
data/fcitx-configtool-0.4.10/gtk/config_widget.c:591:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gboolean configurable = (gboolean)(cfdesc != NULL || strlen(addon->subconfig) != 0);
data/fcitx-configtool-0.4.10/gtk/configdesc.c:49: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).
            HASH_ADD_KEYPTR(hh, cdset, desc->filename, strlen(desc->filename), desc);
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:427:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(old_locale->name) > strlen(locale->name)) {
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:427: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).
        if (strlen(old_locale->name) > strlen(locale->name)) {
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:649: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(code);
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:720: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(code);
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:787: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).
                if (strlen(*attr_values) != 2) {
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:795: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).
                if (strlen(*attr_values) != 3) {
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:803: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).
                if (strlen(*attr_values) != 3) {
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:865: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).
                if (strlen(*attr_values) != 2) {
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:873: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).
                if (strlen(*attr_values) != 3) {
data/fcitx-configtool-0.4.10/gtk/gdm-languages.c:881: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).
                if (strlen(*attr_values) != 3) {
data/fcitx-configtool-0.4.10/gtk/im_widget.c:310:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(item->langcode) != 0)
data/fcitx-configtool-0.4.10/gtk/im_widget.c:549: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).
            flag = flag && (strlen(filter_text) == 0
data/fcitx-configtool-0.4.10/gtk/keygrab.c:81:9:  [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(100);
data/fcitx-configtool-0.4.10/gtk/keygrab.c:137: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).
    if (label == NULL || strlen(label) == 0) {
data/fcitx-configtool-0.4.10/gtk/main_window.c:244: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).
        gboolean configurable = (gboolean)(cfdesc != NULL || strlen(addon->subconfig) != 0);
data/fcitx-configtool-0.4.10/gtk/sub_config_parser.c:70:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(items[0]) == 0)
data/fcitx-configtool-0.4.10/gtk/sub_config_parser.c:87: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).
            if (strlen(items[2]) == 0 || items[2][0] == '/')
data/fcitx-configtool-0.4.10/gtk/sub_config_parser.c:103: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).
            if (strlen(*path) == 0)
data/fcitx-configtool-0.4.10/gtk/sub_config_parser.c:213: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).
            if (strncmp(dirpath, (gchar*) l->data, strlen(dirpath)) == 0) {
data/fcitx-configtool-0.4.10/gtk/sub_config_parser.c:216: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).
                gchar* name = filename + strlen(dirpath);
data/fcitx-configtool-0.4.10/gtk3/config_widget.c:191:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (codesc->desc && strlen(codesc->desc) != 0) {
data/fcitx-configtool-0.4.10/gtk3/config_widget.c:922:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gboolean configurable = (gboolean)(cfdesc != NULL || strlen(addon->subconfig) != 0);
data/fcitx-configtool-0.4.10/gtk3/configdesc.c:49: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).
            HASH_ADD_KEYPTR(hh, cdset, desc->filename, strlen(desc->filename), desc);
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:427:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(old_locale->name) > strlen(locale->name)) {
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:427: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).
        if (strlen(old_locale->name) > strlen(locale->name)) {
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:649: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(code);
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:720: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(code);
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:787: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).
                if (strlen(*attr_values) != 2) {
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:795: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).
                if (strlen(*attr_values) != 3) {
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:803: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).
                if (strlen(*attr_values) != 3) {
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:865: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).
                if (strlen(*attr_values) != 2) {
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:873: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).
                if (strlen(*attr_values) != 3) {
data/fcitx-configtool-0.4.10/gtk3/gdm-languages.c:881: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).
                if (strlen(*attr_values) != 3) {
data/fcitx-configtool-0.4.10/gtk3/im_config_dialog.c:139: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).
        configurable = (gboolean)(cfdesc != NULL || strlen(addon->subconfig) != 0);
data/fcitx-configtool-0.4.10/gtk3/im_config_dialog.c:144:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp(imname, "fcitx-keyboard", strlen("fcitx-keyboard")) == 0)
data/fcitx-configtool-0.4.10/gtk3/im_dialog.c:249:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(item->langcode) != 0)
data/fcitx-configtool-0.4.10/gtk3/im_dialog.c:260:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(temp, item->langcode, 2);
data/fcitx-configtool-0.4.10/gtk3/im_dialog.c:314:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tempa, itema->langcode, 2);
data/fcitx-configtool-0.4.10/gtk3/im_dialog.c:316:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(tempb, itemb->langcode, 2);
data/fcitx-configtool-0.4.10/gtk3/im_dialog.c:362:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        strlen(filter_text) == 0
data/fcitx-configtool-0.4.10/gtk3/im_dialog.c:368:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(temp, item->langcode, 2);
data/fcitx-configtool-0.4.10/gtk3/im_widget.c:255:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(item->langcode) != 0)
data/fcitx-configtool-0.4.10/gtk3/keygrab.c:92:9:  [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(100);
data/fcitx-configtool-0.4.10/gtk3/keygrab.c:171: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).
    if (label == NULL || strlen(label) == 0) {
data/fcitx-configtool-0.4.10/gtk3/main_window.c:155: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).
        gboolean configurable = (gboolean)(cfdesc != NULL || strlen(addon->subconfig) != 0);
data/fcitx-configtool-0.4.10/gtk3/main_window.c:243:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        flag = flag && (strlen(filter_text) == 0
data/fcitx-configtool-0.4.10/gtk3/sub_config_parser.c:76:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strlen(items[0]) == 0)
data/fcitx-configtool-0.4.10/gtk3/sub_config_parser.c:93: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).
            if (strlen(items[2]) == 0 || items[2][0] == '/')
data/fcitx-configtool-0.4.10/gtk3/sub_config_parser.c:114: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).
            if (strlen(*path) == 0)
data/fcitx-configtool-0.4.10/gtk3/sub_config_parser.c:222: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).
            if (strncmp(dirpath, (gchar*) l->data, strlen(dirpath)) == 0) {
data/fcitx-configtool-0.4.10/gtk3/sub_config_parser.c:224: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).
                gchar* name = filename + strlen(dirpath);
data/fcitx-configtool-0.4.10/gtk3/ui_widget.c:104:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gboolean configurable = (gboolean)(cfdesc != NULL || strlen(addon->subconfig) != 0);

ANALYSIS SUMMARY:

Hits = 74
Lines analyzed = 10270 in approximately 0.25 seconds (40425 lines/second)
Physical Source Lines of Code (SLOC) = 7748
Hits@level = [0]   5 [1]  55 [2]  14 [3]   4 [4]   1 [5]   0
Hits@level+ = [0+]  79 [1+]  74 [2+]  19 [3+]   5 [4+]   1 [5+]   0
Hits/KSLOC@level+ = [0+] 10.1962 [1+] 9.55085 [2+] 2.45225 [3+] 0.645328 [4+] 0.129066 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.