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/biboumi-8.3/src/bridge/bridge.cpp Examining data/biboumi-8.3/src/bridge/bridge.hpp Examining data/biboumi-8.3/src/bridge/colors.cpp Examining data/biboumi-8.3/src/bridge/colors.hpp Examining data/biboumi-8.3/src/bridge/history_limit.hpp Examining data/biboumi-8.3/src/bridge/list_element.hpp Examining data/biboumi-8.3/src/bridge/result_set_management.hpp Examining data/biboumi-8.3/src/config/config.cpp Examining data/biboumi-8.3/src/config/config.hpp Examining data/biboumi-8.3/src/database/column.hpp Examining data/biboumi-8.3/src/database/count_query.hpp Examining data/biboumi-8.3/src/database/database.cpp Examining data/biboumi-8.3/src/database/database.hpp Examining data/biboumi-8.3/src/database/delete_query.hpp Examining data/biboumi-8.3/src/database/engine.hpp Examining data/biboumi-8.3/src/database/index.hpp Examining data/biboumi-8.3/src/database/insert_query.hpp Examining data/biboumi-8.3/src/database/postgresql_engine.cpp Examining data/biboumi-8.3/src/database/postgresql_engine.hpp Examining data/biboumi-8.3/src/database/postgresql_statement.hpp Examining data/biboumi-8.3/src/database/query.cpp Examining data/biboumi-8.3/src/database/query.hpp Examining data/biboumi-8.3/src/database/row.hpp Examining data/biboumi-8.3/src/database/save.hpp Examining data/biboumi-8.3/src/database/select_query.hpp Examining data/biboumi-8.3/src/database/sqlite3_engine.cpp Examining data/biboumi-8.3/src/database/sqlite3_engine.hpp Examining data/biboumi-8.3/src/database/sqlite3_statement.hpp Examining data/biboumi-8.3/src/database/statement.hpp Examining data/biboumi-8.3/src/database/table.hpp Examining data/biboumi-8.3/src/database/update_query.hpp Examining data/biboumi-8.3/src/identd/identd_server.hpp Examining data/biboumi-8.3/src/identd/identd_socket.cpp Examining data/biboumi-8.3/src/identd/identd_socket.hpp Examining data/biboumi-8.3/src/irc/iid.cpp Examining data/biboumi-8.3/src/irc/iid.hpp Examining data/biboumi-8.3/src/irc/irc_channel.cpp Examining data/biboumi-8.3/src/irc/irc_channel.hpp Examining data/biboumi-8.3/src/irc/irc_client.cpp Examining data/biboumi-8.3/src/irc/irc_client.hpp Examining data/biboumi-8.3/src/irc/irc_message.cpp Examining data/biboumi-8.3/src/irc/irc_message.hpp Examining data/biboumi-8.3/src/irc/irc_user.cpp Examining data/biboumi-8.3/src/irc/irc_user.hpp Examining data/biboumi-8.3/src/logger/logger.cpp Examining data/biboumi-8.3/src/logger/logger.hpp Examining data/biboumi-8.3/src/main.cpp Examining data/biboumi-8.3/src/network/credentials_manager.cpp Examining data/biboumi-8.3/src/network/credentials_manager.hpp Examining data/biboumi-8.3/src/network/dns_handler.cpp Examining data/biboumi-8.3/src/network/dns_handler.hpp Examining data/biboumi-8.3/src/network/dns_socket_handler.cpp Examining data/biboumi-8.3/src/network/dns_socket_handler.hpp Examining data/biboumi-8.3/src/network/poller.cpp Examining data/biboumi-8.3/src/network/poller.hpp Examining data/biboumi-8.3/src/network/resolver.cpp Examining data/biboumi-8.3/src/network/resolver.hpp Examining data/biboumi-8.3/src/network/socket_handler.hpp Examining data/biboumi-8.3/src/network/tcp_client_socket_handler.cpp Examining data/biboumi-8.3/src/network/tcp_client_socket_handler.hpp Examining data/biboumi-8.3/src/network/tcp_server_socket.hpp Examining data/biboumi-8.3/src/network/tcp_socket_handler.cpp Examining data/biboumi-8.3/src/network/tcp_socket_handler.hpp Examining data/biboumi-8.3/src/network/tls_policy.cpp Examining data/biboumi-8.3/src/network/tls_policy.hpp Examining data/biboumi-8.3/src/utils/dirname.cpp Examining data/biboumi-8.3/src/utils/dirname.hpp Examining data/biboumi-8.3/src/utils/empty_if_fixed_server.hpp Examining data/biboumi-8.3/src/utils/encoding.cpp Examining data/biboumi-8.3/src/utils/encoding.hpp Examining data/biboumi-8.3/src/utils/get_first_non_empty.cpp Examining data/biboumi-8.3/src/utils/get_first_non_empty.hpp Examining data/biboumi-8.3/src/utils/is_one_of.hpp Examining data/biboumi-8.3/src/utils/optional_bool.cpp Examining data/biboumi-8.3/src/utils/optional_bool.hpp Examining data/biboumi-8.3/src/utils/reload.cpp Examining data/biboumi-8.3/src/utils/reload.hpp Examining data/biboumi-8.3/src/utils/revstr.cpp Examining data/biboumi-8.3/src/utils/revstr.hpp Examining data/biboumi-8.3/src/utils/scopeguard.hpp Examining data/biboumi-8.3/src/utils/scopetimer.hpp Examining data/biboumi-8.3/src/utils/sha1.cpp Examining data/biboumi-8.3/src/utils/sha1.hpp Examining data/biboumi-8.3/src/utils/split.cpp Examining data/biboumi-8.3/src/utils/split.hpp Examining data/biboumi-8.3/src/utils/string.cpp Examining data/biboumi-8.3/src/utils/string.hpp Examining data/biboumi-8.3/src/utils/system.cpp Examining data/biboumi-8.3/src/utils/system.hpp Examining data/biboumi-8.3/src/utils/time.cpp Examining data/biboumi-8.3/src/utils/time.hpp Examining data/biboumi-8.3/src/utils/timed_events.cpp Examining data/biboumi-8.3/src/utils/timed_events.hpp Examining data/biboumi-8.3/src/utils/timed_events_manager.cpp Examining data/biboumi-8.3/src/utils/tolower.cpp Examining data/biboumi-8.3/src/utils/tolower.hpp Examining data/biboumi-8.3/src/utils/uuid.cpp Examining data/biboumi-8.3/src/utils/uuid.hpp Examining data/biboumi-8.3/src/utils/xdg.cpp Examining data/biboumi-8.3/src/utils/xdg.hpp Examining data/biboumi-8.3/src/xmpp/adhoc_command.cpp Examining data/biboumi-8.3/src/xmpp/adhoc_command.hpp Examining data/biboumi-8.3/src/xmpp/adhoc_commands_handler.cpp Examining data/biboumi-8.3/src/xmpp/adhoc_commands_handler.hpp Examining data/biboumi-8.3/src/xmpp/adhoc_session.cpp Examining data/biboumi-8.3/src/xmpp/adhoc_session.hpp Examining data/biboumi-8.3/src/xmpp/auth.cpp Examining data/biboumi-8.3/src/xmpp/auth.hpp Examining data/biboumi-8.3/src/xmpp/biboumi_adhoc_commands.cpp Examining data/biboumi-8.3/src/xmpp/biboumi_adhoc_commands.hpp Examining data/biboumi-8.3/src/xmpp/biboumi_component.cpp Examining data/biboumi-8.3/src/xmpp/biboumi_component.hpp Examining data/biboumi-8.3/src/xmpp/body.hpp Examining data/biboumi-8.3/src/xmpp/jid.cpp Examining data/biboumi-8.3/src/xmpp/jid.hpp Examining data/biboumi-8.3/src/xmpp/xmpp_component.cpp Examining data/biboumi-8.3/src/xmpp/xmpp_component.hpp Examining data/biboumi-8.3/src/xmpp/xmpp_parser.cpp Examining data/biboumi-8.3/src/xmpp/xmpp_parser.hpp Examining data/biboumi-8.3/src/xmpp/xmpp_stanza.cpp Examining data/biboumi-8.3/src/xmpp/xmpp_stanza.hpp Examining data/biboumi-8.3/tests/colors.cpp Examining data/biboumi-8.3/tests/config.cpp Examining data/biboumi-8.3/tests/database.cpp Examining data/biboumi-8.3/tests/encoding.cpp Examining data/biboumi-8.3/tests/iid.cpp Examining data/biboumi-8.3/tests/io_tester.cpp Examining data/biboumi-8.3/tests/io_tester.hpp Examining data/biboumi-8.3/tests/jid.cpp Examining data/biboumi-8.3/tests/logger.cpp Examining data/biboumi-8.3/tests/network.cpp Examining data/biboumi-8.3/tests/test.cpp Examining data/biboumi-8.3/tests/timed_events.cpp Examining data/biboumi-8.3/tests/utils.cpp Examining data/biboumi-8.3/tests/uuid.cpp Examining data/biboumi-8.3/tests/xmpp.cpp FINAL RESULTS: data/biboumi-8.3/src/logger/logger.cpp:19: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. const char* journal_stream = ::getenv("JOURNAL_STREAM"); data/biboumi-8.3/src/utils/xdg.cpp:8:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* xdg_home = ::getenv(env_var); data/biboumi-8.3/src/utils/xdg.cpp:13:28: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. const char* home = ::getenv("HOME"); data/biboumi-8.3/tests/database.cpp:18: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. const char* env_value = ::getenv("TEST_POSTGRES_URI"); data/biboumi-8.3/src/config/config.cpp:40:17: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return std::atoi(res.c_str()); data/biboumi-8.3/src/database/database.cpp:33:16: [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). void Database::open(const std::string& filename) data/biboumi-8.3/src/database/database.cpp:43:32: [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). new_db = PostgresqlEngine::open(filename); data/biboumi-8.3/src/database/database.cpp:45:29: [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). new_db = Sqlite3Engine::open(filename); data/biboumi-8.3/src/database/database.hpp:153:15: [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). static void open(const std::string& filename); data/biboumi-8.3/src/database/postgresql_engine.cpp:34:51: [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). std::unique_ptr<DatabaseEngine> PostgresqlEngine::open(const std::string& conninfo) data/biboumi-8.3/src/database/postgresql_engine.hpp:25: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). static std::unique_ptr<DatabaseEngine> open(const std::string& string); data/biboumi-8.3/src/database/postgresql_engine.hpp:44: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). static std::unique_ptr<DatabaseEngine> open(const std::string& string) data/biboumi-8.3/src/database/sqlite3_engine.cpp:46:48: [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). std::unique_ptr<DatabaseEngine> Sqlite3Engine::open(const std::string& filename) data/biboumi-8.3/src/database/sqlite3_engine.hpp:25: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). static std::unique_ptr<DatabaseEngine> open(const std::string& string); data/biboumi-8.3/src/database/sqlite3_engine.hpp:43: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). static std::unique_ptr<DatabaseEngine> open(const std::string& string) data/biboumi-8.3/src/network/resolver.cpp:185:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[INET6_ADDRSTRLEN]; data/biboumi-8.3/src/network/resolver.cpp:209:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[INET6_ADDRSTRLEN]; data/biboumi-8.3/src/network/resolver.cpp:270:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[INET6_ADDRSTRLEN]; data/biboumi-8.3/src/network/tcp_client_socket_handler.cpp:197:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->ai_addr, rp->ai_addr, this->ai_addrlen); data/biboumi-8.3/src/network/tcp_client_socket_handler.cpp:198:11: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&this->addrinfo, rp, sizeof(struct addrinfo)); data/biboumi-8.3/src/network/tcp_socket_handler.cpp:81:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[buf_size]; data/biboumi-8.3/src/utils/encoding.cpp:98:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ::memcpy(r, str, 4); data/biboumi-8.3/src/utils/encoding.cpp:112:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ::memcpy(r, str, 3); data/biboumi-8.3/src/utils/encoding.cpp:122:15: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ::memcpy(r, str, 2); data/biboumi-8.3/src/utils/encoding.cpp:135:19: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. ::memcpy(r, str, 1); data/biboumi-8.3/src/utils/encoding.cpp:185:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(outbuf_ptr, invalid_char, invalid_char_len); data/biboumi-8.3/src/utils/encoding.cpp:195:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(outbuf_ptr, invalid_char, invalid_char_len); data/biboumi-8.3/src/utils/reload.cpp:14: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). Database::open(db_filename); data/biboumi-8.3/src/utils/time.cpp:16:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char date_buf[stamp_size]; data/biboumi-8.3/src/utils/uuid.cpp:8:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uuid_str[37]; data/biboumi-8.3/src/xmpp/biboumi_adhoc_commands.cpp:187:57: [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). options.col<Database::MaxHistoryLength>() = atoi(value->get_inner().data()); data/biboumi-8.3/src/xmpp/biboumi_adhoc_commands.cpp:854:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[timestamp_size] = {}; data/biboumi-8.3/src/xmpp/biboumi_component.cpp:171:42: [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 int_seconds = std::atoi(seconds.data()); data/biboumi-8.3/src/xmpp/biboumi_component.cpp:180:46: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). history_limit.stanzas = std::atoi(maxstanzas.data()); data/biboumi-8.3/src/xmpp/biboumi_component.cpp:594:40: [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). rs_info.max = std::atoi(max->get_inner().data()); data/biboumi-8.3/src/xmpp/biboumi_component.cpp:730:28: [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). limit = std::atoi(max->get_inner().data()); data/biboumi-8.3/src/xmpp/jid.cpp:54:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char local[max_jid_part_len] = {}; data/biboumi-8.3/src/xmpp/jid.cpp:55:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(local, jid.local.data(), std::min(max_jid_part_len, jid.local.size())); data/biboumi-8.3/src/xmpp/jid.cpp:64:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char domain[max_jid_part_len] = {}; data/biboumi-8.3/src/xmpp/jid.cpp:65:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(domain, jid.domain.data(), std::min(max_jid_part_len, jid.domain.size())); data/biboumi-8.3/src/xmpp/jid.cpp:114:13: [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(domain, "empty"); data/biboumi-8.3/src/xmpp/jid.cpp:136:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char resource[max_jid_part_len] = {}; data/biboumi-8.3/src/xmpp/jid.cpp:137:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(resource, jid.resource.data(), std::min(max_jid_part_len, jid.resource.size())); data/biboumi-8.3/tests/database.cpp:20:15: [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). Database::open("postgresql://"s + env_value); data/biboumi-8.3/tests/database.cpp:23:15: [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). Database::open(":memory:"); data/biboumi-8.3/src/database/postgresql_engine.cpp:27:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (original && std::strlen(original) > 0) data/biboumi-8.3/src/database/postgresql_engine.cpp:29: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). std::string message{original, std::strlen(original) - 1}; data/biboumi-8.3/src/database/postgresql_statement.hpp:114:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (original && std::strlen(original) > 0) data/biboumi-8.3/src/database/postgresql_statement.hpp:115:79: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). log_error("Failed to execute command: ", std::string{original, std::strlen(original) - 1}); data/biboumi-8.3/src/irc/irc_client.cpp:489: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). ::strlen(":!@ PRIVMSG ") - chan_name.length() - ::strlen(" :\r\n"); data/biboumi-8.3/src/irc/irc_client.cpp:489:76: [1] (buffer) strlen: Does not handle 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(":!@ PRIVMSG ") - chan_name.length() - ::strlen(" :\r\n"); data/biboumi-8.3/src/xmpp/jid.cpp:91: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). char* domain_end = domain + ::strlen(domain); data/biboumi-8.3/src/xmpp/jid.cpp:92: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). std::replace_if(std::begin(domain), domain + ::strlen(domain), data/biboumi-8.3/src/xmpp/jid.cpp:100:60: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). domain_end = std::unique(begin(domain), domain + ::strlen(domain), [&special_chars](const char& a, const char& b) -> bool ANALYSIS SUMMARY: Hits = 54 Lines analyzed = 15821 in approximately 0.41 seconds (38613 lines/second) Physical Source Lines of Code (SLOC) = 12204 Hits@level = [0] 1 [1] 9 [2] 41 [3] 4 [4] 0 [5] 0 Hits@level+ = [0+] 55 [1+] 54 [2+] 45 [3+] 4 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 4.50672 [1+] 4.42478 [2+] 3.68732 [3+] 0.327761 [4+] 0 [5+] 0 Dot directories skipped = 2 (--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.