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/profanity-0.9.5/apidocs/c/profapi.h
Examining data/profanity-0.9.5/apidocs/c/profhooks.h
Examining data/profanity-0.9.5/src/command/cmd_ac.c
Examining data/profanity-0.9.5/src/command/cmd_ac.h
Examining data/profanity-0.9.5/src/command/cmd_defs.c
Examining data/profanity-0.9.5/src/command/cmd_defs.h
Examining data/profanity-0.9.5/src/command/cmd_funcs.c
Examining data/profanity-0.9.5/src/command/cmd_funcs.h
Examining data/profanity-0.9.5/src/common.c
Examining data/profanity-0.9.5/src/common.h
Examining data/profanity-0.9.5/src/config/account.c
Examining data/profanity-0.9.5/src/config/account.h
Examining data/profanity-0.9.5/src/config/accounts.c
Examining data/profanity-0.9.5/src/config/accounts.h
Examining data/profanity-0.9.5/src/config/color.c
Examining data/profanity-0.9.5/src/config/color.h
Examining data/profanity-0.9.5/src/config/conflists.c
Examining data/profanity-0.9.5/src/config/conflists.h
Examining data/profanity-0.9.5/src/config/files.c
Examining data/profanity-0.9.5/src/config/files.h
Examining data/profanity-0.9.5/src/config/preferences.c
Examining data/profanity-0.9.5/src/config/preferences.h
Examining data/profanity-0.9.5/src/config/scripts.c
Examining data/profanity-0.9.5/src/config/scripts.h
Examining data/profanity-0.9.5/src/config/theme.c
Examining data/profanity-0.9.5/src/config/theme.h
Examining data/profanity-0.9.5/src/config/tlscerts.c
Examining data/profanity-0.9.5/src/config/tlscerts.h
Examining data/profanity-0.9.5/src/database.c
Examining data/profanity-0.9.5/src/database.h
Examining data/profanity-0.9.5/src/event/client_events.c
Examining data/profanity-0.9.5/src/event/client_events.h
Examining data/profanity-0.9.5/src/event/common.c
Examining data/profanity-0.9.5/src/event/common.h
Examining data/profanity-0.9.5/src/event/server_events.c
Examining data/profanity-0.9.5/src/event/server_events.h
Examining data/profanity-0.9.5/src/log.c
Examining data/profanity-0.9.5/src/log.h
Examining data/profanity-0.9.5/src/main.c
Examining data/profanity-0.9.5/src/omemo/crypto.c
Examining data/profanity-0.9.5/src/omemo/crypto.h
Examining data/profanity-0.9.5/src/omemo/omemo.c
Examining data/profanity-0.9.5/src/omemo/omemo.h
Examining data/profanity-0.9.5/src/omemo/store.c
Examining data/profanity-0.9.5/src/omemo/store.h
Examining data/profanity-0.9.5/src/otr/otr.c
Examining data/profanity-0.9.5/src/otr/otr.h
Examining data/profanity-0.9.5/src/otr/otrlib.h
Examining data/profanity-0.9.5/src/otr/otrlibv3.c
Examining data/profanity-0.9.5/src/otr/otrlibv4.c
Examining data/profanity-0.9.5/src/pgp/gpg.c
Examining data/profanity-0.9.5/src/pgp/gpg.h
Examining data/profanity-0.9.5/src/plugins/api.c
Examining data/profanity-0.9.5/src/plugins/api.h
Examining data/profanity-0.9.5/src/plugins/autocompleters.c
Examining data/profanity-0.9.5/src/plugins/autocompleters.h
Examining data/profanity-0.9.5/src/plugins/c_api.c
Examining data/profanity-0.9.5/src/plugins/c_api.h
Examining data/profanity-0.9.5/src/plugins/c_plugins.c
Examining data/profanity-0.9.5/src/plugins/c_plugins.h
Examining data/profanity-0.9.5/src/plugins/callbacks.c
Examining data/profanity-0.9.5/src/plugins/callbacks.h
Examining data/profanity-0.9.5/src/plugins/disco.c
Examining data/profanity-0.9.5/src/plugins/disco.h
Examining data/profanity-0.9.5/src/plugins/plugins.c
Examining data/profanity-0.9.5/src/plugins/plugins.h
Examining data/profanity-0.9.5/src/plugins/profapi.c
Examining data/profanity-0.9.5/src/plugins/profapi.h
Examining data/profanity-0.9.5/src/plugins/python_api.c
Examining data/profanity-0.9.5/src/plugins/python_api.h
Examining data/profanity-0.9.5/src/plugins/python_plugins.c
Examining data/profanity-0.9.5/src/plugins/python_plugins.h
Examining data/profanity-0.9.5/src/plugins/settings.c
Examining data/profanity-0.9.5/src/plugins/settings.h
Examining data/profanity-0.9.5/src/plugins/themes.c
Examining data/profanity-0.9.5/src/plugins/themes.h
Examining data/profanity-0.9.5/src/profanity.c
Examining data/profanity-0.9.5/src/profanity.h
Examining data/profanity-0.9.5/src/tools/autocomplete.c
Examining data/profanity-0.9.5/src/tools/autocomplete.h
Examining data/profanity-0.9.5/src/tools/bookmark_ignore.c
Examining data/profanity-0.9.5/src/tools/bookmark_ignore.h
Examining data/profanity-0.9.5/src/tools/clipboard.c
Examining data/profanity-0.9.5/src/tools/clipboard.h
Examining data/profanity-0.9.5/src/tools/http_upload.c
Examining data/profanity-0.9.5/src/tools/http_upload.h
Examining data/profanity-0.9.5/src/tools/parser.c
Examining data/profanity-0.9.5/src/tools/parser.h
Examining data/profanity-0.9.5/src/tools/tinyurl.c
Examining data/profanity-0.9.5/src/tools/tinyurl.h
Examining data/profanity-0.9.5/src/ui/buffer.c
Examining data/profanity-0.9.5/src/ui/buffer.h
Examining data/profanity-0.9.5/src/ui/chatwin.c
Examining data/profanity-0.9.5/src/ui/confwin.c
Examining data/profanity-0.9.5/src/ui/console.c
Examining data/profanity-0.9.5/src/ui/core.c
Examining data/profanity-0.9.5/src/ui/inputwin.c
Examining data/profanity-0.9.5/src/ui/inputwin.h
Examining data/profanity-0.9.5/src/ui/mucwin.c
Examining data/profanity-0.9.5/src/ui/notifier.c
Examining data/profanity-0.9.5/src/ui/occupantswin.c
Examining data/profanity-0.9.5/src/ui/privwin.c
Examining data/profanity-0.9.5/src/ui/rosterwin.c
Examining data/profanity-0.9.5/src/ui/screen.c
Examining data/profanity-0.9.5/src/ui/screen.h
Examining data/profanity-0.9.5/src/ui/statusbar.c
Examining data/profanity-0.9.5/src/ui/statusbar.h
Examining data/profanity-0.9.5/src/ui/titlebar.c
Examining data/profanity-0.9.5/src/ui/titlebar.h
Examining data/profanity-0.9.5/src/ui/tray.c
Examining data/profanity-0.9.5/src/ui/tray.h
Examining data/profanity-0.9.5/src/ui/ui.h
Examining data/profanity-0.9.5/src/ui/win_types.h
Examining data/profanity-0.9.5/src/ui/window.c
Examining data/profanity-0.9.5/src/ui/window.h
Examining data/profanity-0.9.5/src/ui/window_list.c
Examining data/profanity-0.9.5/src/ui/window_list.h
Examining data/profanity-0.9.5/src/ui/xmlwin.c
Examining data/profanity-0.9.5/src/xmpp/avatar.c
Examining data/profanity-0.9.5/src/xmpp/avatar.h
Examining data/profanity-0.9.5/src/xmpp/blocking.c
Examining data/profanity-0.9.5/src/xmpp/blocking.h
Examining data/profanity-0.9.5/src/xmpp/bookmark.c
Examining data/profanity-0.9.5/src/xmpp/bookmark.h
Examining data/profanity-0.9.5/src/xmpp/capabilities.c
Examining data/profanity-0.9.5/src/xmpp/capabilities.h
Examining data/profanity-0.9.5/src/xmpp/chat_session.c
Examining data/profanity-0.9.5/src/xmpp/chat_session.h
Examining data/profanity-0.9.5/src/xmpp/chat_state.c
Examining data/profanity-0.9.5/src/xmpp/chat_state.h
Examining data/profanity-0.9.5/src/xmpp/connection.c
Examining data/profanity-0.9.5/src/xmpp/connection.h
Examining data/profanity-0.9.5/src/xmpp/contact.c
Examining data/profanity-0.9.5/src/xmpp/contact.h
Examining data/profanity-0.9.5/src/xmpp/form.c
Examining data/profanity-0.9.5/src/xmpp/form.h
Examining data/profanity-0.9.5/src/xmpp/iq.c
Examining data/profanity-0.9.5/src/xmpp/iq.h
Examining data/profanity-0.9.5/src/xmpp/jid.c
Examining data/profanity-0.9.5/src/xmpp/jid.h
Examining data/profanity-0.9.5/src/xmpp/message.c
Examining data/profanity-0.9.5/src/xmpp/message.h
Examining data/profanity-0.9.5/src/xmpp/muc.c
Examining data/profanity-0.9.5/src/xmpp/muc.h
Examining data/profanity-0.9.5/src/xmpp/omemo.c
Examining data/profanity-0.9.5/src/xmpp/omemo.h
Examining data/profanity-0.9.5/src/xmpp/presence.c
Examining data/profanity-0.9.5/src/xmpp/presence.h
Examining data/profanity-0.9.5/src/xmpp/resource.c
Examining data/profanity-0.9.5/src/xmpp/resource.h
Examining data/profanity-0.9.5/src/xmpp/roster.c
Examining data/profanity-0.9.5/src/xmpp/roster.h
Examining data/profanity-0.9.5/src/xmpp/roster_list.c
Examining data/profanity-0.9.5/src/xmpp/roster_list.h
Examining data/profanity-0.9.5/src/xmpp/session.c
Examining data/profanity-0.9.5/src/xmpp/session.h
Examining data/profanity-0.9.5/src/xmpp/stanza.c
Examining data/profanity-0.9.5/src/xmpp/stanza.h
Examining data/profanity-0.9.5/src/xmpp/xmpp.h
Examining data/profanity-0.9.5/tests/functionaltests/functionaltests.c
Examining data/profanity-0.9.5/tests/functionaltests/proftest.c
Examining data/profanity-0.9.5/tests/functionaltests/proftest.h
Examining data/profanity-0.9.5/tests/functionaltests/test_carbons.c
Examining data/profanity-0.9.5/tests/functionaltests/test_carbons.h
Examining data/profanity-0.9.5/tests/functionaltests/test_chat_session.c
Examining data/profanity-0.9.5/tests/functionaltests/test_chat_session.h
Examining data/profanity-0.9.5/tests/functionaltests/test_connect.c
Examining data/profanity-0.9.5/tests/functionaltests/test_connect.h
Examining data/profanity-0.9.5/tests/functionaltests/test_disconnect.c
Examining data/profanity-0.9.5/tests/functionaltests/test_disconnect.h
Examining data/profanity-0.9.5/tests/functionaltests/test_message.c
Examining data/profanity-0.9.5/tests/functionaltests/test_message.h
Examining data/profanity-0.9.5/tests/functionaltests/test_muc.c
Examining data/profanity-0.9.5/tests/functionaltests/test_muc.h
Examining data/profanity-0.9.5/tests/functionaltests/test_ping.c
Examining data/profanity-0.9.5/tests/functionaltests/test_ping.h
Examining data/profanity-0.9.5/tests/functionaltests/test_presence.c
Examining data/profanity-0.9.5/tests/functionaltests/test_presence.h
Examining data/profanity-0.9.5/tests/functionaltests/test_receipts.c
Examining data/profanity-0.9.5/tests/functionaltests/test_receipts.h
Examining data/profanity-0.9.5/tests/functionaltests/test_rooms.c
Examining data/profanity-0.9.5/tests/functionaltests/test_rooms.h
Examining data/profanity-0.9.5/tests/functionaltests/test_roster.c
Examining data/profanity-0.9.5/tests/functionaltests/test_roster.h
Examining data/profanity-0.9.5/tests/functionaltests/test_software.c
Examining data/profanity-0.9.5/tests/functionaltests/test_software.h
Examining data/profanity-0.9.5/tests/unittests/config/stub_accounts.c
Examining data/profanity-0.9.5/tests/unittests/database/stub_database.c
Examining data/profanity-0.9.5/tests/unittests/helpers.c
Examining data/profanity-0.9.5/tests/unittests/helpers.h
Examining data/profanity-0.9.5/tests/unittests/log/stub_log.c
Examining data/profanity-0.9.5/tests/unittests/omemo/stub_omemo.c
Examining data/profanity-0.9.5/tests/unittests/otr/stub_otr.c
Examining data/profanity-0.9.5/tests/unittests/pgp/stub_gpg.c
Examining data/profanity-0.9.5/tests/unittests/test_autocomplete.c
Examining data/profanity-0.9.5/tests/unittests/test_autocomplete.h
Examining data/profanity-0.9.5/tests/unittests/test_callbacks.c
Examining data/profanity-0.9.5/tests/unittests/test_callbacks.h
Examining data/profanity-0.9.5/tests/unittests/test_chat_session.c
Examining data/profanity-0.9.5/tests/unittests/test_chat_session.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_account.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_account.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_alias.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_alias.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_bookmark.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_bookmark.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_connect.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_connect.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_disconnect.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_disconnect.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_join.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_join.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_otr.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_otr.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_pgp.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_pgp.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_presence.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_presence.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_rooms.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_rooms.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_roster.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_roster.h
Examining data/profanity-0.9.5/tests/unittests/test_cmd_sub.c
Examining data/profanity-0.9.5/tests/unittests/test_cmd_sub.h
Examining data/profanity-0.9.5/tests/unittests/test_common.c
Examining data/profanity-0.9.5/tests/unittests/test_common.h
Examining data/profanity-0.9.5/tests/unittests/test_contact.c
Examining data/profanity-0.9.5/tests/unittests/test_contact.h
Examining data/profanity-0.9.5/tests/unittests/test_form.c
Examining data/profanity-0.9.5/tests/unittests/test_form.h
Examining data/profanity-0.9.5/tests/unittests/test_jid.c
Examining data/profanity-0.9.5/tests/unittests/test_jid.h
Examining data/profanity-0.9.5/tests/unittests/test_keyhandlers.c
Examining data/profanity-0.9.5/tests/unittests/test_keyhandlers.h
Examining data/profanity-0.9.5/tests/unittests/test_muc.c
Examining data/profanity-0.9.5/tests/unittests/test_muc.h
Examining data/profanity-0.9.5/tests/unittests/test_parser.c
Examining data/profanity-0.9.5/tests/unittests/test_parser.h
Examining data/profanity-0.9.5/tests/unittests/test_plugins_disco.c
Examining data/profanity-0.9.5/tests/unittests/test_plugins_disco.h
Examining data/profanity-0.9.5/tests/unittests/test_preferences.c
Examining data/profanity-0.9.5/tests/unittests/test_preferences.h
Examining data/profanity-0.9.5/tests/unittests/test_roster_list.c
Examining data/profanity-0.9.5/tests/unittests/test_roster_list.h
Examining data/profanity-0.9.5/tests/unittests/test_server_events.c
Examining data/profanity-0.9.5/tests/unittests/test_server_events.h
Examining data/profanity-0.9.5/tests/unittests/tools/stub_http_upload.c
Examining data/profanity-0.9.5/tests/unittests/ui/stub_ui.c
Examining data/profanity-0.9.5/tests/unittests/ui/stub_ui.h
Examining data/profanity-0.9.5/tests/unittests/xmpp/stub_avatar.c
Examining data/profanity-0.9.5/tests/unittests/xmpp/stub_message.c
Examining data/profanity-0.9.5/tests/unittests/xmpp/stub_xmpp.c
Examining data/profanity-0.9.5/tests/unittests/unittests.c

