Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler.
Number of rules (primarily dangerous function names) in C/C++ ruleset: 223
Examining data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp
Examining data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.h
Examining data/scim-1.4.18/extras/gtk_immodule/imscim.cpp
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-accept-listener.cpp
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-accept-listener.h
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-application.cpp
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-client-listener.cpp
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-client-listener.h
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-imcontext.cpp
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-imcontext.h
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-interruption-listener.cpp
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-interruption-listener.h
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-output.cpp
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-panel-listener-protected.h
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-panel-listener.cpp
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-panel-listener.h
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-protected.h
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-signal-listener.cpp
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-signal-listener.h
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-socket-client.h
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent.h
Examining data/scim-1.4.18/extras/immodules/agent/utils/scim-bridge-agent-panel-client.cpp
Examining data/scim-1.4.18/extras/immodules/agent/utils/scim-bridge-agent-panel-client.h
Examining data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent.cpp
Examining data/scim-1.4.18/extras/immodules/client-clutter/im-scim-bridge-clutter.c
Examining data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-clutter.c
Examining data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-clutter.h
Examining data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-imcontext-clutter.c
Examining data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-imcontext-clutter.h
Examining data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-key-event-utility-clutter.c
Examining data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-key-event-utility-clutter.h
Examining data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-debug.c
Examining data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-imcontext.h
Examining data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c
Examining data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-protected.h
Examining data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client.h
Examining data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client.c
Examining data/scim-1.4.18/extras/immodules/client-gtk/im-scim-bridge-gtk.c
Examining data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-gtk.c
Examining data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-gtk.h
Examining data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.c
Examining data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.h
Examining data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-key-event-utility-gtk.c
Examining data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-key-event-utility-gtk.h
Examining data/scim-1.4.18/extras/immodules/client-qt/im-scim-bridge-qt.cpp
Examining data/scim-1.4.18/extras/immodules/client-qt/scim-bridge-client-common-qt.h
Examining data/scim-1.4.18/extras/immodules/client-qt/scim-bridge-client-imcontext-qt.cpp
Examining data/scim-1.4.18/extras/immodules/client-qt/scim-bridge-client-imcontext-qt.h
Examining data/scim-1.4.18/extras/immodules/client-qt/scim-bridge-client-key-event-utility-qt.cpp
Examining data/scim-1.4.18/extras/immodules/client-qt/scim-bridge-client-key-event-utility-qt.h
Examining data/scim-1.4.18/extras/immodules/client-qt/scim-bridge-client-qt.cpp
Examining data/scim-1.4.18/extras/immodules/client-qt/scim-bridge-client-qt.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-attribute.c
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-attribute.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-debug.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-display.c
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-display.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-imcontext.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-key-code.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-key-event.c
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-key-event.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-message-constant.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-message.c
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-message.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-messenger.c
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-messenger.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-output.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-path.c
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-path.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge-string.h
Examining data/scim-1.4.18/extras/immodules/common/scim-bridge.h
Examining data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp
Examining data/scim-1.4.18/extras/setup/scim_setup_helper.cpp
Examining data/scim-1.4.18/extras/setup/scim_setup_module.cpp
Examining data/scim-1.4.18/extras/setup/scim_setup_module.h
Examining data/scim-1.4.18/extras/setup/scim_setup_ui.cpp
Examining data/scim-1.4.18/extras/setup/scim_setup_ui.h
Examining data/scim-1.4.18/modules/Config/scim_simple_config.cpp
Examining data/scim-1.4.18/modules/Config/scim_simple_config.h
Examining data/scim-1.4.18/modules/Config/scim_socket_config.cpp
Examining data/scim-1.4.18/modules/Config/scim_socket_config.h
Examining data/scim-1.4.18/modules/Filter/scim_sctc_filter.cpp
Examining data/scim-1.4.18/modules/Filter/scim_sctc_filter.h
Examining data/scim-1.4.18/modules/Filter/scim_sctc_filter_data.h
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/FrameMgr.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/FrameMgr.h
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/IMConn.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/IMMethod.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/IMValues.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/IMdkit.h
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/Xi18n.h
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/Xi18nX.h
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/XimFunc.h
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/XimProto.h
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/Xtrans.h
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/i18nAttr.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/i18nClbk.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/i18nIMProto.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/i18nIc.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/i18nMethod.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/i18nOffsetCache.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/i18nPtHdr.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/i18nUtil.c
Examining data/scim-1.4.18/modules/FrontEnd/IMdkit/i18nX.c
Examining data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp
Examining data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.h
Examining data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp
Examining data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.h
Examining data/scim-1.4.18/modules/FrontEnd/scim_x11_ic.cpp
Examining data/scim-1.4.18/modules/FrontEnd/scim_x11_ic.h
Examining data/scim-1.4.18/modules/IMEngine/scim_rawcode_imengine.cpp
Examining data/scim-1.4.18/modules/IMEngine/scim_rawcode_imengine.h
Examining data/scim-1.4.18/modules/IMEngine/scim_socket_imengine.cpp
Examining data/scim-1.4.18/modules/IMEngine/scim_socket_imengine.h
Examining data/scim-1.4.18/modules/SetupUI/scim_frontend_setup.cpp
Examining data/scim-1.4.18/modules/SetupUI/scim_imengine_setup.cpp
Examining data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp
Examining data/scim-1.4.18/src/conv_compose.cpp
Examining data/scim-1.4.18/src/scim.cpp
Examining data/scim-1.4.18/src/scim.h
Examining data/scim-1.4.18/src/scim_attribute.h
Examining data/scim-1.4.18/src/scim_backend.cpp
Examining data/scim-1.4.18/src/scim_backend.h
Examining data/scim-1.4.18/src/scim_bind.h
Examining data/scim-1.4.18/src/scim_chartraits.cpp
Examining data/scim-1.4.18/src/scim_compose_key.cpp
Examining data/scim-1.4.18/src/scim_compose_key.h
Examining data/scim-1.4.18/src/scim_compose_key_data.h
Examining data/scim-1.4.18/src/scim_config_agent.cpp
Examining data/scim-1.4.18/src/scim_config_base.cpp
Examining data/scim-1.4.18/src/scim_config_base.h
Examining data/scim-1.4.18/src/scim_config_module.cpp
Examining data/scim-1.4.18/src/scim_config_module.h
Examining data/scim-1.4.18/src/scim_config_path.h
Examining data/scim-1.4.18/src/scim_connection.cpp
Examining data/scim-1.4.18/src/scim_connection.h
Examining data/scim-1.4.18/src/scim_debug.cpp
Examining data/scim-1.4.18/src/scim_debug.h
Examining data/scim-1.4.18/src/scim_event.cpp
Examining data/scim-1.4.18/src/scim_event.h
Examining data/scim-1.4.18/src/scim_exception.h
Examining data/scim-1.4.18/src/scim_filter.cpp
Examining data/scim-1.4.18/src/scim_filter.h
Examining data/scim-1.4.18/src/scim_filter_manager.cpp
Examining data/scim-1.4.18/src/scim_filter_manager.h
Examining data/scim-1.4.18/src/scim_filter_module.cpp
Examining data/scim-1.4.18/src/scim_filter_module.h
Examining data/scim-1.4.18/src/scim_frontend.cpp
Examining data/scim-1.4.18/src/scim_frontend.h
Examining data/scim-1.4.18/src/scim_frontend_module.cpp
Examining data/scim-1.4.18/src/scim_frontend_module.h
Examining data/scim-1.4.18/src/scim_global_config.cpp
Examining data/scim-1.4.18/src/scim_global_config.h
Examining data/scim-1.4.18/src/scim_helper.cpp
Examining data/scim-1.4.18/src/scim_helper.h
Examining data/scim-1.4.18/src/scim_helper_launcher.cpp
Examining data/scim-1.4.18/src/scim_helper_manager.cpp
Examining data/scim-1.4.18/src/scim_helper_manager.h
Examining data/scim-1.4.18/src/scim_helper_manager_server.cpp
Examining data/scim-1.4.18/src/scim_helper_module.cpp
Examining data/scim-1.4.18/src/scim_helper_module.h
Examining data/scim-1.4.18/src/scim_hotkey.cpp
Examining data/scim-1.4.18/src/scim_hotkey.h
Examining data/scim-1.4.18/src/scim_iconv.cpp
Examining data/scim-1.4.18/src/scim_iconv.h
Examining data/scim-1.4.18/src/scim_imengine.cpp
Examining data/scim-1.4.18/src/scim_imengine.h
Examining data/scim-1.4.18/src/scim_imengine_module.cpp
Examining data/scim-1.4.18/src/scim_imengine_module.h
Examining data/scim-1.4.18/src/scim_keyboard_layout_data.h
Examining data/scim-1.4.18/src/scim_keyevent_data.h
Examining data/scim-1.4.18/src/scim_launcher.cpp
Examining data/scim-1.4.18/src/scim_lookup_table.cpp
Examining data/scim-1.4.18/src/scim_lookup_table.h
Examining data/scim-1.4.18/src/scim_module.cpp
Examining data/scim-1.4.18/src/scim_module.h
Examining data/scim-1.4.18/src/scim_object.cpp
Examining data/scim-1.4.18/src/scim_object.h
Examining data/scim-1.4.18/src/scim_panel_agent.cpp
Examining data/scim-1.4.18/src/scim_panel_agent.h
Examining data/scim-1.4.18/src/scim_panel_client.cpp
Examining data/scim-1.4.18/src/scim_panel_client.h
Examining data/scim-1.4.18/src/scim_panel_common.h
Examining data/scim-1.4.18/src/scim_pointer.h
Examining data/scim-1.4.18/src/scim_private.cpp
Examining data/scim-1.4.18/src/scim_private.h
Examining data/scim-1.4.18/src/scim_property.h
Examining data/scim-1.4.18/src/scim_signals.cpp
Examining data/scim-1.4.18/src/scim_signals.h
Examining data/scim-1.4.18/src/scim_slot.cpp
Examining data/scim-1.4.18/src/scim_slot.h
Examining data/scim-1.4.18/src/scim_socket.cpp
Examining data/scim-1.4.18/src/scim_socket.h
Examining data/scim-1.4.18/src/scim_stl_map.h
Examining data/scim-1.4.18/src/scim_trans_commands.h
Examining data/scim-1.4.18/src/scim_transaction.cpp
Examining data/scim-1.4.18/src/scim_transaction.h
Examining data/scim-1.4.18/src/scim_utility.cpp
Examining data/scim-1.4.18/src/scim_utility.h
Examining data/scim-1.4.18/tests/scim_test_helper.cpp
Examining data/scim-1.4.18/tests/scim_test_imengine.cpp
Examining data/scim-1.4.18/tests/scim_test_imengine.h
Examining data/scim-1.4.18/tests/testiconvert.cpp
Examining data/scim-1.4.18/tests/testlang.cpp
Examining data/scim-1.4.18/tests/testpanel.cpp
Examining data/scim-1.4.18/tests/testsocketclient.cpp
Examining data/scim-1.4.18/tests/testsocketserver.cpp
Examining data/scim-1.4.18/utils/scim_x11_utils.cpp
Examining data/scim-1.4.18/utils/scim_x11_utils.h
Examining data/scim-1.4.18/utils/scimkeyselection.cpp
Examining data/scim-1.4.18/utils/scimkeyselection.h
Examining data/scim-1.4.18/utils/scimstringview.c
Examining data/scim-1.4.18/utils/scimstringview.h
Examining data/scim-1.4.18/utils/scimtrayicon.c
Examining data/scim-1.4.18/utils/scimtrayicon.h

