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/bcpp-0.0.20180401/code/bcpp.h
Examining data/bcpp-0.0.20180401/code/tabs.cpp
Examining data/bcpp-0.0.20180401/code/backup.cpp
Examining data/bcpp-0.0.20180401/code/baseq.h
Examining data/bcpp-0.0.20180401/code/strings.cpp
Examining data/bcpp-0.0.20180401/code/anyobj.cpp
Examining data/bcpp-0.0.20180401/code/execsql.cpp
Examining data/bcpp-0.0.20180401/code/hanging.cpp
Examining data/bcpp-0.0.20180401/code/config.h
Examining data/bcpp-0.0.20180401/code/html.cpp
Examining data/bcpp-0.0.20180401/code/cmdline.h
Examining data/bcpp-0.0.20180401/code/stacklis.cpp
Examining data/bcpp-0.0.20180401/code/verbose.cpp
Examining data/bcpp-0.0.20180401/code/config.cpp
Examining data/bcpp-0.0.20180401/code/anyobj.h
Examining data/bcpp-0.0.20180401/code/cmdline.cpp
Examining data/bcpp-0.0.20180401/code/baseq.cpp
Examining data/bcpp-0.0.20180401/code/stacklis.h
Examining data/bcpp-0.0.20180401/code/debug.cpp
Examining data/bcpp-0.0.20180401/code/bcpp.cpp

FINAL RESULTS:

