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/libapache2-mod-qos-11.63/tools/src/qsrespeed.c Examining data/libapache2-mod-qos-11.63/tools/src/qs_apo.c Examining data/libapache2-mod-qos-11.63/tools/src/qsgeo.c Examining data/libapache2-mod-qos-11.63/tools/src/qsexec.c Examining data/libapache2-mod-qos-11.63/tools/src/qsgrep.c Examining data/libapache2-mod-qos-11.63/tools/src/qstail.c Examining data/libapache2-mod-qos-11.63/tools/src/qssign.c Examining data/libapache2-mod-qos-11.63/tools/src/char.h Examining data/libapache2-mod-qos-11.63/tools/src/qsrotate.c Examining data/libapache2-mod-qos-11.63/tools/src/qs_util.c Examining data/libapache2-mod-qos-11.63/tools/src/qs_util.h Examining data/libapache2-mod-qos-11.63/tools/src/qsdt.c Examining data/libapache2-mod-qos-11.63/tools/src/qscheck.c Examining data/libapache2-mod-qos-11.63/tools/src/qsre.c Examining data/libapache2-mod-qos-11.63/tools/src/qs_apo.h Examining data/libapache2-mod-qos-11.63/tools/src/qshead.c Examining data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c Examining data/libapache2-mod-qos-11.63/tools/src/qslog.c Examining data/libapache2-mod-qos-11.63/tools/src/qslogger.c Examining data/libapache2-mod-qos-11.63/tools/src/qspng.c Examining data/libapache2-mod-qos-11.63/apache2/mod_qos.h Examining data/libapache2-mod-qos-11.63/apache2/mod_qos.c FINAL RESULTS: data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:233:3: [5] (race) chmod: This accepts filename arguments; if an attacker can move those files, a race condition results. (CWE-362). Use fchmod( ) instead. chmod(dest, m_mode); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1234:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(str, QS_IP4IN6"%s", src); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2389:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(timeString, m); data/libapache2-mod-qos-11.63/tools/src/qs_util.c:67:3: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(bufin, fmt, args); data/libapache2-mod-qos-11.63/tools/src/qs_util.c:114:3: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(bufin, fmt, args); data/libapache2-mod-qos-11.63/tools/src/qs_util.c:260:5: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(dirname, "./%s", file_name); data/libapache2-mod-qos-11.63/tools/src/qs_util.c:262: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(dirname, file_name); data/libapache2-mod-qos-11.63/tools/src/qscheck.c:215: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(checkedHosts, hp); data/libapache2-mod-qos-11.63/tools/src/qscheck.c:336:4: [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(ServerRoot, &sr[i]); data/libapache2-mod-qos-11.63/tools/src/qsdt.c:294:7: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(entry->id, "%s", id); data/libapache2-mod-qos-11.63/tools/src/qsexec.c:375:13: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int rc = system(replaced); data/libapache2-mod-qos-11.63/tools/src/qsexec.c:391:15: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. int rc = system(replaced); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:330:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s{%d,}", QS_B64, m_base64); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:332:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(buf, "%s{%d,}", QS_HX, m_base64); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1575:7: [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(line, &line[1]); data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:345:9: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(buf, line); data/libapache2-mod-qos-11.63/tools/src/qslog.c:267: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(ev->id, id); data/libapache2-mod-qos-11.63/tools/src/qslog.c:450:3: [4] (format) vsprintf: Potential format string problem (CWE-134). Make format string constant. vsprintf(buf, fmt, args); data/libapache2-mod-qos-11.63/tools/src/qslog.c:646:7: [4] (shell) system: This causes a new program to execute and is difficult to use safely (CWE-78). try using a library call that implements the same functionality if available. system(command); data/libapache2-mod-qos-11.63/tools/src/qslog.c:718:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(bis, NBIS";%lld;", stat_rec->i_byte_count/LOG_INTERVAL); data/libapache2-mod-qos-11.63/tools/src/qslog.c:724:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(avms, NAVMS";%lld;", data/libapache2-mod-qos-11.63/tools/src/qslog.c:1079:3: [4] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. sprintf(rec->id, "%s;", id); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1303: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(tid, id); data/libapache2-mod-qos-11.63/tools/src/qslog.c:2620: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(m_file_name, file); data/libapache2-mod-qos-11.63/tools/src/qslog.c:2631:5: [4] (format) snprintf: If format strings can be influenced by an attacker, they can be exploited, and note that sprintf variations do not always \0-terminate (CWE-134). Use a constant for the format specification. snprintf(m_file_name2, sizeof(m_file_name2), "%s"LOG_DET, m_file_name); data/libapache2-mod-qos-11.63/tools/src/qslogger.c:393:23: [4] (misc) getlogin: It's often easy to fool getlogin. Sometimes it does not work at all, because some program messed up the utmp file. Often, it gives only the first 8 characters of the login name. The user currently logged in on the controlling tty of our program need not be the user who started it. Avoid getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid()) and extract the desired information instead. openlog(tag ? tag : getlogin(), 0, facility); data/libapache2-mod-qos-11.63/tools/src/qspng.c:482:11: [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(date_str, line); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:368: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(m_cmd, cmd); // copy as we wan't to pass it when forking data/libapache2-mod-qos-11.63/tools/src/qssign.c:164:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, "[%s] [notice] "QS_START, time_string); data/libapache2-mod-qos-11.63/tools/src/qssign.c:166:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, "[%s] [notice] "QS_END, time_string); data/libapache2-mod-qos-11.63/tools/src/qssign.c:197:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, "0.0.0.0 - - [%s %c%.2d%.2d] "QS_START, time_string, sign, timz / (60*60), (timz % (60*60)) / 60); data/libapache2-mod-qos-11.63/tools/src/qssign.c:199:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, "0.0.0.0 - - [%s %c%.2d%.2d] "QS_END, time_string, sign, timz / (60*60), (timz % (60*60)) / 60); data/libapache2-mod-qos-11.63/tools/src/qssign.c:225:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, "%s qssign start 0.0%s 5-NOTICE: "QS_START, time_string, buf); data/libapache2-mod-qos-11.63/tools/src/qssign.c:227:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, "%s qssign end 0.0%s 5-NOTICE: "QS_END, time_string, buf); data/libapache2-mod-qos-11.63/tools/src/qssign.c:247:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, m_start_fmt, time_string); data/libapache2-mod-qos-11.63/tools/src/qssign.c:249:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, m_end_fmt, time_string); data/libapache2-mod-qos-11.63/tools/src/qssign.c:275:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, "%s %s qssign: "QS_START, time_string, hostname); data/libapache2-mod-qos-11.63/tools/src/qssign.c:277:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, "%s %s qssign: "QS_END, time_string, hostname); data/libapache2-mod-qos-11.63/tools/src/qssign.c:297:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, "%s [notice] 0#0: "QS_END, time_string); data/libapache2-mod-qos-11.63/tools/src/qssign.c:299:5: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(line, "%s [notice] 0#0: "QS_END, time_string); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:757:15: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. const char *chroot; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:10458:15: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. if(sconf->chroot) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:10461:64: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. QOS_LOG_PFX(000)"change root to %s", sconf->chroot); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:10462:16: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. if((rc = chroot(sconf->chroot)) < 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:10462:30: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. if((rc = chroot(sconf->chroot)) < 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:10492:3: [3] (random) srand: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. srand(seed); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11701:18: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. o->chroot = b->chroot; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12775:19: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. if(chdir(sconf->chroot) < 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12777:59: [3] (misc) chroot: chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22). Make sure the program immediately chdir("/"), closes file descriptors, and drops root privileges, and that all necessary files (and no more!) are in the new root. cmd->directive->directive, sconf->chroot); data/libapache2-mod-qos-11.63/tools/src/qslog.c:991:25: [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. const char *envFile = getenv(QSCOUNTERPATH); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1040:25: [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. const char *envFile = getenv(QSEVENTPATH); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:338: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 country[3]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:786:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char key[EVP_MAX_KEY_LENGTH]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1223: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 str[INET6_ADDRSTRLEN]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1616: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[MAX_STRING_LEN]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1661: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[MAX_STRING_LEN]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1842: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[4]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1845:10: [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 atoi(buf); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1849: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[4]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1852:10: [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 atoi(buf); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2140:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char hash[HMAC_MAX_MD_CBLOCK]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2271: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 hash[HMAC_MAX_MD_CBLOCK]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2376: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 timeString[MAX_STRING_LEN]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2393:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(value, timeString, 2); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2394:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&value[2], new_user, new_user_len); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2447: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 timeString[MAX_STRING_LEN]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2480:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(value, &now, sizeof(apr_time_t)); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2481:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&value[sizeof(apr_time_t)], new_ms, new_ms_len); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2523:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ms = atoi((char *)&buf[sizeof(apr_time_t)]); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2962: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[MAX_STRING_LEN]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3099: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 line[HUGE_STRING_LEN]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3115: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). file = fopen(geodb->path, "r"); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3255:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int num = atoi(eventStr); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3373: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[128]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3387: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(buf, "%p", inctx); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3626:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&query[1], add, add_len); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3639:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, entry[i].key, l); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3644:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(p, entry[i].val, l); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3702: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[4]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3710: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(buf, "%02x", p[0]); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4087: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(uri, path, path_len); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4089: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(&uri[path_len+1], q1, q1_len); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4102:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(uri, path, path_len); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4104:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&uri[path_len+1], query, query_len); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4113:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(uri, path, path_len); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4115:5: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(&uri[path_len+1], fragment, fragment_len); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4586:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(p); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4976:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ka = atoi(vtmo); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4982:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). km = atoi(vmax); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:5013:11: [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(sr, r->server, sizeof(server_rec)); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:5014:11: [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(sc, r->connection->base_server, sizeof(server_rec)); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:5514:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int left = atoi(leftStr); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:5515:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int right = atoi(rightStr); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:6371: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 clientContentTypes[8192]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:6733: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 clientContentTypes[8192]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:6869:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf1[1024]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:6870:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf2[1024]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:6918:12: [2] (integer) atol: 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). addr += (atol(i) * 16777216); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:6926:12: [2] (integer) atol: 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). addr += (atol(i) * 65536); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:6934:12: [2] (integer) atol: 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). addr += (atol(i) * 256); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:6939:12: [2] (integer) atol: 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). addr += (atol(i)); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:7110:13: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[1024]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:8089: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 str[APRMAXHOSTLEN + 1]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:9163:55: [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). apr_interval_time_t timeout = apr_time_from_sec(atoi(tmostr)); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:10007:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int dscp = atoi(dscpStr); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:10647:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char buf[MAX_STRING_LEN]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11043:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char time_string[64]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11583:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sconf->max_age = atoi(QOS_MAX_AGE); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11616: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). sconf->cc_tolerance = atoi(QOS_CC_BEHAVIOR_TOLERANCE_STR); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11776:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). if(o->max_age == atoi(QOS_MAX_AGE)) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11870: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). sconf->max_clients_conf = atoi(arg1); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11920:17: [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). rule->limit = atoi(limit); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11943:29: [2] (integer) atol: 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). rule->req_per_sec_limit = atol(limit); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11966:32: [2] (integer) atol: 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). rule->kbytes_per_sec_limit = atol(limit); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11990:17: [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). rule->limit = atoi(limit); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12020:17: [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). rule->limit = atoi(limit); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12057:29: [2] (integer) atol: 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). rule->req_per_sec_limit = atol(limit); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12089:32: [2] (integer) atol: 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). rule->kbytes_per_sec_limit = atol(limit); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12125:17: [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). rule->limit = atoi(limit); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12163:29: [2] (integer) atol: 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). rule->req_per_sec_limit = atol(limit); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12186:32: [2] (integer) atol: 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). rule->kbytes_per_sec_limit = atol(limit); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12212:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). new->max = atoi(argv[1]); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12213:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). new->seconds = atoi(argv[2]); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12243:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). new->max = atoi(number); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12244:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). new->seconds = atoi(seconds); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12310: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). int code = atoi(rc); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12764: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 cwd[2048] = ""; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12796:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m_retcode = atoi(arg); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12902:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sconf->max_age = atoi(sec); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13004:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sconf->max_conn = atoi(number); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13023: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). sconf->max_conn_close = atoi(n); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13030: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). sconf->max_conn_close = atoi(n); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13048: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). sconf->max_conn_per_ip = atoi(number); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13054: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). sconf->max_conn_per_ip_connections = atoi(connections); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13088: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). sconf->serializeTMO = atoi(seconds); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13127: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[128]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13128: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 buf2[128]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13129: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(buf, "%p", buf); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13130: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(buf2, "%p", buf2); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13153:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sconf->req_rate = atoi(sec); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13159: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). sconf->min_rate_max = atoi(secmax); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13226:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). sconf->req_rate = atoi(sec); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13229: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). sconf->req_rate_start = atoi(connections); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13240: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). sconf->min_rate_max = atoi(secmax); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13337: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). sconf->milestoneTimeout = atoi(sec); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13357:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). ms->thinktime = atoi(thinktimestr); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13539:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). he->size = atoi(argv[3]); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13583:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). he->size = atoi(size); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13652:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). geo_limit = atoi(con); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13711: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). sconf->qos_cc_size = atoi(arg1); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13761: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). sconf->qos_cc_prefer = atoi(copy); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13787: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). sconf->qos_cc_block = atoi(arg1); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13793: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). sconf->qos_cc_blockTime = atoi(arg2); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13816:11: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). limit = atoi(arg_number); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13822:17: [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). limitTime = atoi(arg_sec); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13903: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). sconf->qs_req_rate_tm= atoi(arg1); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13923: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). sconf->cc_tolerance = atoi(value); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13940:24: [2] (integer) atol: 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). sconf->static_html = atol(argv[0]); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13941:25: [2] (integer) atol: 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). sconf->static_cssjs = atol(argv[1]); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13942:23: [2] (integer) atol: 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). sconf->static_img = atol(argv[2]); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13943:25: [2] (integer) atol: 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). sconf->static_other = atol(argv[3]); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13944:31: [2] (integer) atol: 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). sconf->static_notmodified = atol(argv[4]); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13978: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). sconf->qos_cc_event = atoi(arg1); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13994: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). sconf->qos_cc_event_req = atoi(arg1); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:14019:23: [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). m_qs_sim_ip_len = atoi(arg); data/libapache2-mod-qos-11.63/tools/src/qs_apo.c:63: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[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qs_util.c:60: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 bufin[4096]; data/libapache2-mod-qos-11.63/tools/src/qs_util.c:61: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 bufout[4096]; data/libapache2-mod-qos-11.63/tools/src/qs_util.c:107: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 bufin[4096]; data/libapache2-mod-qos-11.63/tools/src/qs_util.c:108: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 bufout[4096]; data/libapache2-mod-qos-11.63/tools/src/qs_util.c:252: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 dirname[QS_HUGE_STR]; data/libapache2-mod-qos-11.63/tools/src/qs_util.c:270:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char filename[QS_HUGE_STR]; data/libapache2-mod-qos-11.63/tools/src/qs_util.c:280:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char old[QS_HUGE_STR]; data/libapache2-mod-qos-11.63/tools/src/qs_util.c:296: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 unl[QS_HUGE_STR]; data/libapache2-mod-qos-11.63/tools/src/qscheck.c:60:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char ServerRoot[1024]; data/libapache2-mod-qos-11.63/tools/src/qscheck.c:167: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 hp[1024]; data/libapache2-mod-qos-11.63/tools/src/qscheck.c:191:12: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). port = atoi(ports); data/libapache2-mod-qos-11.63/tools/src/qscheck.c:249: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 line[1024]; data/libapache2-mod-qos-11.63/tools/src/qscheck.c:250:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(filename, "r"); data/libapache2-mod-qos-11.63/tools/src/qscheck.c:253:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char fqfile[2048]; data/libapache2-mod-qos-11.63/tools/src/qscheck.c:255:11: [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). f = fopen(fqfile, "r"); data/libapache2-mod-qos-11.63/tools/src/qscheck.c:380:13: [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). prt = atoi(portNumber); data/libapache2-mod-qos-11.63/tools/src/qsdt.c:175: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qsdt.c:200:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qsdt.c:246:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(filename, "r"); data/libapache2-mod-qos-11.63/tools/src/qsdt.c:292: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). entry->milliseconds = atoi(ms); data/libapache2-mod-qos-11.63/tools/src/qsdt.c:316: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). entry.milliseconds = atoi(ms); data/libapache2-mod-qos-11.63/tools/src/qsexec.c:211:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, source + pmatch[no].rm_so, len); data/libapache2-mod-qos-11.63/tools/src/qsexec.c:279:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qsexec.c:313:14: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). threshold = atoi(str); data/libapache2-mod-qos-11.63/tools/src/qsexec.c:314:8: [2] (integer) atol: 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). sec = atol(tme); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:229: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(&ret[reti], "\\x%02x", in[i]); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:329: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[1024]; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:339: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 space[1024]; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:627: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(&ret[reti], "0-9"); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:633: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(&ret[reti], "a-zA-Z"); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:639: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(&ret[reti], "\\\\"); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:645: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(&ret[reti], "\\-"); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:651:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(&ret[reti], "\\x%02x", in[i]); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:664:11: [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(&ret[reti], "\\x%02x", in[i]); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:951:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen(httpdconf, "r"); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:952: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1044:49: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if((copy[0] == '=') && (copy[1] != '=') && !open) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1047:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(!open) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1069: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). if(open) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1077: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). if(open) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1094:11: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(!open) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1104:8: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(open) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1109:6: [2] (misc) open: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). if(open) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1632:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1642:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m_verbose = atoi(*(++argv)); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1662: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). m_path_depth = atoi(*(++argv)); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1681:20: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m_base64 = atoi(*(++argv)); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1685: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). m_query_len_pcre = atoi(*(++argv)); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1733:7: [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). f = fopen(access_log, "r"); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1754:9: [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). f = fopen(access_log, "r"); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1762:9: [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). f = fopen(access_log, "r"); data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:85: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 country[3]; data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:86: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[500]; data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:122:12: [2] (integer) atol: 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). addr += (atol(i) * 16777216); data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:130:12: [2] (integer) atol: 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). addr += (atol(i) * 65536); data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:138:12: [2] (integer) atol: 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). addr += (atol(i) * 256); data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:143:12: [2] (integer) atol: 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). addr += (atol(i)); data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:157: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(buf, "%d.%d.%d.%d", d, c, b, a); data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:287: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 line[HUGE_STRING_LEN]; data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:288: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[HUGE_STRING_LEN]; data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:310: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). file = fopen(db, "r"); data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:371:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char bs[128]; data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:372:15: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char be[128]; data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:422:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:555:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char delw[2]; data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:556:11: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char delx[2]; data/libapache2-mod-qos-11.63/tools/src/qsgrep.c:197:7: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(dst, source + pmatch[no].rm_so, len); data/libapache2-mod-qos-11.63/tools/src/qsgrep.c:242: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 line[32768]; data/libapache2-mod-qos-11.63/tools/src/qsgrep.c:257:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qsgrep.c:304:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(filename, "r"); data/libapache2-mod-qos-11.63/tools/src/qshead.c:94: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 line[32768]; data/libapache2-mod-qos-11.63/tools/src/qshead.c:99:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:222:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char m_file_name[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:223:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char m_file_name2[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:235:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char m_date_str[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:336:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char time_string[1024]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:445: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[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:603:13: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *f = fopen("/proc/meminfo", "r"); data/libapache2-mod-qos-11.63/tools/src/qslog.c:607:5: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:616:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mem = mem + atoi(c); data/libapache2-mod-qos-11.63/tools/src/qslog.c:625:21: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). mem = mem + atoi(c); data/libapache2-mod-qos-11.63/tools/src/qslog.c:642:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char command[1024]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:643:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char outfile[1024]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:647:11: [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). f = fopen(outfile, "r"); data/libapache2-mod-qos-11.63/tools/src/qslog.c:649:9: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:703: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 bis[256]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:704: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 esco[256]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:705: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 ip[256]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:706: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 usr[256]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:707: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 avms[256]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:708: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 custom[256]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:721:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(esco, "esco;%ld;", stat_rec->connections); data/libapache2-mod-qos-11.63/tools/src/qslog.c:731:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(custom, "s;%llu;a;%llu;A;%llu;M;%lu;", data/libapache2-mod-qos-11.63/tools/src/qslog.c:738:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(ip, "ip;%ld;", qs_countEventT(m_ip_list)); data/libapache2-mod-qos-11.63/tools/src/qslog.c:739:5: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(usr, "usr;%ld;", qs_countEventT(m_user_list)); data/libapache2-mod-qos-11.63/tools/src/qslog.c:997:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen(envFile, "r"); data/libapache2-mod-qos-11.63/tools/src/qslog.c:999:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1014:23: [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). c->decVal = atoi(&line[ovector[6]]); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1016: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). c->duration = atoi(&line[ovector[10]]); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1017:22: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). c->limit = atoi(&line[ovector[12]]); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1042:18: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen(envFile, "r"); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1044:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1178: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 mem[256]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1368:31: [2] (integer) atol: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). client_rec->byte_count += atol(B); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1384:16: [2] (integer) atol: 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). long max = atol(M); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1476: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). rec->byte_count += atoi(B); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1480: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). rec->i_byte_count += atoi(BI); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1488:17: [2] (integer) atol: 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). rec->sum += atol(s); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1491:21: [2] (integer) atol: 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). rec->average += atol(a); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1495:21: [2] (integer) atol: 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). rec->averAge += atol(A); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1499:16: [2] (integer) atol: 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). long max = atol(M); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1749:11: [2] (integer) atol: 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). tme = atol(T); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1753:12: [2] (integer) atol: 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). tmems= atol(t); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1758:13: [2] (integer) atol: 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). tmems = atol(D); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1821: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[buf_len]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1828: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). minutes = minutes + (atoi(&buf[strlen(buf)-2])); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1832: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). minutes = minutes + (atoi(&buf[strlen(buf)-2]) * 60); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1861: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[buf_len]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1868: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). minutes = minutes + (atoi(&buf[strlen(buf)-2])); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1872: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). minutes = minutes + (atoi(&buf[strlen(buf)-2]) * 60); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1906: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[len+1]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1911:15: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). minutes = atoi(buf) * 60; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1912: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). minutes = minutes + atoi(&buf[3]); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1927: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1950: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1951: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[32]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:2015: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[1024]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:2030: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 arch[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:2031: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 arch2[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:2042: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). m_f = fopen(m_file_name, "a+"); data/libapache2-mod-qos-11.63/tools/src/qslog.c:2047:18: [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). m_f2 = fopen(m_file_name2, "a+"); data/libapache2-mod-qos-11.63/tools/src/qslog.c:2272: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:2273:16: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). FILE *file = fopen(confFile, "r"); data/libapache2-mod-qos-11.63/tools/src/qslog.c:2411: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). m_generations = atoi(*argv); data/libapache2-mod-qos-11.63/tools/src/qslog.c:2462:13: [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). m_f = fopen(file, "a+"); data/libapache2-mod-qos-11.63/tools/src/qslog.c:2505:13: [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). m_f = fopen(file, "a+"); data/libapache2-mod-qos-11.63/tools/src/qslog.c:2512:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char esco[256]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:2513:7: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char m[256]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:2524:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(esco, "esco;%ld;", client_rec->connections); data/libapache2-mod-qos-11.63/tools/src/qslog.c:2528:9: [2] (buffer) sprintf: Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or vsnprintf. Risk is low because the source has a constant maximum length. sprintf(m, "GET;%ld;POST;%ld;", data/libapache2-mod-qos-11.63/tools/src/qslog.c:2611:11: [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). m_f = fopen(file, "a+"); data/libapache2-mod-qos-11.63/tools/src/qslog.c:2637:12: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). m_f2 = fopen(m_file_name2, "a+"); data/libapache2-mod-qos-11.63/tools/src/qslogger.c:330:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qspng.c:305: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 num_str[HUGE_STRING_LEN]; data/libapache2-mod-qos-11.63/tools/src/qspng.c:319: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 num_str[HUGE_STRING_LEN]; data/libapache2-mod-qos-11.63/tools/src/qspng.c:357: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[HUGE_STRING_LEN]; data/libapache2-mod-qos-11.63/tools/src/qspng.c:426: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 line[HUGE_STRING_LEN]; data/libapache2-mod-qos-11.63/tools/src/qspng.c:432: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 date_str[32] = ""; // sting storing the first day (if fist value is at 00h) data/libapache2-mod-qos-11.63/tools/src/qspng.c:448:23: [2] (integer) atol: 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). tmp[sample-1] = atol(p); data/libapache2-mod-qos-11.63/tools/src/qspng.c:458:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). hours[i] = atoi(p); data/libapache2-mod-qos-11.63/tools/src/qspng.c:695: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). stat_log = fopen(infile, "r"); data/libapache2-mod-qos-11.63/tools/src/qspng.c:701:7: [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). f = fopen(out, "wb"); data/libapache2-mod-qos-11.63/tools/src/qspng.c:755: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[HUGE_STRING_LEN]; data/libapache2-mod-qos-11.63/tools/src/qsre.c:157:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qsre.c:174: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). file = fopen(pattern, "r"); data/libapache2-mod-qos-11.63/tools/src/qsre.c:176: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 readline[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qsre.c:196: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). file = fopen(in, "r"); data/libapache2-mod-qos-11.63/tools/src/qsre.c:198: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 readline[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qsrespeed.c:174: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 readline[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qsrespeed.c:187:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qsrespeed.c:229: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). file = fopen(filename, "r"); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:70:8: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. static char time_string[TME_STR_LEN]; data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:197:18: [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). int m_nLogFD = open(file_name, O_WRONLY | O_CREAT | O_APPEND, m_mode); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:215: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 dest[HUGE_STR+20]; data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:216: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[HUGE_STR]; data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:223: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). if((infp = open(arch, O_RDONLY)) == -1) { data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:268: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 arch[HUGE_STR+20]; data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:269: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 tmb[20]; data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:290: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 msg[HUGE_STR]; data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:381: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). m_tRotation = atoi(*(++argv)); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:385:13: [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). m_offset = atoi(*(++argv)); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:391:18: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). m_generations = atoi(*(++argv)); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:395:14: [2] (integer) atol: 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). sizeLimit = atol(*(++argv)); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:399:13: [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). int mode = atoi(*(++argv)); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:501:4: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. char msg[HUGE_STR]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:122:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. unsigned char data[HMAC_MAX_MD_CBLOCK]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:126: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(&line[strlen(line)], " %."SEQDIG"ld", m_nr); data/libapache2-mod-qos-11.63/tools/src/qssign.c:155: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:156:13: [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). int dig = atoi(SEQDIG); data/libapache2-mod-qos-11.63/tools/src/qssign.c:159: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 time_string[1024]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:177: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:178:13: [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). int dig = atoi(SEQDIG); data/libapache2-mod-qos-11.63/tools/src/qssign.c:181: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 time_string[1024]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:210: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:211:13: [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). int dig = atoi(SEQDIG); data/libapache2-mod-qos-11.63/tools/src/qssign.c:214: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 time_string[1024]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:217: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[1024]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:238: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:239:13: [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). int dig = atoi(SEQDIG); data/libapache2-mod-qos-11.63/tools/src/qssign.c:242: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 time_string[1024]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:259: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 hostname[1024]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:262: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:263:13: [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). int dig = atoi(SEQDIG); data/libapache2-mod-qos-11.63/tools/src/qssign.c:266: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 time_string[1024]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:288: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 line[MAX_LINE]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:289:13: [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). int dig = atoi(SEQDIG); data/libapache2-mod-qos-11.63/tools/src/qssign.c:292: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 time_string[1024]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:419:13: [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). int dig = atoi(SEQDIG); data/libapache2-mod-qos-11.63/tools/src/qssign.c:450:35: [2] (integer) atoi: Unless checked, the resulting number can exceed the expected range (CWE-190). If source untrusted, check both minimum and maximum, even if the input had no minus sign (large numbers can roll over into negative number; consider saving to an unsigned value if that is intended). int sz = strlen(marker) + 1 + atoi(SEQDIG); data/libapache2-mod-qos-11.63/tools/src/qssign.c:480: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 data[HMAC_MAX_MD_CBLOCK]; data/libapache2-mod-qos-11.63/tools/src/qssign.c:530:18: [2] (integer) atol: 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). msgSeqNr = atol(seq); data/libapache2-mod-qos-11.63/tools/src/qssign.c:709:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qstail.c:104: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 line[readlen + 1]; data/libapache2-mod-qos-11.63/tools/src/qstail.c:128: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 line[search_win_len + 10]; data/libapache2-mod-qos-11.63/tools/src/qstail.c:197:12: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. cmd = (char *)argv[0]; data/libapache2-mod-qos-11.63/tools/src/qstail.c:229:11: [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(filename, "r")) == NULL) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1232: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). (strlen(convert) <= 15)) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1377:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(key); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1407: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). int len = strlen(key); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1418:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). e = &id[strlen(path)]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1515:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strncmp(entry[i].key, QS_CONN_REMOTEIP(c), strlen(entry[i].key)) == 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1843:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, x, 3); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:1850:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, x, 2); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2378: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). int new_user_len = strlen(new_user); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2445:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if(strlen(verified) > 2) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2474: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 new_ms_len = strlen(new_ms); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2624: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). p = &p[strlen(cn)]; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2628: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). if(p && (strncasecmp(p, "$path=", strlen("$path=")) == 0)) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2643:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(cookieHdr) == 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2646: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((strncasecmp(cookieHdr, "$Version=", strlen("$Version=")) == 0) && data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2647:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). (strlen(cookieHdr) <= strlen("$Version=X; "))) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:2647: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). (strlen(cookieHdr) <= strlen("$Version=X; "))) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3005: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). actEntry->url_len = strlen(actEntry->url); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3125: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(line) > 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3148: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(line) > 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3155:9: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(entry->country, &line[ma[3].rm_so], 2); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3254: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). if(qos_is_num(eventStr) && (strlen(eventStr) > 0)) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3435:48: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). apr_bucket *e = apr_bucket_pool_create(line, strlen(line), c->pool, c->bucket_alloc); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3615: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[i].key == NULL ? 0 : strlen(entry[i].key)) + data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3616: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[i].val == NULL ? 0 : strlen(entry[i].val)) + data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3620: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). add_len = strlen(add); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3633:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int l = strlen(entry[i].key); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3643: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). l = strlen(entry[i].val); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3704: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). char *r = apr_pcalloc(pool, 3 * strlen(c)); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3951: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(data) != len) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:3964:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(value) != len) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4206: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). if(pcre_exec(he->pcre, he->extra, entry[i].val, strlen(entry[i].val), 0, 0, NULL, 0) < 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4210:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(entry[i].val) > he->size) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4273: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). if(name && (strlen(name) > 0)) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4274: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). if(value && (strlen(value) > 0)) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4276: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). } else if((strlen(name) > 0)) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4291: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). int len = strlen(pos); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:4438: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). if(pcre_exec(pr, NULL, val, strlen(val), 0, 0, NULL, 0) == 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:6391:7: [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(100000); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:8138: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). int len = strlen(QS_LIMIT_NAME_PFX); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:8770: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). strlen(r->unparsed_uri)), data/libapache2-mod-qos-11.63/apache2/mod_qos.c:9719: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). int wlen = strlen(rctx->body_window); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:9720:13: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(&rctx->body_window[wlen], buf, blen); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:9743:11: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(rctx->body_window, &buf[nbytes - blen], blen); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:10421: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). nbytes = strlen(qslogstr); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11274: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(r->parsed_uri.path) > 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11275: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). if(r->parsed_uri.path[strlen(r->parsed_uri.path)-1] != '/') { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:11890:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(p[strlen(p)-1] == '/') { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12329: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). dconf->response_pattern_len = strlen(dconf->response_pattern); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12608:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(v) < 2) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12684:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(v) < 2) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:12914: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). sconf->rawKeyLen = strlen(seed); data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13020: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(n) > 1) && data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13021: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). (n[strlen(n)-1] == '%')) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13022: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). n[strlen(n)-1] = '\0'; data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13105:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(addr[strlen(addr)-1] == '.') { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13108: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). } else if(addr[strlen(addr)-1] == ':') { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13131: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). if((strcmp(buf, buf2) == 0) || (strlen(buf) < 4)) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13179:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(((var[0] != '+') && (var[0] != '-')) || (strlen(var) < 2)) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13272:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(((id[0] != '+') && (id[0] != '-')) || (strlen(id) < 2)) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13687:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(addr) == 0) { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13691:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(addr[strlen(addr)-1] == '.') { data/libapache2-mod-qos-11.63/apache2/mod_qos.c:13694: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). } else if(addr[strlen(addr)-1] == ':') { data/libapache2-mod-qos-11.63/tools/src/qs_util.c:152:18: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s[i] = (char)getchar(); data/libapache2-mod-qos-11.63/tools/src/qs_util.c:155:14: [1] (buffer) getchar: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s[i] = getchar(); data/libapache2-mod-qos-11.63/tools/src/qs_util.c:175:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s[i] = (char) fgetc(f); data/libapache2-mod-qos-11.63/tools/src/qs_util.c:177:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s[i] = fgetc(f); data/libapache2-mod-qos-11.63/tools/src/qs_util.c:255:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(file_name) > (QS_HUGE_STR - 12)) { data/libapache2-mod-qos-11.63/tools/src/qs_util.c:274:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(de->d_name && (strncmp(de->d_name, filename, strlen(filename)) == 0)) { data/libapache2-mod-qos-11.63/tools/src/qs_util.c:284: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). if(de->d_name && (strncmp(de->d_name, filename, strlen(filename)) == 0)) { data/libapache2-mod-qos-11.63/tools/src/qscheck.c:136: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). for(i = 0; i < (int) strlen(hostname); i++) { data/libapache2-mod-qos-11.63/tools/src/qscheck.c:177: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). x[0] = '\0'; x = x + strlen("://"); data/libapache2-mod-qos-11.63/tools/src/qscheck.c:214: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). checkedHosts = calloc(1, strlen(hp) + 1); data/libapache2-mod-qos-11.63/tools/src/qscheck.c:217: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). int pl = strlen(checkedHosts) +strlen(hp) + 1; data/libapache2-mod-qos-11.63/tools/src/qscheck.c:217: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). int pl = strlen(checkedHosts) +strlen(hp) + 1; data/libapache2-mod-qos-11.63/tools/src/qscheck.c:273: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). cmd_len = strlen(QS_PROXYP); data/libapache2-mod-qos-11.63/tools/src/qscheck.c:277: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). cmd_len = strlen(QS_PROXYPR); data/libapache2-mod-qos-11.63/tools/src/qscheck.c:282: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). cmd_len = strlen(QS_PROXYR); data/libapache2-mod-qos-11.63/tools/src/qscheck.c:311: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). char *file = &command[strlen(QS_INCLUDE)]; data/libapache2-mod-qos-11.63/tools/src/qscheck.c:327: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). char *sr = &command[strlen(QS_SERVERROOT)]; data/libapache2-mod-qos-11.63/tools/src/qsdt.c:293: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). entry->id = calloc(strlen(id)+1, sizeof(char)); data/libapache2-mod-qos-11.63/tools/src/qsexec.c:237: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). rc = pcre_exec(preg, NULL, string, (int)strlen(string), 0, options, ovector, nmatch * 3); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:155: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). int rc_c = pcre_exec(pcre_b64, NULL, line, strlen(line), 0, 0, ovector, QS_OVECCOUNT); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:161: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). rc_c = pcre_exec(pcre_hx, NULL, line, strlen(line), 0, 0, ovector, QS_OVECCOUNT); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:172: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). char *ret = apr_pcalloc(pool, strlen(line) * 4); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:209: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). char *ret = apr_pcalloc(pool, strlen(line) * 4); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:211:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(line) == 0) return ""; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:306:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(x) != j) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:315:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s[i] = (char) fgetc(f); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:317:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s[i] = fgetc(f); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:341: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). space[strlen(cmd)] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:591:51: [1] (buffer) strlen: Does not handle 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(pcre_exec(rs->pcre, rs->extra, line, strlen(line), 0, 0, NULL, 0) >= 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:619: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). char *ret = apr_pcalloc(pool, strlen(line) * 6); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:622:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(line) == 0) return ""; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:675:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(ret) == 0) return NULL; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:696: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). if(strncmp(r, check2, strlen(check2)) == 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:699:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(r) > strlen(check3)) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:699: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). if(strlen(r) > strlen(check3)) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:700: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((strncmp(&r[strlen(r)-strlen(check3)], check3, strlen(check3)) == 0)) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:700: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). if((strncmp(&r[strlen(r)-strlen(check3)], check3, strlen(check3)) == 0)) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:700:55: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((strncmp(&r[strlen(r)-strlen(check3)], check3, strlen(check3)) == 0)) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:753:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(query_pcre) > 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:790: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(query_m_string) == 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:812: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). if(strlen(query_m_string) > 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:898: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). if((line == 0) || (strlen(line) == 0)) return 0; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:901:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(pcre_exec(rs->pcre, rs->extra, line, strlen(line), 0, 0, NULL, 0) >= 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:921:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(pcre_exec(rs->pcre, rs->extra, line, strlen(line), 0, 0, NULL, 0) >= 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:937: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). if((line == 0) || (strlen(line) == 0)) return 0; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:940:45: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(pcre_exec(rs->pcre, rs->extra, line, strlen(line), 0, 0, NULL, 0) == 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:984: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). int fl = strlen(p)-2; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:987: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). int fl = strlen(p); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1052: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(pos) > 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1067:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(pos) == 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1076: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). strlen(pos) + m_query_len_pcre); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1092: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). strlen(pos) + m_query_len_pcre); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1145:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(pos) > 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1146: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(string) > 0) string = apr_pstrcat(pool, string, "|", NULL); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1161: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(string) > 0) string = apr_pstrcat(pool, string, "|", NULL); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1164: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(pos) != 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1180:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(string) > 0) string = apr_pstrcat(pool, string, "|", NULL); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1204: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(lpath[strlen(lpath)-1] == '/') { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1205:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). lpath[strlen(lpath)-1] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1224:6: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(str) > 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1260: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(entry[i].key) == strlen(entry[j].key)) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1260: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). if(strlen(entry[i].key) == strlen(entry[j].key)) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1274: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). (e < strlen(entry[i].key)) && data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1334:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). query[strlen(query)-1] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1346:47: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rc_c = pcre_exec(m_req_regex, NULL, line, strlen(line), 0, 0, ovector, QS_OVECCOUNT); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1392:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((strlen(line) > 1) && line[1] == '/') { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1411:81: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). } else if(m_filter && parsed_uri.path && strncmp(parsed_uri.path, m_filter, strlen(m_filter)) != 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1458: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). strlen(parsed_uri.path), 0, 0, NULL, 0) >= 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1468: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(f) > 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1522: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(pcre_exec(rs->pcre, rs->extra, copy, strlen(copy), 0, 0, NULL, 0) < 0) { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1574:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((strlen(line) > 1) && line[1] == '/') { data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1593: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). pcre_exec(rs->pcre, NULL, copy, strlen(copy), 0, 0, NULL, 0); data/libapache2-mod-qos-11.63/tools/src/qsfilter2.c:1773:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). time_string[strlen(time_string) - 1] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:316: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(line) > 0) { data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:342: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(line) > 0) { data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:382:2: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(g->country, &line[ma[3].rm_so], 2); data/libapache2-mod-qos-11.63/tools/src/qsgeo.c:394:4: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(g->c, &line[ma[4].rm_so], 500); data/libapache2-mod-qos-11.63/tools/src/qsgrep.c:223: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). rc = pcre_exec(preg, NULL, string, (int)strlen(string), 0, options, ovector, nmatch * 3); data/libapache2-mod-qos-11.63/tools/src/qslog.c:266: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). ev->id = calloc(strlen(id) + 1, 1); data/libapache2-mod-qos-11.63/tools/src/qslog.c:290:13: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). int len = strlen(str); data/libapache2-mod-qos-11.63/tools/src/qslog.c:451: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). time_string[strlen(time_string) - 1] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:558: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(s); data/libapache2-mod-qos-11.63/tools/src/qslog.c:585:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). len = strlen(c); data/libapache2-mod-qos-11.63/tools/src/qslog.c:586: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). while(len > 0 && c[strlen(c)-1] == delim) { data/libapache2-mod-qos-11.63/tools/src/qslog.c:587: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). c[strlen(c)-1] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1001: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). if(pcre_exec(pcrestat, NULL, line, strlen(line), 0, 0, ovector, 100) >= 0) { data/libapache2-mod-qos-11.63/tools/src/qslog.c:1078: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). rec->id = calloc(strlen(id)+2, 1); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1080:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). rec->id[strlen(id)+1] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1301: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). tid = calloc(strlen(id)+1, 1); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1304: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). tid[strlen(id)] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1822:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, &line[ma.rm_so], ma.rm_eo - ma.rm_so); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1826: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). buf[strlen(buf)-3] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1828: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). minutes = minutes + (atoi(&buf[strlen(buf)-2])); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1830: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). buf[strlen(buf)-3] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1832: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). minutes = minutes + (atoi(&buf[strlen(buf)-2]) * 60); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1840: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). buf[strlen(buf)-3] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1841: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). year = &buf[strlen(buf)-4]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1843: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). buf[strlen(buf)-5] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1844: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). month = &buf[strlen(buf)-3]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1846: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). buf[strlen(buf)-4] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1862:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, &line[ma.rm_so], ma.rm_eo - ma.rm_so); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1866: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). buf[strlen(buf)-7] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1868: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). minutes = minutes + (atoi(&buf[strlen(buf)-2])); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1870: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). buf[strlen(buf)-3] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1872: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). minutes = minutes + (atoi(&buf[strlen(buf)-2]) * 60); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1879: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). buf[strlen(buf)-3] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1880: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). day = &buf[strlen(buf)-2]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1882: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). buf[strlen(buf)-3] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1883: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). month = &buf[strlen(buf)-2]; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1885: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). buf[strlen(buf)-3] = '\0'; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1907:5: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(buf, &line[ma[1].rm_so], len); data/libapache2-mod-qos-11.63/tools/src/qslog.c:1930: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). line_len = strlen(line) - 1; data/libapache2-mod-qos-11.63/tools/src/qslog.c:1960: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). line_len = strlen(line) - 1; data/libapache2-mod-qos-11.63/tools/src/qslog.c:2616: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(file) > (sizeof(m_file_name) - strlen(".yyyymmddHHMMSS ") - strlen(LOG_DET))) { data/libapache2-mod-qos-11.63/tools/src/qslog.c:2616: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). if(strlen(file) > (sizeof(m_file_name) - strlen(".yyyymmddHHMMSS ") - strlen(LOG_DET))) { data/libapache2-mod-qos-11.63/tools/src/qslog.c:2616:76: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(strlen(file) > (sizeof(m_file_name) - strlen(".yyyymmddHHMMSS ") - strlen(LOG_DET))) { data/libapache2-mod-qos-11.63/tools/src/qslogger.c:348: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). severity = qsgetprio(severityname, strlen(severityname)); data/libapache2-mod-qos-11.63/tools/src/qslogger.c:361:54: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). m_default_severity = qsgetprio(severityname, strlen(severityname)); data/libapache2-mod-qos-11.63/tools/src/qslogger.c:397: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). line_len = strlen(line) - 1; data/libapache2-mod-qos-11.63/tools/src/qspng.c:122:19: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s[i] = (char) fgetc(f); data/libapache2-mod-qos-11.63/tools/src/qspng.c:124:14: [1] (buffer) fgetc: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). s[i] = fgetc(f); data/libapache2-mod-qos-11.63/tools/src/qspng.c:443:11: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). p=p+strlen(name); data/libapache2-mod-qos-11.63/tools/src/qsre.c:119: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). int rc = pcre_exec(pcre, NULL, line, strlen(line), 0, 0, ovector, QS_OVECCOUNT); data/libapache2-mod-qos-11.63/tools/src/qsre.c:178: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). int len = strlen(readline); data/libapache2-mod-qos-11.63/tools/src/qsre.c:200: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). int len = strlen(readline); data/libapache2-mod-qos-11.63/tools/src/qsre.c:208: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). if(readline[0] >= 32 && strlen(readline) > 0) { data/libapache2-mod-qos-11.63/tools/src/qsrespeed.c:219: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). d->len = strlen(d->string); data/libapache2-mod-qos-11.63/tools/src/qsrespeed.c:236: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). int len = strlen(readline); data/libapache2-mod-qos-11.63/tools/src/qsrespeed.c:245:9: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if((strlen(readline) > 0) && data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:234:16: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). while((len = read(infp, buf, sizeof(buf))) > 0) { data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:297: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). rc = write(m_nLogFD, msg, strlen(msg)); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:367: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). m_cmd = calloc(1, strlen(cmd)+1); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:469:10: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). nRead = strlen(buf); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:480:15: [1] (buffer) read: Check buffer boundaries if used in a loop including recursive loops (CWE-120, CWE-20). nRead = read(0, buf, MAX_LINE_BUFFER); data/libapache2-mod-qos-11.63/tools/src/qsrotate.c:505: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). rc = write(m_nLogFD, msg, strlen(msg)); data/libapache2-mod-qos-11.63/tools/src/qssign.c:126: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). sprintf(&line[strlen(line)], " %."SEQDIG"ld", m_nr); data/libapache2-mod-qos-11.63/tools/src/qssign.c:133: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). HMAC_Update(hmac_p, (const unsigned char *)line, strlen(line)); data/libapache2-mod-qos-11.63/tools/src/qssign.c:154: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). int sec_len = strlen(sec); data/libapache2-mod-qos-11.63/tools/src/qssign.c:176: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). int sec_len = strlen(sec); data/libapache2-mod-qos-11.63/tools/src/qssign.c:209: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). int sec_len = strlen(sec); data/libapache2-mod-qos-11.63/tools/src/qssign.c:237: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). int sec_len = strlen(sec); data/libapache2-mod-qos-11.63/tools/src/qssign.c:261: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). int sec_len = strlen(sec); data/libapache2-mod-qos-11.63/tools/src/qssign.c:287: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). int sec_len = strlen(sec); data/libapache2-mod-qos-11.63/tools/src/qssign.c:417: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). int sec_len = strlen(sec); data/libapache2-mod-qos-11.63/tools/src/qssign.c:424: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). line_len = strlen(line) - 1; data/libapache2-mod-qos-11.63/tools/src/qssign.c:450: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). int sz = strlen(marker) + 1 + atoi(SEQDIG); data/libapache2-mod-qos-11.63/tools/src/qssign.c:451:15: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). if(sz == (strlen(line) - (se_marker - line))) { data/libapache2-mod-qos-11.63/tools/src/qssign.c:460: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). int sec_len = strlen(sec); data/libapache2-mod-qos-11.63/tools/src/qssign.c:486: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). line_len = strlen(line) - 1; data/libapache2-mod-qos-11.63/tools/src/qssign.c:507:56: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). HMAC_Update(hmac_p, (const unsigned char *)line, strlen(line)); data/libapache2-mod-qos-11.63/tools/src/qstail.c:127: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). long search_win_len = (strlen(pattern) * 2) + 32; ANALYSIS SUMMARY: Hits = 585 Lines analyzed = 26109 in approximately 1.07 seconds (24341 lines/second) Physical Source Lines of Code (SLOC) = 21493 Hits@level = [0] 771 [1] 213 [2] 321 [3] 11 [4] 39 [5] 1 Hits@level+ = [0+] 1356 [1+] 585 [2+] 372 [3+] 51 [4+] 40 [5+] 1 Hits/KSLOC@level+ = [0+] 63.0903 [1+] 27.2182 [2+] 17.308 [3+] 2.37287 [4+] 1.86107 [5+] 0.0465268 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.