FINAL RESULTS:

data/profanity-0.9.5/src/command/cmd_funcs.c:1651:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(cmd_with_slash, "/%s", cmd);
data/profanity-0.9.5/src/command/cmd_funcs.c:4931: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(filename, R_OK) != 0) {
data/profanity-0.9.5/src/command/cmd_funcs.c:7036: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(path, R_OK) != 0) {
data/profanity-0.9.5/src/tools/autocomplete.c:308:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(command_cpy, "%s ", command);
data/profanity-0.9.5/src/tools/autocomplete.c:339:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(command_cpy, "%s ", command);
data/profanity-0.9.5/src/ui/core.c:1087:18:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int result = system("/bin/echo -ne \"\033]0;Thanks for using Profanity\007\"");
data/profanity-0.9.5/src/ui/core.c:1116:19:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
        int res = system(new_win_title);
data/profanity-0.9.5/src/ui/notifier.c:81:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(message, "%s: typing...", name);
data/profanity-0.9.5/src/ui/notifier.c:294:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int res = system(notify_command->str);
data/profanity-0.9.5/tests/functionaltests/proftest.c:118:15:  [4] (shell) system:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    int res = system("rm -rf ./tests/functionaltests/files");
data/profanity-0.9.5/tests/unittests/ui/stub_ui.c:111:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(output, sizeof(output), msg, args);
data/profanity-0.9.5/tests/unittests/ui/stub_ui.c:122:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(output, sizeof(output), msg, args);
data/profanity-0.9.5/tests/unittests/ui/stub_ui.c:319:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(output, sizeof(output), msg, args);
data/profanity-0.9.5/tests/unittests/ui/stub_ui.c:355:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(output, sizeof(output), cmd, args);
data/profanity-0.9.5/tests/unittests/ui/stub_ui.c:542:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(output, sizeof(output), message, args);
data/profanity-0.9.5/src/command/cmd_ac.c:1530:40:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (asprintf(&tmp, "%s/%sfoo", getenv("HOME"), inpcp+2) == -1) {
data/profanity-0.9.5/src/command/cmd_ac.c:1534: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.
        output_off = strlen(getenv("HOME"))+1;
data/profanity-0.9.5/src/command/cmd_funcs.c:1109: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.
            fname = g_string_append(fname, getenv("HOME"));
data/profanity-0.9.5/src/command/cmd_funcs.c:4871: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.
        if (asprintf(&filename, "%s/%s", getenv("HOME"), filename+2) == -1) {
data/profanity-0.9.5/src/command/cmd_funcs.c:5181:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *lang = getenv("LANG");
data/profanity-0.9.5/src/command/cmd_funcs.c:6917: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.
            if (asprintf(&path, "%s/%s", getenv("HOME"), path+2) == -1) {
data/profanity-0.9.5/src/command/cmd_funcs.c:6954:38:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (asprintf(&path, "%s/%s", getenv("HOME"), path+2) == -1) {
data/profanity-0.9.5/src/command/cmd_funcs.c:7029:38:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        if (asprintf(&path, "%s/%s", getenv("HOME"), path+2) == -1) {
data/profanity-0.9.5/src/common.c:466:28:  [3] (random) g_rand_int_range:
  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.
        rand[i] = alphabet[g_rand_int_range(prng, 0, sizeof(alphabet))];
data/profanity-0.9.5/src/config/files.c:173:34:  [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.
    gchar *xdg_config_home_env = getenv("XDG_CONFIG_HOME");
data/profanity-0.9.5/src/config/files.c:184:46:  [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.
        GString *default_path = g_string_new(getenv("HOME"));
data/profanity-0.9.5/src/config/files.c:196:32:  [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.
    gchar *xdg_data_home_env = getenv("XDG_DATA_HOME");
data/profanity-0.9.5/src/config/files.c:207:46:  [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.
        GString *default_path = g_string_new(getenv("HOME"));
data/profanity-0.9.5/src/ui/notifier.c:281:23:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *term_name = getenv("TERM_PROGRAM");
data/profanity-0.9.5/tests/functionaltests/proftest.c:149:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    config_orig = getenv("XDG_CONFIG_HOME");
data/profanity-0.9.5/tests/functionaltests/proftest.c:150: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.
    data_orig = getenv("XDG_DATA_HOME");
data/profanity-0.9.5/tests/unittests/unittests.c:45:18:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *lang = getenv("LANG");
data/profanity-0.9.5/src/command/cmd_ac.c:1756: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 parsed[len+1];
data/profanity-0.9.5/src/command/cmd_defs.c:2729:26:  [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 *toc_fragment = fopen("toc_fragment.html", "w");
data/profanity-0.9.5/src/command/cmd_defs.c:2730:27:  [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 *main_fragment = fopen("main_fragment.html", "w");
data/profanity-0.9.5/src/command/cmd_funcs.c:1115:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        fd = open(fname->str, O_WRONLY | O_CREAT, 00600);
data/profanity-0.9.5/src/command/cmd_funcs.c:1319:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int source_win = atoi(args[1]);
data/profanity-0.9.5/src/command/cmd_funcs.c:1320:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int target_win = atoi(args[2]);
data/profanity-0.9.5/src/command/cmd_funcs.c:1407:21:  [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).
            index = atoi(args[0]);
data/profanity-0.9.5/src/command/cmd_funcs.c:1495: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).
        int num = atoi(args[0]);
data/profanity-0.9.5/src/command/cmd_funcs.c:1650: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 cmd_with_slash[1 + strlen(cmd) + 1];
data/profanity-0.9.5/src/command/cmd_funcs.c:5573: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).
    gint period = atoi(value);
data/profanity-0.9.5/src/command/cmd_funcs.c:5831:27:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
            gint period = atoi(args[1]);
data/profanity-0.9.5/src/common.c:153: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 ( newstr, oldstr, tok - oldstr );
data/profanity-0.9.5/src/common.c:154: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 ( newstr + (tok - oldstr), replacement, strlen ( replacement ) );
data/profanity-0.9.5/src/common.c:155: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 ( newstr + (tok - oldstr) + strlen( replacement ),
data/profanity-0.9.5/src/common.c: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( &( mem->buffer[ mem->size ] ), ptr, realsize );
data/profanity-0.9.5/src/config/color.c:358:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char name[32] = {0};
data/profanity-0.9.5/src/config/color.c:371: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(name, col_name, n);
data/profanity-0.9.5/src/config/preferences.c:810:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[2];
data/profanity-0.9.5/src/config/preferences.c:863:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[2];
data/profanity-0.9.5/src/config/preferences.c: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 str[2];
data/profanity-0.9.5/src/config/preferences.c:1008:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[2];
data/profanity-0.9.5/src/config/preferences.c:1040:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[2];
data/profanity-0.9.5/src/config/preferences.c:1072:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[2];
data/profanity-0.9.5/src/config/preferences.c:1104:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[2];
data/profanity-0.9.5/src/config/preferences.c:1136:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[2];
data/profanity-0.9.5/src/config/preferences.c:1230:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char str[2];
data/profanity-0.9.5/src/log.c:155:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    logp = fopen(lf, "a");
data/profanity-0.9.5/src/log.c:481:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *chatlogp = fopen(dated_log->filename, "a");
data/profanity-0.9.5/src/log.c:595:25:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *grpchatlogp = fopen(dated_log->filename, "a");
data/profanity-0.9.5/src/omemo/crypto.c:115: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 out[mac_len];
data/profanity-0.9.5/src/omemo/crypto.c:162: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 out[64];
data/profanity-0.9.5/src/omemo/crypto.c:222: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(padded_plaintext, plaintext, plaintext_len);
data/profanity-0.9.5/src/omemo/omemo.c:453: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(*output, signal_buffer_data(buffer), *length);
data/profanity-0.9.5/src/omemo/omemo.c:473: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(*output, signal_buffer_data(buffer), *length);
data/profanity-0.9.5/src/omemo/omemo.c:490: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(*output, session_signed_pre_key_get_signature(signed_pre_key), *length);
data/profanity-0.9.5/src/omemo/omemo.c:514: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(prekey_value, signal_buffer_data(public_key), length);
data/profanity-0.9.5/src/omemo/omemo.c:703: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(key_tag, key, AES128_GCM_KEY_LENGTH);
data/profanity-0.9.5/src/omemo/omemo.c:704: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(key_tag + AES128_GCM_KEY_LENGTH, tag, AES128_GCM_TAG_LENGTH);
data/profanity-0.9.5/src/omemo/omemo.c:763: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(key->data, signal_buffer_data(buffer), key->length);
data/profanity-0.9.5/src/omemo/omemo.c:801: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(key->data, signal_buffer_data(buffer), key->length);
data/profanity-0.9.5/src/otr/otr.c:655: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 fingerprint[45];
data/profanity-0.9.5/src/otr/otr.c:669: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 readable[45];
data/profanity-0.9.5/src/plugins/python_api.c:150: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 *c_synopsis[len == 0 ? 0 : len+1];
data/profanity-0.9.5/src/plugins/python_api.c:160: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 *c_arguments[args_len == 0 ? 0 : args_len+1][2];
data/profanity-0.9.5/src/plugins/python_api.c:180: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 *c_examples[len == 0 ? 0 : len+1];
data/profanity-0.9.5/src/plugins/python_api.c:255:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char *c_items[len];
data/profanity-0.9.5/src/plugins/python_api.c:295: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 *c_items[len];
data/profanity-0.9.5/src/tools/autocomplete.c:307: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 command_cpy[strlen(command) + 2];
data/profanity-0.9.5/src/tools/autocomplete.c:314: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 prefix[inp_len];
data/profanity-0.9.5/src/tools/autocomplete.c:344: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 prefix[inp_len];
data/profanity-0.9.5/src/tools/http_upload.c:123: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( &( mem->buffer[ mem->size ] ), ptr, realsize );
data/profanity-0.9.5/src/tools/http_upload.c:189: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).
    if (!(fd = fopen(upload->filename, "rb"))) {
data/profanity-0.9.5/src/tools/http_upload.c:309:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char file_header[FILE_HEADER_BYTES];
data/profanity-0.9.5/src/tools/http_upload.c:311: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).
    if (!(fd = fopen(file_name, "rb"))) {
data/profanity-0.9.5/src/tools/tinyurl.c:96: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( &( mem->buffer[ mem->size ] ), ptr, realsize );
data/profanity-0.9.5/src/ui/core.c:1094: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_win_title[100];
data/profanity-0.9.5/src/ui/inputwin.c:141:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    discard = fopen("/dev/null", "a");
data/profanity-0.9.5/src/ui/inputwin.c:349: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 bytes[MB_CUR_MAX+1];
data/profanity-0.9.5/src/ui/mucwin.c:472: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 message_section[strlen(message) + 1];
data/profanity-0.9.5/src/ui/mucwin.c:481: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 trigger_section[first_trigger_len + 1];
data/profanity-0.9.5/src/ui/notifier.c:80: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 message[strlen(name) + 1 + 11];
data/profanity-0.9.5/src/ui/notifier.c:169:13:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if (open > 0) {
data/profanity-0.9.5/src/ui/notifier.c:176:65:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
                g_string_append_printf(text, "%d room invites", open);
data/profanity-0.9.5/src/ui/notifier.c:180:34:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            if ((unread > 0) || (open > 0)) {
data/profanity-0.9.5/src/ui/notifier.c:190:42:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        if ((donotify && unread > 0) || (open > 0) || (subs > 0)) {
data/profanity-0.9.5/src/ui/notifier.c:244:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(nid.szTip, "Tray Icon");
data/profanity-0.9.5/src/ui/notifier.c:250:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(nid.szInfoTitle, "Profanity"); // Title
data/profanity-0.9.5/src/xmpp/avatar.c:94:47:  [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).
avatar_get_by_nick(const char* nick, gboolean open)
data/profanity-0.9.5/src/xmpp/avatar.c:105:9:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if (open) {
data/profanity-0.9.5/src/xmpp/avatar.h:42:56:  [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).
gboolean avatar_get_by_nick(const char* nick, gboolean open);
data/profanity-0.9.5/src/xmpp/iq.c:1714: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 str[50];
data/profanity-0.9.5/src/xmpp/iq.c:1715:9:  [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", idls_secs);
data/profanity-0.9.5/src/xmpp/iq.c:2230: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).
    int seconds = atoi(seconds_str);
data/profanity-0.9.5/src/xmpp/stanza.c:1733:18:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    int result = atoi(seconds_str);
data/profanity-0.9.5/src/xmpp/stanza.c:2006: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 pri_str[10];
data/profanity-0.9.5/src/xmpp/stanza.c:2065: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 idle_str[10];
data/profanity-0.9.5/src/xmpp/stanza.c:2213:32:  [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).
            result->priority = atoi(priority_str);
data/profanity-0.9.5/tests/unittests/helpers.c:46:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *f = fopen("./tests/files/xdg_config_home/profanity/profrc", "ab+");
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:14:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char line[INP_WIN_MAX];
data/profanity-0.9.5/tests/unittests/ui/stub_ui.c:19:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char output[256];
data/profanity-0.9.5/src/command/cmd_ac.c:1143:64:  [1] (buffer) strlen:
  Does not handle 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(input, "/", 1) == 0) && (!str_contains(input, strlen(input), ' '))) {
data/profanity-0.9.5/src/command/cmd_ac.c:1510:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *inpcp = (char*)input + strlen(startstr);
data/profanity-0.9.5/src/command/cmd_ac.c:1534: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).
        output_off = strlen(getenv("HOME"))+1;
data/profanity-0.9.5/src/command/cmd_ac.c:1755:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(input);
data/profanity-0.9.5/src/command/cmd_funcs.c:128:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(inp) == 0) {
data/profanity-0.9.5/src/command/cmd_funcs.c:1077:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(str);
data/profanity-0.9.5/src/command/cmd_funcs.c:1081: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).
    for (; i < strlen(str); i++) {
data/profanity-0.9.5/src/command/cmd_funcs.c:1124:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (-1 == write(fd, "jid,name\n", strlen("jid,name\n"))) goto write_error;
data/profanity-0.9.5/src/command/cmd_funcs.c:1399:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        for (i = 0; i < strlen(args[0]); i++) {
data/profanity-0.9.5/src/command/cmd_funcs.c:1487: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).
    for (i = 0; i < strlen(args[0]); i++) {
data/profanity-0.9.5/src/command/cmd_funcs.c:1521:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        int len = strlen(cmd);
data/profanity-0.9.5/src/command/cmd_funcs.c:1650: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).
        char cmd_with_slash[1 + strlen(cmd) + 1];
data/profanity-0.9.5/src/command/cmd_funcs.c:2585: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).
        cons_show("Roster%s%s %s (was %s)", strlen(pref_str) == 0 ? "" : " ", pref_str,
data/profanity-0.9.5/src/command/cmd_funcs.c:3825:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                if (strlen(value) < 4) {
data/profanity-0.9.5/src/command/cmd_funcs.c:6782:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (args[1] == NULL || strlen(args[1]) == 0) {
data/profanity-0.9.5/src/command/cmd_funcs.c:8567:44:  [1] (buffer) strlen:
  Does not handle 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 *unformatted_fingerprint = malloc(strlen(fingerprint));
data/profanity-0.9.5/src/command/cmd_funcs.c:8636:44:  [1] (buffer) strlen:
  Does not handle 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 *unformatted_fingerprint = malloc(strlen(fingerprint));
data/profanity-0.9.5/src/command/cmd_funcs.c:8866: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).
        } else if (strlen(args[1]) != 1) {
data/profanity-0.9.5/src/common.c:95: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).
    for (i = 1; i <= strlen(dir); i++) {
data/profanity-0.9.5/src/common.c:145:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        newstr = malloc ( strlen ( oldstr ) - strlen ( substr ) +
data/profanity-0.9.5/src/common.c:145:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        newstr = malloc ( strlen ( oldstr ) - strlen ( substr ) +
data/profanity-0.9.5/src/common.c:146:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen ( replacement ) + 1 );
data/profanity-0.9.5/src/common.c:154:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memcpy ( newstr + (tok - oldstr), replacement, strlen ( replacement ) );
data/profanity-0.9.5/src/common.c:155:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memcpy ( newstr + (tok - oldstr) + strlen( replacement ),
data/profanity-0.9.5/src/common.c:156:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            tok + strlen ( substr ),
data/profanity-0.9.5/src/common.c:157:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen ( oldstr ) - strlen ( substr ) - ( tok - oldstr ) );
data/profanity-0.9.5/src/common.c:157: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).
            strlen ( oldstr ) - strlen ( substr ) - ( tok - oldstr ) );
data/profanity-0.9.5/src/common.c:158:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memset ( newstr + strlen ( oldstr ) - strlen ( substr ) +
data/profanity-0.9.5/src/common.c:158:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        memset ( newstr + strlen ( oldstr ) - strlen ( substr ) +
data/profanity-0.9.5/src/common.c:159:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            strlen ( replacement ) , 0, 1 );
data/profanity-0.9.5/src/common.c:161:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        head = newstr + (tok - oldstr) + strlen( replacement );
data/profanity-0.9.5/src/common.c:381:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            gchar *haystack_after_ch = haystack_curr + strlen(needle);
data/profanity-0.9.5/src/common.c:547:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (stderr_str && strlen(stderr_str)) {
data/profanity-0.9.5/src/config/color.c:397: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).
    g_checksum_update(cs, (guint8*)str, strlen(str));
data/profanity-0.9.5/src/config/color.c:507:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        bg = find_col(bkgnd, strlen(bkgnd));
data/profanity-0.9.5/src/config/color.c:532:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bg = find_col(sep+1, strlen(sep));
data/profanity-0.9.5/src/config/scripts.c:113:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read;
data/profanity-0.9.5/src/config/scripts.c:118:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            result = g_slist_append(result, g_strndup(line, strlen(line) -1));
data/profanity-0.9.5/src/config/scripts.c:150:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    ssize_t read;
data/profanity-0.9.5/src/config/theme.c:405:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ch && strlen(ch) > 0) {
data/profanity-0.9.5/src/config/theme.c:413:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ch && strlen(ch) > 0) {
data/profanity-0.9.5/src/config/theme.c:421:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ch && strlen(ch) > 0) {
data/profanity-0.9.5/src/config/theme.c:429:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ch && strlen(ch) > 0) {
data/profanity-0.9.5/src/config/theme.c:437:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ch && strlen(ch) > 0) {
data/profanity-0.9.5/src/config/theme.c:447:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ch && strlen(ch) > 0) {
data/profanity-0.9.5/src/config/theme.c:455:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ch && strlen(ch) > 0) {
data/profanity-0.9.5/src/config/theme.c:463:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ch && strlen(ch) > 0) {
data/profanity-0.9.5/src/config/theme.c:495:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (ch && strlen(ch) > 0) {
data/profanity-0.9.5/src/log.c:244:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(log_file);
data/profanity-0.9.5/src/log.c:790:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        size = read(stderr_pipe[0], buf, STDERR_BUFSIZE);
data/profanity-0.9.5/src/omemo/omemo.c:613: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).
        .name_len = strlen(jid),
data/profanity-0.9.5/src/omemo/omemo.c:634: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).
        address->name_len = strlen(jid);
data/profanity-0.9.5/src/omemo/omemo.c:688: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).
    ciphertext_len = strlen(message);
data/profanity-0.9.5/src/omemo/omemo.c:697:111:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    res = aes128gcm_encrypt(ciphertext, &ciphertext_len, tag, &tag_len, (const unsigned char * const)message, strlen(message), iv, key);
data/profanity-0.9.5/src/omemo/omemo.c:743: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).
                .name_len = strlen(recipients_iter->data),
data/profanity-0.9.5/src/omemo/omemo.c:781: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).
                .name_len = strlen(jid->barejid),
data/profanity-0.9.5/src/omemo/omemo.c:882: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).
        .name_len = strlen(sender->barejid),
data/profanity-0.9.5/src/omemo/omemo.c:979:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *output = malloc(strlen(fingerprint) + strlen(fingerprint) / 8);
data/profanity-0.9.5/src/omemo/omemo.c:979: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).
    char *output = malloc(strlen(fingerprint) + strlen(fingerprint) / 8);
data/profanity-0.9.5/src/omemo/omemo.c:982: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).
    for (i = 0, j = 0; i < strlen(fingerprint); i++) {
data/profanity-0.9.5/src/omemo/omemo.c:998: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 *fingerprint = malloc(strlen(fingerprint_formatted));
data/profanity-0.9.5/src/omemo/omemo.c:1046: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).
        .name_len = strlen(jid),
data/profanity-0.9.5/src/omemo/omemo.c:1109:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    unsigned char *output = malloc(strlen(fingerprint) / 2 + 1);
data/profanity-0.9.5/src/omemo/omemo.c:1113: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).
    for (i = 0, j = 0; i < strlen(fingerprint);) {
data/profanity-0.9.5/src/omemo/omemo.c:1157: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).
        .name_len = strlen(jid),
data/profanity-0.9.5/src/omemo/omemo.c:1215: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).
        .name_len = strlen(jid),
data/profanity-0.9.5/src/otr/otr.c:596:97:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        otrl_message_respond_smp(user_state, &ops, NULL, context, (const unsigned char*)secret, strlen(secret));
data/profanity-0.9.5/src/otr/otr.c:602:98:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        otrl_message_initiate_smp(user_state, &ops, NULL, context, (const unsigned char*)secret, strlen(secret));
data/profanity-0.9.5/src/otr/otr.c:622:106:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    otrl_message_initiate_smp_q(user_state, &ops, NULL, context, question, (const unsigned char*)answer, strlen(answer));
data/profanity-0.9.5/src/otr/otr.c:643:93:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    otrl_message_respond_smp(user_state, &ops, NULL, context, (const unsigned char*)answer, strlen(answer));
data/profanity-0.9.5/src/pgp/gpg.c:88: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).
        gpgme_io_write(fd, passphrase, strlen(passphrase));
data/profanity-0.9.5/src/pgp/gpg.c:105: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).
        gpgme_io_write(fd, passphrase_attempt, strlen(passphrase_attempt));
data/profanity-0.9.5/src/pgp/gpg.c:487:66:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gpgme_data_new_from_mem(&sign_data, sign_with_header_footer, strlen(sign_with_header_footer), 1);
data/profanity-0.9.5/src/pgp/gpg.c:563:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gpgme_data_new_from_mem(&str_data, str_or_empty, strlen(str_or_empty), 1);
data/profanity-0.9.5/src/pgp/gpg.c:642: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).
    gpgme_data_new_from_mem(&plain, message, strlen(message), 1);
data/profanity-0.9.5/src/pgp/gpg.c:689:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gpgme_data_new_from_mem(&cipher_data, cipher_with_headers, strlen(cipher_with_headers), 1);
data/profanity-0.9.5/src/pgp/gpg.c:776:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(fp);
data/profanity-0.9.5/src/plugins/api.c:588:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(ch) != 1) {
data/profanity-0.9.5/src/plugins/api.c:636:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(ch) != 1) {
data/profanity-0.9.5/src/plugins/api.c:727:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(ch) != 1) {
data/profanity-0.9.5/src/plugins/c_api.c:525:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    gchar *name = g_strndup(filename, strlen(filename)-1);
data/profanity-0.9.5/src/plugins/python_plugins.c:126:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        gchar *module_name = g_strndup(filename, strlen(filename) - 3);
data/profanity-0.9.5/src/plugins/python_plugins.c:878: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).
    char *module_name = g_strndup(plugin->name, strlen(plugin->name) - 2);
data/profanity-0.9.5/src/plugins/python_plugins.c:893: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).
    char *module_name = g_strndup(plugin->name, strlen(plugin->name) - 2);