FINAL RESULTS:

data/scim-1.4.18/src/scim_socket.cpp:508:27:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
                    if (::chmod (data_un->sun_path, S_IRUSR | S_IWUSR) == -1) {
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-client-listener.cpp:704: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 (tmp_str, SCIM_BRIDGE_MESSAGE_COLOR);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-output.cpp:52: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 (new_format, format);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-output.cpp:54:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stream, new_format, ap);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-output.cpp:62: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 (new_format, format);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-output.cpp:65:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stream, new_format, ap);
data/scim-1.4.18/extras/immodules/agent/utils/scim-bridge-agent-panel-client.cpp:185:85:  [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 (lstat (panel_program.c_str (), &stat_buf) || !S_ISREG (stat_buf.st_mode) || access (panel_program.c_str (), X_OK)) {
data/scim-1.4.18/extras/immodules/agent/utils/scim-bridge-agent-panel-client.cpp:198:21:  [4] (shell) execv:
  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 (execv (panel_program_cstr, my_argv)) abort ();
data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-imcontext-clutter.c:241: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 (imcontext->preedit_string, preedit_string);
data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-imcontext-clutter.c:319: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 (imcontext->commit_string, commit_string);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:34: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 (format, string);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:38:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stdout, format, ap);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:49: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 (format, string);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:53:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, format, ap);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:66: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 (format, string);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:69:9:  [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 (stdout, format, ap);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:80:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stdout, string, ap);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:89:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf (stderr, string, ap);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:99:9:  [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 (stdout, string, ap);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client.c:94:18:  [4] (shell) popen:
  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.
    FILE *pout = popen ("scim -h", "r");
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client.c:108:18:  [4] (shell) popen:
  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.
    FILE *pout = popen (scim_bridge_path_get_agent (), "r");
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client.c:1081: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 (socket_addr.sun_path, scim_bridge_path_get_socket ());
data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.c:274: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 (imcontext->preedit_string, preedit_string);
data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.c:462: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 (imcontext->commit_string, commit_string);
data/scim-1.4.18/extras/immodules/common/scim-bridge-display.c:65: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 (dst->name, src->name);
data/scim-1.4.18/extras/immodules/common/scim-bridge-display.c:137: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 (display->name, display_name);
data/scim-1.4.18/extras/immodules/common/scim-bridge-display.c:171: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 (display->name, display_name);
data/scim-1.4.18/extras/immodules/common/scim-bridge-message.c:48: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 (message->header, header);
data/scim-1.4.18/extras/immodules/common/scim-bridge-message.c:137: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 (message->arguments[index], argument);
data/scim-1.4.18/extras/immodules/common/scim-bridge-path.c:63:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (lockfile_path, "%s%s-%s.%s-%d@%s:%d.%d", LOCKFILE_DIR, AGENT_NAME, COMPAT_VERSION, LOCKFILE_NAME, uid, HOST_NAME, display_number, screen_number);
data/scim-1.4.18/extras/immodules/common/scim-bridge-path.c:67:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (socket_path, "%s%s-%s.%s-%d@%s:%d.%d", SOCKET_DIR, AGENT_NAME, COMPAT_VERSION, SOCKET_NAME, uid, HOST_NAME, display_number, screen_number);
data/scim-1.4.18/extras/immodules/common/scim-bridge-path.c:71:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf (agent_path, "%s%s", AGENT_DIR, AGENT_NAME);
data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c:243: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, str_buffer);
data/scim-1.4.18/modules/Config/scim_simple_config.cpp:375: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 (userconf_dir.c_str (), R_OK | W_OK) != 0) {
data/scim-1.4.18/modules/Config/scim_simple_config.cpp:377:13:  [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 (userconf_dir.c_str (), R_OK | W_OK) != 0)
data/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/src/scim_event.cpp:198:9:  [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 (buf, 20, ((code <= 0xFFFF) ? "0x%04x" : "0x%06x"), code);
data/scim-1.4.18/src/scim_global_config.cpp:405: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 (usr_conf_dir.c_str (), R_OK | W_OK) != 0) {
data/scim-1.4.18/src/scim_global_config.cpp:407:13:  [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 (usr_conf_dir.c_str (), R_OK | W_OK) != 0)
data/scim-1.4.18/src/scim_helper_manager.cpp:168:20:  [4] (shell) execv:
  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 execv (SCIM_HELPER_MANAGER_PROGRAM, argv);
data/scim-1.4.18/src/scim_helper_manager_server.cpp:174:17:  [4] (shell) execv:
  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.
                execv (SCIM_HELPER_LAUNCHER_PROGRAM, argv);
data/scim-1.4.18/src/scim_socket.cpp:465:23:  [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 (data_un->sun_path, F_OK) == 0) {
data/scim-1.4.18/src/scim_utility.cpp:685:13:  [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 (path.c_str (), R_OK) != 0) {
data/scim-1.4.18/src/scim_utility.cpp:687:17:  [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 (path.c_str (), R_OK) != 0)
data/scim-1.4.18/src/scim_utility.cpp:1007:16:  [4] (shell) execv:
  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 execv (SCIM_LAUNCHER, new_argv);
data/scim-1.4.18/src/scim_utility.cpp:1050: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 (panel_program.c_str (), X_OK) != 0)
data/scim-1.4.18/src/scim_utility.cpp:1083:16:  [4] (shell) execv:
  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 execv (panel_program.c_str (), new_argv);
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:1430:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        const char *p = getenv ("DISPLAY");
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:1726: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.
        str = getenv ("GTK_IM_SCIM_DEBUG_VERBOSE");
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:1733: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.
        str = getenv ("GTK_IM_SCIM_DEBUG_MASK");
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:1767:35:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    const char *engine_list_str = getenv ("GTK_IM_SCIM_IMENGINE_MODULES");
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-application.cpp:70:18:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
        option = getopt_long (argc, argv, short_options, long_options, NULL);
data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-imcontext-clutter.c:203:44:  [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 *env_precise_cursor_enabled = getenv ("SCIM_BRIDGE_PRECISE_CURSOR_ENABLED");
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-debug.c:35:29:  [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 *debug_level_str = getenv ("SCIM_BRIDGE_DEBUG_LEVEL");
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client.c:1197:42:  [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 *env_reconnection_enabled = getenv ("SCIM_BRIDGE_RECONNECTION_ENABLED");
data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.c:222:41:  [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 *env_key_snooper_enabled = getenv ("SCIM_BRIDGE_KEY_SNOOPER_ENABLED");
data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.c:236:44:  [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 *env_precise_cursor_enabled = getenv ("SCIM_BRIDGE_PRECISE_CURSOR_ENABLED");
data/scim-1.4.18/extras/immodules/common/scim-bridge-display.c:88:26:  [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 *display_name = getenv ("DISPLAY");
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:4311:25:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        const char *p = getenv ("DISPLAY");
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:382:5:  [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 (0));
data/scim-1.4.18/src/scim_config_agent.cpp:109: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 *p =  getenv ("DISPLAY");
data/scim-1.4.18/src/scim_helper_launcher.cpp:45: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 *p =  getenv ("DISPLAY");
data/scim-1.4.18/src/scim_module.cpp:69: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.
    module_path_env = getenv ("SCIM_MODULE_PATH");
data/scim-1.4.18/src/scim_private.cpp:72:13:  [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 (cur_time.tv_sec);
data/scim-1.4.18/src/scim_private.cpp:75:9:  [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 (0));
data/scim-1.4.18/src/scim_socket.cpp:1149: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.
    const char *env = getenv ("SCIM_SOCKET_ADDRESS");
data/scim-1.4.18/src/scim_socket.cpp:1153: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.
        env = getenv ("SCIM_FRONTEND_SOCKET_ADDRESS");
data/scim-1.4.18/src/scim_socket.cpp:1170: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.
    const char *env = getenv ("SCIM_SOCKET_ADDRESS");
data/scim-1.4.18/src/scim_socket.cpp:1174: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.
        env = getenv ("SCIM_IMENGINE_SOCKET_ADDRESS");
data/scim-1.4.18/src/scim_socket.cpp:1191: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.
    const char *env = getenv ("SCIM_SOCKET_ADDRESS");
data/scim-1.4.18/src/scim_socket.cpp:1195: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.
        env = getenv ("SCIM_CONFIG_SOCKET_ADDRESS");
data/scim-1.4.18/src/scim_socket.cpp:1212: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.
    const char *env = getenv ("SCIM_PANEL_SOCKET_ADDRESS");
data/scim-1.4.18/src/scim_socket.cpp:1272: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.
    const char *env = getenv ("SCIM_HELPER_MANAGER_SOCKET_ADDRESS");
data/scim-1.4.18/src/scim_socket.cpp:1289: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.
    const char *env = getenv ("SCIM_SOCKET_TIMEOUT");
data/scim-1.4.18/src/scim_utility.cpp:550: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.
    home_dir = getenv ("SCIM_HOME");
data/scim-1.4.18/src/scim_utility.cpp:564: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.
        home_dir = getenv ("HOME");
data/scim-1.4.18/src/scim_utility.cpp:576: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.
    user_name = getenv ("SCIM_USER");
data/scim-1.4.18/src/scim_utility.cpp:587: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.
    else if ((user_name = getenv ("USER")) != NULL)
data/scim-1.4.18/tests/testpanel.cpp:123: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.
	String       display (getenv ("DISPLAY"));
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:1729:29:  [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).
            debug_verbose = atoi (str);
data/scim-1.4.18/extras/immodules/client-qt/scim-bridge-client-key-event-utility-qt.cpp:370: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_str[key_strlen];
data/scim-1.4.18/extras/immodules/common/scim-bridge-attribute.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 (dst, src, sizeof (ScimBridgeAttribute));
data/scim-1.4.18/extras/immodules/common/scim-bridge-messenger.c:195: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.
                memcpy (new_buffer, messenger->sending_buffer + buffer_offset, sizeof (char) * (buffer_capacity - buffer_offset));
data/scim-1.4.18/extras/immodules/common/scim-bridge-messenger.c:196: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.
                memcpy (new_buffer + buffer_capacity - buffer_offset, messenger->sending_buffer, sizeof (char) * buffer_offset);
data/scim-1.4.18/extras/immodules/common/scim-bridge-messenger.c:281: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 (new_args, args, sizeof (char*) * arg_capacity);
data/scim-1.4.18/extras/immodules/common/scim-bridge-messenger.c:422: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 (tmp_str, messenger->sending_buffer + buffer_offset, written_bytes);
data/scim-1.4.18/extras/immodules/common/scim-bridge-messenger.c:446: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 (new_buffer, messenger->receiving_buffer + buffer_offset, sizeof (char) * (buffer_capacity - buffer_offset));
data/scim-1.4.18/extras/immodules/common/scim-bridge-messenger.c:447: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 (new_buffer + buffer_capacity - buffer_offset, messenger->receiving_buffer, sizeof (char) * buffer_offset);
data/scim-1.4.18/extras/immodules/common/scim-bridge-messenger.c:521: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 (tmp_str, messenger->receiving_buffer + (buffer_offset + buffer_size) % buffer_capacity, read_bytes);
data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c:50: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 (new_wstr_buffer, wstr_buffer, sizeof (wchar) * (wstr_capacity + 1));
data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c:176:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy (*wstr, wstr_buffer, sizeof (wchar) * (wstr_length + 1));
data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c:436: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 (*str, "%u", value);
data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c:445: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 (*str, "%d", value);
data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c:454: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 (*str, "TRUE");
data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c:458: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 (*str, "FALSE");
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:4128:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char **new_argv = new char * [40];
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:4216:45:  [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).
            DebugOutput::set_verbose_level (atoi (argv [i]));
data/scim-1.4.18/extras/setup/scim_setup_ui.cpp:79:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 = new char * [4];
data/scim-1.4.18/extras/setup/scim_setup_ui.cpp:449: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 [128];
data/scim-1.4.18/modules/Config/scim_simple_config.cpp:278: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/scim-1.4.18/modules/Config/scim_simple_config.cpp:296: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/scim-1.4.18/modules/Config/scim_simple_config.cpp:346: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/scim-1.4.18/modules/Config/scim_simple_config.cpp:403: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 [128];
data/scim-1.4.18/modules/Config/scim_socket_config.cpp:384: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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/i18nX.c:189: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 (p, prop + (offset % 4), length);
data/scim-1.4.18/modules/FrontEnd/IMdkit/i18nX.c:278: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/scim-1.4.18/modules/FrontEnd/IMdkit/i18nX.c:303: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/scim-1.4.18/modules/FrontEnd/IMdkit/i18nX.c:346: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/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:403: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 buf [sizeof(uint32)];
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:1318: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 buf [80];
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:1186: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 (&(fe.event), &xkp, sizeof (fe.event));
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:1207:9:  [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 *wclist [1];
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:1212: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 (wclist [0], src.data (), sizeof (wchar_t) * src.length ());
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:1217: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 *clist [1];
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:1625: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/scim-1.4.18/modules/IMEngine/scim_socket_imengine.cpp:308: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 tmp [80];
data/scim-1.4.18/modules/SetupUI/scim_imengine_setup.cpp:1246: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/scim-1.4.18/modules/SetupUI/scim_imengine_setup.cpp:1473: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/scim-1.4.18/src/conv_compose.cpp:155: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 [1000];
data/scim-1.4.18/src/conv_compose.cpp:179:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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_mbtowc (& seq.unicode, (const unsigned char *)resvec [1].c_str (), resvec[1].length ());
data/scim-1.4.18/src/conv_compose.cpp:256:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char unic [8];
data/scim-1.4.18/src/scim.cpp:85: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 *new_argv [80];
data/scim-1.4.18/src/scim_debug.cpp:133:33:  [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).
            __debug_output_file.open (file.c_str ());
data/scim-1.4.18/src/scim_debug.cpp:144: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 [40];
data/scim-1.4.18/src/scim_event.cpp:197: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 [20];
data/scim-1.4.18/src/scim_global_config.cpp:318: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 [80];
data/scim-1.4.18/src/scim_global_config.cpp:342: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 [80];
data/scim-1.4.18/src/scim_global_config.cpp:367: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 [80];
data/scim-1.4.18/src/scim_helper_launcher.cpp:97:45:  [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).
            DebugOutput::set_verbose_level (atoi (argv [i]));
data/scim-1.4.18/src/scim_helper_manager_server.cpp:204: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 buf [sizeof(uint32)];
data/scim-1.4.18/src/scim_helper_manager_server.cpp:367:45:  [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).
            DebugOutput::set_verbose_level (atoi (argv [i]));
data/scim-1.4.18/src/scim_iconv.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 dest_buf [SCIM_MAX_BUFSIZE * MB_LEN_MAX];
data/scim-1.4.18/src/scim_iconv.cpp:172: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 dest_buf [SCIM_MAX_BUFSIZE * MB_LEN_MAX];
data/scim-1.4.18/src/scim_launcher.cpp:65: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 *new_argv [40];
data/scim-1.4.18/src/scim_launcher.cpp:127:45:  [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).
            DebugOutput::set_verbose_level (atoi (argv [i]));
data/scim-1.4.18/src/scim_lookup_table.cpp:299: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 [2] = { 0, 0 };
data/scim-1.4.18/src/scim_panel_agent.cpp:760: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 buf [sizeof(uint32)];
data/scim-1.4.18/src/scim_panel_client.cpp:560: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 * my_argv [2] = {const_cast<char*> ("--no-stay"), 0};
data/scim-1.4.18/src/scim_socket.cpp:122:32:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            if (len && m_data) memcpy (m_data, other.m_data, len);
data/scim-1.4.18/src/scim_socket.cpp:210:35:  [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).
            in->sin_port = htons (atoi (varlist [2].c_str ()));
data/scim-1.4.18/src/scim_socket.cpp:1238:20:  [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).
        disp_num = atoi (display.substr (colon_pos + 1, String::npos).c_str());
data/scim-1.4.18/src/scim_socket.cpp:1250:24:  [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 port = atoi (varlist [2].c_str ()) + disp_num;
data/scim-1.4.18/src/scim_socket.cpp:1251: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 buf [10];
data/scim-1.4.18/src/scim_socket.cpp:1292:19:  [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).
        timeout = atoi (env);
data/scim-1.4.18/src/scim_transaction.cpp:146: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 buf [sizeof (uint32) * 2];
data/scim-1.4.18/src/scim_transaction.cpp:217: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 (buf, m_holder->m_buffer, m_holder->m_write_pos); 
data/scim-1.4.18/src/scim_transaction.cpp:245: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 (m_holder->m_buffer, buf, size);
data/scim-1.4.18/src/scim_transaction.cpp:290: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 (m_holder->m_buffer + m_holder->m_write_pos, str.c_str (), str.length ());
data/scim-1.4.18/src/scim_transaction.cpp:309: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 (m_holder->m_buffer + m_holder->m_write_pos, mbs.c_str (), mbs.length ());
data/scim-1.4.18/src/scim_transaction.cpp:501: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 (m_holder->m_buffer + m_holder->m_write_pos, raw, bufsize);
data/scim-1.4.18/src/scim_transaction.cpp:520: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 (m_holder->m_buffer + m_holder->m_write_pos, trans.m_holder->m_buffer, trans.m_holder->m_write_pos);
data/scim-1.4.18/src/scim_transaction.cpp:1230: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 (*raw, m_impl->m_holder->m_buffer + m_impl->m_read_pos, bufsize);
data/scim-1.4.18/src/scim_transaction.cpp:1264: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 (trans.m_holder->m_buffer, m_impl->m_holder->m_buffer + m_impl->m_read_pos, len);
data/scim-1.4.18/src/scim_utility.cpp:161: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 utf8[6];
data/scim-1.4.18/src/scim_utility.cpp:194: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 utf8[6];
data/scim-1.4.18/src/scim_utility.cpp:257: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 utf8 [6];
data/scim-1.4.18/src/scim_utility.cpp:272: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 utf8 [6];
data/scim-1.4.18/src/scim_utility.cpp:410:5:  [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 wcbuf [2] = {0,0};
data/scim-1.4.18/src/scim_utility.cpp:590: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 uid_str [10];
data/scim-1.4.18/src/scim_utility.cpp:642: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).
    FILE *fp = fopen (filename.c_str (), "r");
data/scim-1.4.18/src/scim_utility.cpp:976: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 *new_argv [40];
data/scim-1.4.18/src/scim_utility.cpp:977: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 verbose_buf [10];
data/scim-1.4.18/src/scim_utility.cpp:1054: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 *new_argv [80];
data/scim-1.4.18/tests/scim_test_helper.cpp:215:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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 = new char * [4];
data/scim-1.4.18/tests/testsocketclient.cpp:85: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 [4096];
data/scim-1.4.18/tests/testsocketserver.cpp:41: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 buffer [32768];
data/scim-1.4.18/utils/scim_x11_utils.cpp:98: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 [32];
data/scim-1.4.18/utils/scim_x11_utils.cpp:134: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 [32];
data/scim-1.4.18/utils/scimstringview.c:2072: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 (string_view->text, text, new_nbytes);
data/scim-1.4.18/utils/scimtrayicon.c:390: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 buffer[256];
data/scim-1.4.18/utils/scimtrayicon.c:493: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 (&ev.data, message, 20);
data/scim-1.4.18/utils/scimtrayicon.c:497: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 (&ev.data, message, len);
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:581:46:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        context_scim->impl->is_on = _config->read (String (SCIM_CONFIG_FRONTEND_IM_OPENED_BY_DEFAULT), context_scim->impl->is_on);
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:764:54:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                context_scim->impl->is_on = _config->read (String (SCIM_CONFIG_FRONTEND_IM_OPENED_BY_DEFAULT), context_scim->impl->is_on);
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:2412:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        config->read (String (SCIM_CONFIG_HOTKEYS_FRONTEND_VALID_KEY_MASK),
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:2420:28:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _on_the_spot = config->read (String (SCIM_CONFIG_FRONTEND_ON_THE_SPOT), _on_the_spot);
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:2421:36:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _shared_input_method = config->read (String (SCIM_CONFIG_FRONTEND_SHARED_INPUT_METHOD), _shared_input_method);
data/scim-1.4.18/extras/gtk_immodule/gtkimcontextscim.cpp:2422:32:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    _use_key_snooper = config->read (String (SCIM_CONFIG_FRONTEND_GTK_IMMODULE_USE_KEY_SNOOPER), _use_key_snooper);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-accept-listener.cpp:109:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy (socket_addr.sun_path, socket_path, sizeof (socket_addr.sun_path) - 1);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-accept-listener.cpp:125:25:  [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 (50000);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-accept-listener.cpp:208:17:  [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 (50);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-client-listener.cpp:702:74:  [1] (buffer) strlen:
  Does not handle 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 *tmp_str = static_cast<char*> (alloca (sizeof (char) * (strlen (SCIM_BRIDGE_MESSAGE_COLOR) + 7)));
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-client-listener.cpp:705: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).
            char *color_str = tmp_str + sizeof (char) * strlen (SCIM_BRIDGE_MESSAGE_COLOR);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-output.cpp:50: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).
    const size_t format_len = strlen (format);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-output.cpp:60: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).
    const size_t format_len = strlen (format);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-panel-listener.cpp:185:13:  [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 (1000);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent-panel-listener.cpp:239: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 (500);
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent.cpp:472:17:  [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/scim-1.4.18/extras/immodules/agent/scim-bridge-agent.cpp:531:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        config->read (String (SCIM_CONFIG_HOTKEYS_FRONTEND_VALID_KEY_MASK),
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent.cpp:541:68:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ScimBridgeAgentIMContext::set_enabled_by_default (scim_config->read (String (SCIM_CONFIG_FRONTEND_IM_OPENED_BY_DEFAULT), ScimBridgeAgentIMContext::is_enabled_by_default ()));
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent.cpp:542:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ScimBridgeAgentIMContext::set_imengine_shared (scim_config->read (String (SCIM_CONFIG_FRONTEND_SHARED_INPUT_METHOD), ScimBridgeAgentIMContext::is_imengine_shared ()));
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent.cpp:543:69:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ScimBridgeAgentIMContext::set_on_the_spot_enabled (scim_config->read (String (SCIM_CONFIG_FRONTEND_ON_THE_SPOT), ScimBridgeAgentIMContext::is_on_the_spot_enabled ()));
data/scim-1.4.18/extras/immodules/agent/scim-bridge-agent.cpp:566:43:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        String tmp_hotkeys = scim_config->read (String (hotkey_list[i][1]), String (""));
data/scim-1.4.18/extras/immodules/agent/utils/scim-bridge-agent-panel-client.cpp:225: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 (100000);
data/scim-1.4.18/extras/immodules/agent/utils/scim-bridge-agent-panel-client.cpp:231:13:  [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/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-imcontext-clutter.c:121: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).
            focused_imcontext->preedit_string_capacity = strlen (preedit_string);
data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-imcontext-clutter.c:231: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).
        preedit_string_length = strlen (preedit_string);
data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-imcontext-clutter.c:308: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).
        commit_string_length = strlen (commit_string);
data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-imcontext-clutter.c:368:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (*string, begin_str_ptr, str_length);
data/scim-1.4.18/extras/immodules/client-clutter/scim-bridge-client-imcontext-clutter.c:713:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const size_t preedit_string_length = strlen (imcontext->preedit_string);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:32: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).
    const size_t str_length = strlen (string);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:47: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).
    const size_t str_length = strlen (string);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client-output.c:64: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).
        const size_t str_length = strlen (string);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client.c:468:78:  [1] (buffer) strlen:
  Does not handle 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 (attribute_value_str, SCIM_BRIDGE_MESSAGE_COLOR, strlen (SCIM_BRIDGE_MESSAGE_COLOR)) == 0) {
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client.c:469:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    const char *color_str = attribute_value_str + strlen (SCIM_BRIDGE_MESSAGE_COLOR);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client.c:470: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).
                    const size_t color_str_length = strlen (color_str);
data/scim-1.4.18/extras/immodules/client-common/scim-bridge-client.c:1090:17:  [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 (5000);
data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.c:264: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).
        preedit_string_length = strlen (preedit_string);
data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.c:313: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).
        preedit_string_length = strlen (imcontext->preedit_string);
data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.c:451: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).
        commit_string_length = strlen (commit_string);
data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.c:512:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (*string, begin_str_ptr, str_length);
data/scim-1.4.18/extras/immodules/client-gtk/scim-bridge-client-imcontext-gtk.c:832:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const size_t preedit_string_length = strlen (imcontext->preedit_string);
data/scim-1.4.18/extras/immodules/common/scim-bridge-display.c:63: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).
    const size_t str_length = strlen (src->name);
data/scim-1.4.18/extras/immodules/common/scim-bridge-display.c:133:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const size_t display_name_str_length = strlen (display_name);
data/scim-1.4.18/extras/immodules/common/scim-bridge-display.c:170:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    display->name = malloc (sizeof (char) * (strlen (display_name) + 1));
data/scim-1.4.18/extras/immodules/common/scim-bridge-message.c:47:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    message->header = malloc (sizeof (char) * (strlen (header) + 1));
data/scim-1.4.18/extras/immodules/common/scim-bridge-message.c:130:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const size_t argument_length = strlen (argument);
data/scim-1.4.18/extras/immodules/common/scim-bridge-messenger.c:182: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).
        const size_t str_length = strlen (str);
data/scim-1.4.18/extras/immodules/common/scim-bridge-path.h:32:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    (sizeof(*(su)) - sizeof((su)->sun_path) + strlen((su)->sun_path))
data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c:39: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).
    const size_t str_length = strlen (str);
data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c:225:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy (new_str_buffer, str_buffer, str_capacity + 1);
data/scim-1.4.18/extras/immodules/common/scim-bridge-string.c:269: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).
    return strlen (str);
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:557:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = _config->read (String (SCIM_CONFIG_PANEL_GTK_FONT),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:563:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = _config->read (String (SCIM_CONFIG_PANEL_GTK_COLOR_NORMAL_BG),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:571:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = _config->read (String (SCIM_CONFIG_PANEL_GTK_COLOR_NORMAL_TEXT),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:579:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = _config->read (String (SCIM_CONFIG_PANEL_GTK_COLOR_ACTIVE_BG),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:587:24:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        str = _config->read (String (SCIM_CONFIG_PANEL_GTK_COLOR_ACTIVE_TEXT),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:595:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        _toolbar_window_x = _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_POS_X),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:598:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        _toolbar_window_y = _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_POS_Y),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:602:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_DEFAULT_STICKED),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:606:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_LOOKUP_TABLE_VERTICAL),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:610:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_LOOKUP_TABLE_EMBEDDED),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:614:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_ALWAYS_SHOW),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:618:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_ALWAYS_HIDDEN),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:626:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_AUTO_SNAP),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:630:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_FACTORY_ICON),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:634:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_FACTORY_NAME),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:638:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_STICK_ICON),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:642:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_HELP_ICON),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:646:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_MENU_ICON),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:650:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_PROPERTY_LABEL),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:654:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_HIDE_TIMEOUT),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:659:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            _config->read (String (SCIM_CONFIG_PANEL_GTK_SHOW_TRAY_ICON),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:1406:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    pos_x = _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_POS_X),
data/scim-1.4.18/extras/panel/scim_panel_gtk.cpp:1408:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    pos_y = _config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_POS_Y),
data/scim-1.4.18/modules/Config/scim_simple_config.cpp:107:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SimpleConfig::read (const String& key, String *pStr) const
data/scim-1.4.18/modules/Config/scim_simple_config.cpp:130:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SimpleConfig::read (const String& key, int *pl) const
data/scim-1.4.18/modules/Config/scim_simple_config.cpp:153:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SimpleConfig::read (const String& key, double* val) const
data/scim-1.4.18/modules/Config/scim_simple_config.cpp:176:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SimpleConfig::read (const String& key, bool* val) const
data/scim-1.4.18/modules/Config/scim_simple_config.cpp:206:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SimpleConfig::read (const String& key, std::vector <String>* val) const
data/scim-1.4.18/modules/Config/scim_simple_config.cpp:230:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SimpleConfig::read (const String& key, std::vector <int>* val) const
data/scim-1.4.18/modules/Config/scim_simple_config.h:65:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, String *pStr) const;
data/scim-1.4.18/modules/Config/scim_simple_config.h:68:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, int *pl) const;
data/scim-1.4.18/modules/Config/scim_simple_config.h:71:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, double* val) const;
data/scim-1.4.18/modules/Config/scim_simple_config.h:74:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, bool* val) const;
data/scim-1.4.18/modules/Config/scim_simple_config.h:77:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, std::vector <String>* val) const;
data/scim-1.4.18/modules/Config/scim_simple_config.h:80:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, std::vector <int>* val) const;
data/scim-1.4.18/modules/Config/scim_socket_config.cpp:102:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SocketConfig::read (const String& key, String *pStr) const
data/scim-1.4.18/modules/Config/scim_socket_config.cpp:136:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SocketConfig::read (const String& key, int *pl) const
data/scim-1.4.18/modules/Config/scim_socket_config.cpp:172:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SocketConfig::read (const String& key, double* val) const
data/scim-1.4.18/modules/Config/scim_socket_config.cpp:208:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SocketConfig::read (const String& key, bool* val) const
data/scim-1.4.18/modules/Config/scim_socket_config.cpp:244:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SocketConfig::read (const String& key, std::vector <String>* val) const
data/scim-1.4.18/modules/Config/scim_socket_config.cpp:279:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
SocketConfig::read (const String& key, std::vector <int>* val) const
data/scim-1.4.18/modules/Config/scim_socket_config.cpp:591:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                if (read (String (SCIM_CONFIG_UPDATE_TIMESTAMP), &str)) {
data/scim-1.4.18/modules/Config/scim_socket_config.h:56:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, String *pStr) const;
data/scim-1.4.18/modules/Config/scim_socket_config.h:59:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, int *pl) const;
data/scim-1.4.18/modules/Config/scim_socket_config.h:62:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, double* val) const;
data/scim-1.4.18/modules/Config/scim_socket_config.h:65:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, bool* val) const;
data/scim-1.4.18/modules/Config/scim_socket_config.h:68:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, std::vector <String>* val) const;
data/scim-1.4.18/modules/Config/scim_socket_config.h:71:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, std::vector <int>* val) const;
data/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/IMdkit/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/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:348:39:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        m_config_readonly = m_config->read (String (SCIM_CONFIG_FRONTEND_SOCKET_CONFIG_READONLY), false);
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:350:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        max_clients = m_config->read (String (SCIM_CONFIG_FRONTEND_SOCKET_MAXCLIENTS), -1);
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:1188:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (m_config->read (key, &value)) {
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:1231:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (m_config->read (key, &value)) {
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:1274:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (m_config->read (key, &value)) {
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:1317:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (m_config->read (key, &value)) {
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:1364:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (m_config->read (key, &vec)) {
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:1406:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (m_config->read (key, &vec)) {
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:1471:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    m_config_readonly = config->read (String (SCIM_CONFIG_FRONTEND_SOCKET_CONFIG_READONLY), false);
data/scim-1.4.18/modules/FrontEnd/scim_socket_frontend.cpp:1472:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    max_clients = config->read (String (SCIM_CONFIG_FRONTEND_SOCKET_MAXCLIENTS), -1);
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:406:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        m_config->read (String (SCIM_CONFIG_FRONTEND_X11_SERVER_NAME),
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:410:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        m_config->read (String (SCIM_CONFIG_FRONTEND_X11_DYNAMIC),
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:601:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (m_config->read (String (SCIM_CONFIG_FRONTEND_ON_THE_SPOT), true) &&
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:602:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        m_config->read (String (SCIM_CONFIG_FRONTEND_X11_ONTHESPOT), true)) {
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:808:37:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ic->xims_on = m_config->read (String (SCIM_CONFIG_FRONTEND_IM_OPENED_BY_DEFAULT), ic->xims_on);
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:956:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ic->xims_on = m_config->read (String (SCIM_CONFIG_FRONTEND_IM_OPENED_BY_DEFAULT), ic->xims_on);
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:1347: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).
        text.length = strlen ((char*)tp.value);
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:1949:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        config->read (String (SCIM_CONFIG_HOTKEYS_FRONTEND_VALID_KEY_MASK),
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:1958:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        config->read (String (SCIM_CONFIG_FRONTEND_X11_BROKEN_WCHAR),
data/scim-1.4.18/modules/FrontEnd/scim_x11_frontend.cpp:1962:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        config->read (String (SCIM_CONFIG_FRONTEND_SHARED_INPUT_METHOD),
data/scim-1.4.18/modules/FrontEnd/scim_x11_ic.cpp:400:13:  [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.c_str (), base_len);
data/scim-1.4.18/modules/FrontEnd/scim_x11_ic.cpp:444:13:  [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.c_str (), base_len);
data/scim-1.4.18/modules/IMEngine/scim_rawcode_imengine.cpp:73:38:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            String locales = config->read (String (SCIM_CONFIG_IMENGINE_RAWCODE_LOCALES), String ("default"));
data/scim-1.4.18/modules/IMEngine/scim_rawcode_imengine.cpp:393: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 (property.substr (0, strlen (SCIM_PROP_RAWCODE_ENCODING)) == SCIM_PROP_RAWCODE_ENCODING) {
data/scim-1.4.18/modules/IMEngine/scim_rawcode_imengine.cpp:394:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        set_working_encoding (property.substr (strlen (SCIM_PROP_RAWCODE_ENCODING) + 1));
data/scim-1.4.18/modules/SetupUI/scim_frontend_setup.cpp:547:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                config->read (String (__config_keyboards [i].key),
data/scim-1.4.18/modules/SetupUI/scim_frontend_setup.cpp:552:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_FRONTEND_ON_THE_SPOT),
data/scim-1.4.18/modules/SetupUI/scim_frontend_setup.cpp:556:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_FRONTEND_SHARED_INPUT_METHOD),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:776:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_ALWAYS_HIDDEN),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:779:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_ALWAYS_SHOW),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:782:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_AUTO_SNAP),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:785:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_HIDE_TIMEOUT),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:788:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_FACTORY_ICON),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:791:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_FACTORY_NAME),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:794:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_STICK_ICON),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:797:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_MENU_ICON),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:800:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_HELP_ICON),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:803:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_TOOLBAR_SHOW_PROPERTY_LABEL),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:806:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_LOOKUP_TABLE_EMBEDDED),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:809:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_LOOKUP_TABLE_VERTICAL),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:812:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_DEFAULT_STICKED),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:815:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_SHOW_TRAY_ICON),
data/scim-1.4.18/modules/SetupUI/scim_panel_gtk_setup.cpp:818:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            config->read (String (SCIM_CONFIG_PANEL_GTK_FONT),
data/scim-1.4.18/src/scim_backend.cpp:195:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            def_uuid = m_config->read (String (SCIM_CONFIG_DEFAULT_IMENGINE_FACTORY) +
data/scim-1.4.18/src/scim_config_agent.cpp:296:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ok = config->read (key, &value);
data/scim-1.4.18/src/scim_config_agent.cpp:305:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ok = config->read (key, &intval);
data/scim-1.4.18/src/scim_config_agent.cpp:314:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ok = config->read (key, &doubleval);
data/scim-1.4.18/src/scim_config_agent.cpp:323:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ok = config->read (key, &boolval);
data/scim-1.4.18/src/scim_config_agent.cpp:332:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ok = config->read (key, &strlistval);
data/scim-1.4.18/src/scim_config_agent.cpp:341:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                ok = config->read (key, &intlistval);
data/scim-1.4.18/src/scim_config_base.cpp:74:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ConfigBase::read (const String& key, const String& defVal) const
data/scim-1.4.18/src/scim_config_base.cpp:77:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read (key, &tmp)) {
data/scim-1.4.18/src/scim_config_base.cpp:86:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ConfigBase::read (const String& key, int defVal) const
data/scim-1.4.18/src/scim_config_base.cpp:89:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read (key, &tmp)) {
data/scim-1.4.18/src/scim_config_base.cpp:98:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ConfigBase::read (const String& key, double defVal) const
data/scim-1.4.18/src/scim_config_base.cpp:101:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read (key, &tmp)) {
data/scim-1.4.18/src/scim_config_base.cpp:110:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ConfigBase::read (const String& key, bool defVal) const
data/scim-1.4.18/src/scim_config_base.cpp:113:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read (key, &tmp)) {
data/scim-1.4.18/src/scim_config_base.cpp:122:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ConfigBase::read (const String& key, const std::vector <String>& defVal) const
data/scim-1.4.18/src/scim_config_base.cpp:125:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read (key, &tmp)) {
data/scim-1.4.18/src/scim_config_base.cpp:134:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ConfigBase::read (const String& key, const std::vector <int>& defVal) const
data/scim-1.4.18/src/scim_config_base.cpp:137:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if (!read (key, &tmp)) {
data/scim-1.4.18/src/scim_config_base.cpp:205:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
DummyConfig::read (const String& key, String *pStr) const
data/scim-1.4.18/src/scim_config_base.cpp:212:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
DummyConfig::read (const String& key, int *pl) const
data/scim-1.4.18/src/scim_config_base.cpp:219:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
DummyConfig::read (const String& key, double* val) const
data/scim-1.4.18/src/scim_config_base.cpp:226:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
DummyConfig::read (const String& key, bool* val) const
data/scim-1.4.18/src/scim_config_base.cpp:233:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
DummyConfig::read (const String& key, std::vector <String>* val) const
data/scim-1.4.18/src/scim_config_base.cpp:240:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
DummyConfig::read (const String& key, std::vector <int>* val) const
data/scim-1.4.18/src/scim_config_base.h:134:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, String *ret) const = 0;
data/scim-1.4.18/src/scim_config_base.h:142:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, int *ret) const = 0;
data/scim-1.4.18/src/scim_config_base.h:150:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, double *ret) const = 0;
data/scim-1.4.18/src/scim_config_base.h:158:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, bool *ret) const = 0;
data/scim-1.4.18/src/scim_config_base.h:166:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, std::vector <String> *ret) const = 0;
data/scim-1.4.18/src/scim_config_base.h:174:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, std::vector <int> *ret) const = 0;
data/scim-1.4.18/src/scim_config_base.h:272:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    String read (const String& key, const String& defVal = String ()) const;
data/scim-1.4.18/src/scim_config_base.h:283:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read (const String& key, int defVal) const;
data/scim-1.4.18/src/scim_config_base.h:294:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    double read (const String& key, double defVal) const;
data/scim-1.4.18/src/scim_config_base.h:305:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    bool read (const String& key, bool defVal) const;
data/scim-1.4.18/src/scim_config_base.h:316:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::vector <String> read (const String& key, const std::vector <String>& defVal) const;
data/scim-1.4.18/src/scim_config_base.h:327:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    std::vector <int> read (const String& key, const std::vector <int>& defVal) const;
data/scim-1.4.18/src/scim_config_base.h:384:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, String *ret) const;
data/scim-1.4.18/src/scim_config_base.h:385:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, int *ret) const;
data/scim-1.4.18/src/scim_config_base.h:386:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, double *ret) const;
data/scim-1.4.18/src/scim_config_base.h:387:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, bool *ret) const;
data/scim-1.4.18/src/scim_config_base.h:388:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, std::vector <String> *ret) const;
data/scim-1.4.18/src/scim_config_base.h:389:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    virtual bool read (const String& key, std::vector <int> *ret) const;
data/scim-1.4.18/src/scim_filter_manager.cpp:166:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        scim_split_string_list (tmp, m_impl->m_config->read (String (SCIM_CONFIG_FILTER_FILTERED_IMENGINES_LIST), String ("")));
data/scim-1.4.18/src/scim_filter_manager.cpp:182:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        scim_split_string_list (tmp, m_impl->m_config->read (String (SCIM_CONFIG_FILTER_FILTERED_IMENGINES_LIST), String ("")));
data/scim-1.4.18/src/scim_filter_manager.cpp:187:60:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            scim_split_string_list (tmp, m_impl->m_config->read (String (SCIM_CONFIG_FILTER_FILTERED_IMENGINES) + String ("/") + uuid, String ("")));
data/scim-1.4.18/src/scim_filter_manager.cpp:213:65:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        scim_split_string_list (filtered_ims, m_impl->m_config->read (String (SCIM_CONFIG_FILTER_FILTERED_IMENGINES_LIST), String ("")));
data/scim-1.4.18/src/scim_filter_manager.cpp:233:58:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    scim_split_string_list (imengines, m_impl->m_config->read (String (SCIM_CONFIG_FILTER_FILTERED_IMENGINES_LIST), String ("")));
data/scim-1.4.18/src/scim_hotkey.cpp:182:44:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    scim_split_string_list (uuids, config->read (String (SCIM_CONFIG_HOTKEYS_IMENGINE_LIST), String ("")));
data/scim-1.4.18/src/scim_hotkey.cpp:190:56:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            if (scim_string_to_key_list (keys, config->read (String (SCIM_CONFIG_HOTKEYS_IMENGINE "/") + *uit, String ("")))) {
data/scim-1.4.18/src/scim_hotkey.cpp:368:52:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (scim_string_to_key_list (keys, config->read (String (__scim_frontend_hotkey_config_paths [i]), String (__scim_frontend_hotkey_defaults [i]))))
data/scim-1.4.18/src/scim_socket.cpp:192:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy (un->sun_path, real_addr.c_str (), sizeof (un->sun_path));
data/scim-1.4.18/src/scim_socket.cpp:323:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read (void *buf, size_t size) {
data/scim-1.4.18/src/scim_socket.cpp:330:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ret = ::read (m_id, buf, size);
data/scim-1.4.18/src/scim_socket.cpp:345:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            return read (buf, size);
data/scim-1.4.18/src/scim_socket.cpp:357:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ret = read (cbuf, size);
data/scim-1.4.18/src/scim_socket.cpp:696:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
Socket::read (void *buf, size_t size) const
data/scim-1.4.18/src/scim_socket.cpp:698:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return m_impl->read (buf, size);
data/scim-1.4.18/src/scim_socket.cpp:1150: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).
    if (env && strlen (env) > 0) {
data/scim-1.4.18/src/scim_socket.cpp:1154: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).
        if (env && strlen (env))
data/scim-1.4.18/src/scim_socket.cpp:1171: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).
    if (env && strlen (env) > 0) {
data/scim-1.4.18/src/scim_socket.cpp:1175: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).
        if (env && strlen (env))
