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/libfcgi-perl-0.79/fastcgi.h
Examining data/libfcgi-perl-0.79/fcgi_config_x86.h
Examining data/libfcgi-perl-0.79/fcgiapp.c
Examining data/libfcgi-perl-0.79/fcgiapp.h
Examining data/libfcgi-perl-0.79/fcgimisc.h
Examining data/libfcgi-perl-0.79/fcgios.h
Examining data/libfcgi-perl-0.79/os_win32.c
Examining data/libfcgi-perl-0.79/os_unix.c

FINAL RESULTS:

data/libfcgi-perl-0.79/fcgiapp.c:675:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			    sprintf(buffPtr, fmtBuff, intArg);
data/libfcgi-perl-0.79/fcgiapp.c:680:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(buffPtr, fmtBuff, longArg);
data/libfcgi-perl-0.79/fcgiapp.c:685:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(buffPtr, fmtBuff, shortArg);
data/libfcgi-perl-0.79/fcgiapp.c:699:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			    sprintf(buffPtr, fmtBuff, unsignedArg);
data/libfcgi-perl-0.79/fcgiapp.c:704:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			    sprintf(buffPtr, fmtBuff, uLongArg);
data/libfcgi-perl-0.79/fcgiapp.c:709:29:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
                            sprintf(buffPtr, fmtBuff, uShortArg);
data/libfcgi-perl-0.79/fcgiapp.c:720:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			    sprintf(buffPtr, fmtBuff, intArg);
data/libfcgi-perl-0.79/fcgiapp.c:741:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
				sprintf(buffPtr, fmtBuff, charPtrArg);
data/libfcgi-perl-0.79/fcgiapp.c:760:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
		    sprintf(buffPtr, fmtBuff, voidPtrArg);
data/libfcgi-perl-0.79/fcgiapp.c:789:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			    sprintf(buffPtr, fmtBuff, doubleArg);
data/libfcgi-perl-0.79/fcgiapp.c:793:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			    sprintf(buffPtr, fmtBuff, lDoubleArg);
data/libfcgi-perl-0.79/fcgiapp.c:807:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			    sprintf(buffPtr, fmtBuff, doubleArg);
data/libfcgi-perl-0.79/fcgiapp.c:812:8:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			    sprintf(buffPtr, fmtBuff, lDoubleArg);
data/libfcgi-perl-0.79/fcgiapp.c:1484:17:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
                sprintf(responseP, "%c%c%s%c", len, 1, name, value);
data/libfcgi-perl-0.79/os_unix.c:309: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(host, bindPath);
data/libfcgi-perl-0.79/os_unix.c:416: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(host, bindPath);
data/libfcgi-perl-0.79/os_unix.c:557:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(appPath, appPath, NULL);
data/libfcgi-perl-0.79/os_unix.c:945: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(sdup, str);
data/libfcgi-perl-0.79/os_win32.c:754: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(pipePath, bindPathPrefix);
data/libfcgi-perl-0.79/os_win32.c:755:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(pipePath, bindPath);
data/libfcgi-perl-0.79/os_win32.c:875: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(pipePath, bindPathPrefix);
data/libfcgi-perl-0.79/os_win32.c:876:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat(pipePath, bindPath);
data/libfcgi-perl-0.79/fcgiapp.c:2104:9:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    p = getenv("FCGI_WEB_SERVER_ADDRS");
data/libfcgi-perl-0.79/os_unix.c:169:42:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *libfcgiOsClosePollTimeoutStr = getenv( "LIBFCGI_OS_CLOSE_POLL_TIMEOUT" );
data/libfcgi-perl-0.79/os_unix.c:174:49:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *libfcgiIsAfUnixKeeperPollTimeoutStr = getenv( "LIBFCGI_IS_AF_UNIX_KEEPER_POLL_TIMEOUT" );
data/libfcgi-perl-0.79/os_win32.c:150:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&fdTableCritical);
data/libfcgi-perl-0.79/os_win32.c:322:5:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
    InitializeCriticalSection(&fdTableCritical);   