data/bcpp-0.0.20180401/code/backup.cpp:68: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(oldFilename, newFilename);
data/bcpp-0.0.20180401/code/backup.cpp:82: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 (pLook, suffix);
data/bcpp-0.0.20180401/code/bcpp.cpp:709: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(s, pItem->pData);
data/bcpp-0.0.20180401/code/bcpp.cpp:715: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(s, pItem->pState);
data/bcpp-0.0.20180401/code/bcpp.cpp:2642:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (pNewCode, "%s %s", pCodeLine->pCode, pBraceLine->pBrace);
data/bcpp-0.0.20180401/code/bcpp.cpp:2643:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (pNewState, "%s %s", pCodeLine->pCFlag, pBraceLine->pBFlag);
data/bcpp-0.0.20180401/code/bcpp.cpp:2857:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (pNewCode, "%s %s", pBraceLine->pBrace, pCodeLine->pCode);
data/bcpp-0.0.20180401/code/bcpp.cpp:2858:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf (pNewState, "%s %s", pBraceLine->pBFlag, pCodeLine->pCFlag);
data/bcpp-0.0.20180401/code/bcpp.cpp:3581: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 (pNameMem, pSHome);
data/bcpp-0.0.20180401/code/bcpp.cpp:3583: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 (pNameMem, pCfgName);
data/bcpp-0.0.20180401/code/bcpp.cpp:3600: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 (pNameMem, BCPP_CONFIG_DIR);
data/bcpp-0.0.20180401/code/bcpp.cpp:3601:5:  [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 (pNameMem, pCfgName);
data/bcpp-0.0.20180401/code/bcpp.cpp:3649: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 (pNameMem, pSPath);
data/bcpp-0.0.20180401/code/bcpp.cpp:3658:18:  [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 (endOf(pNameMem), pathSepChar);
data/bcpp-0.0.20180401/code/bcpp.cpp:3660: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 (endOf(pNameMem), pCfgName);
data/bcpp-0.0.20180401/code/bcpp.h:53:18:  [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).
    extern char *strcat(char *, const char *);
data/bcpp-0.0.20180401/code/debug.cpp:32:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, ap);
data/bcpp-0.0.20180401/code/execsql.cpp:260:17:  [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).
        StrUpr (strcpy(pUprString, pOut->pCode));
data/bcpp-0.0.20180401/code/html.cpp:34: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(temp, text);
data/bcpp-0.0.20180401/code/strings.cpp:61: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(dst, src);
data/bcpp-0.0.20180401/code/tabs.cpp:310:17:  [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 (pNewStates, lineState);
data/bcpp-0.0.20180401/code/tabs.cpp:315:17:  [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 (pNewString, pString);
data/bcpp-0.0.20180401/code/tabs.cpp:323:17:  [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 (pAddSpc, pSTab+1);
data/bcpp-0.0.20180401/code/tabs.cpp:352:17:  [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(pTemp, pString);
data/bcpp-0.0.20180401/code/tabs.cpp:353:17:  [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(pTemp, pOctal);
data/bcpp-0.0.20180401/code/tabs.cpp:354:17:  [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(pTemp, pSTab+1);
data/bcpp-0.0.20180401/code/tabs.cpp:369:17:  [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(pTemp, lineState);
data/bcpp-0.0.20180401/code/tabs.cpp:536: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 (pConCat, pOutTab);
data/bcpp-0.0.20180401/code/tabs.cpp:537: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 (pConCat + strlen (pConCat), pOutSpc);
data/bcpp-0.0.20180401/code/verbose.cpp:42:9:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        vprintf(format, ap);
data/bcpp-0.0.20180401/code/verbose.cpp:51:5:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vfprintf(stderr, format, ap);
data/bcpp-0.0.20180401/code/verbose.cpp:65:13:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            vfprintf(stderr, format, ap);
data/bcpp-0.0.20180401/code/bcpp.cpp:3575: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.
    char* pSHome      = getenv ("HOME");
data/bcpp-0.0.20180401/code/bcpp.cpp:3612: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.
    char* pSPath      = getenv ("PATH");
data/bcpp-0.0.20180401/code/backup.cpp:72:5:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
    strcat(oldFilename, ".orig");
data/bcpp-0.0.20180401/code/backup.cpp:75:20:  [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 *fp = fopen(oldFilename, "r");
data/bcpp-0.0.20180401/code/backup.cpp:95:19:  [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 *newFp = fopen(newFilename, "r");
data/bcpp-0.0.20180401/code/backup.cpp:96:19:  [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 *oldFp = fopen(oldFilename, "r");
data/bcpp-0.0.20180401/code/bcpp.cpp:710:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat(s, " \\");
data/bcpp-0.0.20180401/code/bcpp.cpp:3567:21:  [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 ((pCfgFile = fopen(pCfgName, "r")) != NULL)
data/bcpp-0.0.20180401/code/bcpp.cpp:3569: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[PATH_MAX];
data/bcpp-0.0.20180401/code/bcpp.cpp:3582:9:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
        strcat (pNameMem, "/.");
data/bcpp-0.0.20180401/code/bcpp.cpp:3584:25:  [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 ((pCfgFile = fopen(pNameMem, "r")) != NULL)
data/bcpp-0.0.20180401/code/bcpp.cpp:3602:21:  [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 ((pCfgFile = fopen(pNameMem, "r")) != NULL)
data/bcpp-0.0.20180401/code/bcpp.cpp:3668:22:  [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).
          pCfgFile = fopen(pNameMem, "r");
data/bcpp-0.0.20180401/code/bcpp.cpp:3751:23:  [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).
        pConfigFile = fopen(pConfig, "r");
data/bcpp-0.0.20180401/code/bcpp.cpp:3798:22:  [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).
        pInputFile = fopen(pInFile, "r");
data/bcpp-0.0.20180401/code/bcpp.cpp:3806:23:  [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).
        pOutputFile = fopen(pOutFile, "wb");
data/bcpp-0.0.20180401/code/bcpp.h:305: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 matched[80];
data/bcpp-0.0.20180401/code/cmdline.cpp:101: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).
        result = atoi (argv[cmdCount]);
data/bcpp-0.0.20180401/code/config.cpp:289: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).
        variable = atoi (pPosInLine);
data/bcpp-0.0.20180401/code/backup.cpp:28: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).
    return (s + strlen(s));
data/bcpp-0.0.20180401/code/backup.cpp:33: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).
    return (s + strlen(s));
data/bcpp-0.0.20180401/code/backup.cpp:63: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).
    oldFilename        = new char[strlen(newFilename)+6];
data/bcpp-0.0.20180401/code/backup.cpp:106:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            newCh = fgetc(newFp);
data/bcpp-0.0.20180401/code/backup.cpp:107:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            oldCh = fgetc(oldFp);
data/bcpp-0.0.20180401/code/bcpp.cpp:199: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).
   return (s + strlen(s));
data/bcpp-0.0.20180401/code/bcpp.cpp:204: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).
   return (s + strlen(s));
data/bcpp-0.0.20180401/code/bcpp.cpp:354: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).
        for (n = strlen(pLineData); n > 0 && pLineState[n-1] == Blank; n--)
data/bcpp-0.0.20180401/code/bcpp.cpp:408: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 limit = strlen(pState);
data/bcpp-0.0.20180401/code/bcpp.cpp:427:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        len = strlen(pState);
data/bcpp-0.0.20180401/code/bcpp.cpp:564:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t len = (end >= 0) ? static_cast<size_t>(end - start + 2) : strlen(pLineData);
data/bcpp-0.0.20180401/code/bcpp.cpp:1460:60:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                        && (indentStack + static_cast<int>(strlen (pNextItem -> pData))) > (userS.posOfCommentsWC) )
data/bcpp-0.0.20180401/code/bcpp.cpp:1636:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pOut -> filler = (userS.posOfCommentsWC - (tokenIndent + strlen (pTestType -> pData)));
data/bcpp-0.0.20180401/code/bcpp.cpp:2113: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).
                                 + strlen(pIndentWords[findWord].name));
data/bcpp-0.0.20180401/code/bcpp.cpp:2610: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).
            int overWrite = pCodeLine -> indentSpace + strlen (pCodeLine -> pCode) + 1 + strlen (pBraceLine -> pBrace);
data/bcpp-0.0.20180401/code/bcpp.cpp:2610:90:  [1] (buffer) strlen:
  Does not handle 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 overWrite = pCodeLine -> indentSpace + strlen (pCodeLine -> pCode) + 1 + strlen (pBraceLine -> pBrace);
data/bcpp-0.0.20180401/code/bcpp.cpp:2628: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 newLen = (strlen (pCodeLine->pCode) + strlen (pBraceLine->pBrace) + 1 + 1);
data/bcpp-0.0.20180401/code/bcpp.cpp:2628: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).
        int newLen = (strlen (pCodeLine->pCode) + strlen (pBraceLine->pBrace) + 1 + 1);
data/bcpp-0.0.20180401/code/bcpp.cpp:2659:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pNewItem  -> filler   = userS.posOfCommentsWC - (pCodeLine -> indentSpace + strlen (pNewItem -> pCode));
data/bcpp-0.0.20180401/code/bcpp.cpp:2824: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).
            int overWrite = pCodeLine -> indentSpace + strlen (pCodeLine -> pCode) + 1 + strlen (pBraceLine -> pBrace);
