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/mod-gearman-1.5.5/neb_module/mod_gearman.c Examining data/mod-gearman-1.5.5/neb_module/result_thread.c Examining data/mod-gearman-1.5.5/contrib/mod_gearman_mini_epn.c Examining data/mod-gearman-1.5.5/t/06-execvp_vs_popen.c Examining data/mod-gearman-1.5.5/t/tap.c Examining data/mod-gearman-1.5.5/t/02-full.c Examining data/mod-gearman-1.5.5/t/03-exec_checks.c Examining data/mod-gearman-1.5.5/t/tap.h Examining data/mod-gearman-1.5.5/t/07-epn.c Examining data/mod-gearman-1.5.5/t/01-utils.c Examining data/mod-gearman-1.5.5/t/05-neb.c Examining data/mod-gearman-1.5.5/t/04-log.c Examining data/mod-gearman-1.5.5/worker/worker.c Examining data/mod-gearman-1.5.5/worker/worker_client.c Examining data/mod-gearman-1.5.5/include/common.h Examining data/mod-gearman-1.5.5/include/worker_client.h Examining data/mod-gearman-1.5.5/include/worker.h Examining data/mod-gearman-1.5.5/include/check_utils.h Examining data/mod-gearman-1.5.5/include/nagios/common.h Examining data/mod-gearman-1.5.5/include/nagios/broker.h Examining data/mod-gearman-1.5.5/include/nagios/locations.h Examining data/mod-gearman-1.5.5/include/nagios/perfdata.h Examining data/mod-gearman-1.5.5/include/nagios/snprintf.h Examining data/mod-gearman-1.5.5/include/nagios/comments.h Examining data/mod-gearman-1.5.5/include/nagios/neberrors.h Examining data/mod-gearman-1.5.5/include/nagios/statusdata.h Examining data/mod-gearman-1.5.5/include/nagios/skiplist.h Examining data/mod-gearman-1.5.5/include/nagios/macros.h Examining data/mod-gearman-1.5.5/include/nagios/config.h Examining data/mod-gearman-1.5.5/include/nagios/getcgi.h Examining data/mod-gearman-1.5.5/include/nagios/cgiutils.h Examining data/mod-gearman-1.5.5/include/nagios/downtime.h Examining data/mod-gearman-1.5.5/include/nagios/nebmods.h Examining data/mod-gearman-1.5.5/include/nagios/epn_nagios.h Examining data/mod-gearman-1.5.5/include/nagios/objects.h Examining data/mod-gearman-1.5.5/include/nagios/sretention.h Examining data/mod-gearman-1.5.5/include/nagios/nagios.h Examining data/mod-gearman-1.5.5/include/nagios/cgiauth.h Examining data/mod-gearman-1.5.5/include/nagios/nebstructs.h Examining data/mod-gearman-1.5.5/include/nagios/nebcallbacks.h Examining data/mod-gearman-1.5.5/include/nagios/nebmodules.h Examining data/mod-gearman-1.5.5/include/nagios/netutils.h Examining data/mod-gearman-1.5.5/include/send_multi.h Examining data/mod-gearman-1.5.5/include/gm_alloc.h Examining data/mod-gearman-1.5.5/include/check_gearman.h Examining data/mod-gearman-1.5.5/include/gearman_utils.h Examining data/mod-gearman-1.5.5/include/utils.h Examining data/mod-gearman-1.5.5/include/gm_crypt.h Examining data/mod-gearman-1.5.5/include/gearman_top.h Examining data/mod-gearman-1.5.5/include/polarssl/config.h Examining data/mod-gearman-1.5.5/include/polarssl/md5.h Examining data/mod-gearman-1.5.5/include/epn_utils.h Examining data/mod-gearman-1.5.5/include/send_gearman.h Examining data/mod-gearman-1.5.5/include/mod_gearman.h Examining data/mod-gearman-1.5.5/include/rijndael.h Examining data/mod-gearman-1.5.5/include/result_thread.h Examining data/mod-gearman-1.5.5/include/base64.h Examining data/mod-gearman-1.5.5/include/popenRWE.h Examining data/mod-gearman-1.5.5/tools/gearman_top.c Examining data/mod-gearman-1.5.5/tools/check_gearman.c Examining data/mod-gearman-1.5.5/tools/send_gearman.c Examining data/mod-gearman-1.5.5/tools/send_multi.c Examining data/mod-gearman-1.5.5/common/rijndael.c Examining data/mod-gearman-1.5.5/common/md5.c Examining data/mod-gearman-1.5.5/common/gearman_utils.c Examining data/mod-gearman-1.5.5/common/popenRWE.c Examining data/mod-gearman-1.5.5/common/utils.c Examining data/mod-gearman-1.5.5/common/perlxsi.c Examining data/mod-gearman-1.5.5/common/gm_crypt.c Examining data/mod-gearman-1.5.5/common/epn_utils.c Examining data/mod-gearman-1.5.5/common/base64.c Examining data/mod-gearman-1.5.5/common/check_utils.c Examining data/mod-gearman-1.5.5/common/gm_alloc.c FINAL RESULTS: data/mod-gearman-1.5.5/common/gm_crypt.c:115:9: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(decr, (char*)plaintext, BLOCKSIZE); data/mod-gearman-1.5.5/contrib/mod_gearman_mini_epn.c:50:17: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(command_line, argv[x], MAX_INPUT_CHARS - 1); data/mod-gearman-1.5.5/contrib/mod_gearman_mini_epn.c:52:21: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(command_line, " ", MAX_INPUT_CHARS - 1); data/mod-gearman-1.5.5/tools/check_gearman.c:223:17: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(message, buf, GM_BUFFERSIZE); data/mod-gearman-1.5.5/tools/check_gearman.c:229:17: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(message, buf, GM_BUFFERSIZE); data/mod-gearman-1.5.5/tools/check_gearman.c:235:17: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(message, buf, GM_BUFFERSIZE); data/mod-gearman-1.5.5/tools/check_gearman.c:241:17: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(message, buf, GM_BUFFERSIZE); data/mod-gearman-1.5.5/tools/check_gearman.c:247:17: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(message, buf, GM_BUFFERSIZE); data/mod-gearman-1.5.5/tools/check_gearman.c:257:9: [5] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is high; the length parameter appears to be a constant, instead of computing the number of characters left. strncat(message, buf, GM_BUFFERSIZE); data/mod-gearman-1.5.5/common/base64.c:169: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(src, source); data/mod-gearman-1.5.5/common/check_utils.c:180:13: [4] (shell) execvp: 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. execvp(argv[0], argv); data/mod-gearman-1.5.5/common/gm_crypt.c:121: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(*text, decr); data/mod-gearman-1.5.5/common/md5.c:48:25: [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 polarssl_printf printf data/mod-gearman-1.5.5/common/popenRWE.c:64:3: [4] (shell) execl: 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. execl( "/bin/sh", "sh", "-c", command, NULL ); data/mod-gearman-1.5.5/common/utils.c:1633:9: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf( buffer1 + strlen( buffer1 ), sizeof( buffer1 ) - strlen( buffer1 ), text, ap ); data/mod-gearman-1.5.5/common/utils.c:1678:5: [4] (format) vsnprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. vsnprintf( buffer3, GM_BUFFERSIZE, text, ap ); data/mod-gearman-1.5.5/common/utils.c:1767:9: [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(temp_buffer2, exec_job->service_description); data/mod-gearman-1.5.5/common/utils.c:1770:9: [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(temp_buffer1, temp_buffer2); data/mod-gearman-1.5.5/common/utils.c:1779: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(temp_buffer2, hostname); data/mod-gearman-1.5.5/common/utils.c:1782:9: [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(temp_buffer2, exec_job->output); data/mod-gearman-1.5.5/common/utils.c:1787: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(temp_buffer2, exec_job->error); data/mod-gearman-1.5.5/common/utils.c:1791:9: [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(temp_buffer1, temp_buffer2); data/mod-gearman-1.5.5/common/utils.c:1819:9: [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(temp_buffer2, temp_buffer1); data/mod-gearman-1.5.5/include/nagios/epn_nagios.h:17:8: [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. #undef printf /* can't use perl's printf until initialized */ data/mod-gearman-1.5.5/t/02-full.c:42:13: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp("gearmand", "gearmand", "--listen=127.0.0.1", "--threads=10", "--job-retries=0", port, "--verbose=DEBUG", "--log-file=/tmp/gearmand.log" , (char *)NULL); data/mod-gearman-1.5.5/t/02-full.c:44:13: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp("gearmand", "gearmand", "--listen=127.0.0.1", "--threads=10", "--job-retries=0", port, "--verbose=999", "--log-file=/tmp/gearmand.log" , (char *)NULL); data/mod-gearman-1.5.5/t/02-full.c:47:13: [4] (shell) execlp: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. execlp("gearmand", "gearmand", "-t 10", "-j 0", port, (char *)NULL); data/mod-gearman-1.5.5/t/02-full.c:74:13: [4] (shell) execl: 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. execl("./mod_gearman_worker", "./mod_gearman_worker", "debug=2", encryption, logf, "max-worker=1", "p1_file=./worker/mod_gearman_p1.pl", options, (char *)NULL); data/mod-gearman-1.5.5/t/02-full.c:76:13: [4] (shell) execl: 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. execl("./mod_gearman_worker", "./mod_gearman_worker", "debug=2", "encryption=no", logf, "max-worker=1", "p1_file=./worker/mod_gearman_p1.pl", options, (char *)NULL); data/mod-gearman-1.5.5/t/tap.c:20:12: [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. size = vsnprintf(NULL, 0, fmt, args2) + 2; data/mod-gearman-1.5.5/t/tap.c:22:5: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(str, fmt, args); data/mod-gearman-1.5.5/t/tap.c:224: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, args); data/mod-gearman-1.5.5/tools/gearman_top.c:271:9: [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/mod-gearman-1.5.5/tools/send_gearman.c:333:9: [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(temp_buffer, mod_gm_opt->service); data/mod-gearman-1.5.5/tools/send_gearman.c:335:9: [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(result, temp_buffer); data/mod-gearman-1.5.5/tools/send_gearman.c:341:9: [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(temp_buffer, mod_gm_opt->message); data/mod-gearman-1.5.5/tools/send_gearman.c:343:9: [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(result, temp_buffer); data/mod-gearman-1.5.5/tools/send_multi.c:479:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(start_element, "<%s>", element); data/mod-gearman-1.5.5/tools/send_multi.c:480:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(end_element, "</%s>", element); data/mod-gearman-1.5.5/tools/send_multi.c:516: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(found+1, found+strlen(dtab[i].enc_string)); data/mod-gearman-1.5.5/common/check_utils.c:452:8: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if(getenv("MODGEARMANTEST") == NULL) { data/mod-gearman-1.5.5/t/02-full.c:361: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. char *username=getenv("USER"); data/mod-gearman-1.5.5/tools/check_gearman.c:58:18: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((opt = getopt(argc, argv, "vVhaH:t:w:c:W:C:q:s:e:p:u:")) != -1) { data/mod-gearman-1.5.5/tools/gearman_top.c:63:18: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while((opt = getopt(argc, argv, "qvVhH:s:i:b")) != -1) { data/mod-gearman-1.5.5/common/base64.c:21:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void _base64_encode_triple(unsigned char triple[3], char result[4]) { data/mod-gearman-1.5.5/common/base64.c:21:53: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void _base64_encode_triple(unsigned char triple[3], char result[4]) { data/mod-gearman-1.5.5/common/base64.c:60:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 temp[3]; data/mod-gearman-1.5.5/common/base64.c:62: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(temp, source, sourcelen); data/mod-gearman-1.5.5/common/base64.c:104:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int _base64_decode_triple(char quadruple[4], unsigned char *result) { data/mod-gearman-1.5.5/common/base64.c:161: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 quadruple[4], tmpresult[3]; data/mod-gearman-1.5.5/common/base64.c:170:5: [2] (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 string. strcat(src, "===="); data/mod-gearman-1.5.5/common/base64.c:194: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(target, tmpresult, tmplen); data/mod-gearman-1.5.5/common/check_utils.c:95: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 *argv[MAX_CMD_ARGS]; data/mod-gearman-1.5.5/common/check_utils.c:314: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 error[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/common/check_utils.c:491: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 buffer[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/common/check_utils.c:517: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 buffer[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/common/check_utils.c:540:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int parse_command_line(char *cmd, char *argv[MAX_CMD_ARGS]) { data/mod-gearman-1.5.5/common/check_utils.c:540:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int parse_command_line(char *cmd, char *argv[MAX_CMD_ARGS]) { data/mod-gearman-1.5.5/common/epn_utils.c:49: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 fname[512]=""; data/mod-gearman-1.5.5/common/epn_utils.c:50: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 *args[5]={"",NULL, "", "", NULL }; data/mod-gearman-1.5.5/common/epn_utils.c:228: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/mod-gearman-1.5.5/common/epn_utils.c:234: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(fname, "r"); data/mod-gearman-1.5.5/common/gearman_utils.c:314: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). func->running = atoi(running); data/mod-gearman-1.5.5/common/gearman_utils.c:315: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). func->total = atoi(total); data/mod-gearman-1.5.5/common/gearman_utils.c:316: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). func->worker = atoi(worker); data/mod-gearman-1.5.5/common/gearman_utils.c:341: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[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/common/gearman_utils.c:361:5: [2] (buffer) bcopy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. bcopy((char *)server->h_addr, data/mod-gearman-1.5.5/common/gm_crypt.c:32:10: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 key[KEYLENGTH(KEYBITS)]; data/mod-gearman-1.5.5/common/gm_crypt.c:68:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 plaintext[BLOCKSIZE]; data/mod-gearman-1.5.5/common/gm_crypt.c:69:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 ciphertext[BLOCKSIZE]; data/mod-gearman-1.5.5/common/gm_crypt.c:106:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 plaintext[BLOCKSIZE]; data/mod-gearman-1.5.5/common/gm_crypt.c:107:18: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 ciphertext[BLOCKSIZE]; data/mod-gearman-1.5.5/common/md5.c:90:52: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5_process( md5_context *ctx, const unsigned char data[64] ) data/mod-gearman-1.5.5/common/md5.c:235: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( (void *) (ctx->buffer + left), input, fill ); data/mod-gearman-1.5.5/common/md5.c:251: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( (void *) (ctx->buffer + left), input, ilen ); data/mod-gearman-1.5.5/common/md5.c:255:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char md5_padding[64] = data/mod-gearman-1.5.5/common/md5.c:266:45: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5_finish( md5_context *ctx, unsigned char output[16] ) data/mod-gearman-1.5.5/common/md5.c:270: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 msglen[8]; data/mod-gearman-1.5.5/common/md5.c:296:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5( const unsigned char *input, size_t ilen, unsigned char output[16] ) data/mod-gearman-1.5.5/common/md5.c:296:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5( const unsigned char *input, size_t ilen, unsigned char output[16] ) data/mod-gearman-1.5.5/common/md5.c:311:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int md5_file( const char *path, unsigned char output[16] ) data/mod-gearman-1.5.5/common/md5.c:311:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int md5_file( const char *path, unsigned char output[16] ) data/mod-gearman-1.5.5/common/md5.c:316: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 buf[1024]; data/mod-gearman-1.5.5/common/md5.c:318:15: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if( ( f = fopen( path, "rb" ) ) == NULL ) data/mod-gearman-1.5.5/common/md5.c:348: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 sum[16]; data/mod-gearman-1.5.5/common/md5.c:384:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5_hmac_finish( md5_context *ctx, unsigned char output[16] ) data/mod-gearman-1.5.5/common/md5.c:386: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 tmpbuf[16]; data/mod-gearman-1.5.5/common/md5.c:409:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5_hmac( const unsigned char *key, size_t keylen, data/mod-gearman-1.5.5/common/md5.c:410:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char *input, size_t ilen, data/mod-gearman-1.5.5/common/md5.c:411:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char output[16] ) data/mod-gearman-1.5.5/common/md5.c:426: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 md5_test_buf[7][81] = data/mod-gearman-1.5.5/common/md5.c:443:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char md5_test_sum[7][16] = data/mod-gearman-1.5.5/common/md5.c:464: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 md5_hmac_test_key[7][26] = data/mod-gearman-1.5.5/common/md5.c:481: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 md5_hmac_test_buf[7][74] = data/mod-gearman-1.5.5/common/md5.c:506:23: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static const unsigned char md5_hmac_test_sum[7][16] = data/mod-gearman-1.5.5/common/md5.c:530: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 buf[1024]; data/mod-gearman-1.5.5/common/md5.c:531: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 md5sum[16]; data/mod-gearman-1.5.5/common/utils.c:529: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). opt->debug_level = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:558:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). opt->result_workers = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:567: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). opt->return_code = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:661:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). opt->timeout = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:667: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). opt->job_timeout = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:673:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). opt->min_worker = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:679:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). opt->max_worker = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:685:24: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). opt->max_age = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:691:29: [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). opt->idle_timeout = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:697: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). opt->max_jobs = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:703:27: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). opt->spawn_rate = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:725:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). opt->timeout_return = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:734:30: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). opt->orphan_return = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:743:30: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). opt->perfdata_mode = atoi( value ); data/mod-gearman-1.5.5/common/utils.c:844:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). return_code_num = atoi(return_code); data/mod-gearman-1.5.5/common/utils.c:850:32: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). callback_num = atoi(trim(callback)); data/mod-gearman-1.5.5/common/utils.c:918: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/mod-gearman-1.5.5/common/utils.c:1125: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(opt->keyfile,"rb"); data/mod-gearman-1.5.5/common/utils.c:1264:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buff[64]; data/mod-gearman-1.5.5/common/utils.c:1308:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(out, "\\n"); break; data/mod-gearman-1.5.5/common/utils.c:1310:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(out, "\\t"); break; data/mod-gearman-1.5.5/common/utils.c:1312:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(out, "\\v"); break; data/mod-gearman-1.5.5/common/utils.c:1314:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(out, "\\b"); break; data/mod-gearman-1.5.5/common/utils.c:1316:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(out, "\\r"); break; data/mod-gearman-1.5.5/common/utils.c:1318:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(out, "\\f"); break; data/mod-gearman-1.5.5/common/utils.c:1320:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(out, "\\a"); break; data/mod-gearman-1.5.5/common/utils.c:1322:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(out, "\\\\"); break; data/mod-gearman-1.5.5/common/utils.c:1324:13: [2] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). Risk is low because the source is a constant string. strcpy(out, "\\\""); break; data/mod-gearman-1.5.5/common/utils.c:1608: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 buffer1[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/common/utils.c:1609: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 buffer2[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/common/utils.c:1610: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 buffer3[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/common/utils.c:1766:9: [2] (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 string. strcat(temp_buffer2, "service_description="); data/mod-gearman-1.5.5/common/utils.c:1776:9: [2] (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 string. strcat(temp_buffer2, "output="); data/mod-gearman-1.5.5/common/utils.c:1780:13: [2] (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 string. strcat(temp_buffer2, ") - "); data/mod-gearman-1.5.5/common/utils.c:1785:17: [2] (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 string. strcat(temp_buffer2, "\\n"); data/mod-gearman-1.5.5/common/utils.c:1788:13: [2] (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 string. strcat(temp_buffer2, "] "); data/mod-gearman-1.5.5/common/utils.c:1790:9: [2] (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 string. strcat(temp_buffer2, "\n\n\n"); data/mod-gearman-1.5.5/common/utils.c:1817:13: [2] (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 string. strcat(temp_buffer2, "type=passive\n"); data/mod-gearman-1.5.5/common/utils.c:1848: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 sum[16]; data/mod-gearman-1.5.5/common/utils.c:1871:31: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = ( in_port_t ) atoi( port_val ); data/mod-gearman-1.5.5/common/utils.c:1901: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 buffer[GM_BUFFERSIZE] = ""; data/mod-gearman-1.5.5/common/utils.c:1924: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 buffer[GM_BUFFERSIZE] = ""; data/mod-gearman-1.5.5/contrib/mod_gearman_mini_epn.c:25:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command_line[MAX_INPUT_CHARS]; data/mod-gearman-1.5.5/contrib/mod_gearman_mini_epn.c:74: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 fname[MAX_INPUT_CHARS]; data/mod-gearman-1.5.5/include/base64.h:22:37: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void _base64_encode_triple(unsigned char triple[3], char result[4]); data/mod-gearman-1.5.5/include/base64.h:22:53: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void _base64_encode_triple(unsigned char triple[3], char result[4]); data/mod-gearman-1.5.5/include/base64.h:50:27: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int _base64_decode_triple(char quadruple[4], unsigned char *result); data/mod-gearman-1.5.5/include/check_utils.h:67:24: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int parse_command_line(char *cmd, char *argv[GM_LISTSIZE]); data/mod-gearman-1.5.5/include/check_utils.h:67:35: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int parse_command_line(char *cmd, char *argv[GM_LISTSIZE]); data/mod-gearman-1.5.5/include/common.h:157:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * name[GM_LISTSIZE]; /**< list of queue names to export into */ data/mod-gearman-1.5.5/include/common.h:187: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 * hostgroups_list[GM_LISTSIZE]; /**< list of hostgroups which get own queues */ data/mod-gearman-1.5.5/include/common.h:189: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 * servicegroups_list[GM_LISTSIZE]; /**< list of servicegroups which get own queues */ data/mod-gearman-1.5.5/include/common.h:207: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 * local_hostgroups_list[GM_LISTSIZE]; /**< list of hostgroups which will not be distributed */ data/mod-gearman-1.5.5/include/common.h:209: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 * local_servicegroups_list[GM_LISTSIZE]; /**< list of group which will not be distributed */ data/mod-gearman-1.5.5/include/common.h: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 * restrict_path[GM_LISTSIZE]; /**< list of path restrictions */ data/mod-gearman-1.5.5/include/common.h:293:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char hostname[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/include/gearman_utils.h:78: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 * function[GM_LISTSIZE]; /**< list of functions returned from gearmand */ data/mod-gearman-1.5.5/include/nagios/nebmodules.h:75:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *info[NEBMODULE_MODINFO_NUMITEMS]; data/mod-gearman-1.5.5/include/nagios/objects.h:194:2: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *address[MAX_CONTACT_ADDRESSES]; data/mod-gearman-1.5.5/include/polarssl/md5.h:61:14: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char buffer[64]; /*!< data block being processed */ data/mod-gearman-1.5.5/include/polarssl/md5.h:63: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 ipad[64]; /*!< HMAC: inner padding */ data/mod-gearman-1.5.5/include/polarssl/md5.h:64: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 opad[64]; /*!< HMAC: outer padding */ data/mod-gearman-1.5.5/include/polarssl/md5.h:90:45: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5_finish( md5_context *ctx, unsigned char output[16] ); data/mod-gearman-1.5.5/include/polarssl/md5.h:93:52: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5_process( md5_context *ctx, const unsigned char data[64] ); data/mod-gearman-1.5.5/include/polarssl/md5.h:114:26: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5( const unsigned char *input, size_t ilen, unsigned char output[16] ); data/mod-gearman-1.5.5/include/polarssl/md5.h:114:61: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5( const unsigned char *input, size_t ilen, unsigned char output[16] ); data/mod-gearman-1.5.5/include/polarssl/md5.h:124:21: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int md5_file( const char *path, unsigned char output[16] ); data/mod-gearman-1.5.5/include/polarssl/md5.h:124:42: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. int md5_file( const char *path, unsigned char output[16] ); data/mod-gearman-1.5.5/include/polarssl/md5.h:152:50: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5_hmac_finish( md5_context *ctx, unsigned char output[16] ); data/mod-gearman-1.5.5/include/polarssl/md5.h:170:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void md5_hmac( const unsigned char *key, size_t keylen, data/mod-gearman-1.5.5/include/polarssl/md5.h:171:31: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (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 unsigned char *input, size_t ilen, data/mod-gearman-1.5.5/include/polarssl/md5.h:172:25: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char output[16] ); data/mod-gearman-1.5.5/include/rijndael.h:14:75: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void rijndaelEncrypt(const unsigned long *rk, int nrounds, const unsigned char plaintext[16], unsigned char ciphertext[16]); data/mod-gearman-1.5.5/include/rijndael.h:14:104: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void rijndaelEncrypt(const unsigned long *rk, int nrounds, const unsigned char plaintext[16], unsigned char ciphertext[16]); data/mod-gearman-1.5.5/include/rijndael.h:15:75: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void rijndaelDecrypt(const unsigned long *rk, int nrounds, const unsigned char ciphertext[16], unsigned char plaintext[16]); data/mod-gearman-1.5.5/include/rijndael.h:15:105: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. void rijndaelDecrypt(const unsigned long *rk, int nrounds, const unsigned char ciphertext[16], unsigned char plaintext[16]); data/mod-gearman-1.5.5/neb_module/mod_gearman.c:52:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char target_queue[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/neb_module/mod_gearman.c:53:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char temp_buffer[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/neb_module/mod_gearman.c:54:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char uniq[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/neb_module/mod_gearman.c:493: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 buffer1[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/neb_module/mod_gearman.c:660: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 buffer1[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/neb_module/mod_gearman.c:876:27: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). opt->logfile_fp = fopen(opt->logfile, "a+"); data/mod-gearman-1.5.5/neb_module/result_thread.c:145:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fd = fopen( "/tmp/last_result_received.txt", "w+" ); data/mod-gearman-1.5.5/neb_module/result_thread.c:194:41: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). chk_result->check_options = atoi( value ); data/mod-gearman-1.5.5/neb_module/result_thread.c:196:43: [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). chk_result->scheduled_check = atoi( value ); data/mod-gearman-1.5.5/neb_module/result_thread.c:200:44: [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). chk_result->reschedule_check = atoi( value ); data/mod-gearman-1.5.5/neb_module/result_thread.c:202:37: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). chk_result->exited_ok = atoi( value ); data/mod-gearman-1.5.5/neb_module/result_thread.c:204:41: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). chk_result->early_timeout = atoi( value ); data/mod-gearman-1.5.5/neb_module/result_thread.c:206: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). chk_result->return_code = atoi( value ); data/mod-gearman-1.5.5/neb_module/result_thread.c:341: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). fd = fopen( "/tmp/mod_gearman_result.txt", "a+" ); data/mod-gearman-1.5.5/t/01-utils.c:35: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 test[100]; data/mod-gearman-1.5.5/t/01-utils.c:37: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(test, "Yes"); like(lc(test), "yes", "lc(yes)"); data/mod-gearman-1.5.5/t/01-utils.c:38: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(test, "YES"); like(lc(test), "yes", "lc(YES)"); data/mod-gearman-1.5.5/t/01-utils.c:39: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(test, "yeS"); like(lc(test), "yes", "lc(yeS)"); data/mod-gearman-1.5.5/t/01-utils.c:43: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(test, " text "); like(ltrim(test), "text ", "ltrim()"); data/mod-gearman-1.5.5/t/01-utils.c:44: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(test, " text "); like(rtrim(test), " text", "rtrim()"); data/mod-gearman-1.5.5/t/01-utils.c:45: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(test, " text "); like(trim(test), "text", "trim()"); data/mod-gearman-1.5.5/t/01-utils.c:55: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(test, "yes"); ok(parse_yes_or_no(test, GM_ENABLED) == GM_ENABLED, "parse_yes_or_no 5"); data/mod-gearman-1.5.5/t/01-utils.c:56: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(test, "true"); ok(parse_yes_or_no(test, GM_ENABLED) == GM_ENABLED, "parse_yes_or_no 6"); data/mod-gearman-1.5.5/t/01-utils.c:57: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(test, "Yes"); ok(parse_yes_or_no(test, GM_ENABLED) == GM_ENABLED, "parse_yes_or_no 7"); data/mod-gearman-1.5.5/t/01-utils.c:59: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(test, "On"); ok(parse_yes_or_no(test, GM_ENABLED) == GM_ENABLED, "parse_yes_or_no 9"); data/mod-gearman-1.5.5/t/01-utils.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(test, "Off"); ok(parse_yes_or_no(test, GM_ENABLED) == GM_DISABLED, "parse_yes_or_no 10"); data/mod-gearman-1.5.5/t/01-utils.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(test, "false"); ok(parse_yes_or_no(test, GM_ENABLED) == GM_DISABLED, "parse_yes_or_no 11"); data/mod-gearman-1.5.5/t/01-utils.c:62: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(test, "no"); ok(parse_yes_or_no(test, GM_ENABLED) == GM_DISABLED, "parse_yes_or_no 12"); data/mod-gearman-1.5.5/t/01-utils.c:68: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(test, " test "); like(trim(test), "^test$", "trim(' test ')"); data/mod-gearman-1.5.5/t/01-utils.c:69: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(test, "\ntest\n"); like(trim(test), "^test$", "trim('\\ntest\\n')"); data/mod-gearman-1.5.5/t/01-utils.c:82: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 hex[4]; data/mod-gearman-1.5.5/t/01-utils.c:171: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(test, "server=host:4730"); data/mod-gearman-1.5.5/t/01-utils.c:179: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(test, "server=:4730"); data/mod-gearman-1.5.5/t/01-utils.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(test, "server=localhost:4730"); data/mod-gearman-1.5.5/t/01-utils.c:189: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(test, "server=localhost:4730"); data/mod-gearman-1.5.5/t/01-utils.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(test, "server=localhost:4730,localhost:4730,:4730,host:4730,"); data/mod-gearman-1.5.5/t/01-utils.c:220: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(test, "The quick brown fox jumps over the lazy dog."); data/mod-gearman-1.5.5/t/01-utils.c:226: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(test, "test123"); data/mod-gearman-1.5.5/t/02-full.c:38: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 port[30]; data/mod-gearman-1.5.5/t/02-full.c:67: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 options[150]; data/mod-gearman-1.5.5/t/02-full.c:69: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 logf[150]; data/mod-gearman-1.5.5/t/02-full.c:72: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 encryption[150]; data/mod-gearman-1.5.5/t/02-full.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 temp_buffer[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/t/02-full.c:130: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_buffer[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/t/02-full.c:161: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 workload[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/t/02-full.c:235: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(logfile, "r"); data/mod-gearman-1.5.5/t/02-full.c:252:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(logfile, "r"); data/mod-gearman-1.5.5/t/02-full.c:345:15: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). if ((fd = mkstemp(sfn)) == -1) { data/mod-gearman-1.5.5/t/02-full.c:356: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 cmd[150]; data/mod-gearman-1.5.5/t/02-full.c:382: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 cmd[150]; data/mod-gearman-1.5.5/t/02-full.c:390: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 p1[150]; data/mod-gearman-1.5.5/t/02-full.c:396: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 options[150]; data/mod-gearman-1.5.5/t/03-exec_checks.c:22: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 cmd[120]; data/mod-gearman-1.5.5/t/03-exec_checks.c:23: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[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/t/03-exec_checks.c:24: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 cwd[1024]; data/mod-gearman-1.5.5/t/03-exec_checks.c:40: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 p1[150]; data/mod-gearman-1.5.5/t/03-exec_checks.c:49: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 *args[MAX_CMD_ARGS]; data/mod-gearman-1.5.5/t/03-exec_checks.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(cmd, "/bin/hostname"); data/mod-gearman-1.5.5/t/03-exec_checks.c:57: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(cmd, "/bin/cmd blah blub foo"); data/mod-gearman-1.5.5/t/03-exec_checks.c:67: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(cmd, "./send_gearman --server=blah --key=testtest --host=test --service=test --message=test --returncode=0"); data/mod-gearman-1.5.5/t/03-exec_checks.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(cmd, "./send_gearman --server=blah < t/data/send_gearman_results.txt"); data/mod-gearman-1.5.5/t/03-exec_checks.c:95: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(cmd, "./send_multi --server=blah --host=blah < t/data/send_multi.txt"); data/mod-gearman-1.5.5/t/03-exec_checks.c:109: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(cmd, "/bin/hostname"); data/mod-gearman-1.5.5/t/03-exec_checks.c:120: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(cmd, "/bin/hostname 2>&1"); data/mod-gearman-1.5.5/t/03-exec_checks.c:132:9: [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(cmd, "/usr/lib/nagios/plugins/check_users -w 99 -c 99"); data/mod-gearman-1.5.5/t/03-exec_checks.c:135:9: [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(cmd, "/usr/lib64/nagios/plugins/check_users -w 99 -c 99"); data/mod-gearman-1.5.5/t/03-exec_checks.c:137:9: [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(cmd, "/bin/false 'no check_users installed...'"); data/mod-gearman-1.5.5/t/03-exec_checks.c:151: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(cmd, "echo -n 'test'; exit 2"); data/mod-gearman-1.5.5/t/03-exec_checks.c:384: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 res[150]; data/mod-gearman-1.5.5/t/03-exec_checks.c:389: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(cmd, "./t/ok.pl"); data/mod-gearman-1.5.5/t/03-exec_checks.c:399: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(cmd, "./t/ok.pl; somethingnasty"); data/mod-gearman-1.5.5/t/03-exec_checks.c:423: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(cmd, "/forbidden/t/ok.pl"); data/mod-gearman-1.5.5/t/06-execvp_vs_popen.c:21:15: [2] (tmpfile) mkstemp: Potential for temporary file vulnerability in some circumstances. Some older Unix-like systems create temp files with permission to write by all by default, so be sure to set the umask to override this. Also, some older Unix systems might fail to use O_EXCL when opening the file, so make sure that O_EXCL is used by the library (CWE-377). if ((fd = mkstemp(sfn)) == -1) { data/mod-gearman-1.5.5/t/06-execvp_vs_popen.c:38: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(logfile, "r"); data/mod-gearman-1.5.5/t/06-execvp_vs_popen.c:59: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 cmd[120]; data/mod-gearman-1.5.5/t/06-execvp_vs_popen.c:60: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 logf[150]; data/mod-gearman-1.5.5/t/06-execvp_vs_popen.c:79:30: [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). mod_gm_opt->logfile_fp = fopen(mod_gm_opt->logfile, "a+"); data/mod-gearman-1.5.5/t/06-execvp_vs_popen.c:86: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 p1[150]; data/mod-gearman-1.5.5/t/06-execvp_vs_popen.c:96: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(cmd, "BLAH=BLUB /bin/hostname"); data/mod-gearman-1.5.5/t/06-execvp_vs_popen.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(cmd, "/bin/hostname"); data/mod-gearman-1.5.5/t/07-epn.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 cmd[120]; data/mod-gearman-1.5.5/t/07-epn.c:38: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 cmds[150]; data/mod-gearman-1.5.5/t/07-epn.c:39: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(cmds, "--p1_file=worker/mod_gearman_p1.pl"); data/mod-gearman-1.5.5/t/07-epn.c:41: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(cmds, "--enable_embedded_perl=on"); data/mod-gearman-1.5.5/t/07-epn.c:43: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(cmds, "--use_embedded_perl_implicitly=on"); data/mod-gearman-1.5.5/t/07-epn.c:62: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(cmd, "./t/fail.pl"); data/mod-gearman-1.5.5/t/07-epn.c:70: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(cmd, "./t/ok.pl"); data/mod-gearman-1.5.5/t/07-epn.c:79: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(cmd, "./t/crit.pl"); data/mod-gearman-1.5.5/t/07-epn.c:87: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(cmd, "./t/noexit.pl"); data/mod-gearman-1.5.5/t/07-epn.c:97: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(cmd, "./mod_gearman_mini_epn ./t/ok.pl"); data/mod-gearman-1.5.5/t/tap.c:297: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 errbuf[256]; data/mod-gearman-1.5.5/tools/check_gearman.c:66: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). case 't': opt_timeout = atoi(optarg); data/mod-gearman-1.5.5/tools/check_gearman.c:68:43: [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). case 'w': opt_job_warning = atoi(optarg); data/mod-gearman-1.5.5/tools/check_gearman.c:70:44: [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). case 'c': opt_job_critical = atoi(optarg); data/mod-gearman-1.5.5/tools/check_gearman.c:72:46: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'W': opt_worker_warning = atoi(optarg); data/mod-gearman-1.5.5/tools/check_gearman.c:74:47: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). case 'C': opt_worker_critical = atoi(optarg); data/mod-gearman-1.5.5/tools/gearman_top.c:35:1: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char * server_list[GM_LISTSIZE]; data/mod-gearman-1.5.5/tools/gearman_top.c:184: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 format1[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/tools/gearman_top.c:185: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 format2[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/tools/gearman_top.c:186: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 cur_time[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/tools/gearman_top.c:201:16: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(port_c); data/mod-gearman-1.5.5/tools/send_gearman.c:204: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 buffer[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/tools/send_gearman.c:250:43: [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). mod_gm_opt->return_code = atoi(ptr2); data/mod-gearman-1.5.5/tools/send_gearman.c:256:43: [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). mod_gm_opt->return_code = atoi(ptr3); data/mod-gearman-1.5.5/tools/send_gearman.c:332:9: [2] (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 string. strcat(temp_buffer, "service_description="); data/mod-gearman-1.5.5/tools/send_gearman.c:340:9: [2] (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 string. strcat(temp_buffer, "output="); data/mod-gearman-1.5.5/tools/send_multi.c:199: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_buffer1[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/tools/send_multi.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 temp_buffer2[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/tools/send_multi.c:302: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 buffer[GM_BUFFERSIZE+1]; data/mod-gearman-1.5.5/tools/send_multi.c:395: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_buffer[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/tools/send_multi.c:407:52: [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). gm_log( GM_LOG_TRACE, "child check: %d\n", atoi(attribute)); data/mod-gearman-1.5.5/tools/send_multi.c:419:29: [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). mod_gm_opt->return_code=atoi(attribute); data/mod-gearman-1.5.5/tools/send_multi.c:478: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 start_element[GM_BUFFERSIZE], end_element[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/worker/worker.c:402:34: [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). mod_gm_opt->logfile_fp = fopen(mod_gm_opt->logfile, "a+"); data/mod-gearman-1.5.5/worker/worker.c:745: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 pid_path[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/worker/worker.c:752:14: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fp = fopen(mod_gm_opt->pidfile, "r"); data/mod-gearman-1.5.5/worker/worker.c:778: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(mod_gm_opt->pidfile,"w+"); data/mod-gearman-1.5.5/worker/worker_client.c:237: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). exec_job->check_options = atoi(value); data/mod-gearman-1.5.5/worker/worker_client.c:240:41: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). exec_job->scheduled_check = atoi(value); data/mod-gearman-1.5.5/worker/worker_client.c:243:42: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). exec_job->reschedule_check = atoi(value); data/mod-gearman-1.5.5/worker/worker_client.c:260:33: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). exec_job->timeout = atoi(value); data/mod-gearman-1.5.5/worker/worker_client.c:383: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 status_queue[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/worker/worker_client.c:399: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 buffer[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/worker/worker_client.c:407: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 buffer[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/worker/worker_client.c:546: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 workload[GM_BUFFERSIZE]; data/mod-gearman-1.5.5/worker/worker_client.c:601: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). fd = fopen( "/tmp/mod_gearman_worker.txt", "a+" ); data/mod-gearman-1.5.5/common/base64.c:166: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). src = (char *)malloc(strlen(source)+5); data/mod-gearman-1.5.5/common/check_utils.c:308:53: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(write(pipe_stdout[1], plugin_output, strlen(plugin_output)+1) <= 0) data/mod-gearman-1.5.5/common/check_utils.c:310: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). if(write(pipe_stderr[1], plugin_error, strlen(plugin_error)+1) <= 0) data/mod-gearman-1.5.5/common/check_utils.c:316:49: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(write(pipe_stdout[1], error, strlen(error)+1) <= 0) data/mod-gearman-1.5.5/common/epn_utils.c:69:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fname,processed_command,strcspn(processed_command," ")); data/mod-gearman-1.5.5/common/epn_utils.c:86:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). args[3]=processed_command+strlen(fname)+1; data/mod-gearman-1.5.5/common/epn_utils.c:172:58: [1] (buffer) strlen: Does not handle 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(write(pipe_stdout[1], perl_plugin_output, strlen(perl_plugin_output)+1) <= 0) data/mod-gearman-1.5.5/common/gearman_utils.c:142: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(queue) > 63) { data/mod-gearman-1.5.5/common/gearman_utils.c:149:24: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(uniq != NULL && strlen(uniq) > 63) { data/mod-gearman-1.5.5/common/gearman_utils.c:157:46: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gm_log( GM_LOG_TRACE, "%d --->%s<---\n", strlen(data), data ); data/mod-gearman-1.5.5/common/gearman_utils.c:287:21: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(*version, line+3, 10); data/mod-gearman-1.5.5/common/gearman_utils.c:371: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). n = write(sockfd,cmd,strlen(cmd)); data/mod-gearman-1.5.5/common/gearman_utils.c:378:9: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). n = read( sockfd, buf, GM_BUFFERSIZE-1 ); data/mod-gearman-1.5.5/common/gm_crypt.c:61: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). size = strlen(text); data/mod-gearman-1.5.5/common/utils.c:57:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((newbuf=gm_malloc((strlen(tmpbuf)*2)+1))==NULL) { data/mod-gearman-1.5.5/common/utils.c:106: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(key) < 8) { data/mod-gearman-1.5.5/common/utils.c:125: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). size = strlen(text); data/mod-gearman-1.5.5/common/utils.c:134: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). return strlen(base64); data/mod-gearman-1.5.5/common/utils.c:141:22: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int input_size = strlen(text); data/mod-gearman-1.5.5/common/utils.c:154:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(*decrypted, (char*)buffer, bsize); data/mod-gearman-1.5.5/common/utils.c:189: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(s) == 0) data/mod-gearman-1.5.5/common/utils.c:191: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). back = s + strlen(s); data/mod-gearman-1.5.5/common/utils.c:774:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(groupname) > 50) { data/mod-gearman-1.5.5/common/utils.c:792:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(groupname) > 50) { data/mod-gearman-1.5.5/common/utils.c:846: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(export_queue) > 50) { data/mod-gearman-1.5.5/common/utils.c:1271:27: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((newbuf=gm_malloc((strlen(rawbuf)*2)+1))==NULL) data/mod-gearman-1.5.5/common/utils.c:1633: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). vsnprintf( buffer1 + strlen( buffer1 ), sizeof( buffer1 ) - strlen( buffer1 ), text, ap ); data/mod-gearman-1.5.5/common/utils.c:1633:69: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). vsnprintf( buffer1 + strlen( buffer1 ), sizeof( buffer1 ) - strlen( buffer1 ), text, ap ); data/mod-gearman-1.5.5/common/utils.c:1745:20: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). result_size = strlen(exec_job->output)+GM_BUFFERSIZE; data/mod-gearman-1.5.5/common/utils.c:1768:9: [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(temp_buffer2, "\n"); data/mod-gearman-1.5.5/common/utils.c:1778: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(temp_buffer2, "("); data/mod-gearman-1.5.5/common/utils.c:1783:72: [1] (buffer) strlen: Does not handle 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(mod_gm_opt->show_error_output && exec_job->error != NULL && strlen(exec_job->error) > 0) { data/mod-gearman-1.5.5/common/utils.c:1784: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(strlen(exec_job->output) > 0) data/mod-gearman-1.5.5/common/utils.c:1786: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(temp_buffer2, "["); data/mod-gearman-1.5.5/common/utils.c:1793:5: [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(temp_buffer1, "\n"); data/mod-gearman-1.5.5/common/utils.c:1855:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). md5((unsigned char *)text, strlen(text), sum); data/mod-gearman-1.5.5/common/utils.c:1893: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). size_t lenpre = strlen(pre), data/mod-gearman-1.5.5/common/utils.c:1894: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). lenstr = strlen(str); data/mod-gearman-1.5.5/common/utils.c:1903:5: [1] (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 character. strcpy(buffer,""); data/mod-gearman-1.5.5/common/utils.c:1907: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). bytes = strlen(buffer); data/mod-gearman-1.5.5/common/utils.c:1913:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(*target, buffer, bytes); data/mod-gearman-1.5.5/common/utils.c:1926:5: [1] (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 character. strcpy(buffer,""); data/mod-gearman-1.5.5/common/utils.c:1929:11: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while(read(input, buffer, sizeof(buffer)-1)){ data/mod-gearman-1.5.5/common/utils.c:1930: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). bytes = strlen(buffer); data/mod-gearman-1.5.5/common/utils.c:1936:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(*target, buffer, bytes); data/mod-gearman-1.5.5/contrib/mod_gearman_mini_epn.c:82: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). command_line[strlen(command_line) - 1] = '\0'; data/mod-gearman-1.5.5/contrib/mod_gearman_mini_epn.c:84:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(fname, command_line, strcspn(command_line, " ")); data/mod-gearman-1.5.5/contrib/mod_gearman_mini_epn.c:87: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). args[3] = command_line + strlen(fname) + 1 ; data/mod-gearman-1.5.5/neb_module/result_thread.c:112:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(workload, (const char*)gearman_job_workload(job), wsize); data/mod-gearman-1.5.5/neb_module/result_thread.c:115:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gm_log( GM_LOG_TRACE, "%d +++>\n%s\n<+++\n", strlen(workload), workload ); data/mod-gearman-1.5.5/neb_module/result_thread.c:132:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gm_log( GM_LOG_TRACE, "%d --->\n%s\n<---\n", strlen(decrypted_data), decrypted_data ); data/mod-gearman-1.5.5/t/01-utils.c:53:5: [1] (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 character. strcpy(test, ""); ok(parse_yes_or_no(test, GM_ENABLED) == GM_ENABLED, "parse_yes_or_no 3"); data/mod-gearman-1.5.5/t/01-utils.c:54:5: [1] (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 character. strcpy(test, ""); ok(parse_yes_or_no(test, GM_DISABLED) == GM_DISABLED, "parse_yes_or_no 4"); data/mod-gearman-1.5.5/t/01-utils.c:58:5: [1] (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 character. strcpy(test, "1"); ok(parse_yes_or_no(test, GM_ENABLED) == GM_ENABLED, "parse_yes_or_no 8"); data/mod-gearman-1.5.5/t/01-utils.c:63:5: [1] (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 character. strcpy(test, "0"); ok(parse_yes_or_no(test, GM_ENABLED) == GM_DISABLED, "parse_yes_or_no 13"); data/mod-gearman-1.5.5/t/01-utils.c:86:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(test, hex, 4); data/mod-gearman-1.5.5/t/01-utils.c:101: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). ok(strlen(mod_gm_opt->crypt_key) == 32, "key size for t/data/test3.key"); data/mod-gearman-1.5.5/t/01-utils.c:215:5: [1] (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 character. strcpy(test, ""); data/mod-gearman-1.5.5/t/02-full.c:175:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(workload, (const char*)gearman_job_workload(job), wsize); data/mod-gearman-1.5.5/tools/check_gearman.c:333:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (size_t)strlen(to_send), data/mod-gearman-1.5.5/tools/check_gearman.c:342:61: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (size_t)strlen(to_send), data/mod-gearman-1.5.5/tools/gearman_top.c:103:17: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(opt_interval); data/mod-gearman-1.5.5/tools/gearman_top.c:135:9: [1] (obsolete) usleep: This C routine is considered obsolete (as opposed to the shell command by the same name). The interaction of this function with SIGALRM and other timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead. usleep(opt_interval); data/mod-gearman-1.5.5/tools/gearman_top.c:228:21: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((int)strlen(stats->function[x]->queue) > max_length) { data/mod-gearman-1.5.5/tools/gearman_top.c:229:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). max_length = (int)strlen(stats->function[x]->queue); data/mod-gearman-1.5.5/tools/send_gearman.c:315: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). resultsize = sizeof(char) * strlen(mod_gm_opt->message) + GM_BUFFERSIZE; data/mod-gearman-1.5.5/tools/send_gearman.c:334:9: [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(temp_buffer, "\n"); data/mod-gearman-1.5.5/tools/send_gearman.c:342:9: [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(temp_buffer, "\n"); data/mod-gearman-1.5.5/tools/send_gearman.c:345:5: [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(result, "\n"); data/mod-gearman-1.5.5/tools/send_multi.c:230:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat(temp_buffer2, "service_description=", (sizeof(temp_buffer2)-1)); data/mod-gearman-1.5.5/tools/send_multi.c:231:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(temp_buffer2, mod_gm_opt->service, (sizeof(temp_buffer2)-1)); data/mod-gearman-1.5.5/tools/send_multi.c:232:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. strncat(temp_buffer2, "\n", (sizeof(temp_buffer2)-1)); data/mod-gearman-1.5.5/tools/send_multi.c:233:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(temp_buffer1, temp_buffer2, (sizeof(temp_buffer1)-1)); data/mod-gearman-1.5.5/tools/send_multi.c:238:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant string. strncat(temp_buffer2, "output=", (sizeof(temp_buffer2)-1)); data/mod-gearman-1.5.5/tools/send_multi.c:239:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(temp_buffer2, mod_gm_opt->message, (sizeof(temp_buffer2)-1)); data/mod-gearman-1.5.5/tools/send_multi.c:240:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. strncat(temp_buffer2, "\n", (sizeof(temp_buffer2)-1)); data/mod-gearman-1.5.5/tools/send_multi.c:241:9: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. strncat(temp_buffer1, temp_buffer2, (sizeof(temp_buffer1)-1)); data/mod-gearman-1.5.5/tools/send_multi.c:243:5: [1] (buffer) strncat: Easily used incorrectly (e.g., incorrectly computing the correct maximum size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf, or automatically resizing strings. Risk is low because the source is a constant character. strncat(temp_buffer1, "\n", (sizeof(temp_buffer1)-2)); data/mod-gearman-1.5.5/tools/send_multi.c:314:62: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if ((bufstart=(char *)memmem(buffer,buflen,"<CHILD>",strlen("<CHILD>"))) != NULL) { data/mod-gearman-1.5.5/tools/send_multi.c:317:85: [1] (buffer) strlen: Does not handle 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 ((bufend=(char *)memmem(bufstart,buflen-(bufstart-buffer),"</CHILD>",strlen("</CHILD>"))) != NULL) { data/mod-gearman-1.5.5/tools/send_multi.c:324: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). bufstart+=strlen("<CHILD>"); data/mod-gearman-1.5.5/tools/send_multi.c:336: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). memmove(buffer,bufend+strlen("</CHILD>"),buflen-(bufend+strlen("</CHILD>")-buffer)); data/mod-gearman-1.5.5/tools/send_multi.c:336:73: [1] (buffer) strlen: Does not handle 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(buffer,bufend+strlen("</CHILD>"),buflen-(bufend+strlen("</CHILD>")-buffer)); data/mod-gearman-1.5.5/tools/send_multi.c:337:32: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buflen-=bufend+strlen("</CHILD>")-buffer; data/mod-gearman-1.5.5/tools/send_multi.c:449:9: [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(error,"]"); data/mod-gearman-1.5.5/tools/send_multi.c:482:73: [1] (buffer) strlen: Does not handle 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 ((bufstart=(char *)memmem(bufstart,bufend-bufstart,start_element,strlen(start_element))) == NULL) { data/mod-gearman-1.5.5/tools/send_multi.c:486: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). bufstart+=strlen(start_element); data/mod-gearman-1.5.5/tools/send_multi.c:487:69: [1] (buffer) strlen: Does not handle 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 ((bufend=(char *)memmem(bufstart,bufend-bufstart,end_element,strlen(end_element))) == NULL) { data/mod-gearman-1.5.5/tools/send_multi.c:516:35: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strcpy(found+1, found+strlen(dtab[i].enc_string)); data/mod-gearman-1.5.5/worker/worker_client.c:188:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(workload, (const char*)gearman_job_workload(job), wsize); data/mod-gearman-1.5.5/worker/worker_client.c:191:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gm_log( GM_LOG_TRACE, "%d +++>\n%s\n<+++\n", strlen(workload), workload ); data/mod-gearman-1.5.5/worker/worker_client.c:205:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gm_log( GM_LOG_TRACE, "%d --->\n%s\n<---\n", strlen(decrypted_data), decrypted_data ); data/mod-gearman-1.5.5/worker/worker_client.c:557:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(workload, (const char*)gearman_job_workload(job), wsize); data/mod-gearman-1.5.5/worker/worker_client.c:560:50: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). gm_log( GM_LOG_TRACE, "%d +++>\n%s\n<+++\n", strlen(workload), workload ); ANALYSIS SUMMARY: Hits = 393 Lines analyzed = 20845 in approximately 0.65 seconds (32066 lines/second) Physical Source Lines of Code (SLOC) = 13574 Hits@level = [0] 351 [1] 94 [2] 255 [3] 4 [4] 31 [5] 9 Hits@level+ = [0+] 744 [1+] 393 [2+] 299 [3+] 44 [4+] 40 [5+] 9 Hits/KSLOC@level+ = [0+] 54.8107 [1+] 28.9524 [2+] 22.0274 [3+] 3.24149 [4+] 2.94681 [5+] 0.663032 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.