data/libfcgi-perl-0.79/os_win32.c:353:11:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    val = getenv(SHUTDOWN_EVENT_NAME);
data/libfcgi-perl-0.79/os_win32.c:367:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
        val = getenv(MUTEX_VARNAME);
data/libfcgi-perl-0.79/os_win32.c:490:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if((cLenPtr = getenv("CONTENT_LENGTH")) != NULL &&
data/libfcgi-perl-0.79/os_win32.c:608:5:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
    EnterCriticalSection(&fdTableCritical);
data/libfcgi-perl-0.79/fastcgi.h:73: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 reserved[5];
data/libfcgi-perl-0.79/fastcgi.h:100: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 reserved[3];
data/libfcgi-perl-0.79/fastcgi.h:127: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 reserved[7];
data/libfcgi-perl-0.79/fcgiapp.c:90: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(newString, str, strLen);
data/libfcgi-perl-0.79/fcgiapp.c:154: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(str, stream->rdNext, n);
data/libfcgi-perl-0.79/fcgiapp.c:166:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(str, stream->rdNext, m);
data/libfcgi-perl-0.79/fcgiapp.c:318: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(stream->wrNext, str, n);
data/libfcgi-perl-0.79/fcgiapp.c:330:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(stream->wrNext, str, m);
data/libfcgi-perl-0.79/fcgiapp.c:418: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 fmtBuff[FMT_BUFFLEN];
data/libfcgi-perl-0.79/fcgiapp.c:419:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buff[PRINTF_BUFFLEN];
data/libfcgi-perl-0.79/fcgiapp.c:516:4:  [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(fmtBuffPtr, "%d", minWidth);
data/libfcgi-perl-0.79/fcgiapp.c:545:8:  [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(fmtBuffPtr, "%d", precision);
data/libfcgi-perl-0.79/fcgiapp.c:1141: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 lenBuff[3];
data/libfcgi-perl-0.79/fcgiapp.c:1459: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 response[64]; /* 64 = 8 + 3*(1+1+14+1)* + padding */
data/libfcgi-perl-0.79/fcgiapp.c:1691: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(((char *)(&header)) + headerLen, stream->rdNext, count);
data/libfcgi-perl-0.79/os_unix.c:171:37:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        libfcgiOsClosePollTimeout = atoi(libfcgiOsClosePollTimeoutStr);
data/libfcgi-perl-0.79/os_unix.c:176:44:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        libfcgiIsAfUnixKeeperPollTimeout = atoi(libfcgiIsAfUnixKeeperPollTimeoutStr);
data/libfcgi-perl-0.79/os_unix.c:260: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(servAddrPtr->sun_path, bindPath, bindPathLen);
data/libfcgi-perl-0.79/os_unix.c:301:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    host[MAXPATHLEN];
data/libfcgi-perl-0.79/os_unix.c:312: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).
	if((port = atoi(tp)) == 0) {
data/libfcgi-perl-0.79/os_unix.c:408:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char    host[MAXPATHLEN];
data/libfcgi-perl-0.79/os_unix.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).
	if((port = atoi(tp)) == 0) {
data/libfcgi-perl-0.79/os_unix.c:432: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(&sa.inetVariant.sin_addr, hp->h_addr, hp->h_length);
data/libfcgi-perl-0.79/os_unix.c:780: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 trash[1024];
data/libfcgi-perl-0.79/os_win32.c:356:41:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        HANDLE shutdownEvent = (HANDLE) atoi(val);
data/libfcgi-perl-0.79/os_win32.c:370:36:  [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).
            acceptMutex = (HANDLE) atoi(val);
data/libfcgi-perl-0.79/os_win32.c:491:8:  [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).
       atoi(cLenPtr) > 0) {
data/libfcgi-perl-0.79/os_win32.c:653:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
        char buf[6];
data/libfcgi-perl-0.79/os_win32.c:658: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).
        port = (short) atoi(buf);
data/libfcgi-perl-0.79/os_win32.c:843:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&sockAddr.sin_addr, hp->h_addr, hp->h_length);
data/libfcgi-perl-0.79/os_win32.c:1392:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
                char trash[1024];
data/libfcgi-perl-0.79/fcgiapp.c:88: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).
    int strLen = strlen(str);