data/profanity-0.9.5/src/tools/autocomplete.c:307: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).
    char command_cpy[strlen(command) + 2];
data/profanity-0.9.5/src/tools/autocomplete.c:309:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(command_cpy);
data/profanity-0.9.5/src/tools/autocomplete.c:313: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).
        int inp_len = strlen(input);
data/profanity-0.9.5/src/tools/autocomplete.c:338: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 *command_cpy = malloc(strlen(command) + 2);
data/profanity-0.9.5/src/tools/autocomplete.c:340:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int len = strlen(command_cpy);
data/profanity-0.9.5/src/tools/autocomplete.c:341:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int inp_len = strlen(input);
data/profanity-0.9.5/src/tools/autocomplete.c:367: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).
    if (strncmp(input, command, strlen(command)) == 0) {
data/profanity-0.9.5/src/tools/autocomplete.c:376:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            gchar *comp_str = g_strdup(&input[strlen(start_str)]);
data/profanity-0.9.5/src/tools/autocomplete.c:429:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp(curr_lower, search_str_lower, strlen(search_str_lower)) == 0) {
data/profanity-0.9.5/src/tools/autocomplete.c:476:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (strncmp(curr_lower, search_str_lower, strlen(search_str_lower)) == 0) {
data/profanity-0.9.5/src/ui/console.c:118: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).
    for (i = 0; i < strlen(cmd) - 1 ; i++) {
data/profanity-0.9.5/src/ui/console.c:133: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(help->args[i][0]) > maxlen)
data/profanity-0.9.5/src/ui/console.c:134: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).
            maxlen = strlen(help->args[i][0]);