data/scim-1.4.18/src/scim_socket.cpp:1192: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).
    if (env && strlen (env) > 0) {
data/scim-1.4.18/src/scim_socket.cpp:1196: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).
        if (env && strlen (env))
data/scim-1.4.18/src/scim_socket.cpp:1214: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).
    if (env && strlen (env) > 0) {
data/scim-1.4.18/src/scim_socket.cpp:1273: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).
    if (env && strlen (env) > 0) {
data/scim-1.4.18/src/scim_socket.cpp:1291: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).
    if (env && strlen (env))
data/scim-1.4.18/src/scim_socket.h:215:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    int read (void *buf, size_t size) const;
data/scim-1.4.18/src/scim_utility.cpp:165:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        is.read ((char*)(utf8+i), sizeof(unsigned char));
data/scim-1.4.18/src/scim_utility.cpp:241: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 (len < 0) len = strlen (str);
data/scim-1.4.18/src/scim_utility.cpp:851: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 (result->code, nlang.c_str (), strlen (result->code)) == 0 ||
data/scim-1.4.18/src/scim_utility.cpp:902: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 (result->code) < 5 && result->normalized)
data/scim-1.4.18/src/scim_utility.cpp:1122: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 (usec);
data/scim-1.4.18/tests/testiconvert.cpp:56: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 (to_utf8.convert (wcs, *ptr, std::strlen (*ptr))) {
data/scim-1.4.18/tests/testiconvert.cpp:79: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 (to_utf8.test_convert (*ptr, std::strlen (*ptr))) {
data/scim-1.4.18/tests/testpanel.cpp:94:4:  [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/scim-1.4.18/tests/testpanel.cpp:109:4:  [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/scim-1.4.18/tests/testsocketclient.cpp:87:41:  [1] (buffer) strlen:
  Does not handle 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 ((size = client.write (*ptr, std::strlen (*ptr))) > 0) {
data/scim-1.4.18/utils/scimstringview.c:2056: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).
  new_nbytes = strlen (text);
data/scim-1.4.18/utils/scimtrayicon.c:469: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).
        len = strlen (message);

ANALYSIS SUMMARY:

Hits = 431
Lines analyzed = 103564 in approximately 2.51 seconds (41217 lines/second)
Physical Source Lines of Code (SLOC) = 72746
Hits@level = [0]  74 [1] 241 [2] 100 [3]  32 [4]  57 [5]   1
Hits@level+ = [0+] 505 [1+] 431 [2+] 190 [3+]  90 [4+]  58 [5+]   1
Hits/KSLOC@level+ = [0+] 6.94196 [1+] 5.92472 [2+] 2.61183 [3+] 1.23718 [4+] 0.797295 [5+] 0.0137465
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.