data/libfcgi-perl-0.79/fcgiapp.c:358: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).
    return FCGX_PutStr(str, strlen(str), stream);
data/libfcgi-perl-0.79/fcgiapp.c:437: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).
    fStop = f + strlen(f);
data/libfcgi-perl-0.79/fcgiapp.c:517:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        fmtBuffPtr += strlen(fmtBuffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:546: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).
			    fmtBuffPtr += strlen(fmtBuffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:598: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).
			    buffReqd = strlen(charPtrArg);
data/libfcgi-perl-0.79/fcgiapp.c:676: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:681: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:686: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:700: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:705: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:710: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:721: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:738: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).
                                buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:742:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	                        buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:761: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).
                    buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:790: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:794: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:808: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:813: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).
                            buffCount = strlen(buffPtr);
data/libfcgi-perl-0.79/fcgiapp.c:1110: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(name);
data/libfcgi-perl-0.79/fcgiapp.c:1483:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                len = strlen(name);
data/libfcgi-perl-0.79/os_unix.c:247:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    int bindPathLen = strlen(bindPath);
data/libfcgi-perl-0.79/os_unix.c:303: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(bindPath) >= MAXPATHLEN) {
data/libfcgi-perl-0.79/os_unix.c:412: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(bindPath) >= MAXPATHLEN) {
data/libfcgi-perl-0.79/os_unix.c:478:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    return(read(fd, buf, len));
data/libfcgi-perl-0.79/os_unix.c:789:30:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            while (rv > 0 && read(fd, trash, sizeof(trash)) > 0);
data/libfcgi-perl-0.79/os_unix.c:904:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    len = read(aioPtr->fd, aioPtr->buf, aioPtr->len);
data/libfcgi-perl-0.79/os_unix.c:942: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 * sdup = (char *) malloc(strlen(str) + 1);
data/libfcgi-perl-0.79/os_win32.c:655:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buf, p, 6);
data/libfcgi-perl-0.79/os_win32.c:696:66:  [1] (buffer) strlen:
  Does not handle 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 (port && *bindPath != ':' && strncmp(bindPath, LOCALHOST, strlen(LOCALHOST)))
data/libfcgi-perl-0.79/os_win32.c:747: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 *pipePath = malloc(strlen(bindPathPrefix) + strlen(bindPath) + 1);
data/libfcgi-perl-0.79/os_win32.c:747:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *pipePath = malloc(strlen(bindPathPrefix) + strlen(bindPath) + 1);
data/libfcgi-perl-0.79/os_win32.c:824:13:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
            strncpy(host, bindPath, len);
data/libfcgi-perl-0.79/os_win32.c:867: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 *pipePath = malloc(strlen(bindPathPrefix) + strlen(bindPath) + 1);
data/libfcgi-perl-0.79/os_win32.c:867:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        char *pipePath = malloc(strlen(bindPathPrefix) + strlen(bindPath) + 1);
data/libfcgi-perl-0.79/os_win32.c:1530: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 += strlen(ipaddr);
data/libfcgi-perl-0.79/os_win32.c:1536: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 += strlen(ipaddr) + 1;

ANALYSIS SUMMARY:

Hits = 100
Lines analyzed = 6513 in approximately 0.17 seconds (39166 lines/second)
Physical Source Lines of Code (SLOC) = 3355
Hits@level = [0]  20 [1]  38 [2]  31 [3]   9 [4]  22 [5]   0
Hits@level+ = [0+] 120 [1+] 100 [2+]  62 [3+]  31 [4+]  22 [5+]   0
Hits/KSLOC@level+ = [0+] 35.7675 [1+] 29.8063 [2+] 18.4799 [3+] 9.23994 [4+] 6.55738 [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.