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/postsrsd-1.6/postsrsd.c Examining data/postsrsd-1.6/sha1.c Examining data/postsrsd-1.6/srs2.c Examining data/postsrsd-1.6/srs2.h Examining data/postsrsd-1.6/tests.c FINAL RESULTS: data/postsrsd-1.6/srs2.c:431:2: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, SRS0TAG "%c%s%c%s%c%s%c%s@%s", srs->separator, data/postsrsd-1.6/srs2.c:475:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, SRS1TAG "%c%s%c%s%c%s@%s", srs->separator, data/postsrsd-1.6/srs2.c:495:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, SRS1TAG "%c%s%c%s%c%s@%s", srs->separator, data/postsrsd-1.6/srs2.c:570:3: [4] (format) sprintf: Potential format string problem (CWE-134). Make format string constant. sprintf(buf, SRS0TAG "%s@%s", srsuser, srshost); data/postsrsd-1.6/srs2.c:605: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(buf, sender); data/postsrsd-1.6/srs2.c:612:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(senduser, sender); data/postsrsd-1.6/srs2.c:668:2: [4] (buffer) strcpy: Does not check for buffer overflows when copying to destination [MS-banned] (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy easily misused). strcpy(senduser, sender); data/postsrsd-1.6/postsrsd.c:271:17: [3] (buffer) getopt: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. while ((opt = getopt(argc, argv, "46d:a:l:f:r:s:n:N:u:t:p:c:X::Dhev")) != -1) { data/postsrsd-1.6/postsrsd.c:342:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("SRS_DOMAIN") != NULL ) data/postsrsd-1.6/postsrsd.c:343:27: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. domain = strdup(getenv("SRS_DOMAIN")); data/postsrsd-1.6/postsrsd.c:344:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("SRS_SEPARATOR") != NULL ) data/postsrsd-1.6/postsrsd.c:345:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. separator = *getenv("SRS_SEPARATOR"); data/postsrsd-1.6/postsrsd.c:346:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("SRS_HASHLENGTH") != NULL ) data/postsrsd-1.6/postsrsd.c:347:29: [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. hashlength = atoi(getenv("SRS_HASHLENGTH")); data/postsrsd-1.6/postsrsd.c:348:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("SRS_HASHMIN") != NULL ) data/postsrsd-1.6/postsrsd.c:349:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. hashmin = atoi(getenv("SRS_HASHMIN")); data/postsrsd-1.6/postsrsd.c:350:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("SRS_FORWARD_PORT") != NULL ) data/postsrsd-1.6/postsrsd.c:351:36: [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. forward_service = strdup(getenv("SRS_FORWARD_PORT")); data/postsrsd-1.6/postsrsd.c:352:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("SRS_REVERSE_PORT") != NULL ) data/postsrsd-1.6/postsrsd.c:353:36: [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. reverse_service = strdup(getenv("SRS_REVERSE_PORT")); data/postsrsd-1.6/postsrsd.c:354:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("SRS_TIMEOUT") != NULL ) data/postsrsd-1.6/postsrsd.c:355:26: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. timeout = atoi(getenv("SRS_TIMEOUT")); data/postsrsd-1.6/postsrsd.c:356:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("SRS_SECRET") != NULL ) data/postsrsd-1.6/postsrsd.c:357:32: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. secret_file = strdup(getenv("SRS_SECRET")); data/postsrsd-1.6/postsrsd.c:358:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("SRS_PID_FILE") != NULL ) data/postsrsd-1.6/postsrsd.c:359:29: [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. pid_file = strdup(getenv("SRS_PID_FILE")); data/postsrsd-1.6/postsrsd.c:360:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("RUN_AS") != NULL ) data/postsrsd-1.6/postsrsd.c:361: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. user = strdup(getenv("RUN_AS")); data/postsrsd-1.6/postsrsd.c:362:14: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if ( getenv("CHROOT") != NULL ) data/postsrsd-1.6/postsrsd.c:363:31: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. chroot_dir = strdup(getenv("CHROOT")); data/postsrsd-1.6/postsrsd.c:364:13: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. if (getenv("SRS_EXCLUDE_DOMAINS") != NULL) { data/postsrsd-1.6/postsrsd.c:365:24: [3] (buffer) getenv: Environment variables are untrustable input if they can be set by an attacker. They can have any content and length, and the same variable can be set more than once (CWE-807, CWE-20). Check environment variables carefully before using them. tmp = strtok(getenv("SRS_EXCLUDE_DOMAINS"), ",; \t\r\n"); data/postsrsd-1.6/postsrsd.c:460:9: [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 (chroot(chroot_dir) < 0) { data/postsrsd-1.6/tests.c:64:22: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. buf[i++] = chars[random() % 39]; data/postsrsd-1.6/tests.c:65:54: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (l1 < len1 && l1 > 1 && buf[i - 1] != '.' && (random() % 16 == 0)) buf[i - 1] = '.'; data/postsrsd-1.6/tests.c:71:22: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. buf[i++] = 'a' + random() % 26; data/postsrsd-1.6/tests.c:72:54: [3] (random) random: This function is not sufficiently random for security-related functions such as key and nonce creation (CWE-327). Use a more secure technique for acquiring random values. if (l2 < len2 && l2 > 1 && buf[i - 1] != '.' && (random() % 16 == 0)) buf[i - 1] = '.'; data/postsrsd-1.6/postsrsd.c:162: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 value[1024]; data/postsrsd-1.6/postsrsd.c:163: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 outputbuf[1024], *output; data/postsrsd-1.6/postsrsd.c:192: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 value[1024]; data/postsrsd-1.6/postsrsd.c:193: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 outputbuf[1024], *output; data/postsrsd-1.6/postsrsd.c:255: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 secretbuf[1024], *secret = NULL; data/postsrsd-1.6/postsrsd.c:297:19: [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). timeout = atoi(optarg); data/postsrsd-1.6/postsrsd.c:303: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). hashlength = atoi(optarg); data/postsrsd-1.6/postsrsd.c:306:19: [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). hashmin = atoi(optarg); data/postsrsd-1.6/postsrsd.c:347: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). hashlength = atoi(getenv("SRS_HASHLENGTH")); data/postsrsd-1.6/postsrsd.c:349: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). hashmin = atoi(getenv("SRS_HASHMIN")); data/postsrsd-1.6/postsrsd.c:355: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). timeout = atoi(getenv("SRS_TIMEOUT")); data/postsrsd-1.6/postsrsd.c:411: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). pf = fopen (pid_file, "w"); data/postsrsd-1.6/postsrsd.c:419: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). sf = fopen(secret_file, "rb"); data/postsrsd-1.6/postsrsd.c:506: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 linebuf[1024], *line; data/postsrsd-1.6/postsrsd.c:507: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 keybuf[1024], *key; data/postsrsd-1.6/sha1.c:249:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(((sha_byte *) sha_info->data) + sha_info->local, buffer, i); data/postsrsd-1.6/sha1.c:260:3: [2] (buffer) memcpy: Does not check for buffer overflows when copying to destination (CWE-120). Make sure destination can always hold the source data. memcpy(sha_info->data, buffer, SHA_BLOCKSIZE); data/postsrsd-1.6/sha1.c:265:2: [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(sha_info->data, buffer, count); data/postsrsd-1.6/sha1.c:271:33: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. sha_transform_and_copy(unsigned char digest[20], SHA_INFO *sha_info) data/postsrsd-1.6/sha1.c:298:20: [2] (buffer) char: Statically-sized arrays can be improperly restricted, leading to potential overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use functions that limit length, or ensure that the size is larger than the maximum possible length. sha_final(unsigned char digest[20], SHA_INFO *sha_info) data/postsrsd-1.6/sha1.c:357: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 sbuf[SHA_BLOCKSIZE]; data/postsrsd-1.6/srs2.c:263: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 srshash[EVP_MAX_MD_SIZE + 1]; data/postsrsd-1.6/srs2.c:266: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 srshash[SHA_DIGESTSIZE + 1]; data/postsrsd-1.6/srs2.c:400: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 srsstamp[SRS_TIME_SIZE + 1]; data/postsrsd-1.6/srs2.h:176: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 ipad[SHA_BLOCKSIZE + 1]; data/postsrsd-1.6/srs2.h:177: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 opad[SHA_BLOCKSIZE + 1]; data/postsrsd-1.6/tests.c:26: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 buf1[1024]; data/postsrsd-1.6/tests.c:27: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[1024]; data/postsrsd-1.6/tests.c:84: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 addr[128]; data/postsrsd-1.6/postsrsd.c:165: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). addrlen = strlen(address); data/postsrsd-1.6/postsrsd.c:168: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(*excludes); data/postsrsd-1.6/sha1.c:363: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(sbuf); /* SHA_BLOCKSIZE? */ data/postsrsd-1.6/srs2.c:145: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). memset(srs->secrets[i], 0, strlen(srs->secrets[i])); data/postsrsd-1.6/srs2.c:281: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). HMAC_Init(&ctx, secret, strlen(secret), EVP_sha1()); data/postsrsd-1.6/srs2.c:283: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). srs_hmac_init(&ctx, secret, strlen(secret)); data/postsrsd-1.6/srs2.c:288: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(data); data/postsrsd-1.6/srs2.c:371: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). len = strlen(hash); data/postsrsd-1.6/srs2.c:376:3: [1] (buffer) strncpy: Easily used incorrectly; doesn't always \0-terminate or check for invalid pointers [MS-banned] (CWE-120). strncpy(tmp, hash, srs->hashlength); data/postsrsd-1.6/srs2.c:415: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). len = strlen(SRS0TAG) + 1 + data/postsrsd-1.6/srs2.c:418:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(sendhost) + 1 + strlen(senduser) data/postsrsd-1.6/srs2.c:418: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(sendhost) + 1 + strlen(senduser) data/postsrsd-1.6/srs2.c:419: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). + 1 + strlen(aliashost); data/postsrsd-1.6/srs2.c:469: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(SRS1TAG) + 1 + data/postsrsd-1.6/srs2.c:471:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(srshost) + 1 + strlen(srsuser) data/postsrsd-1.6/srs2.c:471: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). strlen(srshost) + 1 + strlen(srsuser) data/postsrsd-1.6/srs2.c:472: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). + 1 + strlen(aliashost); data/postsrsd-1.6/srs2.c:489: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(SRS1TAG) + 1 + data/postsrsd-1.6/srs2.c:491:5: [1] (buffer) strlen: Does not handle strings that are not \0-terminated; if given one it may perform an over-read (it could cause a crash if unprotected) (CWE-126). strlen(srshost) + 1 + strlen(srsuser) data/postsrsd-1.6/srs2.c:491: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). strlen(srshost) + 1 + strlen(srsuser) data/postsrsd-1.6/srs2.c:492: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). + 1 + strlen(aliashost); data/postsrsd-1.6/srs2.c:599: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). len = strlen(sender); data/postsrsd-1.6/srs2.c:603: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(sender) >= buflen) data/postsrsd-1.6/srs2.c:634: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). slen = strlen(sender); data/postsrsd-1.6/srs2.c:635: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). alen = strlen(alias); data/postsrsd-1.6/srs2.c:664: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). len = strlen(sender); data/postsrsd-1.6/srs2.c:692: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). len = strlen(sender) + 1; ANALYSIS SUMMARY: Hits = 93 Lines analyzed = 1949 in approximately 0.39 seconds (4990 lines/second) Physical Source Lines of Code (SLOC) = 1568 Hits@level = [0] 38 [1] 27 [2] 29 [3] 30 [4] 7 [5] 0 Hits@level+ = [0+] 131 [1+] 93 [2+] 66 [3+] 37 [4+] 7 [5+] 0 Hits/KSLOC@level+ = [0+] 83.5459 [1+] 59.3112 [2+] 42.0918 [3+] 23.5969 [4+] 4.46429 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.