data/bcpp-0.0.20180401/code/bcpp.cpp:2824:90:  [1] (buffer) strlen:
  Does not handle 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 overWrite = pCodeLine -> indentSpace + strlen (pCodeLine -> pCode) + 1 + strlen (pBraceLine -> pBrace);
data/bcpp-0.0.20180401/code/bcpp.cpp:2843: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 newLen = (strlen (pCodeLine->pCode) + strlen (pBraceLine->pBrace) + 1 + 1);
data/bcpp-0.0.20180401/code/bcpp.cpp:2843: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).
        int newLen = (strlen (pCodeLine->pCode) + strlen (pBraceLine->pBrace) + 1 + 1);
data/bcpp-0.0.20180401/code/bcpp.cpp:2876:89:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            pNewItem  -> filler   = userS.posOfCommentsWC - (pCodeLine -> indentSpace + strlen (pNewItem -> pCode));
data/bcpp-0.0.20180401/code/bcpp.cpp:3127: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).
            int in_code  = ((pOut -> pCode  != 0) ? strlen(pOut -> pCode) : 0)
data/bcpp-0.0.20180401/code/bcpp.cpp:3128: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).
                         + ((pOut -> pBrace != 0) ? strlen(pOut -> pBrace) : 0);
data/bcpp-0.0.20180401/code/bcpp.cpp:3239: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).
                    size_t len = strlen(notes);
data/bcpp-0.0.20180401/code/bcpp.cpp:3579: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).
        if ((pNameMem = new char[strlen (pSHome) + strlen (pCfgName) + 3]) == NULL)
data/bcpp-0.0.20180401/code/bcpp.cpp:3579:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((pNameMem = new char[strlen (pSHome) + strlen (pCfgName) + 3]) == NULL)
data/bcpp-0.0.20180401/code/bcpp.cpp:3598: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 ((pNameMem = new char[strlen (BCPP_CONFIG_DIR) + strlen (pCfgName) + 1]) == NULL)
data/bcpp-0.0.20180401/code/bcpp.cpp:3598: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 ((pNameMem = new char[strlen (BCPP_CONFIG_DIR) + strlen (pCfgName) + 1]) == NULL)
data/bcpp-0.0.20180401/code/bcpp.cpp:3624: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 ((pNameMem = new char[strlen (pSPath) + strlen (pCfgName)+2]) == NULL)
data/bcpp-0.0.20180401/code/bcpp.cpp:3624: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).
    if ((pNameMem = new char[strlen (pSPath) + strlen (pCfgName)+2]) == NULL)