data/profanity-0.9.5/src/ui/console.c:502:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (g_strstr_len(curr->data, strlen(curr->data), " unread") > 0) {
data/profanity-0.9.5/src/ui/console.c:2279:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int pad = strlen("/help commands connection") + 3;
data/profanity-0.9.5/src/ui/inputwin.c:200:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            if (strlen(inp_line) > 1) {
data/profanity-0.9.5/src/ui/mucwin.c:400: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).
        char *mynick_str = g_strndup(message + pos, strlen(mynick));
data/profanity-0.9.5/src/ui/mucwin.c:404:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        last_pos = pos + strlen(mynick);
data/profanity-0.9.5/src/ui/mucwin.c:408: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 (last_pos < strlen(message)) {
data/profanity-0.9.5/src/ui/mucwin.c:418:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int alen = strlen((char*)a);
data/profanity-0.9.5/src/ui/mucwin.c:419:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int blen = strlen((char*)b);
data/profanity-0.9.5/src/ui/mucwin.c:457: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).
            first_trigger_len = strlen(trigger_lower);
data/profanity-0.9.5/src/ui/mucwin.c:472:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            char message_section[strlen(message) + 1];
data/profanity-0.9.5/src/ui/mucwin.c:489:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (first_trigger_pos + first_trigger_len < strlen(message)) {
data/profanity-0.9.5/src/ui/notifier.c:80:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char message[strlen(name) + 1 + 11];
data/profanity-0.9.5/src/ui/notifier.c:251:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(nid.szInfo, message, sizeof(nid.szInfo) - 1); // Copy Tip
data/profanity-0.9.5/src/ui/rosterwin.c:858: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).
            char *nick = privwin->fulljid + strlen(mucwin->roomjid) + 1;
data/profanity-0.9.5/src/ui/statusbar.c:450:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = strlen(statusbar->time);
data/profanity-0.9.5/src/ui/titlebar.c:201:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    pos = strlen(title) + 1;
data/profanity-0.9.5/src/ui/titlebar.c:547: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).
        int needed = strlen(resource) + 1;
