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-common-18.5/library/globus_hashtable.h Examining data/globus-common-18.5/library/globus_error_errno.h Examining data/globus-common-18.5/library/globus_module.c Examining data/globus-common-18.5/library/globus_error_hierarchy.h Examining data/globus-common-18.5/library/globus_extension.c Examining data/globus-common-18.5/library/globus_object_cache.c Examining data/globus-common-18.5/library/globus_symboltable.c Examining data/globus-common-18.5/library/globus_tilde_expand.c Examining data/globus-common-18.5/library/globus_debug.h Examining data/globus-common-18.5/library/globus_object.c Examining data/globus-common-18.5/library/globus_memory.c Examining data/globus-common-18.5/library/globus_handle_table.h Examining data/globus-common-18.5/library/globus_preload.h Examining data/globus-common-18.5/library/globus_module.h Examining data/globus-common-18.5/library/globus_common.c Examining data/globus-common-18.5/library/globus_print.c Examining data/globus-common-18.5/library/globus_libc.c Examining data/globus-common-18.5/library/globus_url.h Examining data/globus-common-18.5/library/globus_types.h Examining data/globus-common-18.5/library/globus_range_list.h Examining data/globus-common-18.5/library/globus_uuid.c Examining data/globus-common-18.5/library/globus_error.c Examining data/globus-common-18.5/library/globus_common_paths.c Examining data/globus-common-18.5/library/globus_hashtable.c Examining data/globus-common-18.5/library/globus_list.h Examining data/globus-common-18.5/library/globus_logging.c Examining data/globus-common-18.5/library/globus_i_error_generic.c Examining data/globus-common-18.5/library/globus_range_list.c Examining data/globus-common-18.5/library/globus_i_error_generic.h Examining data/globus-common-18.5/library/globus_thread_pthreads.c Examining data/globus-common-18.5/library/globus_libc_setenv.c Examining data/globus-common-18.5/library/globus_list.c Examining data/globus-common-18.5/library/globus_strptime.c Examining data/globus-common-18.5/library/globus_memory.h Examining data/globus-common-18.5/library/globus_callback_nothreads.c Examining data/globus-common-18.5/library/globus_thread.h Examining data/globus-common-18.5/library/globus_object.h Examining data/globus-common-18.5/library/globus_common.h Examining data/globus-common-18.5/library/globus_object_hierarchy.c Examining data/globus-common-18.5/library/globus_symboltable.h Examining data/globus-common-18.5/library/globus_thread_windows.c Examining data/globus-common-18.5/library/globus_error.h Examining data/globus-common-18.5/library/globus_callback.c Examining data/globus-common-18.5/library/globus_print.h Examining data/globus-common-18.5/library/globus_thread_common.h Examining data/globus-common-18.5/library/globus_error_hierarchy.c Examining data/globus-common-18.5/library/globus_release.h Examining data/globus-common-18.5/library/globus_fifo.h Examining data/globus-common-18.5/library/globus_args.h Examining data/globus-common-18.5/library/globus_options.h Examining data/globus-common-18.5/library/globus_states.c Examining data/globus-common-18.5/library/globus_error_string.h Examining data/globus-common-18.5/library/globus_libc.h Examining data/globus-common-18.5/library/globus_object_cache.h Examining data/globus-common-18.5/library/globus_thread_pool.c Examining data/globus-common-18.5/library/globus_thread_pool.h Examining data/globus-common-18.5/library/globus_thread_rmutex.c Examining data/globus-common-18.5/library/globus_priority_q.c Examining data/globus-common-18.5/library/globus_i_thread.h Examining data/globus-common-18.5/library/globus_common_include.h Examining data/globus-common-18.5/library/globus_time.h Examining data/globus-common-18.5/library/globus_debug.c Examining data/globus-common-18.5/library/globus_handle_table.c Examining data/globus-common-18.5/library/globus_callback.h Examining data/globus-common-18.5/library/globus_options.c Examining data/globus-common-18.5/library/globus_thread_common.c Examining data/globus-common-18.5/library/globus_extension.h Examining data/globus-common-18.5/library/globus_thread_rw_mutex.h Examining data/globus-common-18.5/library/globus_thread.c Examining data/globus-common-18.5/library/globus_callback_threads.c Examining data/globus-common-18.5/library/globus_time.c Examining data/globus-common-18.5/library/globus_config.h Examining data/globus-common-18.5/library/globus_error_errno.c Examining data/globus-common-18.5/library/globus_error_generic.h Examining data/globus-common-18.5/library/globus_logging.h Examining data/globus-common-18.5/library/globus_error_string.c Examining data/globus-common-18.5/library/globus_thread_rmutex.h Examining data/globus-common-18.5/library/globus_tilde_expand.h Examining data/globus-common-18.5/library/globus_thread_none.c Examining data/globus-common-18.5/library/globus_thread_rw_mutex.c Examining data/globus-common-18.5/library/globus_states.h Examining data/globus-common-18.5/library/globus_object_hierarchy.h Examining data/globus-common-18.5/library/globus_thread_windows.h Examining data/globus-common-18.5/library/globus_args.c Examining data/globus-common-18.5/library/globus_fifo.c Examining data/globus-common-18.5/library/globus_uuid.h Examining data/globus-common-18.5/library/globus_i_error_errno.c Examining data/globus-common-18.5/library/globus_strptime.h Examining data/globus-common-18.5/library/globus_i_callback.h Examining data/globus-common-18.5/library/globus_url.c Examining data/globus-common-18.5/library/globus_error_generic.c Examining data/globus-common-18.5/library/globus_priority_q.h Examining data/globus-common-18.5/test/error_test.c Examining data/globus-common-18.5/test/list_test.c Examining data/globus-common-18.5/test/poll_test.c Examining data/globus-common-18.5/test/hash_test.c Examining data/globus-common-18.5/test/strptime_test.c Examining data/globus-common-18.5/test/globus_error_errno_test.c Examining data/globus-common-18.5/test/module_test.c Examining data/globus-common-18.5/test/thread_test.c Examining data/globus-common-18.5/test/handle_table_test.c Examining data/globus-common-18.5/test/globus_args_scan_test.c Examining data/globus-common-18.5/test/globus_libc_setenv_test.c Examining data/globus-common-18.5/test/globus_location_test.c Examining data/globus-common-18.5/test/timedwait_test.c Examining data/globus-common-18.5/test/memory_test.c Examining data/globus-common-18.5/test/uuid_test.c Examining data/globus-common-18.5/test/globus_eval_path_test.c Examining data/globus-common-18.5/test/off_t_test.c Examining data/globus-common-18.5/test/globus_test_tap.h Examining data/globus-common-18.5/test/globus_error_construct_string_test.c Examining data/globus-common-18.5/test/globus_url_test.c Examining data/globus-common-18.5/test/fifo_test.c Examining data/globus-common-18.5/programs/globus_redia.c Examining data/globus-common-18.5/programs/globus_libc_hostname.c FINAL RESULTS: data/globus-common-18.5/library/globus_print.c:95:13: [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. count = readlink(s, filename, 1024); data/globus-common-18.5/library/globus_args.c:95:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( &p[len+usage_len], "%s", error_epilogue ); data/globus-common-18.5/library/globus_args.c:565:11: [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. If the scanf format is influenceable by an attacker, it's exploitable. if ( !sscanf(value, format, &val ) ) data/globus-common-18.5/library/globus_common_include.h:172:13: [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. # define vsnprintf _vsnprintf data/globus-common-18.5/library/globus_common_paths.c:213:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(newtmp, "%s%s%s", data/globus-common-18.5/library/globus_debug.c:109:17: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/globus-common-18.5/library/globus_debug.c:217:21: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s.%d", filename, (int) getpid()); data/globus-common-18.5/library/globus_debug.c:240:21: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, data/globus-common-18.5/library/globus_debug.h:65:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf( \ data/globus-common-18.5/library/globus_debug.h:67:13: [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(globus_i_##module_name##_debug_handle.file, buf, ap); \ data/globus-common-18.5/library/globus_debug.h:71:13: [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(globus_i_##module_name##_debug_handle.file, fmt, ap); \ data/globus-common-18.5/library/globus_debug.h:89:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%lu:%lu.%.9lu::%s", \ data/globus-common-18.5/library/globus_debug.h:94:13: [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(globus_i_##module_name##_debug_handle.file, buf, ap); \ data/globus-common-18.5/library/globus_debug.h:98:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%lu.%.9lu::%s", \ data/globus-common-18.5/library/globus_debug.h:102:13: [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(globus_i_##module_name##_debug_handle.file, buf, ap); \ data/globus-common-18.5/library/globus_error_errno.c:357:13: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(fmt, "%s: %s", short_desc_format, sys_error); data/globus-common-18.5/library/globus_error_string.c:84:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(instance_data, fmt, ap); data/globus-common-18.5/library/globus_extension.c:378: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(library, 1024, "lib%s" MY_LIB_EXT, name); data/globus-common-18.5/library/globus_extension.c:395:13: [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(library, 1024, "lib%s_%s" MY_LIB_EXT, name, data/globus-common-18.5/library/globus_extension.c:493:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(module_descriptor_name, "%s_module", last_slash); data/globus-common-18.5/library/globus_libc.c:222:9: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. return vsprintf( s, format, ap ); data/globus-common-18.5/library/globus_libc.c:231:7: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. rc = vsprintf( buf, format, ap ); data/globus-common-18.5/library/globus_libc.c:263:10: [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. rc = vsnprintf(s, n, format, ap); data/globus-common-18.5/library/globus_libc.c:352:10: [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(name, env); data/globus-common-18.5/library/globus_libc.c:424:13: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(hostname, data/globus-common-18.5/library/globus_libc.c:435:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(name, hostname); data/globus-common-18.5/library/globus_libc.c:1275:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(&buffer[offset], *ptr); data/globus-common-18.5/library/globus_libc.c:1716: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(&entry->d_name[0], &tmpdir->d_name[0]); data/globus-common-18.5/library/globus_libc.c:2940:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cs, "[%s]:%s", host, port); data/globus-common-18.5/library/globus_libc.c:2944:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(cs, "%s:%s", host, port); data/globus-common-18.5/library/globus_libc.h:35: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. #define snprintf _snprintf data/globus-common-18.5/library/globus_libc.h:35:18: [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. #define snprintf _snprintf data/globus-common-18.5/library/globus_libc.h:80:30: [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. #define globus_libc_printf printf data/globus-common-18.5/library/globus_libc.h:81:30: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define globus_libc_fprintf fprintf data/globus-common-18.5/library/globus_libc.h:82:30: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define globus_libc_sprintf sprintf data/globus-common-18.5/library/globus_libc.h:83:30: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. #define globus_libc_vprintf vprintf data/globus-common-18.5/library/globus_libc.h:84:30: [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. #define globus_libc_vfprintf vfprintf data/globus-common-18.5/library/globus_libc.h:85:30: [4] (buffer) vsprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. #define globus_libc_vsprintf vsprintf data/globus-common-18.5/library/globus_libc.h:88:30: [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. #define globus_libc_snprintf snprintf data/globus-common-18.5/library/globus_libc.h:89:31: [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. #define globus_libc_vsnprintf vsnprintf data/globus-common-18.5/library/globus_libc_setenv.c:20:9: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s=%s", name, value); data/globus-common-18.5/library/globus_libc_setenv.c:39:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(tmp, "%s=", name); data/globus-common-18.5/library/globus_logging.c:279:18: [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. rc = vsnprintf((char *) &handle->buffer[handle->used_length], data/globus-common-18.5/library/globus_options.c:534:18: [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(p, "%s", file_option); data/globus-common-18.5/library/globus_options.c:555:13: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(value, p); data/globus-common-18.5/library/globus_print.c:71:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, ap); data/globus-common-18.5/library/globus_print.c:98:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(s, "(echo 'set pagination off\nfile %s\nattach %d\nthread apply all where\nquit' | gdb -n -batch -x /dev/stdin) 1>&2", filename, globus_l_callback_main_thread); data/globus-common-18.5/library/globus_print.c:99:5: [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. system(s); data/globus-common-18.5/library/globus_print.c:135:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, fmt, ap); data/globus-common-18.5/library/globus_print.c:152:5: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf(stdout, fmt, ap); data/globus-common-18.5/library/globus_print.c:275:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, _GCSL("PANIC in module %s\n"), module->module_name); data/globus-common-18.5/library/globus_print.c:283: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, message, ap); data/globus-common-18.5/library/globus_print.c:288:9: [4] (format) fprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. fprintf(stderr, _GCSL("Result:\n%s\n"), data/globus-common-18.5/library/globus_thread.c:190:9: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(impl_name, format, globus_l_thread_model); data/globus-common-18.5/library/globus_thread.c:205:13: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(extension_name, extension_name_format, globus_l_thread_model); data/globus-common-18.5/library/globus_thread_common.c:111:6: [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(achDesc, _GCSL("system out of resources (EAGAIN)")); data/globus-common-18.5/library/globus_thread_common.c:114:6: [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(achDesc, _GCSL("insufficient memory (ENOMEM)")); data/globus-common-18.5/library/globus_thread_common.c:117:6: [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(achDesc, _GCSL("invalid value passed to thread interface (EINVAL)")); data/globus-common-18.5/library/globus_thread_common.c:120:6: [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(achDesc, _GCSL("user does not have adequate permission (EPERM)")); data/globus-common-18.5/library/globus_thread_common.c:123:6: [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(achDesc, _GCSL("a parameter has an invalid value (ERANGE)")); data/globus-common-18.5/library/globus_thread_common.c:126:6: [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(achDesc, _GCSL("mutex is locked (EBUSY)")); data/globus-common-18.5/library/globus_thread_common.c:129:6: [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(achDesc, _GCSL("deadlock detected (EDEADLK)")); data/globus-common-18.5/library/globus_thread_common.c:132:6: [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(achDesc, _GCSL("could not find specified thread (ESRCH)")); data/globus-common-18.5/library/globus_thread_common.c:422:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(&tmp[x], s, ap); data/globus-common-18.5/library/globus_tilde_expand.c:140: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(*outpath, pw->pw_dir); data/globus-common-18.5/library/globus_tilde_expand.c:141:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(*outpath, &inpath[pos]); data/globus-common-18.5/library/globus_tilde_expand.c:146: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(*outpath, inpath); data/globus-common-18.5/library/globus_tilde_expand.c:218: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(*outpath, pw->pw_dir); data/globus-common-18.5/library/globus_tilde_expand.c:219:3: [4] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). strcat(*outpath, &inpath[pos]); data/globus-common-18.5/library/globus_tilde_expand.c:224: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(*outpath, inpath); data/globus-common-18.5/library/globus_tilde_expand.c:235:5: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(*outpath, inpath); data/globus-common-18.5/library/globus_url.c:1549:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(temp_path,(*stringp)+1); data/globus-common-18.5/library/globus_url.c:1563:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(temp_path,*stringp); data/globus-common-18.5/test/globus_libc_setenv_test.c:115:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(temp, vars[i].name); data/globus-common-18.5/test/globus_test_tap.h:18:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(fmt, ap); data/globus-common-18.5/test/off_t_test.c:50:5: [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(buf1, sizeof(buf1), "%"PRId64, big); data/globus-common-18.5/test/off_t_test.c:51:5: [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(buf2, sizeof(buf2), "%"GLOBUS_OFF_T_FORMAT, big); data/globus-common-18.5/test/poll_test.c:823:5: [4] (format) vprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vprintf(s, ap); data/globus-common-18.5/library/globus_common.c:105:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. env = getenv("GLOBUS_I18N"); data/globus-common-18.5/library/globus_common_paths.c:101:9: [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. p = getenv(name); data/globus-common-18.5/library/globus_common_paths.c:173:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. char * location = getenv("GLOBUS_LOCATION"); data/globus-common-18.5/library/globus_error.c:33:33: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define local_mutex_init(x, y) (InitializeCriticalSection(x), 0) data/globus-common-18.5/library/globus_error.c:35:30: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define local_mutex_lock(x) (EnterCriticalSection(x), 0) data/globus-common-18.5/library/globus_libc.c:346:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ((env = getenv("GLOBUS_HOSTNAME")) != GLOBUS_NULL) data/globus-common-18.5/library/globus_libc.c:367:16: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. (env = getenv("GLOBUS_HOSTNAME")) != GLOBUS_NULL) data/globus-common-18.5/library/globus_libc.c:418:15: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. (env = getenv("GLOBUS_DOMAIN_NAME")) != GLOBUS_NULL) data/globus-common-18.5/library/globus_libc.c:425: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. getenv("GLOBUS_DOMAIN_NAME")); data/globus-common-18.5/library/globus_libc.c:1316:19: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. homedir = getenv("HOMEPATH"); data/globus-common-18.5/library/globus_libc.c:1360:10: [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. p = getenv("HOME"); data/globus-common-18.5/library/globus_libc_setenv.c:17:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (rewrite || !getenv(name)) data/globus-common-18.5/library/globus_libc_setenv.c:52:12: [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. return getenv(name); data/globus-common-18.5/library/globus_module.c:665:11: [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. entry=getenv(name); data/globus-common-18.5/library/globus_object.c:25:33: [3] (misc) InitializeCriticalSection: Exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define local_mutex_init(x, y) (InitializeCriticalSection(x), 0) data/globus-common-18.5/library/globus_object.c:27:30: [3] (misc) EnterCriticalSection: On some versions of Windows, exceptions can be thrown in low-memory situations. Use InitializeCriticalSectionAndSpinCount instead. #define local_mutex_lock(x) (EnterCriticalSection(x), 0) data/globus-common-18.5/library/globus_options.c:385:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmp_str = getenv(table->table[i].env); data/globus-common-18.5/library/globus_thread.c:175:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. model = getenv("GLOBUS_THREAD_MODEL"); data/globus-common-18.5/library/globus_uuid.c:50:5: [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. getenv("USERNAME") ? getenv("USERNAME") : "noonespecial", INT_MAX)) data/globus-common-18.5/library/globus_uuid.c:50:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. getenv("USERNAME") ? getenv("USERNAME") : "noonespecial", INT_MAX)) data/globus-common-18.5/library/globus_uuid.c:190:5: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(((l_getpid() << 16) | (l_getuid() & 0xffff)) ^ data/globus-common-18.5/test/globus_args_scan_test.c:262:10: [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. skip(getenv("NO_EXTERNAL_NET") != NULL, data/globus-common-18.5/test/globus_args_scan_test.c:264:10: [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. skip(getenv("NO_EXTERNAL_NET") != NULL, data/globus-common-18.5/test/globus_libc_setenv_test.c:92:21: [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. ok((value = getenv(vars[i].name)) == NULL, data/globus-common-18.5/test/globus_libc_setenv_test.c:113:21: [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. ok((value = getenv(vars[i].name)) != NULL, data/globus-common-18.5/test/globus_libc_setenv_test.c:121:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ok(strcmp(getenv(vars[i].name), vars[i].value) == 0, data/globus-common-18.5/test/globus_libc_setenv_test.c:127:23: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ok(strcmp(getenv(vars[i].name), temp) == 0, data/globus-common-18.5/test/globus_libc_setenv_test.c:147:12: [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. ok(getenv(vars[i].name) != NULL, data/globus-common-18.5/test/globus_libc_setenv_test.c:153:21: [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. ok((value = getenv(vars[i].name)) == NULL, data/globus-common-18.5/library/globus_args.c:535: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_validate_error_buf[40]; data/globus-common-18.5/library/globus_callback_threads.c:373:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[16]; data/globus-common-18.5/library/globus_callback_threads.c:492:14: [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). rc = atoi(tmp_string); data/globus-common-18.5/library/globus_common_paths.c:97: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 errmsg[256]; data/globus-common-18.5/library/globus_common_paths.c:288: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 attr[200]; /* assumes a name won't be longer... */ data/globus-common-18.5/library/globus_common_paths.c:289: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[2000]; /* assumes a line won't be longer... */ data/globus-common-18.5/library/globus_common_paths.c:313: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,"r"); data/globus-common-18.5/library/globus_debug.c:148:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * my_levels[32]; data/globus-common-18.5/library/globus_debug.c:199: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). flags = atoi(show_tid); data/globus-common-18.5/library/globus_debug.c:213: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. char buf[1024]; data/globus-common-18.5/library/globus_debug.c:224:36: [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). handle->file = fopen(filename, "w"); data/globus-common-18.5/library/globus_debug.c:228:36: [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). handle->file = fopen(filename, "a"); data/globus-common-18.5/library/globus_debug.h:64:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; /* XXX better not use a fmt bigger than this */ \ data/globus-common-18.5/library/globus_debug.h:78:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[4096]; /* XXX better not use a fmt bigger than this */ \ data/globus-common-18.5/library/globus_error_generic.c:763:21: [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(error_string + length, tmp, l); data/globus-common-18.5/library/globus_error_generic.c:926: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 * layout[16]; data/globus-common-18.5/library/globus_extension.c:321: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 library[1024]; data/globus-common-18.5/library/globus_i_error_generic.c:134: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[9]; data/globus-common-18.5/library/globus_i_error_generic.c:135: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 line[12]; data/globus-common-18.5/library/globus_libc.c:322: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. static char hostname[MAXHOSTNAMELEN]; data/globus-common-18.5/library/globus_libc.c:458: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 hostname[MAXHOSTNAMELEN]; data/globus-common-18.5/library/globus_libc.c:487: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(addr, addrinfo->ai_addr, addrinfo->ai_addrlen); data/globus-common-18.5/library/globus_libc.c:761: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(result, hp, sizeof(struct hostent)); data/globus-common-18.5/library/globus_libc.c:911: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(result, hp, sizeof(struct hostent)); data/globus-common-18.5/library/globus_libc.c:1070:6: [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(result, tmp_tm, sizeof(struct tm)); data/globus-common-18.5/library/globus_libc.c:1109:6: [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(result, tmp_tm, sizeof(struct tm)); data/globus-common-18.5/library/globus_libc.c:1253: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(&buffer[offset], *ptr, addrsize); data/globus-common-18.5/library/globus_libc.c:1338: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. static char buf[1024]; data/globus-common-18.5/library/globus_libc.c:1380:7: [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(homedir, p, len); data/globus-common-18.5/library/globus_libc.c:1394:6: [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(result, homedir, homedir_len); data/globus-common-18.5/library/globus_libc.c:1479:6: [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(ns, string, l + 1); data/globus-common-18.5/library/globus_libc.c:1796: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). devnull = fopen("/dev/null", "w"); data/globus-common-18.5/library/globus_libc.c:1807: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). devnull = fopen("NUL", "w"); data/globus-common-18.5/library/globus_libc.c:2020: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 align[ALIGN_SIZE]; /* To force sizeof(header). */ data/globus-common-18.5/library/globus_libc.c:2385:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_addrinfo, addrinfo, sizeof(globus_addrinfo_t)); data/globus-common-18.5/library/globus_libc.c:2388:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_addrinfo->ai_addr, addrinfo->ai_addr, addrinfo->ai_addrlen); data/globus-common-18.5/library/globus_libc.c:2402:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_addrinfo, addrinfo, sizeof(globus_addrinfo_t)); data/globus-common-18.5/library/globus_libc.c:2405:13: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(new_addrinfo->ai_addr, addrinfo->ai_addr, data/globus-common-18.5/library/globus_libc.c:2549: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 checkbuf1[8]; data/globus-common-18.5/library/globus_libc.c:2550: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 checkbuf2[8]; data/globus-common-18.5/library/globus_libc.c:2856: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 host[MAXHOSTNAMELEN]; data/globus-common-18.5/library/globus_libc.c:2857: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[10]; data/globus-common-18.5/library/globus_libc.c:2973: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-common-18.5/library/globus_libc.c:3115: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 * layout[25]; data/globus-common-18.5/library/globus_libc.c:3116: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 bufs[12][10]; data/globus-common-18.5/library/globus_libc.c:3117: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 ipv4[20]; data/globus-common-18.5/library/globus_libc.c:3210: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(bufs[b], ":%d", (int) port); data/globus-common-18.5/library/globus_libc.c:3262:21: [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(s + len, array[i], lens[i]); data/globus-common-18.5/library/globus_libc.h:74: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(&dest, &src, sizeof(va_list)) data/globus-common-18.5/library/globus_libc.h:100:26: [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). #define globus_libc_open open data/globus-common-18.5/library/globus_libc.h:412:6: [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(&(dest_addr), &(source_addr), (source_len))) data/globus-common-18.5/library/globus_logging.c:291: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. char suffix[64]; data/globus-common-18.5/library/globus_logging.c:299:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy( data/globus-common-18.5/library/globus_logging.c:413:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char str[256]; data/globus-common-18.5/library/globus_options.c:147: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[HELP_LINE_LENGTH+8]; data/globus-common-18.5/library/globus_options.c:451: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 line[1024]; data/globus-common-18.5/library/globus_options.c:452:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char file_option[1024]; data/globus-common-18.5/library/globus_options.c:453: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 value[1024]; data/globus-common-18.5/library/globus_options.c:462: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). fptr = fopen(filename, "r"); data/globus-common-18.5/library/globus_print.c:65:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fmt[1024]; data/globus-common-18.5/library/globus_print.c:88: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 s[1024]; data/globus-common-18.5/library/globus_print.c:89: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 filename[1024]; data/globus-common-18.5/library/globus_print.c:94: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(s, "/proc/%d/exe", globus_l_callback_main_thread); data/globus-common-18.5/library/globus_print.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 fmt[1024]; data/globus-common-18.5/library/globus_print.c:146: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 fmt[1024]; data/globus-common-18.5/library/globus_print.c:163: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 fmt[1024]; data/globus-common-18.5/library/globus_print.c:183: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 fmt[1024]; data/globus-common-18.5/library/globus_print.c:200: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 fmt[1024]; data/globus-common-18.5/library/globus_print.c:222: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. static char assert_sprintf_buf[1024]; data/globus-common-18.5/library/globus_print.c:244: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 hostname[MAXHOSTNAMELEN]; data/globus-common-18.5/library/globus_print.c:245: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 tmp_buf[MAXHOSTNAMELEN + 32]; data/globus-common-18.5/library/globus_states.c:295:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fptr = fopen(graph_fname, "w"); data/globus-common-18.5/library/globus_states.c:410:20: [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). fptr = fopen(txt_fname, "w"); data/globus-common-18.5/library/globus_thread.c:52: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_thread_model[16] = ""; data/globus-common-18.5/library/globus_thread_common.c:104: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 achDesc[GLOBUS_L_LIBC_MAX_ERR_SIZE]; data/globus-common-18.5/library/globus_thread_common.c:412: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 tmp[1023]; data/globus-common-18.5/library/globus_thread_common.c:420: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(tmp, "p#%dt#%ld::", pid, (long) tid.dummy); data/globus-common-18.5/library/globus_tilde_expand.c:79: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[1024]; data/globus-common-18.5/library/globus_url.c:908: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-common-18.5/library/globus_url.c:1334:28: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). *port = (unsigned short) atoi(tmp); data/globus-common-18.5/library/globus_url.c:1379: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 ***which[4]; data/globus-common-18.5/library/globus_url.c:2329: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. char hexstring[3]; data/globus-common-18.5/library/globus_uuid.c:58: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. static unsigned char globus_l_uuid_mac[6]; data/globus-common-18.5/library/globus_uuid.c:66: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 mac[6]) data/globus-common-18.5/library/globus_uuid.c:81:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(interfacereq.ifr_name, "eth0"); data/globus-common-18.5/library/globus_uuid.c:87: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(mac, interfacereq.ifr_addr.sa_data, 6); data/globus-common-18.5/library/globus_uuid.c:116: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(mac, req.arp_ha.sa_data, 6); data/globus-common-18.5/library/globus_uuid.c:141:17: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(mac, sdl->sdl_data + sdl->sdl_nlen, 6); data/globus-common-18.5/library/globus_uuid.c:169:21: [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(mac, interfaces[i].Address, 6); data/globus-common-18.5/library/globus_uuid.c:203:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, &tmp_rand, sizeof(uint32_t)); data/globus-common-18.5/library/globus_uuid.c:207:9: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, &tmp_rand, sizeof(uint32_t)); data/globus-common-18.5/library/globus_uuid.c:242: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(&globus_l_uuid_last_time, data/globus-common-18.5/library/globus_uuid.c:261: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(fields->node, globus_l_uuid_mac, 6); data/globus-common-18.5/library/globus_uuid.c:292: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[3]; data/globus-common-18.5/library/globus_uuid.c:320: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(uuid->text, str, GLOBUS_UUID_TEXTLEN); data/globus-common-18.5/library/globus_uuid.c:356: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(uuid_fields->node, fields->node, 6); data/globus-common-18.5/library/globus_uuid.h:68: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 text[GLOBUS_UUID_TEXTLEN + 1]; data/globus-common-18.5/programs/globus_libc_hostname.c:29: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 host[MAXHOSTNAMELEN]; data/globus-common-18.5/test/globus_libc_setenv_test.c:85:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp[256]; data/globus-common-18.5/test/memory_test.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 x[4]; data/globus-common-18.5/test/off_t_test.c:32: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 buf1[100]; data/globus-common-18.5/test/off_t_test.c:33: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 buf2[100]; data/globus-common-18.5/test/poll_test.c:204:39: [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). verbose_print_level = atoi(argv[ctr + 1]); data/globus-common-18.5/test/poll_test.c:812: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 tmp[1023]; data/globus-common-18.5/test/strptime_test.c:31: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 dateString[256]; data/globus-common-18.5/test/strptime_test.c:32: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 formatString[256]; data/globus-common-18.5/test/strptime_test.c:33: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 resultString[256]; data/globus-common-18.5/test/strptime_test.c:49:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %b %d %H:%M:%S %Y"); data/globus-common-18.5/test/strptime_test.c:50:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun May 01 20:27:01 1994"); data/globus-common-18.5/test/strptime_test.c:60:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a%b%d%H:%M:%S%Y"); data/globus-common-18.5/test/strptime_test.c:61:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "SunMay0120:27:011994"); data/globus-common-18.5/test/strptime_test.c:71:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %b %d %H:%M:%S %Y"); data/globus-common-18.5/test/strptime_test.c:72:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "SunMay0120:27:011994"); data/globus-common-18.5/test/strptime_test.c:82:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a%b%d%H:%M:%S%Y"); data/globus-common-18.5/test/strptime_test.c:83:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun May 01 20:27:01 1994"); data/globus-common-18.5/test/strptime_test.c:93:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %b %d %H:%M:%S %C%y"); data/globus-common-18.5/test/strptime_test.c:94:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun May 01 20:27:01 19 94"); data/globus-common-18.5/test/strptime_test.c:103:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %D %H:%M:%S"); data/globus-common-18.5/test/strptime_test.c:104:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun 5/01/94 20:27:01"); data/globus-common-18.5/test/strptime_test.c:115:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %b %d %I:%M:%S %p %Y"); data/globus-common-18.5/test/strptime_test.c:116:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun May 01 09:27:01 a.m. 1994"); data/globus-common-18.5/test/strptime_test.c:126:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %b %d %I:%M:%S %p %Y"); data/globus-common-18.5/test/strptime_test.c:127:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun May 01 09:27:01 p.m. 1994"); data/globus-common-18.5/test/strptime_test.c:137:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %b %d %I:%M:%S %Y"); data/globus-common-18.5/test/strptime_test.c:138:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun May 01 09:27:01 1994"); data/globus-common-18.5/test/strptime_test.c:147:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %B %d %R %Y"); data/globus-common-18.5/test/strptime_test.c:148:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun May 01 20:27 1994"); data/globus-common-18.5/test/strptime_test.c:158:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %b %d %T %Y"); data/globus-common-18.5/test/strptime_test.c:159:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun Jun 01 21:27:01 1994"); data/globus-common-18.5/test/strptime_test.c:167:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %b %d %H:%M:%S %y"); data/globus-common-18.5/test/strptime_test.c:168:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun May 01 20:27:01 94"); data/globus-common-18.5/test/strptime_test.c:176:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %b %d %H:%M:%S %y"); data/globus-common-18.5/test/strptime_test.c:177:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun May 01 20:27:01 02"); data/globus-common-18.5/test/strptime_test.c:186:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%R"); data/globus-common-18.5/test/strptime_test.c:187:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "20:27"); data/globus-common-18.5/test/strptime_test.c:196:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(formatString, "%a %b %d %y"); data/globus-common-18.5/test/strptime_test.c:197:5: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(dateString, "Sun May 01 02"); data/globus-common-18.5/library/globus_args.c:76:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(error_format) data/globus-common-18.5/library/globus_args.c:77:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(current_argv) data/globus-common-18.5/library/globus_args.c:78:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(my_error_string) data/globus-common-18.5/library/globus_args.c:79:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(oneline_usage) data/globus-common-18.5/library/globus_args.c:80:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). + strlen(error_epilogue) data/globus-common-18.5/library/globus_args.c:91: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). usage_len = strlen( oneline_usage ); data/globus-common-18.5/library/globus_args.c:93:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(p); data/globus-common-18.5/library/globus_args.c:94:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( &p[len], oneline_usage, usage_len ); data/globus-common-18.5/library/globus_args.c:326:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(my_arg); data/globus-common-18.5/library/globus_common_paths.c:102: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). if (!p || strlen(p)==0) data/globus-common-18.5/library/globus_common_paths.c:205:33: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newtmp = malloc(strlen(tmp) + strlen(globus_l_common_path_lookup_table[i].path) + (end ? strlen(end+1):0) + 1); data/globus-common-18.5/library/globus_common_paths.c:205:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newtmp = malloc(strlen(tmp) + strlen(globus_l_common_path_lookup_table[i].path) + (end ? strlen(end+1):0) + 1); data/globus-common-18.5/library/globus_common_paths.c:205:106: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). newtmp = malloc(strlen(tmp) + strlen(globus_l_common_path_lookup_table[i].path) + (end ? strlen(end+1):0) + 1); data/globus-common-18.5/library/globus_common_paths.c:259:33: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (n<bufsize && EOF!=(c=fgetc(fp)) && c!='\n') data/globus-common-18.5/library/globus_common_paths.c:300: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). filename = globus_malloc(strlen(deploy) + data/globus-common-18.5/library/globus_common_paths.c:301: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). strlen(file_location) + 1 + 1 ); data/globus-common-18.5/library/globus_common_paths.c:326:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). attr_len = strlen(attr); data/globus-common-18.5/library/globus_common_paths.c:347:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). q = p + strlen(p) - 1; /* last char before \0 */ data/globus-common-18.5/library/globus_common_paths.c:355: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). if (!p || strlen(p)==0) data/globus-common-18.5/library/globus_error.c:61: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). l = strlen (string); data/globus-common-18.5/library/globus_error_errno.c:354:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(short_desc_format) + strlen(sys_error) + 3); data/globus-common-18.5/library/globus_error_errno.c:354: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(short_desc_format) + strlen(sys_error) + 3); data/globus-common-18.5/library/globus_error_generic.c:753: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). l = strlen(tmp); data/globus-common-18.5/library/globus_extension.c:474:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * module_descriptor_name = malloc(strlen(module_name) + 8); data/globus-common-18.5/library/globus_i_error_errno.c:104:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int length = 10 + strlen(sys_failed); data/globus-common-18.5/library/globus_i_error_errno.c:110: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). length += sys_error ? strlen(sys_error) : 0; data/globus-common-18.5/library/globus_i_error_errno.c:126: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). length += strlen(base_source->module_name); data/globus-common-18.5/library/globus_libc.c:233:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy( s, buf, n - 1 ); data/globus-common-18.5/library/globus_libc.c:348: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). size_t hlen = strlen(env); data/globus-common-18.5/library/globus_libc.c:369:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(hostname, env, MAXHOSTNAMELEN); data/globus-common-18.5/library/globus_libc.c:370: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). hostname_length = strlen(hostname); data/globus-common-18.5/library/globus_libc.c:385: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). hostname_length = strlen(hostname); data/globus-common-18.5/library/globus_libc.c:393:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(name, hostname, len); data/globus-common-18.5/library/globus_libc.c:409:17: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(hostname, addrinfo->ai_canonname, sizeof(hostname)); data/globus-common-18.5/library/globus_libc.c:420: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). if(strlen(hostname) + data/globus-common-18.5/library/globus_libc.c:421: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). strlen(env) + 2 < MAXHOSTNAMELEN) data/globus-common-18.5/library/globus_libc.c:423:13: [1] (buffer) strcat: Does not check for buffer overflows when concatenating to destination [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or snprintf (warning: strncat is easily misused). Risk is low because the source is a constant character. strcat(hostname, "."); data/globus-common-18.5/library/globus_libc.c:429: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). hostname_length = strlen(hostname); data/globus-common-18.5/library/globus_libc.c:1023:6: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf,tmp_buf,buflen); data/globus-common-18.5/library/globus_libc.c:1226: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). name_len = strlen(h->h_name); data/globus-common-18.5/library/globus_libc.c:1232:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&buffer[offset], h->h_name, name_len); data/globus-common-18.5/library/globus_libc.c:1270:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(*ptr) + offset + 1 > buflen) data/globus-common-18.5/library/globus_libc.c:1278: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). offset += strlen(*ptr) + 1; data/globus-common-18.5/library/globus_libc.c:1361:16: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (!p || strlen(p)==0) data/globus-common-18.5/library/globus_libc.c:1376: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(p); data/globus-common-18.5/library/globus_libc.c:1382: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). homedir_len = strlen(homedir); data/globus-common-18.5/library/globus_libc.c:1474: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). l = strlen(string); data/globus-common-18.5/library/globus_libc.c:1691: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). + strlen(tmpdir->d_name) data/globus-common-18.5/library/globus_libc.c:2923: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). cs = globus_malloc(strlen(host) + strlen(port) + 4); data/globus-common-18.5/library/globus_libc.c:2923:39: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). cs = globus_malloc(strlen(host) + strlen(port) + 4); data/globus-common-18.5/library/globus_libc.c:2987:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, contact_string, sizeof(buf)); data/globus-common-18.5/library/globus_libc.c:3249:37: [1] (buffer) strlen: Does not handle 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 += lens[i] = array[i] ? strlen(array[i]) : 0; data/globus-common-18.5/library/globus_libc.h:102:26: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). #define globus_libc_read read data/globus-common-18.5/library/globus_libc.h:104:27: [1] (access) umask: Ensure that umask is given most restrictive possible setting (e.g., 066 or 077) (CWE-732). #define globus_libc_umask umask data/globus-common-18.5/library/globus_libc.h:229: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). #define globus_libc_strlen strlen data/globus-common-18.5/library/globus_logging.c:304:52: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nbytes = remain - sizeof(suffix) + strlen(suffix); data/globus-common-18.5/library/globus_logging.c:421: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). str_len = strlen(str); data/globus-common-18.5/library/globus_object.c:308: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). l = strlen (string); data/globus-common-18.5/library/globus_options.c:117:67: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (globus_libc_strncasecmp(e1->short_opt, e2->short_opt, strlen(e1->short_opt)) <= 0) data/globus-common-18.5/library/globus_options.c:126:68: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). else if (globus_libc_strncasecmp(e1->short_opt, e2->short_opt, strlen(e1->short_opt)) <= 0) data/globus-common-18.5/library/globus_options.c:199:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). length = strlen(&entry->description[ndx]); data/globus-common-18.5/library/globus_options.c:540: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). optlen += strlen(file_option); data/globus-common-18.5/library/globus_options.c:566: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). optlen += strlen(value); data/globus-common-18.5/library/globus_print.c:255:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen(tmp_buf) >= GLOBUS_L_MAX_SESSION_STRING_LENGTH) data/globus-common-18.5/library/globus_thread.c:131:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(globus_l_thread_model, model, sizeof(globus_l_thread_model)); data/globus-common-18.5/library/globus_thread.c:179:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(globus_l_thread_model, model, sizeof(globus_l_thread_model)); data/globus-common-18.5/library/globus_thread.c:185: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(globus_l_thread_model, "none", sizeof(globus_l_thread_model)); data/globus-common-18.5/library/globus_thread.c:189: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). impl_name = malloc(sizeof(format) + strlen(globus_l_thread_model) + 1); data/globus-common-18.5/library/globus_thread.c:204:76: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). char * extension_name = malloc(sizeof(extension_name_format) + strlen(globus_l_thread_model) + 1); data/globus-common-18.5/library/globus_thread_common.c:421: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). x = strlen(tmp); data/globus-common-18.5/library/globus_tilde_expand.c:83:5: [1] (buffer) strlen: Does not handle 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(inpath) < 2U || data/globus-common-18.5/library/globus_tilde_expand.c:120:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(username, data/globus-common-18.5/library/globus_tilde_expand.c:135: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). path_length += strlen(pw->pw_dir); data/globus-common-18.5/library/globus_tilde_expand.c:136: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). path_length += strlen(inpath)-pos+1; data/globus-common-18.5/library/globus_tilde_expand.c:145: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). *outpath = globus_malloc(strlen(inpath)+1); data/globus-common-18.5/library/globus_tilde_expand.c:157:5: [1] (buffer) strlen: Does not handle 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(inpath) < 1U || data/globus-common-18.5/library/globus_tilde_expand.c:197:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(username, data/globus-common-18.5/library/globus_tilde_expand.c:212: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). path_length += strlen(pw->pw_dir); data/globus-common-18.5/library/globus_tilde_expand.c:213: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). path_length += strlen(inpath)-pos+1; /* +1 to move past the data/globus-common-18.5/library/globus_tilde_expand.c:223: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). *outpath = globus_malloc(strlen(inpath)+1); data/globus-common-18.5/library/globus_tilde_expand.c:234: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). *outpath = globus_malloc(strlen(inpath)+1); data/globus-common-18.5/library/globus_url.c:275:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(substring)); data/globus-common-18.5/library/globus_url.c:306:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(substring)); data/globus-common-18.5/library/globus_url.c:525:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(substring)); data/globus-common-18.5/library/globus_url.c:556:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(substring)); data/globus-common-18.5/library/globus_url.c:761:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(substring)); data/globus-common-18.5/library/globus_url.c:792:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(substring)); data/globus-common-18.5/library/globus_url.c:1540: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((*stringp)+pos) > 3 && data/globus-common-18.5/library/globus_url.c:1548: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). temp_path = malloc(strlen(*stringp)); data/globus-common-18.5/library/globus_url.c:1562: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). temp_path = malloc(strlen(*stringp) + 1); data/globus-common-18.5/library/globus_url.c:1564: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). for(i = 0;i < strlen(temp_path);i++) data/globus-common-18.5/library/globus_url.c:1682: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). size_t pathlen = strlen(*path); data/globus-common-18.5/library/globus_url.c:1773: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). if(pos != strlen(*stringp)) data/globus-common-18.5/library/globus_url.c:1813:26: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). tmpbuf=globus_malloc(strlen((*stringp))); data/globus-common-18.5/library/globus_url.c:1892: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). if(pos != strlen(*stringp)) data/globus-common-18.5/library/globus_url.c:1964: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). if(pos != strlen(*stringp)) data/globus-common-18.5/library/globus_url.c:2278: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-common-18.5/test/strptime_test.c:112: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). memmove(resultString+4, resultString+5, strlen(resultString+4)); ANALYSIS SUMMARY: Hits = 342 Lines analyzed = 54584 in approximately 1.25 seconds (43525 lines/second) Physical Source Lines of Code (SLOC) = 36527 Hits@level = [0] 184 [1] 98 [2] 137 [3] 29 [4] 77 [5] 1 Hits@level+ = [0+] 526 [1+] 342 [2+] 244 [3+] 107 [4+] 78 [5+] 1 Hits/KSLOC@level+ = [0+] 14.4003 [1+] 9.36294 [2+] 6.67999 [3+] 2.92934 [4+] 2.13541 [5+] 0.027377 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.