data/bcpp-0.0.20180401/code/bcpp.cpp:3656: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 (strlen (pNameMem) > 0)
data/bcpp-0.0.20180401/code/bcpp.h:54:18:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    extern char *strncpy(const char *, const char *, size_t);
data/bcpp-0.0.20180401/code/config.cpp:69:14:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ch = fgetc(pInFile);
data/bcpp-0.0.20180401/code/config.cpp:161: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).
        size_t len = strlen(data);
data/bcpp-0.0.20180401/code/config.cpp:204: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).
    size_t wantLen = strlen(want);
data/bcpp-0.0.20180401/code/execsql.cpp:256: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).
        pUprString = new char[strlen (pOut -> pCode) + 1];
data/bcpp-0.0.20180401/code/execsql.cpp:277:26:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                    n += strlen(state_keys[m].name); // fix for END-EXEC
data/bcpp-0.0.20180401/code/hanging.cpp:45:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(string, name + first, len)[len] = 0;
data/bcpp-0.0.20180401/code/html.cpp:33: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).
    char *temp = new char[strlen(text)+1];
data/bcpp-0.0.20180401/code/html.cpp:35: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).
    for (int n = strlen(temp); n > 0; n--)
data/bcpp-0.0.20180401/code/strings.cpp:59: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).
    char* dst =  new char[strlen (src)+1];
data/bcpp-0.0.20180401/code/strings.cpp:70:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(dst, src, len);
data/bcpp-0.0.20180401/code/tabs.cpp:258: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).
    lineState = new char[strlen (pString) + 1];
data/bcpp-0.0.20180401/code/tabs.cpp:294: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).
                char* pNewString = new char[strlen (pString) + tabAmount + 1];
data/bcpp-0.0.20180401/code/tabs.cpp:295: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).
                char* pNewStates = new char[strlen (pString) + tabAmount + 1];
data/bcpp-0.0.20180401/code/tabs.cpp:344: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).
                char* pTemp = new char[strlen(pString)+strlen(pOctal)+1];
data/bcpp-0.0.20180401/code/tabs.cpp:344: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).
                char* pTemp = new char[strlen(pString)+strlen(pOctal)+1];
data/bcpp-0.0.20180401/code/tabs.cpp:360: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).
                pTemp = new char[strlen(pString)+strlen(pOctal)+1];
data/bcpp-0.0.20180401/code/tabs.cpp:360: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).
                pTemp = new char[strlen(pString)+strlen(pOctal)+1];
data/bcpp-0.0.20180401/code/tabs.cpp:432: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 (last < strlen(pString))
data/bcpp-0.0.20180401/code/tabs.cpp:440: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).
    TRACE(("%s %d/%d %s\n", last > strlen(pString)+1 ? "FIXME" : "", last, strlen(pString), showCharState(curState)));
data/bcpp-0.0.20180401/code/tabs.cpp:440: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).
    TRACE(("%s %d/%d %s\n", last > strlen(pString)+1 ? "FIXME" : "", last, strlen(pString), showCharState(curState)));
data/bcpp-0.0.20180401/code/tabs.cpp:528: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* pConCat = new char[(strlen (pOutTab) + strlen (pOutSpc) + 1)];
data/bcpp-0.0.20180401/code/tabs.cpp:528: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).
        char* pConCat = new char[(strlen (pOutTab) + strlen (pOutSpc) + 1)];
data/bcpp-0.0.20180401/code/tabs.cpp:537: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).
        strcpy (pConCat + strlen (pConCat), pOutSpc);
data/bcpp-0.0.20180401/code/verbose.cpp:69:20:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            code = getc(stdin);

ANALYSIS SUMMARY:

Hits = 110
Lines analyzed = 7398 in approximately 0.17 seconds (44231 lines/second)
Physical Source Lines of Code (SLOC) = 4956
Hits@level = [0]  18 [1]  59 [2]  17 [3]   2 [4]  32 [5]   0
Hits@level+ = [0+] 128 [1+] 110 [2+]  51 [3+]  34 [4+]  32 [5+]   0
Hits/KSLOC@level+ = [0+] 25.8273 [1+] 22.1953 [2+] 10.2906 [3+] 6.86037 [4+] 6.45682 [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.