data/profanity-0.9.5/src/ui/window.c:1519:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if(strlen(date_fmt) != 0){
data/profanity-0.9.5/src/ui/window.c:1520: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).
        indent = 3 + strlen(date_fmt);
data/profanity-0.9.5/src/ui/window.c:1524:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if (date_fmt && strlen(date_fmt)) {
data/profanity-0.9.5/src/ui/window.c:1536:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (from && strlen(from) > 0) {
data/profanity-0.9.5/src/ui/window.c:1622:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    char *word = malloc(strlen(message) + 1);
data/profanity-0.9.5/src/xmpp/connection.c:511:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            (guchar*)prof_identifier, strlen(prof_identifier),
data/profanity-0.9.5/src/xmpp/connection.c:512:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            uuid, strlen(uuid));
data/profanity-0.9.5/src/xmpp/connection.c:722: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).
            (guchar*)profanity_instance_id, strlen(profanity_instance_id),
data/profanity-0.9.5/src/xmpp/connection.c:723: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).
            barejid, strlen(barejid));
data/profanity-0.9.5/src/xmpp/iq.c:1078: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).
                ((g_pattern_match(glob, strlen(item_jid_lower), item_jid_lower, NULL)) ||
data/profanity-0.9.5/src/xmpp/iq.c:1079:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                (item_name_lower && g_pattern_match(glob, strlen(item_name_lower), item_name_lower, NULL))))) {
data/profanity-0.9.5/src/xmpp/jid.c:55:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(trimmed) == 0) {
data/profanity-0.9.5/src/xmpp/message.c:1359:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        (guchar*)prof_identifier, strlen(prof_identifier),
data/profanity-0.9.5/src/xmpp/message.c:1360: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).
                        uuid, strlen(uuid));
