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/haserl-0.9.35/src/h_error.c Examining data/haserl-0.9.35/src/h_lua.c Examining data/haserl-0.9.35/src/haserl.h Examining data/haserl-0.9.35/src/h_lua_common.h Examining data/haserl-0.9.35/src/lua2c.c Examining data/haserl-0.9.35/src/common.c Examining data/haserl-0.9.35/src/h_script.h Examining data/haserl-0.9.35/src/h_lua_common.c Examining data/haserl-0.9.35/src/h_lua.h Examining data/haserl-0.9.35/src/sliding_buffer.h Examining data/haserl-0.9.35/src/h_bash.c Examining data/haserl-0.9.35/src/haserl.c Examining data/haserl-0.9.35/src/h_script.c Examining data/haserl-0.9.35/src/common.h Examining data/haserl-0.9.35/src/rfc2388.h Examining data/haserl-0.9.35/src/h_error.h Examining data/haserl-0.9.35/src/h_luac.c Examining data/haserl-0.9.35/src/h_luac.h Examining data/haserl-0.9.35/src/h_bash.h Examining data/haserl-0.9.35/src/rfc2388.c Examining data/haserl-0.9.35/src/sliding_buffer.c FINAL RESULTS: data/haserl-0.9.35/src/h_bash.c:101:4: [4] (shell) execv: 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. execv (argv[0].string, av); data/haserl-0.9.35/src/h_error.c:85:7: [4] (format) vfprintf: If format strings can be influenced by an attacker, they can be exploited (CWE-134). Use a constant for the format specification. vfprintf (fo, s, p); data/haserl-0.9.35/src/haserl.c:255:7: [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 (entry, str + keylen + 2); data/haserl-0.9.35/src/haserl.c:259:7: [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 (entry, str); data/haserl-0.9.35/src/haserl.c:276:8: [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, str + keylen + 3); data/haserl-0.9.35/src/haserl.c:391:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (version, "HASERLVER=%s", PACKAGE_VERSION); data/haserl-0.9.35/src/rfc2388.c:236:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (type, "CONTENT_TYPE=%s", obj->type); data/haserl-0.9.35/src/rfc2388.c:242:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (filename, "FILENAME=%s", obj->filename); data/haserl-0.9.35/src/rfc2388.c:249:4: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf (name, "NAME=%s", obj->name); data/haserl-0.9.35/src/rfc2388.c:256:7: [4] (shell) execv: 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. execv (av[0], av); data/haserl-0.9.35/src/rfc2388.c:296:3: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy (tmpname, global.uploaddir); data/haserl-0.9.35/src/h_error.c:76:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("REQUEST_METHOD")) data/haserl-0.9.35/src/h_error.c:97:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("REQUEST_METHOD")) data/haserl-0.9.35/src/haserl.c:348:7: [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 ("HTTP_COOKIE") != NULL) data/haserl-0.9.35/src/haserl.c:350: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. qs = strdup (getenv ("HTTP_COOKIE")); data/haserl-0.9.35/src/haserl.c:426:7: [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 ("QUERY_STRING") != NULL) data/haserl-0.9.35/src/haserl.c:428: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. qs = strdup (getenv ("QUERY_STRING")); data/haserl-0.9.35/src/haserl.c:478: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 (CONTENT_LENGTH) == NULL) || data/haserl-0.9.35/src/haserl.c:479:17: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. (strtoul (getenv (CONTENT_LENGTH), NULL, 10) == 0)) data/haserl-0.9.35/src/haserl.c:482:18: [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. content_type = getenv(CONTENT_TYPE); data/haserl-0.9.35/src/haserl.c:494:21: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. ( strncasecmp (getenv (CONTENT_TYPE), "application/x-www-form-urlencoded", 33) == 0 ) ) data/haserl-0.9.35/src/haserl.c:507: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 (CONTENT_LENGTH)) data/haserl-0.9.35/src/haserl.c:509:32: [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. sbuf.maxread = strtoul (getenv (CONTENT_LENGTH), NULL, 10); data/haserl-0.9.35/src/haserl.c:584:15: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((c = getopt_long (argc, argv, gs_short_options, data/haserl-0.9.35/src/haserl.c:887:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("REQUEST_METHOD")) data/haserl-0.9.35/src/haserl.c:889:22: [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 ( (strcasecmp (getenv ("REQUEST_METHOD"), "GET") == 0) || data/haserl-0.9.35/src/haserl.c:890: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. (strcasecmp (getenv ("REQUEST_METHOD"), "DELETE") == 0) ) data/haserl-0.9.35/src/haserl.c:897:22: [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 ( (strcasecmp (getenv ("REQUEST_METHOD"), "POST") == 0) || data/haserl-0.9.35/src/haserl.c:898: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. (strcasecmp (getenv ("REQUEST_METHOD"), "PUT") == 0) ) data/haserl-0.9.35/src/haserl.c:919:11: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv ("REQUEST_METHOD")) data/haserl-0.9.35/src/rfc2388.c:408:9: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. str = getenv ("CONTENT_TYPE"); data/haserl-0.9.35/src/rfc2388.c:442:7: [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 ("CONTENT_LENGTH")) data/haserl-0.9.35/src/rfc2388.c:444:31: [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. sbuf.maxread = strtoul (getenv ("CONTENT_LENGTH"), NULL, 10); data/haserl-0.9.35/src/common.c:267:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (buf->ptr, data, size); data/haserl-0.9.35/src/common.c:341:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char string[2000]; data/haserl-0.9.35/src/common.c:344:3: [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 (string, data/haserl-0.9.35/src/h_bash.c:58:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *av[20]; data/haserl-0.9.35/src/h_lua.c:113:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char quote[200] = "]=]"; /* 197 nested comments is a problem */ data/haserl-0.9.35/src/h_script.c:78: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 open_tag[3] = "<%"; data/haserl-0.9.35/src/h_script.c:79: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 close_tag[3] = "%>"; data/haserl-0.9.35/src/h_script.c:91:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). scriptfp = open (filename, O_NONBLOCK + O_RDONLY); data/haserl-0.9.35/src/h_script.c:103:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (scriptbuf->name, filename, strlen (filename)); data/haserl-0.9.35/src/haserl.c:381:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char session[29]; data/haserl-0.9.35/src/haserl.c:383:3: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (session, "SESSIONID=%x%x", getpid (), (int) time (NULL)); data/haserl-0.9.35/src/haserl.c:390:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char version[200]; data/haserl-0.9.35/src/haserl.c:399:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[200]; data/haserl-0.9.35/src/haserl.c:601:26: [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). global.uploadkb = atoi (optarg); data/haserl-0.9.35/src/rfc2388.c:53:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char c[2000]; data/haserl-0.9.35/src/rfc2388.c:123:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (ptr, start, len); data/haserl-0.9.35/src/rfc2388.c:211:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char *av[4]; data/haserl-0.9.35/src/rfc2388.c:259:12: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). fh = open (fifo, O_RDONLY); data/haserl-0.9.35/src/rfc2388.c:297:3: [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 (tmpname, "/XXXXXX"); data/haserl-0.9.35/src/rfc2388.c:298:13: [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). obj->fh = mkstemp (tmpname); data/haserl-0.9.35/src/rfc2388.c:324:14: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). obj->fh = open (tmpname, O_WRONLY); data/haserl-0.9.35/src/rfc2388.c:425:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (boundary, crlf, 2); data/haserl-0.9.35/src/rfc2388.c:426:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (boundary + 2, "--", 2); data/haserl-0.9.35/src/rfc2388.c:427:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy (boundary + 4, str + i, strlen (str + i) + 1); data/haserl-0.9.35/src/sliding_buffer.c:180:3: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char foo[200]; data/haserl-0.9.35/src/sliding_buffer.c:187:7: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf (foo, "%03d- %03d - %03d", x, sb.eof, sb.len); data/haserl-0.9.35/src/common.c:79:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen (instr); data/haserl-0.9.35/src/common.c:136: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). memmove (instr, instr + 1, strlen (instr)); data/haserl-0.9.35/src/h_bash.c:129:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, str, strlen (str)); data/haserl-0.9.35/src/h_bash.c:151: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). buffer_add (buf, echo_start, strlen (echo_start)); data/haserl-0.9.35/src/h_bash.c:155:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, echo_quote, strlen (echo_quote)); data/haserl-0.9.35/src/h_bash.c:161:31: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, echo_end, strlen (echo_end)); data/haserl-0.9.35/src/h_bash.c:162: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). buffer_add (buf, echo_start, strlen (echo_start)); data/haserl-0.9.35/src/h_bash.c:165: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). buffer_add (buf, echo_end, strlen (echo_end)); data/haserl-0.9.35/src/h_bash.c:178: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). buffer_add (buf, echo_start, strlen (echo_start)); data/haserl-0.9.35/src/h_bash.c:180: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). buffer_add (buf, echo_end, strlen (echo_end)); data/haserl-0.9.35/src/h_bash.c:197: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). buffer_add (buf, err_msg, strlen (err_msg)); data/haserl-0.9.35/src/h_bash.c:202:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, ex_start, strlen (ex_start)); data/haserl-0.9.35/src/h_bash.c:204: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). buffer_add (buf, ex_end, strlen (ex_end)); data/haserl-0.9.35/src/h_bash.c:208:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, if_start, strlen (if_start)); data/haserl-0.9.35/src/h_bash.c:210: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). buffer_add (buf, if_end, strlen (if_end)); data/haserl-0.9.35/src/h_bash.c:228: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). buffer_add (buf, err_msg, strlen (err_msg)); data/haserl-0.9.35/src/h_bash.c:233:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, ex_start, strlen (ex_start)); data/haserl-0.9.35/src/h_bash.c:235: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). buffer_add (buf, ex_end, strlen (ex_end)); data/haserl-0.9.35/src/h_bash.c:239:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, elif_start, strlen (elif_start)); data/haserl-0.9.35/src/h_bash.c:241:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, elif_end, strlen (elif_end)); data/haserl-0.9.35/src/h_bash.c:256:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, else_start, strlen (else_start)); data/haserl-0.9.35/src/h_bash.c:260:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, else_start2, strlen (else_start2)); data/haserl-0.9.35/src/h_bash.c:263: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). buffer_add (buf, else_end, strlen (else_end)); data/haserl-0.9.35/src/h_bash.c:277:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, fi_start, strlen (fi_start)); data/haserl-0.9.35/src/h_bash.c:281: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). buffer_add (buf, fi_start2, strlen (fi_start2)); data/haserl-0.9.35/src/h_bash.c:284:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, fi_end, strlen (fi_end)); data/haserl-0.9.35/src/h_bash.c:305: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). buffer_add (buf, err_msg, strlen (err_msg)); data/haserl-0.9.35/src/h_bash.c:309:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, case_start, strlen (case_start)); data/haserl-0.9.35/src/h_bash.c:311:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, case_end, strlen (case_end)); data/haserl-0.9.35/src/h_bash.c:312:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, case_bogus, strlen (case_bogus)); data/haserl-0.9.35/src/h_bash.c:328: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). buffer_add (buf, err_msg, strlen (err_msg)); data/haserl-0.9.35/src/h_bash.c:332:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, when_start, strlen (when_start)); data/haserl-0.9.35/src/h_bash.c:334:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, when_end, strlen (when_end)); data/haserl-0.9.35/src/h_bash.c:348:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, otherwise_start, strlen (otherwise_start)); data/haserl-0.9.35/src/h_bash.c:352:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, otherwise_start1, strlen (otherwise_start1)); data/haserl-0.9.35/src/h_bash.c:356:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, otherwise_start2, strlen (otherwise_start2)); data/haserl-0.9.35/src/h_bash.c:359: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). buffer_add (buf, otherwise_end, strlen (otherwise_end)); data/haserl-0.9.35/src/h_bash.c:372: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). buffer_add (buf, endcase_start, strlen (endcase_start)); data/haserl-0.9.35/src/h_bash.c:376:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, endcase_start1, strlen (endcase_start1)); data/haserl-0.9.35/src/h_bash.c:380:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, endcase_start2, strlen (endcase_start2)); data/haserl-0.9.35/src/h_bash.c:383: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). buffer_add (buf, endcase_end, strlen (endcase_end)); data/haserl-0.9.35/src/h_bash.c:400: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). buffer_add (buf, err_msg, strlen (err_msg)); data/haserl-0.9.35/src/h_bash.c:405:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, ex_start, strlen (ex_start)); data/haserl-0.9.35/src/h_bash.c:407: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). buffer_add (buf, ex_end, strlen (ex_end)); data/haserl-0.9.35/src/h_bash.c:411:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, while_start, strlen (while_start)); data/haserl-0.9.35/src/h_bash.c:413: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). buffer_add (buf, while_end, strlen (while_end)); data/haserl-0.9.35/src/h_bash.c:428:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, endwhile_start, strlen (endwhile_start)); data/haserl-0.9.35/src/h_bash.c:432:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, endwhile_start2, strlen (endwhile_start2)); data/haserl-0.9.35/src/h_bash.c:435:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, endwhile_end, strlen (endwhile_end)); data/haserl-0.9.35/src/h_bash.c:452: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). buffer_add (buf, err_msg, strlen (err_msg)); data/haserl-0.9.35/src/h_bash.c:457:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, ex_start, strlen (ex_start)); data/haserl-0.9.35/src/h_bash.c:459: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). buffer_add (buf, ex_end, strlen (ex_end)); data/haserl-0.9.35/src/h_bash.c:463:37: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, until_start, strlen (until_start)); data/haserl-0.9.35/src/h_bash.c:465: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). buffer_add (buf, until_end, strlen (until_end)); data/haserl-0.9.35/src/h_bash.c:480:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, enduntil_start, strlen (enduntil_start)); data/haserl-0.9.35/src/h_bash.c:484:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, enduntil_start2, strlen (enduntil_start2)); data/haserl-0.9.35/src/h_bash.c:487:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, enduntil_end, strlen (enduntil_end)); data/haserl-0.9.35/src/h_bash.c:502: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). buffer_add (buf, err_msg, strlen (err_msg)); data/haserl-0.9.35/src/h_bash.c:506: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). buffer_add (buf, for_start, strlen (for_start)); data/haserl-0.9.35/src/h_bash.c:508: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). buffer_add (buf, for_end, strlen (for_end)); data/haserl-0.9.35/src/h_bash.c:523:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, endfor_start, strlen (endfor_start)); data/haserl-0.9.35/src/h_bash.c:527: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). buffer_add (buf, endfor_start2, strlen (endfor_start2)); data/haserl-0.9.35/src/h_bash.c:530: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). buffer_add (buf, endfor_end, strlen (endfor_end)); data/haserl-0.9.35/src/h_bash.c:547: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). buffer_add (buf, err_msg, strlen (err_msg)); data/haserl-0.9.35/src/h_bash.c:552:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, ex_start, strlen (ex_start)); data/haserl-0.9.35/src/h_bash.c:554: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). buffer_add (buf, ex_end, strlen (ex_end)); data/haserl-0.9.35/src/h_bash.c:558:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, unless_start, strlen (unless_start)); data/haserl-0.9.35/src/h_bash.c:560:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, unless_end, strlen (unless_end)); data/haserl-0.9.35/src/h_bash.c:578: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). buffer_add (buf, err_msg, strlen (err_msg)); data/haserl-0.9.35/src/h_bash.c:583:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, ex_start, strlen (ex_start)); data/haserl-0.9.35/src/h_bash.c:585: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). buffer_add (buf, ex_end, strlen (ex_end)); data/haserl-0.9.35/src/h_bash.c:589:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, elun_start, strlen (elun_start)); data/haserl-0.9.35/src/h_bash.c:591:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, elun_end, strlen (elun_end)); data/haserl-0.9.35/src/h_bash.c:606:38: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, unelse_start, strlen (unelse_start)); data/haserl-0.9.35/src/h_bash.c:610: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). buffer_add (buf, unelse_start2, strlen (unelse_start2)); data/haserl-0.9.35/src/h_bash.c:613: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). buffer_add (buf, unelse_end, strlen (unelse_end)); data/haserl-0.9.35/src/h_bash.c:627:41: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, endunless_start, strlen (endunless_start)); data/haserl-0.9.35/src/h_bash.c:631:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, endunless_start2, strlen (endunless_start2)); data/haserl-0.9.35/src/h_bash.c:634: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). buffer_add (buf, endunless_end, strlen (endunless_end)); data/haserl-0.9.35/src/h_bash.c:647: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). write (subshell_pipe[PARENT_OUT], postfix, strlen (postfix)); data/haserl-0.9.35/src/h_lua.c:83:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, str, strlen (str)); data/haserl-0.9.35/src/h_lua.c:95:8: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen ((char *) script->data), name) || data/haserl-0.9.35/src/h_lua.c:119:36: [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). while ((strstr (str, quote)) && (strlen (quote) < 198)) data/haserl-0.9.35/src/h_lua.c:121: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). memmove (quote + strlen (quote) - 1, quote + strlen (quote) - 2, 3); data/haserl-0.9.35/src/h_lua.c:121: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). memmove (quote + strlen (quote) - 1, quote + strlen (quote) - 2, 3); data/haserl-0.9.35/src/h_lua.c:126:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). quote[strlen (quote) - 1] = quote[0]; data/haserl-0.9.35/src/h_lua.c:127:36: [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). while ((strstr (str, quote)) && (strlen (quote) < 198)) data/haserl-0.9.35/src/h_lua.c:129: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). memmove (quote + strlen (quote) - 1, quote + strlen (quote) - 2, 3); data/haserl-0.9.35/src/h_lua.c:129: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). memmove (quote + strlen (quote) - 1, quote + strlen (quote) - 2, 3); data/haserl-0.9.35/src/h_lua.c:132: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). buffer_add (buf, echo_start, strlen (echo_start)); data/haserl-0.9.35/src/h_lua.c:133: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). buffer_add (buf, quote, strlen (quote)); data/haserl-0.9.35/src/h_lua.c:136:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). quote[strlen (quote) - 1] = quote[0]; data/haserl-0.9.35/src/h_lua.c:137: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). buffer_add (buf, quote, strlen (quote)); data/haserl-0.9.35/src/h_lua.c:152: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). buffer_add (buf, start, strlen (start)); data/haserl-0.9.35/src/h_lua.c:154:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (buf, end, strlen (end)); data/haserl-0.9.35/src/h_lua_common.c:52:29: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). value = memchr (str, '=', strlen (str)); data/haserl-0.9.35/src/h_lua_common.c:60: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). value = str + strlen (str); data/haserl-0.9.35/src/h_script.c:99: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). scriptbuf->name = (char *) xmalloc (strlen (filename) + 1); data/haserl-0.9.35/src/h_script.c:102:31: [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). memset (scriptbuf->name, 0, strlen (filename) + 1); data/haserl-0.9.35/src/h_script.c:103:38: [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). memcpy (scriptbuf->name, filename, strlen (filename)); data/haserl-0.9.35/src/h_script.c:105:3: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). read (scriptfp, scriptbuf->buf, filestat.st_size); data/haserl-0.9.35/src/h_script.c:365: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). me->len = strlen (me->buf) + 1; data/haserl-0.9.35/src/h_script.c:374: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:382: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:389: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:396: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:403: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:410: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:417: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:424: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:431: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:438: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:445: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:452: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:459: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:466: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:473: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:480: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:487: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:494: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:501: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). me->len = strlen (me->buf); data/haserl-0.9.35/src/h_script.c:513:14: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). me->len = strlen (me->buf); data/haserl-0.9.35/src/haserl.c:229:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp = memchr (str, '=', strlen (str)); data/haserl-0.9.35/src/haserl.c:245: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). entry = xmalloc (strlen (str) + strlen (prefix) + 1); data/haserl-0.9.35/src/haserl.c:245: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). entry = xmalloc (strlen (str) + strlen (prefix) + 1); data/haserl-0.9.35/src/haserl.c:247:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if (strlen (prefix)) data/haserl-0.9.35/src/haserl.c:249:7: [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 (entry, prefix, strlen (prefix)); data/haserl-0.9.35/src/haserl.c:249:31: [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). strncat (entry, prefix, strlen (prefix)); data/haserl-0.9.35/src/haserl.c:254:7: [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 (entry, str, keylen); data/haserl-0.9.35/src/haserl.c:263: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). len = keylen + strlen (prefix) + 1; data/haserl-0.9.35/src/haserl.c:273: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). temp = xmalloc (strlen (cur->buf) + strlen (entry) - len + 2); data/haserl-0.9.35/src/haserl.c:273:44: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). temp = xmalloc (strlen (cur->buf) + strlen (entry) - len + 2); data/haserl-0.9.35/src/haserl.c:274: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). memmove (temp, cur->buf, strlen (cur->buf) + 1); data/haserl-0.9.35/src/haserl.c:275:8: [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, "\n"); data/haserl-0.9.35/src/haserl.c:547:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). j = strlen ((char *) data); data/haserl-0.9.35/src/rfc2388.c:54:10: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read (STDIN_FILENO, &c, 2000)) data/haserl-0.9.35/src/rfc2388.c:138: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). a += strlen (tag[0]); data/haserl-0.9.35/src/rfc2388.c:147: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). a += strlen (tag[1]); data/haserl-0.9.35/src/rfc2388.c:156: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). a += strlen (tag[2]); data/haserl-0.9.35/src/rfc2388.c:157: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). b = a + strlen (a); data/haserl-0.9.35/src/rfc2388.c:175:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (&buf, obj->name, strlen (obj->name)); data/haserl-0.9.35/src/rfc2388.c:178:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen ((char *) obj->value.data) + 1); data/haserl-0.9.35/src/rfc2388.c:186:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (&buf, obj->name, strlen (obj->name)); data/haserl-0.9.35/src/rfc2388.c:189:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen ((char *) obj->value.data) + 1); data/haserl-0.9.35/src/rfc2388.c:196:36: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (&buf, obj->name, strlen (obj->name)); data/haserl-0.9.35/src/rfc2388.c:198:40: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (&buf, obj->filename, strlen (obj->filename) + 1); data/haserl-0.9.35/src/rfc2388.c:235:25: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). type = xmalloc (13 + strlen (obj->type) + 1); data/haserl-0.9.35/src/rfc2388.c:241:28: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). filename = xmalloc (9 + strlen (obj->filename) + 1); data/haserl-0.9.35/src/rfc2388.c:248: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). name = xmalloc (5 + strlen (obj->name) + 1); data/haserl-0.9.35/src/rfc2388.c:260:14: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while (read (fh, &c, 1)) data/haserl-0.9.35/src/rfc2388.c:295: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). tmpname = xmalloc (strlen (global.uploaddir) + 8); data/haserl-0.9.35/src/rfc2388.c:331:43: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). buffer_add (&(obj->value), tmpname, strlen (tmpname)); data/haserl-0.9.35/src/rfc2388.c:341: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). push_token_on_list (curtoken, NULL, tmpname, strlen (tmpname) + 1); data/haserl-0.9.35/src/rfc2388.c:409:7: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). i = strlen (str) - 9; data/haserl-0.9.35/src/rfc2388.c:424:23: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). boundary = xmalloc (strlen (str + i) + 5); /* \r\n-- + NULL */ data/haserl-0.9.35/src/rfc2388.c:427:34: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). memcpy (boundary + 4, str + i, strlen (str + i) + 1); data/haserl-0.9.35/src/sliding_buffer.c:90: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). (sbuf->ptr >= (sbuf->buf + sbuf->bufsize - strlen (matchstr)))) data/haserl-0.9.35/src/sliding_buffer.c:111:8: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). r = read (sbuf->fh, sbuf->buf + len, n); data/haserl-0.9.35/src/sliding_buffer.c:131:57: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = sbuf->bufsize - (int) (sbuf->ptr - sbuf->buf) - strlen (matchstr); data/haserl-0.9.35/src/sliding_buffer.c:138: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(matchstr) > 0 ) { data/haserl-0.9.35/src/sliding_buffer.c:140: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). while (memcmp (matchstr, sbuf->ptr + pos, strlen (matchstr)) && (pos < len)) data/haserl-0.9.35/src/sliding_buffer.c:152:42: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). sbuf->ptr = sbuf->segment + pos + strlen (matchstr); data/haserl-0.9.35/src/sliding_buffer.c:159:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len += strlen (matchstr); data/haserl-0.9.35/src/sliding_buffer.c:188: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). write (1, foo, strlen (foo)); ANALYSIS SUMMARY: Hits = 223 Lines analyzed = 4416 in approximately 0.16 seconds (27913 lines/second) Physical Source Lines of Code (SLOC) = 3097 Hits@level = [0] 20 [1] 164 [2] 26 [3] 22 [4] 11 [5] 0 Hits@level+ = [0+] 243 [1+] 223 [2+] 59 [3+] 33 [4+] 11 [5+] 0 Hits/KSLOC@level+ = [0+] 78.463 [1+] 72.0052 [2+] 19.0507 [3+] 10.6555 [4+] 3.55182 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.