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/kronosnet-1.20/libnozzle/libnozzle.h Examining data/kronosnet-1.20/libnozzle/internals.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mac.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_open.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_mac.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_down.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_handle_by_name.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_ips.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_close.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_up.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_fd.c Examining data/kronosnet-1.20/libnozzle/tests/test-common.h Examining data/kronosnet-1.20/libnozzle/tests/int_execute_bin_sh_command.c Examining data/kronosnet-1.20/libnozzle/tests/test-common.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_mtu.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_name_by_handle.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c Examining data/kronosnet-1.20/libnozzle/tests/api_nozzle_run_updown.c Examining data/kronosnet-1.20/libnozzle/libnozzle.c Examining data/kronosnet-1.20/libnozzle/internals.h Examining data/kronosnet-1.20/man/doxyxml.c Examining data/kronosnet-1.20/libknet/transport_udp.h Examining data/kronosnet-1.20/libknet/links_acl_ip.c Examining data/kronosnet-1.20/libknet/links.h Examining data/kronosnet-1.20/libknet/crypto.c Examining data/kronosnet-1.20/libknet/host.h Examining data/kronosnet-1.20/libknet/compress.h Examining data/kronosnet-1.20/libknet/threads_heartbeat.h Examining data/kronosnet-1.20/libknet/threads_dsthandler.h Examining data/kronosnet-1.20/libknet/transport_loopback.h Examining data/kronosnet-1.20/libknet/onwire.h Examining data/kronosnet-1.20/libknet/threads_pmtud.h Examining data/kronosnet-1.20/libknet/links_acl_loopback.h Examining data/kronosnet-1.20/libknet/logging.h Examining data/kronosnet-1.20/libknet/compress_lz4hc.c Examining data/kronosnet-1.20/libknet/host.c Examining data/kronosnet-1.20/libknet/logging.c Examining data/kronosnet-1.20/libknet/threads_rx.h Examining data/kronosnet-1.20/libknet/transport_loopback.c Examining data/kronosnet-1.20/libknet/threads_tx.c Examining data/kronosnet-1.20/libknet/crypto_model.h Examining data/kronosnet-1.20/libknet/compat.h Examining data/kronosnet-1.20/libknet/threads_common.c Examining data/kronosnet-1.20/libknet/transports.c Examining data/kronosnet-1.20/libknet/compress_lzma.c Examining data/kronosnet-1.20/libknet/threads_pmtud.c Examining data/kronosnet-1.20/libknet/links_acl_ip.h Examining data/kronosnet-1.20/libknet/crypto_openssl.c Examining data/kronosnet-1.20/libknet/transport_common.c Examining data/kronosnet-1.20/libknet/transports.h Examining data/kronosnet-1.20/libknet/common.c Examining data/kronosnet-1.20/libknet/transport_udp.c Examining data/kronosnet-1.20/libknet/transport_sctp.h Examining data/kronosnet-1.20/libknet/transport_common.h Examining data/kronosnet-1.20/libknet/threads_tx.h Examining data/kronosnet-1.20/libknet/links_acl.c Examining data/kronosnet-1.20/libknet/links.c Examining data/kronosnet-1.20/libknet/compat.c Examining data/kronosnet-1.20/libknet/crypto.h Examining data/kronosnet-1.20/libknet/compress.c Examining data/kronosnet-1.20/libknet/handle.c Examining data/kronosnet-1.20/libknet/threads_heartbeat.c Examining data/kronosnet-1.20/libknet/common.h Examining data/kronosnet-1.20/libknet/compress_zstd.c Examining data/kronosnet-1.20/libknet/compress_model.h Examining data/kronosnet-1.20/libknet/links_acl_loopback.c Examining data/kronosnet-1.20/libknet/onwire.c Examining data/kronosnet-1.20/libknet/compress_lz4.c Examining data/kronosnet-1.20/libknet/transport_sctp.c Examining data/kronosnet-1.20/libknet/threads_rx.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_get_ping_timers.c Examining data/kronosnet-1.20/libknet/tests/api_knet_host_remove.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_clear_acl.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_setfwd.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_get_channel.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_new.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_get_enable.c Examining data/kronosnet-1.20/libknet/tests/fun_config_crypto.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_get_transport_reconnect_interval.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c Examining data/kronosnet-1.20/libknet/tests/api_knet_send_compress.c Examining data/kronosnet-1.20/libknet/tests/api_knet_send_sync.c Examining data/kronosnet-1.20/libknet/tests/api_knet_get_transport_name_by_id.c Examining data/kronosnet-1.20/libknet/tests/api_knet_log_set_loglevel.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_clear_config.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_get_datafd.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_rx_clear_traffic.c Examining data/kronosnet-1.20/libknet/tests/api_knet_host_get_status.c Examining data/kronosnet-1.20/libknet/tests/int_timediff.c Examining data/kronosnet-1.20/libknet/tests/api_knet_host_get_name_by_host_id.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_compress.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_enable_filter.c Examining data/kronosnet-1.20/libknet/tests/api_knet_get_compress_list.c Examining data/kronosnet-1.20/libknet/tests/api_knet_log_get_loglevel.c Examining data/kronosnet-1.20/libknet/tests/test-common.h Examining data/kronosnet-1.20/libknet/tests/api_knet_recv.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_enable_pmtud_notify.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_clear_stats.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_use_config.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_set_enable.c Examining data/kronosnet-1.20/libknet/tests/api_knet_host_set_name.c Examining data/kronosnet-1.20/libknet/tests/api_knet_host_set_policy.c Examining data/kronosnet-1.20/libknet/tests/api_knet_log_get_subsystem_id.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_pmtud_getfreq.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_get_priority.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_add_acl.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_set_transport_reconnect_interval.c Examining data/kronosnet-1.20/libknet/tests/knet_bench.c Examining data/kronosnet-1.20/libknet/tests/test-common.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_new_limit.c Examining data/kronosnet-1.20/libknet/tests/api_knet_get_crypto_list.c Examining data/kronosnet-1.20/libknet/tests/api_knet_get_transport_list.c Examining data/kronosnet-1.20/libknet/tests/api_knet_log_get_loglevel_name.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_pmtud_get.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_set_ping_timers.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_get_status.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_remove_datafd.c Examining data/kronosnet-1.20/libknet/tests/api_knet_send_loopback.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_set_priority.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c Examining data/kronosnet-1.20/libknet/tests/int_links_acl_ip.c Examining data/kronosnet-1.20/libknet/tests/pckt_test.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_get_stats.c Examining data/kronosnet-1.20/libknet/tests/api_knet_send.c Examining data/kronosnet-1.20/libknet/tests/api_knet_addrtostr.c Examining data/kronosnet-1.20/libknet/tests/api_knet_send_crypto.c Examining data/kronosnet-1.20/libknet/tests/api_knet_host_get_id_by_host_name.c Examining data/kronosnet-1.20/libknet/tests/fun_pmtud_crypto.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_pmtud_setfreq.c Examining data/kronosnet-1.20/libknet/tests/api_knet_host_get_host_list.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_insert_acl.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_get_link_list.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_enable_access_lists.c Examining data/kronosnet-1.20/libknet/tests/api_knet_host_enable_status_change_notify.c Examining data/kronosnet-1.20/libknet/tests/api_knet_strtoaddr.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_add_datafd.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_get_pong_count.c Examining data/kronosnet-1.20/libknet/tests/api_knet_log_get_loglevel_id.c Examining data/kronosnet-1.20/libknet/tests/api_knet_host_add.c Examining data/kronosnet-1.20/libknet/tests/api_knet_host_get_policy.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_free.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_pmtud_set.c Examining data/kronosnet-1.20/libknet/tests/api_knet_get_transport_id_by_name.c Examining data/kronosnet-1.20/libknet/tests/api_knet_handle_enable_sock_notify.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_get_config.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_set_config.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_rm_acl.c Examining data/kronosnet-1.20/libknet/tests/api_knet_log_get_subsystem_name.c Examining data/kronosnet-1.20/libknet/tests/api_knet_link_set_pong_count.c Examining data/kronosnet-1.20/libknet/threads_common.h Examining data/kronosnet-1.20/libknet/libknet.h Examining data/kronosnet-1.20/libknet/netutils.c Examining data/kronosnet-1.20/libknet/crypto_nss.c Examining data/kronosnet-1.20/libknet/netutils.h Examining data/kronosnet-1.20/libknet/compress_lzo2.c Examining data/kronosnet-1.20/libknet/compress_zlib.c Examining data/kronosnet-1.20/libknet/links_acl.h Examining data/kronosnet-1.20/libknet/compress_bzip2.c Examining data/kronosnet-1.20/libknet/handle_api.c Examining data/kronosnet-1.20/libknet/threads_dsthandler.c Examining data/kronosnet-1.20/libknet/internals.h FINAL RESULTS: data/kronosnet-1.20/libknet/common.c:133:8: [5] (race) readlink: This accepts filename arguments; if an attacker can move those files or change the link content, a race condition results. Also, it does not terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach. if (readlink(path, link, sizeof(link)-1) < 0) { data/kronosnet-1.20/man/doxyxml.c:125:6: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, (char *)child->content, sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:130:7: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer,(char *)child->children->content, sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:219:5: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, (char*)this_tag->content, sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:224:5: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, "\\fB", sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:226:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, (char*)this_tag->children->content, sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:228:5: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, "\\fR", sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:234:5: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, "\\fI", sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:236:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, (char*)this_tag->children->content, sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:238:5: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, "\\fR", sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:245:6: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, (char*)sub_tag->children->children->content, sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:246:6: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, "\n", sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:506:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, tmp, sizeof(buffer)-1); data/kronosnet-1.20/man/doxyxml.c:507:4: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(buffer, "\n", sizeof(buffer)-1); data/kronosnet-1.20/libknet/crypto.c:56:96: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. return crypto_modules_cmds[knet_h->crypto_instance[knet_h->crypto_in_use_config]->model].ops->crypt(knet_h, knet_h->crypto_instance[knet_h->crypto_in_use_config], buf_in, buf_in_len, buf_out, buf_out_len); data/kronosnet-1.20/libknet/crypto_model.h:34:8: [4] (crypto) crypt: The crypt functions use a poor one-way hashing algorithm; since they only accept passwords of 8 characters or fewer and only a two-byte salt, they are excessively vulnerable to dictionary attacks given today's faster computing equipment (CWE-327). Use a different algorithm, such as SHA-256, with a larger, non-repeating salt. int (*crypt) (knet_handle_t knet_h, data/kronosnet-1.20/libknet/libknet.h:2248:76: [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. #error KNET_MAX_LOG_MSG_SIZE cannot be bigger than PIPE_BUF for guaranteed system atomic writes data/kronosnet-1.20/libknet/logging.c:231:2: [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(msg.msg, sizeof(msg.msg), fmt, ap); data/kronosnet-1.20/libknet/logging.h:16:54: [4] (format) printf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. const char *fmt, ...) __attribute__((format(printf, 4, 5))); data/kronosnet-1.20/libknet/tests/test-common.c:137:3: [4] (shell) execlp: 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. execlp("/bin/sh", "/bin/sh", "-c", command, NULL); data/kronosnet-1.20/libnozzle/internals.c:126:3: [4] (shell) execlp: 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. execlp("/bin/sh", "/bin/sh", "-c", command, NULL); data/kronosnet-1.20/libnozzle/libnozzle.c:571:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(nozzle->updownpath, updownpath); data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:103:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:125:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:172:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:220:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:249:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:85:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:116:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:154:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:183:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:222:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_down.c:49:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_down.c:78:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:151:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:203:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:237:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:257:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_up.c:49:2: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(verifycmd, sizeof(verifycmd)-1, data/kronosnet-1.20/libknet/tests/knet_bench.c:263:15: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((rv = getopt(argc, argv, "aCT:S:s:lvdfom:wb:t:n:c:p:x:X::P:z:h")) != EOF) { data/kronosnet-1.20/libknet/tests/test-common.c:153:8: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. val = getenv("KNETMEMCHECK"); data/kronosnet-1.20/libknet/tests/test-common.c:168:8: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. val = getenv("KNETHELGRIND"); data/kronosnet-1.20/man/doxyxml.c:1032:17: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ( (opt = getopt_long(argc, argv, "H:amqgPD:Y:s:S:d:o:p:f:I:i:C:h?", NULL, NULL)) != EOF) data/kronosnet-1.20/libknet/common.c:59:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 int get_lib_dir(void *lib_handle, char dir[MAXPATHLEN]) data/kronosnet-1.20/libknet/common.c:64:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char l_name[MAXPATHLEN]; data/kronosnet-1.20/libknet/common.c:87:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dir[MAXPATHLEN], path[MAXPATHLEN * 2], link[MAXPATHLEN]; data/kronosnet-1.20/libknet/common.c:157:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char soname[MAXPATHLEN], opsname[MAXPATHLEN]; data/kronosnet-1.20/libknet/compress.c:194:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char src[KNET_DATABUFSIZE]; data/kronosnet-1.20/libknet/compress.c:195:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char dst[KNET_DATABUFSIZE_COMPRESS]; data/kronosnet-1.20/libknet/crypto_nss.c:176:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char wrapped_key_data[KNET_MAX_KEY_LEN]; data/kronosnet-1.20/libknet/crypto_nss.c:177:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char pad_key_data[KNET_MAX_KEY_LEN]; data/kronosnet-1.20/libknet/crypto_nss.c:190:2: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(pad_key_data, instance->private_key, instance->private_key_len); data/kronosnet-1.20/libknet/crypto_nss.c:400:17: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (unsigned char *)iov[i].iov_base, data/kronosnet-1.20/libknet/crypto_nss.c:727:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp_hash[nsshash_len[instance->crypto_hash_type]]; data/kronosnet-1.20/libknet/crypto_openssl.c:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hash_type[16]; /* Need to store a copy from knet_handle_crypto_cfg for OSSL_PARAM_construct_* */ data/kronosnet-1.20/libknet/crypto_openssl.c:87:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sslerr[SSLERR_BUF_SIZE]; data/kronosnet-1.20/libknet/crypto_openssl.c:106:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (unsigned char *)iov[i].iov_base, iov[i].iov_len)) { data/kronosnet-1.20/libknet/crypto_openssl.c:145:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sslerr[SSLERR_BUF_SIZE]; data/kronosnet-1.20/libknet/crypto_openssl.c:198:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sslerr[SSLERR_BUF_SIZE]; data/kronosnet-1.20/libknet/crypto_openssl.c:217:22: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. (unsigned char *)iov[i].iov_base, iov[i].iov_len)) { data/kronosnet-1.20/libknet/crypto_openssl.c:256:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sslerr[SSLERR_BUF_SIZE]; data/kronosnet-1.20/libknet/crypto_openssl.c:319:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sslerr[SSLERR_BUF_SIZE]; data/kronosnet-1.20/libknet/crypto_openssl.c:349:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sslerr[SSLERR_BUF_SIZE]; data/kronosnet-1.20/libknet/crypto_openssl.c:466:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char tmp_hash[crypto_instance->sec_hash_size]; data/kronosnet-1.20/libknet/crypto_openssl.c:612:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char sslerr[SSLERR_BUF_SIZE]; data/kronosnet-1.20/libknet/internals.h:101:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[KNET_DATABUFSIZE]; data/kronosnet-1.20/libknet/internals.h:117:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[KNET_MAX_HOST_LEN]; data/kronosnet-1.20/libknet/internals.h:121:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char circular_buffer[KNET_CBUFFER_SIZE]; data/kronosnet-1.20/libknet/internals.h:128:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char circular_buffer_defrag[KNET_CBUFFER_SIZE]; data/kronosnet-1.20/libknet/internals.h:223:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char *send_to_links_buf_crypt[PCKT_FRAG_MAX]; data/kronosnet-1.20/libknet/libknet.h:664:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char crypto_model[16]; data/kronosnet-1.20/libknet/libknet.h:665:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char crypto_cipher_type[16]; data/kronosnet-1.20/libknet/libknet.h:666:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char crypto_hash_type[16]; data/kronosnet-1.20/libknet/libknet.h:667:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char private_key[KNET_MAX_KEY_LEN]; data/kronosnet-1.20/libknet/libknet.h:838:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char compress_model[16]; data/kronosnet-1.20/libknet/libknet.h:991:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pad[256]; /* currently unused */ data/kronosnet-1.20/libknet/libknet.h:1022:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pad[256]; /* currently unused */ data/kronosnet-1.20/libknet/libknet.h:1414:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char pad[256]; /* currently unused */ data/kronosnet-1.20/libknet/libknet.h:2078:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char src_ipaddr[KNET_MAX_HOST_LEN]; data/kronosnet-1.20/libknet/libknet.h:2079:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char src_port[KNET_MAX_PORT_LEN]; data/kronosnet-1.20/libknet/libknet.h:2080:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dst_ipaddr[KNET_MAX_HOST_LEN]; data/kronosnet-1.20/libknet/libknet.h:2081:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dst_port[KNET_MAX_PORT_LEN]; data/kronosnet-1.20/libknet/libknet.h:2252:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[KNET_MAX_LOG_MSG_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_addrtostr.c:28:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char addr_str[KNET_MAX_HOST_LEN]; data/kronosnet-1.20/libknet/tests/api_knet_addrtostr.c:29:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char port_str[KNET_MAX_PORT_LEN]; data/kronosnet-1.20/libknet/tests/api_knet_handle_clear_stats.c:43:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char send_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_handle_clear_stats.c:44:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char recv_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_host_get_name_by_host_id.c:26:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[KNET_MAX_HOST_LEN]; data/kronosnet-1.20/libknet/tests/api_knet_host_set_name.c:26:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char longhostname[KNET_MAX_HOST_LEN+2]; data/kronosnet-1.20/libknet/tests/api_knet_link_set_config.c:30:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char lo_portstr[32]; data/kronosnet-1.20/libknet/tests/api_knet_link_set_config.c:39:2: [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(lo_portstr, "%d", ntohs(lo_in->sin_port)); data/kronosnet-1.20/libknet/tests/api_knet_recv.c:41:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char recv_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_recv.c:42:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char send_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_send.c:43:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char send_buff[KNET_MAX_PACKET_SIZE + 1]; data/kronosnet-1.20/libknet/tests/api_knet_send.c:44:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char recv_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_send_compress.c:44:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char send_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_send_compress.c:45:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char recv_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_send_crypto.c:44:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char send_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_send_crypto.c:45:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char recv_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_send_loopback.c:60:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char send_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_send_loopback.c:61:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char recv_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/api_knet_send_sync.c:101:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char send_buff[KNET_MAX_PACKET_SIZE]; data/kronosnet-1.20/libknet/tests/int_links_acl_ip.c:51:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpbuf[BUFLEN]; data/kronosnet-1.20/libknet/tests/int_links_acl_ip.c:79: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. static const char *rules[100] = { data/kronosnet-1.20/libknet/tests/int_links_acl_ip.c:191: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. static const char *tests[100] = { data/kronosnet-1.20/libknet/tests/int_links_acl_ip.c:212: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. static const char *after_insert_tests[100] = { data/kronosnet-1.20/libknet/tests/knet_bench.c:44: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 *rx_buf[PCKT_FRAG_MAX]; data/kronosnet-1.20/libknet/tests/knet_bench.c:129:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static void parse_nodes(char *nodesinfo[MAX_NODES], int onidx, int port, struct node nodes[MAX_NODES], int *thisidx) data/kronosnet-1.20/libknet/tests/knet_bench.c:133:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char port_str[10]; data/kronosnet-1.20/libknet/tests/knet_bench.c:136:2: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(port_str, "%d", port); data/kronosnet-1.20/libknet/tests/knet_bench.c:139: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). nodes[i].nodeid = atoi(strtok(nodesinfo[i], ",")); data/kronosnet-1.20/libknet/tests/knet_bench.c:241:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *othernodeinfo[MAX_NODES]; data/kronosnet-1.20/libknet/tests/knet_bench.c:340: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). thisnodeid = atoi(optarg); data/kronosnet-1.20/libknet/tests/knet_bench.c:355:12: [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). port = atoi(optarg); data/kronosnet-1.20/libknet/tests/knet_bench.c:369: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). pmtud_interval = atoi(optarg); data/kronosnet-1.20/libknet/tests/knet_bench.c:390:16: [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). senderid = atoi(optarg); data/kronosnet-1.20/libknet/tests/knet_bench.c:416:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). perf_by_size_size = (uint64_t)atoi(optarg) * ONE_GIGABYTE; data/kronosnet-1.20/libknet/tests/knet_bench.c:417:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). perf_by_time_secs = (uint64_t)atoi(optarg); data/kronosnet-1.20/libknet/tests/knet_bench.c:420:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). force_packet_size = (uint32_t)atoi(optarg); data/kronosnet-1.20/libknet/tests/knet_bench.c:434: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). show_stats = atoi(optarg); data/kronosnet-1.20/libknet/tests/knet_bench.c:522:45: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). knet_handle_compress_cfg.compress_level = atoi(strtok(NULL, ":")); data/kronosnet-1.20/libknet/tests/knet_bench.c:523:49: [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). knet_handle_compress_cfg.compress_threshold = atoi(strtok(NULL, ":")); data/kronosnet-1.20/libknet/tests/knet_bench.c:747:74: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. printf("[info]: received %u bytes message: %s\n", msg[i].msg_len, (char *)msg[i].msg_hdr.msg_iov->iov_base); data/kronosnet-1.20/libknet/tests/knet_bench.c:805:47: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. chksum = compute_chsum((const unsigned char *)msg[i].msg_hdr.msg_iov->iov_base + sizeof(struct pckt_ver), msg[i].msg_len - sizeof(struct pckt_ver)); data/kronosnet-1.20/libknet/tests/knet_bench.c:859:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[65535]; data/kronosnet-1.20/libknet/tests/knet_bench.c:940:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *tx_buf[PCKT_FRAG_MAX]; data/kronosnet-1.20/libknet/tests/knet_bench.c:943:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ctrl_message[16]; data/kronosnet-1.20/libknet/tests/knet_bench.c:961:53: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. tx_pckt->chksum = compute_chsum((const unsigned char *)iov_out[i].iov_base + sizeof(struct pckt_ver), iov_out[i].iov_len - sizeof(struct pckt_ver)); data/kronosnet-1.20/libknet/tests/knet_bench.c:1222:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *tx_buf[PCKT_FRAG_MAX]; data/kronosnet-1.20/libknet/tests/knet_bench.c:1225:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ctrl_message[16]; data/kronosnet-1.20/libknet/tests/knet_bench.c:1246:53: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. tx_pckt->chksum = compute_chsum((const unsigned char *)iov_out[i].iov_base + sizeof(struct pckt_ver), iov_out[i].iov_len - sizeof(struct pckt_ver)); data/kronosnet-1.20/libknet/tests/test-common.c:39:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; data/kronosnet-1.20/libknet/tests/test-common.c:424:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char portstr[32]; data/kronosnet-1.20/libknet/tests/test-common.c:437:2: [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(portstr, "%u", port); data/kronosnet-1.20/libknet/tests/test-common.c:463:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char portstr[32]; data/kronosnet-1.20/libknet/tests/test-common.c:466:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(portstr, "%u", port); data/kronosnet-1.20/libknet/threads_rx.c:897: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 src_ipaddr[KNET_MAX_HOST_LEN]; data/kronosnet-1.20/libknet/threads_rx.c:898: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 src_port[KNET_MAX_PORT_LEN]; data/kronosnet-1.20/libknet/transport_common.c:72:4: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&temp_msg, &msgvec[i].msg_hdr, sizeof(struct msghdr)); data/kronosnet-1.20/libknet/transport_sctp.c:73:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mread_buf[KNET_DATABUFSIZE]; data/kronosnet-1.20/libknet/transport_sctp.c:774:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char addr_str[KNET_MAX_HOST_LEN]; data/kronosnet-1.20/libknet/transport_sctp.c:775:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char port_str[KNET_MAX_PORT_LEN]; data/kronosnet-1.20/libknet/transport_sctp.c:1417:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dummy_events[100]; data/kronosnet-1.20/libknet/transport_udp.c:292:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024]; data/kronosnet-1.20/libknet/transport_udp.c:300:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char addr_str[KNET_MAX_HOST_LEN]; data/kronosnet-1.20/libknet/transport_udp.c:301:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char port_str[KNET_MAX_PORT_LEN]; data/kronosnet-1.20/libknet/transport_udp.c:302:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char addr_remote_str[KNET_MAX_HOST_LEN]; data/kronosnet-1.20/libknet/transport_udp.c:303:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char port_remote_str[KNET_MAX_PORT_LEN]; data/kronosnet-1.20/libnozzle/internals.c:28:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; data/kronosnet-1.20/libnozzle/internals.c:145:15: [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). prefix_len = atoi(prefix); data/kronosnet-1.20/libnozzle/internals.h:37:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char name[IFNAMSIZ]; /* interface name */ data/kronosnet-1.20/libnozzle/internals.h:48:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char default_mac[MACADDR_CHAR_MAX + 1]; data/kronosnet-1.20/libnozzle/internals.h:54:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char updownpath[UPDOWN_PATH_MAX]; /* path to up/down scripts if configured */ data/kronosnet-1.20/libnozzle/libnozzle.c:149:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char mac[MACADDR_CHAR_MAX]; data/kronosnet-1.20/libnozzle/libnozzle.c:235:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char cmdline[4096]; data/kronosnet-1.20/libnozzle/libnozzle.c:236:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char proto[6]; data/kronosnet-1.20/libnozzle/libnozzle.c:300: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). rtnl_addr_set_prefixlen(addr, atoi(prefix)); data/kronosnet-1.20/libnozzle/libnozzle.c:396:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char curnozzle[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/libnozzle.c:509:17: [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). nozzle->fd = open(curnozzle, O_RDWR); data/kronosnet-1.20/libnozzle/libnozzle.c:518: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). nozzle->fd = open(curnozzle, O_RDWR); data/kronosnet-1.20/libnozzle/libnozzle.c:531:20: [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 ((nozzle->fd = open("/dev/net/tun", O_RDWR)) < 0) { data/kronosnet-1.20/libnozzle/libnozzle.c:640:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[PATH_MAX]; data/kronosnet-1.20/libnozzle/libnozzle.h:173:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char ipaddr[IPADDR_CHAR_MAX + 1]; data/kronosnet-1.20/libnozzle/libnozzle.h:174:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char prefix[PREFIX_CHAR_MAX + 1]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:22:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv4_1[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:23:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv4_2[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:24:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv6_1[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:25:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv6_2[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:29:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_add_ip.c:31:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char verifycmd[2048]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_close.c:31:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv4_1[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_close.c:32:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv4_2[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_close.c:33:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv6_1[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_close.c:34:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv6_2[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_close.c:38:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[2*IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_close.c:78:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:22:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv4_1[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:23:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv4_2[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:24:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv6_1[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:25:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv6_2[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:29:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_del_ip.c:31:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char verifycmd[2048]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_fd.c:24:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_handle_by_name.c:20:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[2*IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_ips.c:22:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv4_1[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_ips.c:23:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv4_2[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_ips.c:24:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv6_1[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_ips.c:25:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv6_2[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_ips.c:29:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_mac.c:33:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_mtu.c:23:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_get_name_by_handle.c:20:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[2*IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_open.c:20:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name1[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_open.c:21:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name2[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_open.c:106:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[2*IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_open.c:107:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fakepath[PATH_MAX]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_open.c:161:2: [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(device_name, "abcdefghilmnopqrstuvwz"); data/kronosnet-1.20/libnozzle/tests/api_nozzle_run_updown.c:26:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_run_updown.c:32:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpdirsrc[PATH_MAX*2]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_run_updown.c:33:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char tmpstr[PATH_MAX*2]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_run_updown.c:34:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char srcfile[PATH_MAX]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_run_updown.c:35:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char dstfile[PATH_MAX]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_run_updown.c:36:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char current_dir[PATH_MAX]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_down.c:23:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char verifycmd[1024]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_down.c:24:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mac.c:33:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:21:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv4_1[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:22:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv4_2[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:23:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv6_1[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:24:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char testipv6_2[IPBUFSIZE]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:28:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:123:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_mtu.c:125:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char verifycmd[2048]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_up.c:24:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char verifycmd[1024]; data/kronosnet-1.20/libnozzle/tests/api_nozzle_set_up.c:25:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char device_name[IFNAMSIZ]; data/kronosnet-1.20/man/doxyxml.c:112:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[1024] = {'\0'}; data/kronosnet-1.20/man/doxyxml.c:214:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096] = {'\0'}; data/kronosnet-1.20/man/doxyxml.c:332:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fullname[1024]; data/kronosnet-1.20/man/doxyxml.c:367:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fname[PATH_MAX]; data/kronosnet-1.20/man/doxyxml.c:411:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char buffer[1024] = {'\0'}; data/kronosnet-1.20/man/doxyxml.c:500:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buffer[4096] = {'\0'}; data/kronosnet-1.20/man/doxyxml.c:579:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char manfilename[PATH_MAX]; data/kronosnet-1.20/man/doxyxml.c:580:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gendate[64]; data/kronosnet-1.20/man/doxyxml.c:613: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). manfile = fopen(manfilename, "w+"); data/kronosnet-1.20/man/doxyxml.c:1030:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char xml_filename[PATH_MAX]; data/kronosnet-1.20/libknet/handle_api.c:458:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(KNET_THREADS_TIMERES * 2); data/kronosnet-1.20/libknet/host.c:220:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(name) >= KNET_MAX_HOST_LEN) { data/kronosnet-1.20/libknet/tests/api_knet_handle_compress.c:72:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_compress_cfg.compress_model, "none", sizeof(knet_handle_compress_cfg.compress_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_compress.c:87:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_compress_cfg.compress_model, "bzip2", sizeof(knet_handle_compress_cfg.compress_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_compress.c:104:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_compress_cfg.compress_model, "zlib", sizeof(knet_handle_compress_cfg.compress_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_compress.c:120:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_compress_cfg.compress_model, "zlib", sizeof(knet_handle_compress_cfg.compress_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_compress.c:136:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_compress_cfg.compress_model, "zlib", sizeof(knet_handle_compress_cfg.compress_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_compress.c:152:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_compress_cfg.compress_model, "zlib", sizeof(knet_handle_compress_cfg.compress_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_compress.c:169:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_compress_cfg.compress_model, "zlib", sizeof(knet_handle_compress_cfg.compress_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:72:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_model, "none", sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:73:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:74:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:89:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:90:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "none", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:91:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "none", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:106:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:107:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:108:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:124:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:125:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:126:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:142:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:143:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:144:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:162:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:163:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:164:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:192:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:193:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:194:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:222:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:223:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes129", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:224:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:250:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:251:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:252:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "none", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:268:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:269:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:270:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:289:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_model, "none", sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:290:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "none", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto.c:291:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "none", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:84:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_model, "none", sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:85:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:86:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:101:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:102:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "none", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:103:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "none", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:118:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:119:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:120:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:136:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:137:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:138:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:154:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:155:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:156:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:174:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:175:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:176:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:204:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:205:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:206:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:234:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:235:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes129", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:236:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:262:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:263:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:264:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "none", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:280:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:281:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:282:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:301:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:302:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:303:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:363:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_model, "none", sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:364:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "none", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_set_config.c:365:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "none", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_use_config.c:81:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_use_config.c:82:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_use_config.c:83:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_use_config.c:121:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_use_config.c:122:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_use_config.c:123:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha1", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_use_config.c:179:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_model, "none", sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_use_config.c:180:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "none", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_handle_crypto_use_config.c:181:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "none", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_send_compress.c:63:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_compress_cfg.compress_model, model, sizeof(knet_handle_compress_cfg.compress_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_send_crypto.c:63:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/api_knet_send_crypto.c:64:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/api_knet_send_crypto.c:65:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha256", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/fun_config_crypto.c:50:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/fun_config_crypto.c:51:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes128", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/fun_config_crypto.c:52:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha256", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/fun_config_crypto.c:90:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/fun_config_crypto.c:91:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "aes256", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/fun_config_crypto.c:92:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "sha512", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/fun_config_crypto.c:173:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_model, "none", sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/fun_config_crypto.c:174:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_cipher_type, "none", sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/fun_config_crypto.c:175:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). Risk is low because the source is a constant string. strncpy(knet_handle_crypto_cfg.crypto_hash_type, "none", sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/fun_pmtud_crypto.c:69:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, loopback, IFNAMSIZ - 1); data/kronosnet-1.20/libknet/tests/fun_pmtud_crypto.c:83:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ifr.ifr_name, loopback, IFNAMSIZ - 1); data/kronosnet-1.20/libknet/tests/fun_pmtud_crypto.c:126:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, model, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/fun_pmtud_crypto.c:127:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_cipher_type, crypto, sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/fun_pmtud_crypto.c:128:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_hash_type, hash, sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/int_links_acl_ip.c:59:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmpbuf, buf, deli-buf); data/kronosnet-1.20/libknet/tests/knet_bench.c:504:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_model, cryptomodel, sizeof(knet_handle_crypto_cfg.crypto_model) - 1); data/kronosnet-1.20/libknet/tests/knet_bench.c:507:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_cipher_type, cryptotype, sizeof(knet_handle_crypto_cfg.crypto_cipher_type) - 1); data/kronosnet-1.20/libknet/tests/knet_bench.c:510:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(knet_handle_crypto_cfg.crypto_hash_type, cryptohash, sizeof(knet_handle_crypto_cfg.crypto_hash_type) - 1); data/kronosnet-1.20/libknet/tests/knet_bench.c:868:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(buf); data/kronosnet-1.20/libknet/tests/knet_bench.c:892:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(KNET_THREADS_TIMERES / 16); data/kronosnet-1.20/libknet/tests/test-common.c:50:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(fd, buf, sizeof(buf)); data/kronosnet-1.20/libknet/tests/test-common.c:222:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). len = read(logfd, &msg, sizeof(msg)); data/kronosnet-1.20/libknet/threads_common.c:148:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(KNET_THREADS_TIMERES); data/kronosnet-1.20/libknet/threads_common.c:195:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(KNET_THREADS_TIMERES); data/kronosnet-1.20/libknet/threads_heartbeat.c:213:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(KNET_THREADS_TIMERES); data/kronosnet-1.20/libknet/threads_pmtud.c:559:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(KNET_THREADS_TIMERES); data/kronosnet-1.20/libknet/transport_sctp.c:306:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(KNET_THREADS_TIMERES / 16); data/kronosnet-1.20/libknet/transport_sctp.c:749:3: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(knet_h->reconnect_int * 1000); data/kronosnet-1.20/libknet/transport_udp.c:413:4: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(KNET_THREADS_TIMERES / 16); data/kronosnet-1.20/libnozzle/internals.c:39:7: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read(fd, buf, sizeof(buf)); data/kronosnet-1.20/libnozzle/libnozzle.c:350: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). snprintf(cmdline + strlen(cmdline), data/kronosnet-1.20/libnozzle/libnozzle.c:351: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). sizeof(cmdline) - strlen(cmdline) -1, data/kronosnet-1.20/libnozzle/libnozzle.c:355: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). snprintf(cmdline + strlen(cmdline), data/kronosnet-1.20/libnozzle/libnozzle.c:356: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). sizeof(cmdline) - strlen(cmdline) -1, data/kronosnet-1.20/libnozzle/libnozzle.c:410:6: [1] (buffer) strlen: Does not handle 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(devname) >= IFNAMSIZ) { data/kronosnet-1.20/libnozzle/libnozzle.c:421:6: [1] (buffer) strlen: Does not handle 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(devname)) { data/kronosnet-1.20/libnozzle/libnozzle.c:445:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(updownpath) >= UPDOWN_PATH_MAX) { data/kronosnet-1.20/libnozzle/libnozzle.c:490:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!strlen(devname)) { data/kronosnet-1.20/libnozzle/libnozzle.c:545:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((strlen(devname) > 0) && (strcmp(devname, ifname) != 0)) { data/kronosnet-1.20/libnozzle/libnozzle.c:565:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(nozzle->default_mac, temp_mac, 18); data/kronosnet-1.20/libnozzle/libnozzle.c:569:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(updownpath); data/kronosnet-1.20/libnozzle/libnozzle.c:923:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((devname == NULL) || (strlen(devname) > IFNAMSIZ)) { data/kronosnet-1.20/libnozzle/libnozzle.c:1100:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ip->ipaddr, ipaddr, IPADDR_CHAR_MAX); data/kronosnet-1.20/libnozzle/libnozzle.c:1101:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(ip->prefix, prefix, PREFIX_CHAR_MAX); data/kronosnet-1.20/man/doxyxml.c:161:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). for (i=0; i<strlen(string); i++) { data/kronosnet-1.20/man/doxyxml.c:414: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). for (i=0; i< strlen(name); i++) { data/kronosnet-1.20/man/doxyxml.c:417: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). buffer[strlen(name)] = '\0'; data/kronosnet-1.20/man/doxyxml.c:425: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 typelength = strlen(type); data/kronosnet-1.20/man/doxyxml.c:473:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(pi->paramtype) > max_param_length) { data/kronosnet-1.20/man/doxyxml.c:474: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). max_param_length = strlen(pi->paramtype); data/kronosnet-1.20/man/doxyxml.c:561:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(current)) { data/kronosnet-1.20/man/doxyxml.c:571:6: [1] (buffer) strlen: Does not handle 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(current)) { data/kronosnet-1.20/man/doxyxml.c:634: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(pi->paramtype) < LINE_LENGTH) && data/kronosnet-1.20/man/doxyxml.c:635: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). (strlen(pi->paramtype) > max_param_type_len)) { data/kronosnet-1.20/man/doxyxml.c:636: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). max_param_type_len = strlen(pi->paramtype); data/kronosnet-1.20/man/doxyxml.c:638:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(pi->paramname) > max_param_name_len) { data/kronosnet-1.20/man/doxyxml.c:639: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). max_param_name_len = strlen(pi->paramname); data/kronosnet-1.20/man/doxyxml.c:893:12: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). brief[strlen(brief) - 2] = '\0'; ANALYSIS SUMMARY: Hits = 374 Lines analyzed = 39058 in approximately 3.56 seconds (10979 lines/second) Physical Source Lines of Code (SLOC) = 28011 Hits@level = [0] 2020 [1] 149 [2] 182 [3] 4 [4] 25 [5] 14 Hits@level+ = [0+] 2394 [1+] 374 [2+] 225 [3+] 43 [4+] 39 [5+] 14 Hits/KSLOC@level+ = [0+] 85.4664 [1+] 13.3519 [2+] 8.03256 [3+] 1.53511 [4+] 1.39231 [5+] 0.499804 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.