data/profanity-0.9.5/src/xmpp/muc.c:747:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(chat_room->autocomplete_prefix) == 0) {
data/profanity-0.9.5/src/xmpp/roster.c:230:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (name && (strlen(name) == 0)) {
data/profanity-0.9.5/src/xmpp/roster.c:291: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).
        if (name && (strlen(name) == 0)) name = NULL;
data/profanity-0.9.5/src/xmpp/stanza.c:241:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    for (i=0; i<strlen(filename_cpy); i++) {
data/profanity-0.9.5/src/xmpp/stanza.c:2574:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   xmpp_sha1_digest((unsigned char*)str, strlen(str), digest);
data/profanity-0.9.5/tests/functionaltests/proftest.c:49: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).
    for (i = 1; i <= strlen(dir); i++) {
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:89:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:106:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:123:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:142:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:159:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:176:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:195:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:212:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:245:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:261:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:277:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:293:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:309:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:325:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:341:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:357:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:373:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:389:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:405:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:421:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:437:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:453:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:469:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:485:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:501:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:517:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:533:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:564:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:580:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:596:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:612:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:628:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:644:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:660:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:676:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:692:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:708:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';
data/profanity-0.9.5/tests/unittests/test_keyhandlers.c:724:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    line[strlen(line)] = '\0';

ANALYSIS SUMMARY:

Hits = 284
Lines analyzed = 88312 in approximately 2.14 seconds (41265 lines/second)
Physical Source Lines of Code (SLOC) = 68514
Hits@level = [0]  45 [1] 172 [2]  80 [3]  17 [4]  15 [5]   0
Hits@level+ = [0+] 329 [1+] 284 [2+] 112 [3+]  32 [4+]  15 [5+]   0
Hits/KSLOC@level+ = [0+] 4.80194 [1+] 4.14514 [2+] 1.6347 [3+] 0.467058 [4+] 0.218933 [5+]   0
Dot directories skipped = 3 (--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.