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/globus-xio-6.2/globus_xio_system_win32.c Examining data/globus-xio-6.2/globus_xio_wrapblock.c Examining data/globus-xio-6.2/globus_xio_timeout.c Examining data/globus-xio-6.2/globus_xio_util.h Examining data/globus-xio-6.2/globus_xio_types.h Examining data/globus-xio-6.2/globus_xio_attr.c Examining data/globus-xio-6.2/globus_xio_server.c Examining data/globus-xio-6.2/globus_xio_driver.h Examining data/globus-xio-6.2/globus_xio_load.c Examining data/globus-xio-6.2/globus_xio_load.h Examining data/globus-xio-6.2/globus_xio_system_select.c Examining data/globus-xio-6.2/globus_i_xio_win32_file.c Examining data/globus-xio-6.2/globus_i_xio_win32.h Examining data/globus-xio-6.2/globus_xio_handle.c Examining data/globus-xio-6.2/globus_xio_pass.c Examining data/globus-xio-6.2/globus_xio_driver.c Examining data/globus-xio-6.2/globus_xio_util.c Examining data/globus-xio-6.2/globus_xio_wrapblock.h Examining data/globus-xio-6.2/globus_i_xio_win32_mode.c Examining data/globus-xio-6.2/globus_xio_system.h Examining data/globus-xio-6.2/globus_i_xio_win32_complete.c Examining data/globus-xio-6.2/globus_i_xio_system_common.c Examining data/globus-xio-6.2/globus_i_xio_system_common.h Examining data/globus-xio-6.2/globus_xio.h Examining data/globus-xio-6.2/globus_i_xio_win32_socket.c Examining data/globus-xio-6.2/test/test_common.c Examining data/globus-xio-6.2/test/http_pingpong_test.c Examining data/globus-xio-6.2/test/server_pre_init_test.c Examining data/globus-xio-6.2/test/http_header_test.c Examining data/globus-xio-6.2/test/timeout_test.c Examining data/globus-xio-6.2/test/space_test.c Examining data/globus-xio-6.2/test/framework_test.c Examining data/globus-xio-6.2/test/http_performance_common.c Examining data/globus-xio-6.2/test/http_get_test.c Examining data/globus-xio-6.2/test/server2_test.c Examining data/globus-xio-6.2/test/close_cancel_test.c Examining data/globus-xio-6.2/test/blocking_dd_test.c Examining data/globus-xio-6.2/test/test_common.h Examining data/globus-xio-6.2/test/cancel_test.c Examining data/globus-xio-6.2/test/drivers/globus_xio_op.h Examining data/globus-xio-6.2/test/drivers/globus_xio_null_pass.h Examining data/globus-xio-6.2/test/drivers/globus_xio_debug.h Examining data/globus-xio-6.2/test/drivers/globus_xio_stack_driver.h Examining data/globus-xio-6.2/test/drivers/globus_xio_test_transport.c Examining data/globus-xio-6.2/test/drivers/globus_i_xio_test_drivers.h Examining data/globus-xio-6.2/test/drivers/globus_xio_test_transport.h Examining data/globus-xio-6.2/test/drivers/globus_xio_debug.c Examining data/globus-xio-6.2/test/drivers/globus_xio_smtp.c Examining data/globus-xio-6.2/test/drivers/globus_xio_bounce.c Examining data/globus-xio-6.2/test/drivers/globus_xio_verify.h Examining data/globus-xio-6.2/test/drivers/globus_xio_stack_driver.c Examining data/globus-xio-6.2/test/drivers/globus_xio_null.h Examining data/globus-xio-6.2/test/drivers/globus_xio_bounce.h Examining data/globus-xio-6.2/test/drivers/globus_xio_null_pass.c Examining data/globus-xio-6.2/test/drivers/globus_xio_smtp.h Examining data/globus-xio-6.2/test/drivers/globus_xio_verify.c Examining data/globus-xio-6.2/test/drivers/globus_xio_op.c Examining data/globus-xio-6.2/test/drivers/globus_xio_test_drivers.c Examining data/globus-xio-6.2/test/drivers/globus_xio_null.c Examining data/globus-xio-6.2/test/globus_utp.h Examining data/globus-xio-6.2/test/unload_test.c Examining data/globus-xio-6.2/test/http_timeout_test.c Examining data/globus-xio-6.2/test/block_barrier_test.c Examining data/globus-xio-6.2/test/close_barrier2_test.c Examining data/globus-xio-6.2/test/attr_test.c Examining data/globus-xio-6.2/test/http_test_common.h Examining data/globus-xio-6.2/test/close_barrier_test.c Examining data/globus-xio-6.2/test/http_performance_common.h Examining data/globus-xio-6.2/test/handle_create_from_url_test.c Examining data/globus-xio-6.2/test/globus_utp_main.c Examining data/globus-xio-6.2/test/http_post_test.c Examining data/globus-xio-6.2/test/driver_stack.c Examining data/globus-xio-6.2/test/http_throughput_test.c Examining data/globus-xio-6.2/test/read_barrier_test.c Examining data/globus-xio-6.2/test/http_put_test.c Examining data/globus-xio-6.2/test/http_test_common.c Examining data/globus-xio-6.2/test/globus_utp_private.h Examining data/globus-xio-6.2/globus_i_xio.h Examining data/globus-xio-6.2/builtins/telnet/globus_xio_telnet.h Examining data/globus-xio-6.2/builtins/telnet/globus_xio_telnet.c Examining data/globus-xio-6.2/builtins/http/globus_xio_http_attr.c Examining data/globus-xio-6.2/builtins/http/globus_xio_http_header.c Examining data/globus-xio-6.2/builtins/http/globus_xio_http_transform.c Examining data/globus-xio-6.2/builtins/http/globus_xio_http.c Examining data/globus-xio-6.2/builtins/http/globus_xio_http_target.c Examining data/globus-xio-6.2/builtins/http/globus_i_xio_http_responses.h Examining data/globus-xio-6.2/builtins/http/globus_xio_http_handle.c Examining data/globus-xio-6.2/builtins/http/globus_xio_http_client.c Examining data/globus-xio-6.2/builtins/http/globus_xio_http_response.c Examining data/globus-xio-6.2/builtins/http/globus_i_xio_http.h Examining data/globus-xio-6.2/builtins/http/globus_xio_http_request.c Examining data/globus-xio-6.2/builtins/http/globus_xio_http_server.c Examining data/globus-xio-6.2/builtins/http/globus_xio_http.h Examining data/globus-xio-6.2/builtins/http/globus_xio_http_header_info.c Examining data/globus-xio-6.2/builtins/http/globus_xio_http_rfc2616.c Examining data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c Examining data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.h Examining data/globus-xio-6.2/builtins/file/globus_xio_file_driver.h Examining data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c Examining data/globus-xio-6.2/builtins/queue/globus_xio_queue.h Examining data/globus-xio-6.2/builtins/queue/globus_xio_queue.c Examining data/globus-xio-6.2/builtins/mode_e/globus_xio_mode_e_driver.h Examining data/globus-xio-6.2/builtins/mode_e/globus_xio_mode_e_driver.c Examining data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c Examining data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.h Examining data/globus-xio-6.2/builtins/ordering/globus_xio_ordering_driver.c Examining data/globus-xio-6.2/builtins/ordering/globus_xio_ordering_driver.h FINAL RESULTS: data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:98:41: [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. globus_xio_system_file_handle_t system; data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:416:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(*out_string, opts_format, data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:625:51: [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. result = globus_xio_system_file_init(&handle->system, handle->fd); data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:681:44: [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. globus_xio_system_file_destroy(handle->system); data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:763:21: [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. handle->system, data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:778:21: [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. handle->system, data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:859:21: [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. handle->system, data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:874:21: [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. handle->system, data/globus-xio-6.2/builtins/http/globus_xio_http_server.c:682:14: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. rc = sscanf(current_offset, "%s ", http_handle->request_info.method); data/globus-xio-6.2/builtins/http/globus_xio_http_server.c:702:14: [4] (buffer) sscanf: The scanf() family's %s operation, without a limit specification, permits buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a different input function. rc = sscanf(current_offset, "%s ", http_handle->request_info.uri); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:213:41: [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. globus_xio_system_socket_handle_t system; data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:831:32: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:846:32: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:852:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:856:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:860:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:878:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2005:64: [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. globus_xio_system_socket_destroy(connect_info->handle->system); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2122:40: [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. &connect_info->handle->system, fd, GLOBUS_XIO_SYSTEM_TCP); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2133:39: [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. connect_info->handle->system, data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2141:72: [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. globus_xio_system_socket_destroy(connect_info->handle->system); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2339:22: [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. &handle->system, handle->fd, GLOBUS_XIO_SYSTEM_TCP); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2381:46: [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. globus_xio_system_socket_destroy(handle->system); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2506:21: [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. handle->system, data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2519:21: [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. handle->system, data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2667:21: [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. handle->system, data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2680:21: [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. handle->system, data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2994:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:2998:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:3010:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:136:41: [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. globus_xio_system_socket_handle_t system; data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:594:32: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:609:32: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:615:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:619:28: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. string_opts_len += sprintf( data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:1320:18: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. &handle->system, handle->fd, GLOBUS_XIO_SYSTEM_UDP); data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:1362:46: [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. globus_xio_system_socket_destroy(handle->system); data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:1432:21: [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. handle->system, data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:1453:21: [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. handle->system, data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:1516:17: [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. handle->system, iovec, iovec_count, 0, 0, addr, &nbytes); data/globus-xio-6.2/globus_i_xio_win32_file.c:1160:41: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. DWORD access; data/globus-xio-6.2/globus_i_xio_win32_file.c:1225:9: [4] (race) access: This usually indicates a security flaw. If an attacker can change anything along the path between the call to access() and the file's actual use (e.g., by moving files), the attacker can exploit the race condition (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid()) and try to open the file directly. access, data/globus-xio-6.2/globus_xio_load.c:81:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, 256, GLOBUS_XIO_EXTENSION_FORMAT, driver_name); data/globus-xio-6.2/globus_xio_load.c:156:9: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(buf, 256, GLOBUS_XIO_EXTENSION_FORMAT, driver->name); data/globus-xio-6.2/test/drivers/globus_xio_debug.c:50:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:90:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(info->return_address, "%s", globus_l_return_address); data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:126:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(info->to_address, "%s", to_addr); data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:168:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(info->message, "HELO %s\r\n", globus_l_hostname); data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:173:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(info->message, "MAIL From: %s\r\n", info->return_address); data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:178:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(info->message, "RCPT To: %s\r\n", info->to_address); data/globus-xio-6.2/test/globus_utp_main.c:220:2: [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(theTimeStr, ctime(&theTime)); data/globus-xio-6.2/test/globus_utp_main.c:303:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(newKey, keyStr, keyArg); /* Compute new key. */ data/globus-xio-6.2/test/globus_utp_main.c:305:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(newValue, valueStr, ap); data/globus-xio-6.2/test/globus_utp_main.c:317: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(newAttr->value, newValue); data/globus-xio-6.2/test/globus_utp_main.c:516:2: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(name, nameStr, ap); data/globus-xio-6.2/test/globus_utp_main.c:742:2: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, messageStr, ap); data/globus-xio-6.2/test/http_performance_common.c:670:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(url, fmt, contact, uri); data/globus-xio-6.2/test/http_performance_common.c:862:2: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(namebuf, "%s-%lu-%lf-%lf", perf->name, data/globus-xio-6.2/test/http_performance_common.c:1010:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(namebuf, "%s-timings.txt", perf->name); data/globus-xio-6.2/test/http_test_common.c:629:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(url, fmt, contact, uri); data/globus-xio-6.2/test/test_common.c:60:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stderr, fmt, ap); data/globus-xio-6.2/globus_i_xio_win32.h:112:32: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define win32_mutex_init(x, y) InitializeCriticalSection(x) data/globus-xio-6.2/globus_i_xio_win32.h:114:29: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define win32_mutex_lock(x) EnterCriticalSection(x) data/globus-xio-6.2/globus_i_xio_win32_mode.c:63:41: [3] (misc) LoadLibrary: Ensure that the full path to the library is specified, or current directory may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to find library path, if you aren't already. globus_i_xio_win32_mode_ntdll = LoadLibrary("ntdll.dll"); data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:509:20: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. username = getenv("USERNAME"); data/globus-xio-6.2/test/drivers/globus_xio_test_transport.c:76:41: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. int random; data/globus-xio-6.2/test/drivers/globus_xio_test_transport.c:245:12: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if(dh->random) data/globus-xio-6.2/test/drivers/globus_xio_test_transport.c:296:13: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(usecs); data/globus-xio-6.2/test/drivers/globus_xio_test_transport.c:472:24: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if(server->random) data/globus-xio-6.2/test/drivers/globus_xio_test_transport.c:568:20: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if(dh->random) data/globus-xio-6.2/test/drivers/globus_xio_test_transport.c:633:20: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if(dh->random) data/globus-xio-6.2/test/drivers/globus_xio_test_transport.c:726:20: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if(dh->random) data/globus-xio-6.2/test/drivers/globus_xio_test_transport.c:810:20: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if(dh->random) data/globus-xio-6.2/test/globus_utp_main.c:190:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. username = getenv("USERNAME"); data/globus-xio-6.2/test/http_get_test.c:616:18: [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 ((rc = getopt(argc, argv, "hf:cst:b:v:")) != EOF) data/globus-xio-6.2/test/http_header_test.c:496:18: [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 ((rc = getopt(argc, argv, "hf:cs")) != EOF) data/globus-xio-6.2/test/http_pingpong_test.c:526:18: [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 ((rc = getopt(argc, argv, "h:cst:b:v:i:")) != EOF) data/globus-xio-6.2/test/http_post_test.c:667:18: [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 ((rc = getopt(argc, argv, "hf:cst:b:v:i:")) != EOF) data/globus-xio-6.2/test/http_put_test.c:588:18: [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 ((rc = getopt(argc, argv, "hf:cst:b:v:")) != EOF) data/globus-xio-6.2/test/http_throughput_test.c:444:18: [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 ((rc = getopt(argc, argv, "h:cst:b:v:i:")) != EOF) data/globus-xio-6.2/test/http_timeout_test.c:128:18: [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 ((rc = getopt(argc, argv, "t:T:arh")) != EOF) data/globus-xio-6.2/test/test_common.c:136:22: [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((c = (char)getopt(argc, argv, "siF:d:c:R:W:r:w:b:D:X:")) != (char)EOF) data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:169:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr, &globus_l_xio_file_attr_default, sizeof(globus_l_attr_t)); data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:452:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr, src, sizeof(globus_l_attr_t)); data/globus-xio-6.2/builtins/http/globus_xio_http.c:164:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy((char *) iov->iov_base + iov->iov_len, data, to_copy); data/globus-xio-6.2/builtins/http/globus_xio_http_client.c:297:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char port_buffer[7]; data/globus-xio-6.2/builtins/http/globus_xio_http_client.c:300:13: [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_buffer, ":%hu%n", data/globus-xio-6.2/builtins/http/globus_xio_http_rfc2616.c:25:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char code_str[4]; data/globus-xio-6.2/builtins/http/globus_xio_http_rfc2616.c:32:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(&code_str[0], "%d", code); data/globus-xio-6.2/builtins/http/globus_xio_http_server.c:212:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char code_str[5]; data/globus-xio-6.2/builtins/http/globus_xio_http_server.c:246:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(code_str, "%d ", http_handle->response_info.status_code); data/globus-xio-6.2/builtins/http/globus_xio_http_target.c:84:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(target->uri+1, contact_info->resource, urilen); data/globus-xio-6.2/builtins/http/globus_xio_http_target.c:117:41: [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). target->port = (unsigned short) atoi(contact_info->port); data/globus-xio-6.2/builtins/http/globus_xio_http_transform.c:234:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char port_buf[12]; data/globus-xio-6.2/builtins/http/globus_xio_http_transform.c:921:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(http_handle->read_operation.iov[i].iov_base, data/globus-xio-6.2/builtins/mode_e/globus_xio_mode_e_driver.c:3393:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr, &globus_l_xio_mode_e_attr_default, data/globus-xio-6.2/builtins/mode_e/globus_xio_mode_e_driver.c:3529:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst_attr, src_attr, sizeof(globus_l_xio_mode_e_attr_t)); data/globus-xio-6.2/builtins/ordering/globus_xio_ordering_driver.c:730:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/globus-xio-6.2/builtins/ordering/globus_xio_ordering_driver.c:1592:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr, &globus_l_xio_ordering_attr_default, data/globus-xio-6.2/builtins/ordering/globus_xio_ordering_driver.c:1689:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst_attr, src_attr, sizeof(globus_l_xio_ordering_attr_t)); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:328:13: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). open(pathname, O_CREAT | O_RDWR, data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:349:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[6]; data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:374:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(buf); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:386:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[6]; data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:450:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr, &globus_l_xio_tcp_attr_default, sizeof(globus_l_attr_t)); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:837:32: [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. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:866:32: [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. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:873:32: [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. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:922:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr, src, sizeof(globus_l_attr_t)); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:1381:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char portbuf[10]; data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:3002:28: [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. string_opts_len += sprintf( data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:3006:28: [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. string_opts_len += sprintf( data/globus-xio-6.2/builtins/telnet/globus_xio_telnet.c:355:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(handle->user_read_iovec->iov_base, handle->read_buffer, len); data/globus-xio-6.2/builtins/telnet/globus_xio_telnet.c:371:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(handle->user_read_iovec->iov_base, handle->read_buffer, len); data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:186:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr, &globus_l_xio_udp_attr_default, sizeof(globus_l_attr_t)); data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:600:32: [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. string_opts_len += sprintf( data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:625:32: [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. string_opts_len += sprintf( data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:632:32: [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. string_opts_len += sprintf( data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:679:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr, src, sizeof(globus_l_attr_t)); data/globus-xio-6.2/builtins/udp/globus_xio_udp_driver.c:977:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char portbuf[10]; data/globus-xio-6.2/globus_i_xio_win32_socket.c:166:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 errbuf[64]; data/globus-xio-6.2/globus_i_xio_win32_socket.c:167:21: [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(errbuf, "accept, fd=%ld, error=%d", data/globus-xio-6.2/globus_i_xio_win32_socket.c:179:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 errbuf[64]; data/globus-xio-6.2/globus_i_xio_win32_socket.c:180:21: [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(errbuf, "accept, fd=%ld, error=%d", data/globus-xio-6.2/globus_xio_handle.c:126:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * driver_list[XIO_MAX_DRIVER_SIZE]; data/globus-xio-6.2/globus_xio_load.c:56:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/globus-xio-6.2/globus_xio_load.c:140:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[256]; data/globus-xio-6.2/globus_xio_server.c:1558:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hexstring[3]; data/globus-xio-6.2/globus_xio_server.c:1973: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. const char * layout[GLOBUS_L_XIO_LAYOUT_SIZE]; data/globus-xio-6.2/globus_xio_system_select.c:927:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[64]; data/globus-xio-6.2/globus_xio_system_select.c:1284:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/globus-xio-6.2/globus_xio_system_select.c:1288:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/globus-xio-6.2/globus_xio_system_select.c:2245:15: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). *fd = open(filename, flags, mode); data/globus-xio-6.2/globus_xio_util.h:442:38: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _iov[_i].iov_base = (char *) _iov[_i].iov_base + _n; \ data/globus-xio-6.2/globus_xio_util.h:474:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. _new_iov[0].iov_base = (char *) _iov[_i].iov_base + _n; \ data/globus-xio-6.2/globus_xio_util.h:512:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&(out_buf)[_ndx], (iov)[_i].iov_base, (iov)[_i].iov_len);\ data/globus-xio-6.2/globus_xio_wrapblock.h:45:41: [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). globus_xio_wrapblock_open_func_t open, data/globus-xio-6.2/test/close_cancel_test.c:86:11: [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). pos = atoi(argv[argc - 1]); data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:42:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char return_address[256]; data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:43:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char to_address[256]; data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:44:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char message[1024]; data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:51: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 globus_l_hostname[MAXHOSTNAMELEN]; data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:142:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst_info, src_info, sizeof(l_smtp_info_t)); data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:183:13: [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(info->message, "DATA\r\n"); data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:386:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(info->message, "\r\n.\r\nQUIT\r\n"); data/globus-xio-6.2/test/drivers/globus_xio_test_transport.c:323:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(attr, src, sizeof(globus_l_xio_test_handle_t)); data/globus-xio-6.2/test/globus_utp_main.c:142: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 hostnameBuff[MAXHOSTNAMELEN]; data/globus-xio-6.2/test/globus_utp_main.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 theTimeStr[27]; data/globus-xio-6.2/test/globus_utp_main.c:233:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[100]; data/globus-xio-6.2/test/globus_utp_main.c:236:21: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if (!(outFile = fopen(outFilename, "w"))) data/globus-xio-6.2/test/globus_utp_main.c:729: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(timeString, "%.*f", precision, tvAsDouble); data/globus-xio-6.2/test/handle_create_from_url_test.c:27:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[LINE_LEN]; data/globus-xio-6.2/test/http_get_test.c:128:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char content_length_buffer[64]; data/globus-xio-6.2/test/http_get_test.c:155:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(content_length_buffer, "%ld", file_size); data/globus-xio-6.2/test/http_get_test.c:315:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char content_length_buffer[64]; data/globus-xio-6.2/test/http_get_test.c:335:17: [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(content_length_buffer, "%ld", file_size); data/globus-xio-6.2/test/http_get_test.c:403:10: [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). fp = fopen(filename, "rb"); data/globus-xio-6.2/test/http_get_test.c:614:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gets_buffer[1024]; data/globus-xio-6.2/test/http_header_test.c:272: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). file = fopen(filename, "rb"); data/globus-xio-6.2/test/http_header_test.c:494:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gets_buffer[1024]; data/globus-xio-6.2/test/http_performance_common.c:959:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 computer_name[MAX_COMPUTERNAME_LENGTH + 1]; data/globus-xio-6.2/test/http_performance_common.c:960:16: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 win_release[10]; data/globus-xio-6.2/test/http_performance_common.c:972:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(win_release, "%d.%d", (int)dwMinorVersion, (int)dwMinorVersion); data/globus-xio-6.2/test/http_performance_common.c:1008:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char namebuf[50]; data/globus-xio-6.2/test/http_pingpong_test.c:109:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char content_length_buffer[64]; data/globus-xio-6.2/test/http_pingpong_test.c:131:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(content_length_buffer, "%lu", (unsigned long) info->size); data/globus-xio-6.2/test/http_pingpong_test.c:306:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char content_length_buffer[64]; data/globus-xio-6.2/test/http_pingpong_test.c:342:17: [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(content_length_buffer, "%lu", data/globus-xio-6.2/test/http_pingpong_test.c:514:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gets_buffer[1024]; data/globus-xio-6.2/test/http_pingpong_test.c:578:36: [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). info->iterations = atoi(optarg); data/globus-xio-6.2/test/http_post_test.c:133:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char content_length_buffer[64]; data/globus-xio-6.2/test/http_post_test.c:161:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(content_length_buffer, "%ld", file_size); data/globus-xio-6.2/test/http_post_test.c:347:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char content_length_buffer[64]; data/globus-xio-6.2/test/http_post_test.c:382:17: [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(content_length_buffer, "%ld", file_size); data/globus-xio-6.2/test/http_post_test.c:454:10: [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). fp = fopen(filename, "rb"); data/globus-xio-6.2/test/http_post_test.c:665:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gets_buffer[1024]; data/globus-xio-6.2/test/http_post_test.c:721:30: [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). iterations = atoi(optarg); data/globus-xio-6.2/test/http_put_test.c:129:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char content_length_buffer[64]; data/globus-xio-6.2/test/http_put_test.c:156:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(content_length_buffer, "%ld", file_size); data/globus-xio-6.2/test/http_put_test.c:375:10: [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). fp = fopen(filename, "rb"); data/globus-xio-6.2/test/http_put_test.c:586:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gets_buffer[1024]; data/globus-xio-6.2/test/http_throughput_test.c:93:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char content_length_buffer[64]; data/globus-xio-6.2/test/http_throughput_test.c:117:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(content_length_buffer, "%lu", (unsigned long) info->size); data/globus-xio-6.2/test/http_throughput_test.c:303:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char content_length_buffer[64]; data/globus-xio-6.2/test/http_throughput_test.c:365:6: [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(content_length_buffer, "%lu", (unsigned long) info->size); data/globus-xio-6.2/test/http_throughput_test.c:433:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char gets_buffer[1024]; data/globus-xio-6.2/test/http_throughput_test.c:496:36: [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). info->iterations = atoi(optarg); data/globus-xio-6.2/test/http_timeout_test.c:157:47: [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). client_timeout_info.timeout = atoi(optarg); data/globus-xio-6.2/test/http_timeout_test.c:158:47: [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). server_timeout_info.timeout = atoi(optarg); data/globus-xio-6.2/test/http_timeout_test.c:598:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy((char *) info->buffer, "ok\n"); data/globus-xio-6.2/test/test_common.c:141:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). failure = atoi(optarg); data/globus-xio-6.2/test/test_common.c:158:25: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). delay = atoi(optarg); data/globus-xio-6.2/test/test_common.c:162:30: [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). chunk_size = atoi(optarg); data/globus-xio-6.2/test/test_common.c:170:33: [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). buffer_length = atoi(optarg); data/globus-xio-6.2/test/test_common.c:174:30: [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). read_count = atoi(optarg); data/globus-xio-6.2/test/test_common.c:178:31: [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). write_count = atoi(optarg); data/globus-xio-6.2/test/test_common.c:182:36: [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). total_read_bytes = atoi(optarg); data/globus-xio-6.2/test/test_common.c:186:37: [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). total_write_bytes = atoi(optarg); data/globus-xio-6.2/test/test_common.c:190:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). seed = atoi(optarg); data/globus-xio-6.2/test/test_common.c:475:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[512]; data/globus-xio-6.2/test/test_common.c:479:14: [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). in = fopen(name, "rb"); data/globus-xio-6.2/test/unload_test.c:51:11: [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). pos = atoi(argv[1]); data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:406:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). *out_string = malloc(strlen(opts_format) data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:407: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). + strlen(flags_string) data/globus-xio-6.2/builtins/file/globus_xio_file_driver.c:409: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). + strlen(blocking_string)); data/globus-xio-6.2/builtins/http/globus_xio_http_client.c:232:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). GLOBUS_XIO_HTTP_COPY_BLOB(&iovecs, str, strlen(str), free_iovecs_exit); data/globus-xio-6.2/builtins/http/globus_xio_http_client.c:240:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). GLOBUS_XIO_HTTP_COPY_BLOB(&iovecs, str, strlen(str), free_iovecs_exit); data/globus-xio-6.2/builtins/http/globus_xio_http_client.c:251:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). GLOBUS_XIO_HTTP_COPY_BLOB(&iovecs, str, strlen(str), free_iovecs_exit); data/globus-xio-6.2/builtins/http/globus_xio_http_client.c:260:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(current_header->name), data/globus-xio-6.2/builtins/http/globus_xio_http_client.c:268:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(current_header->value), data/globus-xio-6.2/builtins/http/globus_xio_http_client.c:291:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(http_handle->target_info.host), data/globus-xio-6.2/builtins/http/globus_xio_http_client.c:353:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(size_buffer), data/globus-xio-6.2/builtins/http/globus_xio_http_server.c:259:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). GLOBUS_XIO_HTTP_COPY_BLOB(&iovecs, str, strlen(str), free_iovecs_error); data/globus-xio-6.2/builtins/http/globus_xio_http_server.c:269:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(current_header->name), data/globus-xio-6.2/builtins/http/globus_xio_http_server.c:279:17: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(current_header->value), data/globus-xio-6.2/builtins/http/globus_xio_http_server.c:357:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(size_buffer), data/globus-xio-6.2/builtins/http/globus_xio_http_target.c:80:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). size_t urilen = strlen(contact_info->resource); data/globus-xio-6.2/builtins/tcp/globus_xio_tcp_driver.c:363:22: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). if((rc = read( data/globus-xio-6.2/globus_i_xio_system_common.c:140:18: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(fd, buf, buflen); data/globus-xio-6.2/globus_i_xio_system_common.c:200:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). rc = read(fd, iov[0].iov_base,iov[0].iov_len); data/globus-xio-6.2/globus_xio_handle.c:3833:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(ent->driver_name)); data/globus-xio-6.2/globus_xio_server.c:1604:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). encoded = (char *) globus_malloc((3 * strlen(s) + 1) * sizeof(char)); data/globus-xio-6.2/globus_xio_system_select.c:935:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). done = read(globus_l_xio_system_wakeup_pipe[0], buf, sizeof(buf)); data/globus-xio-6.2/globus_xio_wrapblock.h:47:41: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). globus_xio_wrapblock_read_func_t read, data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:194:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). info->iovec.iov_len = strlen(info->message); data/globus-xio-6.2/test/drivers/globus_xio_smtp.c:388:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). info->iovec.iov_len = strlen(info->message); data/globus-xio-6.2/test/globus_utp_main.c:222: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). theTimeStr[strlen(theTimeStr) - 1] = 0; data/globus-xio-6.2/test/http_header_test.c:336:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). token += strlen("<name>"); data/globus-xio-6.2/test/http_header_test.c:343:18: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). token += strlen("<value>"); data/globus-xio-6.2/test/http_performance_common.c:662:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). url = globus_libc_malloc(strlen(fmt) + strlen(contact) + strlen(uri) + 1); data/globus-xio-6.2/test/http_performance_common.c:662:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). url = globus_libc_malloc(strlen(fmt) + strlen(contact) + strlen(uri) + 1); data/globus-xio-6.2/test/http_performance_common.c:662:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). url = globus_libc_malloc(strlen(fmt) + strlen(contact) + strlen(uri) + 1); data/globus-xio-6.2/test/http_performance_common.c:843:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). namebuf = globus_malloc(strlen(perf->name)+30); data/globus-xio-6.2/test/http_test_common.c:621:30: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). url = globus_libc_malloc(strlen(fmt) + strlen(contact) + strlen(uri) + 1); data/globus-xio-6.2/test/http_test_common.c:621:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). url = globus_libc_malloc(strlen(fmt) + strlen(contact) + strlen(uri) + 1); data/globus-xio-6.2/test/http_test_common.c:621:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). url = globus_libc_malloc(strlen(fmt) + strlen(contact) + strlen(uri) + 1); data/globus-xio-6.2/test/http_timeout_test.c:603:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen((char *) info->buffer), data/globus-xio-6.2/test/http_timeout_test.c:604:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen((char *) info->buffer), data/globus-xio-6.2/test/test_common.c:484:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(line[strlen(line) - 1] == '\n') data/globus-xio-6.2/test/test_common.c:486:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). line[strlen(line) - 1] = '\0'; ANALYSIS SUMMARY: Hits = 240 Lines analyzed = 64979 in approximately 1.24 seconds (52334 lines/second) Physical Source Lines of Code (SLOC) = 46711 Hits@level = [0] 223 [1] 38 [2] 120 [3] 21 [4] 61 [5] 0 Hits@level+ = [0+] 463 [1+] 240 [2+] 202 [3+] 82 [4+] 61 [5+] 0 Hits/KSLOC@level+ = [0+] 9.91201 [1+] 5.13798 [2+] 4.32446 [3+] 1.75548 [4+] 1.3059 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.