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/libdbd-sqlite2-perl-0.38/vdbe.c
Examining data/libdbd-sqlite2-perl-0.38/build.c
Examining data/libdbd-sqlite2-perl-0.38/vdbe.h
Examining data/libdbd-sqlite2-perl-0.38/util.c
Examining data/libdbd-sqlite2-perl-0.38/vdbeInt.h
Examining data/libdbd-sqlite2-perl-0.38/main.c
Examining data/libdbd-sqlite2-perl-0.38/opcodes.c
Examining data/libdbd-sqlite2-perl-0.38/SQLiteXS.h
Examining data/libdbd-sqlite2-perl-0.38/pager.c
Examining data/libdbd-sqlite2-perl-0.38/delete.c
Examining data/libdbd-sqlite2-perl-0.38/btree.h
Examining data/libdbd-sqlite2-perl-0.38/pager.h
Examining data/libdbd-sqlite2-perl-0.38/auth.c
Examining data/libdbd-sqlite2-perl-0.38/btree.c
Examining data/libdbd-sqlite2-perl-0.38/attach.c
Examining data/libdbd-sqlite2-perl-0.38/parse.h
Examining data/libdbd-sqlite2-perl-0.38/select.c
Examining data/libdbd-sqlite2-perl-0.38/sqlite.h
Examining data/libdbd-sqlite2-perl-0.38/trigger.c
Examining data/libdbd-sqlite2-perl-0.38/dbdimp.c
Examining data/libdbd-sqlite2-perl-0.38/vacuum.c
Examining data/libdbd-sqlite2-perl-0.38/btree_rb.c
Examining data/libdbd-sqlite2-perl-0.38/os.h
Examining data/libdbd-sqlite2-perl-0.38/os.c
Examining data/libdbd-sqlite2-perl-0.38/tokenize.c
Examining data/libdbd-sqlite2-perl-0.38/table.c
Examining data/libdbd-sqlite2-perl-0.38/where.c
Examining data/libdbd-sqlite2-perl-0.38/printf.c
Examining data/libdbd-sqlite2-perl-0.38/random.c
Examining data/libdbd-sqlite2-perl-0.38/vdbeaux.c
Examining data/libdbd-sqlite2-perl-0.38/parse.c
Examining data/libdbd-sqlite2-perl-0.38/hash.h
Examining data/libdbd-sqlite2-perl-0.38/encode.c
Examining data/libdbd-sqlite2-perl-0.38/dbdimp.h
Examining data/libdbd-sqlite2-perl-0.38/sqliteInt.h
Examining data/libdbd-sqlite2-perl-0.38/opcodes.h
Examining data/libdbd-sqlite2-perl-0.38/date.c
Examining data/libdbd-sqlite2-perl-0.38/update.c
Examining data/libdbd-sqlite2-perl-0.38/insert.c
Examining data/libdbd-sqlite2-perl-0.38/pragma.c
Examining data/libdbd-sqlite2-perl-0.38/expr.c
Examining data/libdbd-sqlite2-perl-0.38/copy.c
Examining data/libdbd-sqlite2-perl-0.38/hash.c
Examining data/libdbd-sqlite2-perl-0.38/func.c

FINAL RESULTS:

data/libdbd-sqlite2-perl-0.38/btree.c:847: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(pP1->zMagic, zMagicHeader);
data/libdbd-sqlite2-perl-0.38/build.c:849: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(zStmt, p->iDb==1 ? "CREATE TEMP TABLE " : "CREATE TABLE ");
data/libdbd-sqlite2-perl-0.38/build.c:854: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(&zStmt[k], zSep);
data/libdbd-sqlite2-perl-0.38/build.c:859: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(&zStmt[k], zEnd);
data/libdbd-sqlite2-perl-0.38/build.c:1600: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(pIndex->zName, zName);
data/libdbd-sqlite2-perl-0.38/func.c:544: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(p->z, argv[0]);
data/libdbd-sqlite2-perl-0.38/insert.c:805: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(zErrMsg, pIdx->nColumn>1 ? "columns " : "column ");
data/libdbd-sqlite2-perl-0.38/insert.c:819:13:  [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(&zErrMsg[n1], zCol);
data/libdbd-sqlite2-perl-0.38/insert.c:823: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(&zErrMsg[n1], 
data/libdbd-sqlite2-perl-0.38/os.c:99:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TRACE1(X)         fprintf(stderr,X)
data/libdbd-sqlite2-perl-0.38/os.c:100:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TRACE2(X,Y)       fprintf(stderr,X,Y)
data/libdbd-sqlite2-perl-0.38/os.c:101:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TRACE3(X,Y,Z)     fprintf(stderr,X,Y,Z)
data/libdbd-sqlite2-perl-0.38/os.c:102:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TRACE4(X,Y,Z,A)   fprintf(stderr,X,Y,Z,A)
data/libdbd-sqlite2-perl-0.38/os.c:103:27:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TRACE5(X,Y,Z,A,B) fprintf(stderr,X,Y,Z,A,B)
data/libdbd-sqlite2-perl-0.38/os.c:408:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return access(zFilename, 0)==0;
data/libdbd-sqlite2-perl-0.38/os.c:414:10:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  return access(zFilename, 0)==0;
data/libdbd-sqlite2-perl-0.38/os.c:592:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if( access(zFilename, 0)==0 ){
data/libdbd-sqlite2-perl-0.38/os.c:813:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if( access(azDirs[i], 07) ) continue;
data/libdbd-sqlite2-perl-0.38/os.c:818:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(zBuf, "%s/"TEMP_FILE_PREFIX, zDir);
data/libdbd-sqlite2-perl-0.38/os.c:825:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  }while( access(zBuf,0)==0 );
data/libdbd-sqlite2-perl-0.38/os.c:844:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(zBuf, "%s\\"TEMP_FILE_PREFIX, zDir);
data/libdbd-sqlite2-perl-0.38/os.c:879: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(zTempPath, zdirName);
data/libdbd-sqlite2-perl-0.38/os.c:893:5:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
    sprintf(zBuf, "%s"TEMP_FILE_PREFIX, zDir);
data/libdbd-sqlite2-perl-0.38/pager.c:36:47:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TRACE1(X)     if( pPager==mainPager ) fprintf(stderr,X)
data/libdbd-sqlite2-perl-0.38/pager.c:37:47:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TRACE2(X,Y)   if( pPager==mainPager ) fprintf(stderr,X,Y)
data/libdbd-sqlite2-perl-0.38/pager.c:38:47:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define TRACE3(X,Y,Z) if( pPager==mainPager ) fprintf(stderr,X,Y,Z)
data/libdbd-sqlite2-perl-0.38/pager.c:964: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(pPager->zFilename, zFullPathname);
data/libdbd-sqlite2-perl-0.38/pager.c:965: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(pPager->zDirectory, zFullPathname);
data/libdbd-sqlite2-perl-0.38/pager.c:968: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(pPager->zJournal, zFullPathname);
data/libdbd-sqlite2-perl-0.38/table.c: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(z, colv[i]);
data/libdbd-sqlite2-perl-0.38/table.c:106: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(z, argv[i]);
data/libdbd-sqlite2-perl-0.38/util.c:215: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(zNew, *pz);
data/libdbd-sqlite2-perl-0.38/util.c:227:14:  [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).
  if( zNew ) strcpy(zNew, z);
data/libdbd-sqlite2-perl-0.38/util.c:311:14:  [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).
  if( zNew ) strcpy(zNew, z);
data/libdbd-sqlite2-perl-0.38/util.c:351: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(zResult, zFirst);
data/libdbd-sqlite2-perl-0.38/util.c:355: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(zResult, z);
data/libdbd-sqlite2-perl-0.38/vacuum.c:179:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(zBuf,"PRAGMA %s=%s;", p->zPragma, argv[0]);
data/libdbd-sqlite2-perl-0.38/vacuum.c:259: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(zTemp, zFilename);
data/libdbd-sqlite2-perl-0.38/vacuum.c:289:5:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
    sprintf(zBuf, "PRAGMA %s;", zPragma[i]);
data/libdbd-sqlite2-perl-0.38/os.c:1726:7:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
      InitializeCriticalSection(&cs);
data/libdbd-sqlite2-perl-0.38/os.c:1732:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(&cs);
data/libdbd-sqlite2-perl-0.38/attach.c:77: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(aNew, db->aDb, sizeof(db->aDb[0])*2);
data/libdbd-sqlite2-perl-0.38/btree.c:144: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 zMagic[MAGIC_SIZE]; /* String that identifies the file as a database */
data/libdbd-sqlite2-perl-0.38/btree.c:246: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 aPayload[MX_LOCAL_PAYLOAD];  /* Key and data */
data/libdbd-sqlite2-perl-0.38/btree.c:279: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 aPayload[OVERFLOW_SIZE];
data/libdbd-sqlite2-perl-0.38/btree.c:323: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 aDisk[SQLITE_PAGE_SIZE];  /* Page data stored on disk */
data/libdbd-sqlite2-perl-0.38/btree.c:424: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 newPage[SQLITE_USABLE_SIZE];
data/libdbd-sqlite2-perl-0.38/btree.c:430: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(newPage, pPage->u.aDisk, pc);
data/libdbd-sqlite2-perl-0.38/btree.c:441: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(&newPage[pc], pCell, n);
data/libdbd-sqlite2-perl-0.38/btree.c:446: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(pPage->u.aDisk, newPage, pc);
data/libdbd-sqlite2-perl-0.38/btree.c:1128: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(pTempCur, pCur, sizeof(*pCur));
data/libdbd-sqlite2-perl-0.38/btree.c:1189: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(zBuf, &aPayload[offset], a);
data/libdbd-sqlite2-perl-0.38/btree.c:1214: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(zBuf, &pOvfl->aPayload[offset], a);
data/libdbd-sqlite2-perl-0.38/btree.c:1959: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(pSpace, pPayload, n);
data/libdbd-sqlite2-perl-0.38/btree.c:2071: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(&pPage->u.aDisk[idx], pCell, sz);
data/libdbd-sqlite2-perl-0.38/btree.c:2106: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(pTo->u.aDisk, pFrom->u.aDisk, SQLITE_USABLE_SIZE);
data/libdbd-sqlite2-perl-0.38/btree.c:2237: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(pPage, pChild, SQLITE_USABLE_SIZE);
data/libdbd-sqlite2-perl-0.38/btree.c:2402: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(&aTemp[i], apDiv[i], szCell[nCell]);
data/libdbd-sqlite2-perl-0.38/btree.c:2916: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(pNew, pOvfl, SQLITE_USABLE_SIZE);
data/libdbd-sqlite2-perl-0.38/btree.c:2959: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(pPage, pPageFrom, SQLITE_USABLE_SIZE);
data/libdbd-sqlite2-perl-0.38/btree.c:3040: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 range[20];
data/libdbd-sqlite2-perl-0.38/btree.c:3041: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 payload[20];
data/libdbd-sqlite2-perl-0.38/btree.c:3052: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(range,"%d..%d", idx, idx+sz-1);
data/libdbd-sqlite2-perl-0.38/btree.c:3055: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(payload, pCell->aPayload, sz);
data/libdbd-sqlite2-perl-0.38/btree.c:3081: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(range,"%d..%d", idx, idx+p->iSize-1);
data/libdbd-sqlite2-perl-0.38/btree.c:3194: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 zBuf[100];
data/libdbd-sqlite2-perl-0.38/btree.c:3195: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(zBuf, "invalid page number %d", iPage);
data/libdbd-sqlite2-perl-0.38/btree.c:3200: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 zBuf[100];
data/libdbd-sqlite2-perl-0.38/btree.c:3201: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(zBuf, "2nd reference to page %d", iPage);
data/libdbd-sqlite2-perl-0.38/btree.c:3220: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 zMsg[100];
data/libdbd-sqlite2-perl-0.38/btree.c:3224: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(zMsg, "%d pages missing from overflow list", N+1);
data/libdbd-sqlite2-perl-0.38/btree.c:3230: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(zMsg, "failed to get page %d", iPage);
data/libdbd-sqlite2-perl-0.38/btree.c:3298: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 zMsg[100];
data/libdbd-sqlite2-perl-0.38/btree.c:3299: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 zContext[100];
data/libdbd-sqlite2-perl-0.38/btree.c:3300: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 hit[SQLITE_USABLE_SIZE];
data/libdbd-sqlite2-perl-0.38/btree.c:3307: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(zContext, "On tree page %d: ", iPage);
data/libdbd-sqlite2-perl-0.38/btree.c:3309: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(zMsg, "unable to get the page. error code=%d", rc);
data/libdbd-sqlite2-perl-0.38/btree.c:3314: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(zMsg, "initPage() returns error code %d", rc);
data/libdbd-sqlite2-perl-0.38/btree.c:3325: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(zKey1, zLowerBound, nLower);
data/libdbd-sqlite2-perl-0.38/btree.c:3340: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(zContext, "On page %d cell %d: ", iPage, i);
data/libdbd-sqlite2-perl-0.38/btree.c:3368: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(zContext, "On page %d at right child: ", iPage);
data/libdbd-sqlite2-perl-0.38/btree.c:3390: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(zMsg, "Unused space at byte %d of page %d", i, iPage);
data/libdbd-sqlite2-perl-0.38/btree.c:3394: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(zMsg, "Multiple uses for byte %d of page %d", i, iPage);
data/libdbd-sqlite2-perl-0.38/btree.c:3404: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(zMsg, "free space (%d) greater than max (%d)", pPage->nFree,
data/libdbd-sqlite2-perl-0.38/btree.c:3461: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 zBuf[100];
data/libdbd-sqlite2-perl-0.38/btree.c:3462: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(zBuf, "Page %d is never used", i);
data/libdbd-sqlite2-perl-0.38/btree.c:3471: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 zBuf[100];
data/libdbd-sqlite2-perl-0.38/btree.c:3472: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(zBuf, 
data/libdbd-sqlite2-perl-0.38/btree.c:3507: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(pBtTo->page1, pBtFrom->page1, SQLITE_USABLE_SIZE);
data/libdbd-sqlite2-perl-0.38/btree_rb.c:281: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/libdbd-sqlite2-perl-0.38/btree_rb.c:288: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", pNode);
data/libdbd-sqlite2-perl-0.38/btree_rb.c:361: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 buf[128];
data/libdbd-sqlite2-perl-0.38/btree_rb.c:362: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(buf, "Red node with red child at %p\n", pNode);
data/libdbd-sqlite2-perl-0.38/btree_rb.c:381: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[128];
data/libdbd-sqlite2-perl-0.38/btree_rb.c:382:13:  [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, "Different black-heights at %p\n", pNode);
data/libdbd-sqlite2-perl-0.38/btree_rb.c:768: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(pData, pDataInput, nData);
data/libdbd-sqlite2-perl-0.38/btree_rb.c:788: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(pNode->pKey, pKey, nKey);
data/libdbd-sqlite2-perl-0.38/btree_rb.c:825: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( pOp->pKey, pNode->pKey, pOp->nKey );
data/libdbd-sqlite2-perl-0.38/btree_rb.c:841: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( pOp->pKey, pCur->pNode->pKey, pOp->nKey );
data/libdbd-sqlite2-perl-0.38/btree_rb.c:1179: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(zBuf, ((char*)pCur->pNode->pKey)+offset, amt);
data/libdbd-sqlite2-perl-0.38/btree_rb.c:1181: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(zBuf, ((char*)pCur->pNode->pKey)+offset, pCur->pNode->nKey-offset);
data/libdbd-sqlite2-perl-0.38/btree_rb.c:1201: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(zBuf, ((char*)pCur->pNode->pData)+offset, amt);
data/libdbd-sqlite2-perl-0.38/btree_rb.c:1203: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(zBuf, ((char*)pCur->pNode->pData)+offset ,pCur->pNode->nData-offset);
data/libdbd-sqlite2-perl-0.38/btree_rb.c:1227: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( aMeta, tree->aMetaData, sizeof(int) * SQLITE_N_BTREE_META );
data/libdbd-sqlite2-perl-0.38/btree_rb.c:1233: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( tree->aMetaData, aMeta, sizeof(int) * SQLITE_N_BTREE_META );
data/libdbd-sqlite2-perl-0.38/build.c:278: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(db->aDbStatic, db->aDb, 2*sizeof(db->aDb[0]));
data/libdbd-sqlite2-perl-0.38/build.c:1397: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(z, pTo->z, pTo->n);
data/libdbd-sqlite2-perl-0.38/build.c:1425: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(z, pToCol->a[i].zName, n);
data/libdbd-sqlite2-perl-0.38/build.c:1551: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 zBuf[30];
data/libdbd-sqlite2-perl-0.38/build.c:1555: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(zBuf,"%d)",n);
data/libdbd-sqlite2-perl-0.38/date.c:460: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 *z, zBuf[30];
data/libdbd-sqlite2-perl-0.38/date.c:681: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 zBuf[100];
data/libdbd-sqlite2-perl-0.38/date.c:683: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(zBuf, "%04d-%02d-%02d %02d:%02d:%02d",x.Y, x.M, x.D, x.h, x.m,
data/libdbd-sqlite2-perl-0.38/date.c:697: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 zBuf[100];
data/libdbd-sqlite2-perl-0.38/date.c:699: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(zBuf, "%02d:%02d:%02d", x.h, x.m, (int)x.s);
data/libdbd-sqlite2-perl-0.38/date.c:712: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 zBuf[100];
data/libdbd-sqlite2-perl-0.38/date.c:714: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(zBuf, "%04d-%02d-%02d", x.Y, x.M, x.D);
data/libdbd-sqlite2-perl-0.38/date.c:743: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 zBuf[100];
data/libdbd-sqlite2-perl-0.38/date.c:792:20:  [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.
        case 'd':  sprintf(&z[j],"%02d",x.D); j+=2; break;
data/libdbd-sqlite2-perl-0.38/date.c:796: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(&z[j],"%02d.%03d",s,ms);
data/libdbd-sqlite2-perl-0.38/date.c:800:20:  [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.
        case 'H':  sprintf(&z[j],"%02d",x.h); j+=2; break;
data/libdbd-sqlite2-perl-0.38/date.c:813:13:  [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(&z[j],"%02d",(n+7-wd)/7);
data/libdbd-sqlite2-perl-0.38/date.c:816:13:  [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(&z[j],"%03d",n+1);
data/libdbd-sqlite2-perl-0.38/date.c:821:20:  [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.
        case 'J':  sprintf(&z[j],"%.16g",x.rJD); j+=strlen(&z[j]); break;
data/libdbd-sqlite2-perl-0.38/date.c:822:20:  [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.
        case 'm':  sprintf(&z[j],"%02d",x.M); j+=2; break;
data/libdbd-sqlite2-perl-0.38/date.c:823:20:  [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.
        case 'M':  sprintf(&z[j],"%02d",x.m); j+=2; break;
data/libdbd-sqlite2-perl-0.38/date.c:825: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(&z[j],"%d",(int)((x.rJD-2440587.5)*86400.0 + 0.5));
data/libdbd-sqlite2-perl-0.38/date.c:829:20:  [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.
        case 'S':  sprintf(&z[j],"%02d",(int)(x.s+0.5)); j+=2; break;
data/libdbd-sqlite2-perl-0.38/date.c:831:20:  [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.
        case 'Y':  sprintf(&z[j],"%04d",x.Y); j+=strlen(&z[j]); break;
data/libdbd-sqlite2-perl-0.38/encode.c:198: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 in[30000];
data/libdbd-sqlite2-perl-0.38/encode.c:199: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 out[33000];
data/libdbd-sqlite2-perl-0.38/expr.c:125: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(pNew, p, sizeof(*pNew));
data/libdbd-sqlite2-perl-0.38/expr.c:341: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).
        *pValue = atoi(p->token.z);
data/libdbd-sqlite2-perl-0.38/expr.c:352: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).
        *pValue = atoi(p->token.z);
data/libdbd-sqlite2-perl-0.38/expr.c:1055:40:  [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).
        sqliteVdbeAddOp(v, OP_Integer, atoi(pExpr->token.z), 0);
data/libdbd-sqlite2-perl-0.38/expr.c:1115: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(z, "-%.*s", p->n, p->z);
data/libdbd-sqlite2-perl-0.38/expr.c:1117: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).
          sqliteVdbeAddOp(v, OP_Integer, atoi(z), 0);
data/libdbd-sqlite2-perl-0.38/func.c:106: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).
  p1 = atoi(argv[1]?argv[1]:0);
data/libdbd-sqlite2-perl-0.38/func.c:107: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).
  p2 = atoi(argv[2]?argv[2]:0);
data/libdbd-sqlite2-perl-0.38/func.c:145: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 zBuf[100];
data/libdbd-sqlite2-perl-0.38/func.c:148: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).
  n = argc==2 ? atoi(argv[1]) : 0;
data/libdbd-sqlite2-perl-0.38/func.c:152: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(zBuf,"%.*f",n,r);
data/libdbd-sqlite2-perl-0.38/func.c:325: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 zResult[8];
data/libdbd-sqlite2-perl-0.38/func.c:372: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 zBuf[1000];
data/libdbd-sqlite2-perl-0.38/func.c:374: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).
    iMin = atoi(argv[0]);
data/libdbd-sqlite2-perl-0.38/func.c:381: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).
    iMax = atoi(argv[1]);
data/libdbd-sqlite2-perl-0.38/func.c:508: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 zBuf[28];   /* Space that can be used for storage */
data/libdbd-sqlite2-perl-0.38/hash.c:322: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((void*)new_elem->pKey, pKey, nKey);
data/libdbd-sqlite2-perl-0.38/insert.c:804: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 zErrMsg[200];
data/libdbd-sqlite2-perl-0.38/insert.c:811:13:  [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(&zErrMsg[n1], ", ");
data/libdbd-sqlite2-perl-0.38/insert.c:815:13:  [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(&zErrMsg[n1], "...");
data/libdbd-sqlite2-perl-0.38/main.c:83: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).
        db->init.iDb = atoi(argv[4]);
data/libdbd-sqlite2-perl-0.38/main.c:85: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).
        db->init.newTnum = atoi(argv[2]);
data/libdbd-sqlite2-perl-0.38/main.c:101: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).
        iDb = atoi(argv[4]);
data/libdbd-sqlite2-perl-0.38/main.c:112: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).
          pIndex->tnum = atoi(argv[2]);
data/libdbd-sqlite2-perl-0.38/main.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 const *azArg[6];
data/libdbd-sqlite2-perl-0.38/main.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 zDbNum[30];
data/libdbd-sqlite2-perl-0.38/main.c:243: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(zDbNum, "%d", iDb);
data/libdbd-sqlite2-perl-0.38/os.c:465: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).
  id->fd = open(zFilename, O_RDWR|O_CREAT|O_LARGEFILE|O_BINARY, 0644);
data/libdbd-sqlite2-perl-0.38/os.c:472: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).
    id->fd = open(zFilename, O_RDONLY|O_LARGEFILE|O_BINARY);
data/libdbd-sqlite2-perl-0.38/os.c:596: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).
  id->fd = open(zFilename,
data/libdbd-sqlite2-perl-0.38/os.c:684: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).
  id->fd = open(zFilename, O_RDONLY|O_LARGEFILE|O_BINARY);
data/libdbd-sqlite2-perl-0.38/os.c:772:15:  [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).
  id->dirfd = open(zDirname, O_RDONLY|O_BINARY, 0644);
data/libdbd-sqlite2-perl-0.38/os.c:834: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 zTempPath[SQLITE_TEMPNAME_SIZE];
data/libdbd-sqlite2-perl-0.38/os.c:861: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 zTempPath[SQLITE_TEMPNAME_SIZE];
data/libdbd-sqlite2-perl-0.38/os.c:862: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 zdirName[32];
data/libdbd-sqlite2-perl-0.38/os.c:1653: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(&zBuf[sizeof(time_t)], &pid, sizeof(pid));
data/libdbd-sqlite2-perl-0.38/os.c:1664: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(&zBuf[sizeof(UnsignedWide)], &pid, sizeof(pid));
data/libdbd-sqlite2-perl-0.38/os.c:1776: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 zBuf[5000];
data/libdbd-sqlite2-perl-0.38/os.c:1795: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 zBuf[_MAX_PATH+1];
data/libdbd-sqlite2-perl-0.38/os.c:1802: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 zBuf[_MAX_PATH+1];
data/libdbd-sqlite2-perl-0.38/pager.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 aData[SQLITE_PAGE_SIZE];   /* Original data for page pgno */
data/libdbd-sqlite2-perl-0.38/pager.c:320: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 ac[4];
data/libdbd-sqlite2-perl-0.38/pager.c:321: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(ac, &res, 4);
data/libdbd-sqlite2-perl-0.38/pager.c:338: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 ac[4];
data/libdbd-sqlite2-perl-0.38/pager.c:360: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(ac, &val, 4);
data/libdbd-sqlite2-perl-0.38/pager.c:571: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(PGHDR_TO_DATA(pPg), pgRec.aData, SQLITE_PAGE_SIZE);
data/libdbd-sqlite2-perl-0.38/pager.c:638: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 aMagic[sizeof(aJournalMagic1)];
data/libdbd-sqlite2-perl-0.38/pager.c:730: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 zBuf[SQLITE_PAGE_SIZE];
data/libdbd-sqlite2-perl-0.38/pager.c:742: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(PGHDR_TO_DATA(pPg), zBuf, SQLITE_PAGE_SIZE);
data/libdbd-sqlite2-perl-0.38/pager.c:930: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 zTemp[SQLITE_TEMPNAME_SIZE];
data/libdbd-sqlite2-perl-0.38/pager.c:970:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(&pPager->zJournal[nameLen], "-journal");
data/libdbd-sqlite2-perl-0.38/pager.c:1896: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(pPage, pData, SQLITE_PAGE_SIZE);
data/libdbd-sqlite2-perl-0.38/pager.c:2112: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 zTemp[SQLITE_TEMPNAME_SIZE];
data/libdbd-sqlite2-perl-0.38/parse.c:2078: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).
{ yygotominor.yy372 = atoi(yymsp[0].minor.yy0.z); }
data/libdbd-sqlite2-perl-0.38/parse.c:2083: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).
{ yygotominor.yy372 = atoi(yymsp[0].minor.yy0.z); }
data/libdbd-sqlite2-perl-0.38/parse.c:2089: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).
{ yygotominor.yy372 = -atoi(yymsp[0].minor.yy0.z); }
data/libdbd-sqlite2-perl-0.38/pragma.c:27: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).
    return atoi(z);
data/libdbd-sqlite2-perl-0.38/pragma.c:61: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).
    return atoi(z);
data/libdbd-sqlite2-perl-0.38/pragma.c:213: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 size = atoi(zRight);
data/libdbd-sqlite2-perl-0.38/pragma.c:253: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 size = atoi(zRight);
data/libdbd-sqlite2-perl-0.38/printf.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 buf[etBUFSIZE];       /* Conversion buffer */
data/libdbd-sqlite2-perl-0.38/printf.c:670: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(pM->zText, pM->zBase, pM->nChar);
data/libdbd-sqlite2-perl-0.38/printf.c:679: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(&pM->zText[pM->nChar], zNewText, nNewChar);
data/libdbd-sqlite2-perl-0.38/printf.c:707: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(sM.zText, sM.zBase, sM.nChar+1);
data/libdbd-sqlite2-perl-0.38/printf.c:727: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 zBase[1000];
data/libdbd-sqlite2-perl-0.38/printf.c:738: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 zBase[1000];
data/libdbd-sqlite2-perl-0.38/printf.c:752: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 zBuf[200];
data/libdbd-sqlite2-perl-0.38/printf.c:764: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 zBuf[200];
data/libdbd-sqlite2-perl-0.38/random.c:46: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 s[256];          /* State variables */
data/libdbd-sqlite2-perl-0.38/random.c:60: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 k[256];
data/libdbd-sqlite2-perl-0.38/select.c:756: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 zName[30];
data/libdbd-sqlite2-perl-0.38/select.c:758: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(zName, "column%d", i+1);
data/libdbd-sqlite2-perl-0.38/select.c:816: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 zBuf[30];
data/libdbd-sqlite2-perl-0.38/select.c:817: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(zBuf,"_%d",++cnt);
data/libdbd-sqlite2-perl-0.38/select.c:826: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 zBuf[30];
data/libdbd-sqlite2-perl-0.38/select.c:827: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(zBuf, "column%d", i+1);
data/libdbd-sqlite2-perl-0.38/select.c:879: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 zFakeName[60];
data/libdbd-sqlite2-perl-0.38/select.c:880: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(zFakeName, "sqlite_subquery_%p_",
data/libdbd-sqlite2-perl-0.38/util.c:185: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(p, oldP, n>oldN ? oldN : n);
data/libdbd-sqlite2-perl-0.38/util.c:235: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(zNew, z, n);
data/libdbd-sqlite2-perl-0.38/util.c:319: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(zNew, z, n);
data/libdbd-sqlite2-perl-0.38/util.c:842:5:  [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(z, "~~~~~~~~~~~~");
data/libdbd-sqlite2-perl-0.38/vacuum.c:64: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(&p->z[p->nUsed], zText, nText+1);
data/libdbd-sqlite2-perl-0.38/vacuum.c:173: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 zBuf[200];
data/libdbd-sqlite2-perl-0.38/vacuum.c:287: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 zBuf[200];
data/libdbd-sqlite2-perl-0.38/vdbe.c:164: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(pElem->zKey, zKey, nKey);
data/libdbd-sqlite2-perl-0.38/vdbe.c:229: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(z, pStack->z, pStack->n);
data/libdbd-sqlite2-perl-0.38/vdbe.c:253: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(z, pStack->z, pStack->n);
data/libdbd-sqlite2-perl-0.38/vdbe.c:493: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 zBuf[100];            /* Space to sprintf() an integer */
data/libdbd-sqlite2-perl-0.38/vdbe.c:763: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(pTos, pFrom, sizeof(*pFrom)-NBFS);
data/libdbd-sqlite2-perl-0.38/vdbe.c:769: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(pTos->zShort, pFrom->zShort, pTos->n);
data/libdbd-sqlite2-perl-0.38/vdbe.c:774: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(pTos->z, pFrom->z, pFrom->n);
data/libdbd-sqlite2-perl-0.38/vdbe.c:940: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(&zNew[j], pTerm->z, pTerm->n-1);
data/libdbd-sqlite2-perl-0.38/vdbe.c:943: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(&zNew[j], zSep, nSep);
data/libdbd-sqlite2-perl-0.38/vdbe.c:1843: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 zTemp[NBFS];    /* Temp space for small records */
data/libdbd-sqlite2-perl-0.38/vdbe.c:1916: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(&zNewRecord[j], &p->uniqueCnt, sizeof(p->uniqueCnt));
data/libdbd-sqlite2-perl-0.38/vdbe.c:1922: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(&zNewRecord[j], pRec->z, pRec->n);
data/libdbd-sqlite2-perl-0.38/vdbe.c:1931: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(pTos->zShort, zTemp, nByte);
data/libdbd-sqlite2-perl-0.38/vdbe.c:2023: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 zTemp[NBFS];
data/libdbd-sqlite2-perl-0.38/vdbe.c:2078: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(&zNewKey[j], pRec->zShort, pRec->n);
data/libdbd-sqlite2-perl-0.38/vdbe.c:2083: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(&zNewKey[j], pRec->z, pRec->n);
data/libdbd-sqlite2-perl-0.38/vdbe.c:2093: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(&zNewKey[j], &iKey, sizeof(u32));
data/libdbd-sqlite2-perl-0.38/vdbe.c:2104: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(pTos->zShort, zTemp, nByte);
data/libdbd-sqlite2-perl-0.38/vdbe.c:2965: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(pC->pData, pTos->z, pC->nData);
data/libdbd-sqlite2-perl-0.38/vdbe.c:3126: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 aHdr[10];
data/libdbd-sqlite2-perl-0.38/vdbe.c:3175: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(aHdr, &zRec[idxWidth*p2], idxWidth*2);
data/libdbd-sqlite2-perl-0.38/vdbe.c:3966: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(z, pRec->z, pRec->n);
data/libdbd-sqlite2-perl-0.38/vdbe.c:4022: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(&zNewKey[j], pRec->z, pRec->n-1);
data/libdbd-sqlite2-perl-0.38/vdbe.c:4140: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).
    p->pFile = fopen(pOp->p3, "r");
data/libdbd-sqlite2-perl-0.38/vdbe.c:4337: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(pMem->z, pTos->z, pMem->n);
data/libdbd-sqlite2-perl-0.38/vdbe.c:4362: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(pTos, &p->aMem[i], sizeof(pTos[0])-NBFS);;
data/libdbd-sqlite2-perl-0.38/vdbe.c:4828: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 zBuf[100];
data/libdbd-sqlite2-perl-0.38/vdbeInt.h:118: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 zShort[NBFS];  /* Space for short strings */
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:424: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(p->s.zShort, zResult, n);
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:431: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(p->s.z, zResult, n);
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:512: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 zPtr[40];
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:514: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(zPtr, "ptr(%#lx)", (long)pOp->p3);
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:564: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(p->zArgv[0],"%d",i);
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:565: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(p->zArgv[2],"%d", p->aOp[i].p1);
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:566: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(p->zArgv[3],"%d", p->aOp[i].p2);
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:568: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(p->aStack[4].zShort, "ptr(%#lx)", (long)p->aOp[i].p3);
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:892:17:  [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 *out = fopen("vdbe_profile.out", "a");
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:969:23:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    if( p->azVar[i] ) memcpy(p->azVar[i], zVal, len);
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:1032:6:  [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 zBuf[sizeof(int)];
data/libdbd-sqlite2-perl-0.38/attach.c:102: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).
      nKey = strlen(zKey);
data/libdbd-sqlite2-perl-0.38/attach.c:149: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(pDb->zName)!=pDbname->n ) continue;
data/libdbd-sqlite2-perl-0.38/build.c:111: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).
    p = sqliteHashFind(&db->aDb[j].tblHash, zName, strlen(zName)+1);
data/libdbd-sqlite2-perl-0.38/build.c:163: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).
    p = sqliteHashFind(&db->aDb[j].idxHash, zName, strlen(zName)+1);
data/libdbd-sqlite2-perl-0.38/build.c:182: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(p->zName)+1, 0);
data/libdbd-sqlite2-perl-0.38/build.c:185: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).
                     strlen(pOld->zName)+1, pOld);
data/libdbd-sqlite2-perl-0.38/build.c:340: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).
                           pFKey->zTo, strlen(pFKey->zTo)+1)!=pFKey );
data/libdbd-sqlite2-perl-0.38/build.c:366: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).
  pOld = sqliteHashInsert(&db->aDb[i].tblHash, p->zName, strlen(p->zName)+1, 0);
data/libdbd-sqlite2-perl-0.38/build.c:369: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 nTo = strlen(pF1->zTo) + 1;
data/libdbd-sqlite2-perl-0.38/build.c:850: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).
  k = strlen(zStmt);
data/libdbd-sqlite2-perl-0.38/build.c:855: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).
    k += strlen(&zStmt[k]);
data/libdbd-sqlite2-perl-0.38/build.c:944: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).
      n = z ? strlen(z) : 0;
data/libdbd-sqlite2-perl-0.38/build.c:973: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).
                            p->zName, strlen(p->zName)+1, p);
data/libdbd-sqlite2-perl-0.38/build.c:979: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 nTo = strlen(pFKey->zTo) + 1;
data/libdbd-sqlite2-perl-0.38/build.c:1386: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).
      nByte += strlen(pToCol->a[i].zName) + 1;
data/libdbd-sqlite2-perl-0.38/build.c:1423: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 n = strlen(pToCol->a[i].zName);
data/libdbd-sqlite2-perl-0.38/build.c:1587: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).
    nullId.n = strlen(nullId.z);
data/libdbd-sqlite2-perl-0.38/build.c:1595: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).
  pIndex = sqliteMalloc( sizeof(Index) + strlen(zName) + 1 +
data/libdbd-sqlite2-perl-0.38/build.c:1630: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).
                         pIndex->zName, strlen(pIndex->zName)+1, pIndex);
data/libdbd-sqlite2-perl-0.38/date.c:594: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).
      n = strlen(z);
data/libdbd-sqlite2-perl-0.38/date.c:797: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).
          j += strlen(&z[j]);
data/libdbd-sqlite2-perl-0.38/date.c:821: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).
        case 'J':  sprintf(&z[j],"%.16g",x.rJD); j+=strlen(&z[j]); break;
data/libdbd-sqlite2-perl-0.38/date.c:826: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).
          j += strlen(&z[j]);
data/libdbd-sqlite2-perl-0.38/date.c:831: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).
        case 'Y':  sprintf(&z[j],"%04d",x.Y); j+=strlen(&z[j]); break;
data/libdbd-sqlite2-perl-0.38/dbdimp.c: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).
    chunk = NEWSV(0, strlen(statement));
data/libdbd-sqlite2-perl-0.38/dbdimp.c:497: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).
            size_t len = strlen(val);
data/libdbd-sqlite2-perl-0.38/dbdimp.c:617: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).
        return newSVpv(sqlite_version, strlen(sqlite_version));
data/libdbd-sqlite2-perl-0.38/dbdimp.c:620: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).
        return newSVpv(sqlite_encoding, strlen(sqlite_encoding));
data/libdbd-sqlite2-perl-0.38/dbdimp.c:651: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 len = strlen(fieldname);
data/libdbd-sqlite2-perl-0.38/encode.c:218: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( nOut!=strlen(out) ){
data/libdbd-sqlite2-perl-0.38/encode.c:219:65:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      printf(" ERROR return value is %d instead of %d\n", nOut, strlen(out));
data/libdbd-sqlite2-perl-0.38/encode.c:227: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).
    printf("size %d->%d (max %d)", n, strlen(out)+1, m);
data/libdbd-sqlite2-perl-0.38/encode.c:228: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(out)+1>m ){
data/libdbd-sqlite2-perl-0.38/func.c:76: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(z);
data/libdbd-sqlite2-perl-0.38/func.c:111: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(z);
data/libdbd-sqlite2-perl-0.38/func.c:535: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(argv[0]);
data/libdbd-sqlite2-perl-0.38/func.c:551: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).
    sqlite_set_result_string(context, p->z, strlen(p->z));
data/libdbd-sqlite2-perl-0.38/func.c:650: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 n = strlen(azTypeFuncs[i]);
data/libdbd-sqlite2-perl-0.38/insert.c:806: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).
        n1 = strlen(zErrMsg);
data/libdbd-sqlite2-perl-0.38/insert.c:809: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).
          n2 = strlen(zCol);
data/libdbd-sqlite2-perl-0.38/main.c:1004: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).
  nName = strlen(zName);
data/libdbd-sqlite2-perl-0.38/main.c:1026: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).
  nName = strlen(zName);
data/libdbd-sqlite2-perl-0.38/main.c:1043: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).
  FuncDef *p = (FuncDef*)sqliteHashFind(&db->aFunc, zName, strlen(zName));
data/libdbd-sqlite2-perl-0.38/os.c:819:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    j = strlen(zBuf);
data/libdbd-sqlite2-perl-0.38/os.c:837: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).
    for(i=strlen(zTempPath); i>0 && zTempPath[i-1]=='\\'; i--){}
data/libdbd-sqlite2-perl-0.38/os.c:845:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    j = strlen(zBuf);
data/libdbd-sqlite2-perl-0.38/os.c:877: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).
        i = strlen(zdirName);
data/libdbd-sqlite2-perl-0.38/os.c:878: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).
        memmove(&(zTempPath[i+1]), zTempPath, strlen(zTempPath));
data/libdbd-sqlite2-perl-0.38/os.c:894:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    j = strlen(zBuf);
data/libdbd-sqlite2-perl-0.38/os.c:974:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  got = read(id->fd, pBuf, amt);
data/libdbd-sqlite2-perl-0.38/os.c:1676:3:  [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(ms*1000);
data/libdbd-sqlite2-perl-0.38/pager.c:953: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).
  nameLen = strlen(zFullPathname);
data/libdbd-sqlite2-perl-0.38/printf.c:539: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).
        length = strlen(bufpt);
data/libdbd-sqlite2-perl-0.38/printf.c:583: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).
          (*func)(arg, pItem->zDatabase, strlen(pItem->zDatabase));
data/libdbd-sqlite2-perl-0.38/printf.c:586: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).
        (*func)(arg, pItem->zName, strlen(pItem->zName));
data/libdbd-sqlite2-perl-0.38/select.c:163: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).
  dummy.n = strlen(zCol);
data/libdbd-sqlite2-perl-0.38/select.c:168: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).
  dummy.n = strlen(dummy.z);
data/libdbd-sqlite2-perl-0.38/select.c:171: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).
  dummy.n = strlen(dummy.z);
data/libdbd-sqlite2-perl-0.38/select.c:818: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).
          n = strlen(zBuf);
data/libdbd-sqlite2-perl-0.38/select.c:997: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).
            pRight->token.n = strlen(zName);
data/libdbd-sqlite2-perl-0.38/select.c:1004:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
              pLeft->token.n = strlen(zTabName);
data/libdbd-sqlite2-perl-0.38/select.c:1007: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).
              pExpr->span.n = strlen(pExpr->span.z);
data/libdbd-sqlite2-perl-0.38/table.c:77: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).
        z = malloc( strlen(colv[i])+1 );
data/libdbd-sqlite2-perl-0.38/table.c:101: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).
        z = malloc( strlen(argv[i])+1 );
data/libdbd-sqlite2-perl-0.38/tokenize.c:166:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        aKeywordTable[i].len = strlen(aKeywordTable[i].zName);
data/libdbd-sqlite2-perl-0.38/trigger.c:217:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                     nt->name, strlen(nt->name)+1, nt);
data/libdbd-sqlite2-perl-0.38/trigger.c:400: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).
  nName = strlen(zName);
data/libdbd-sqlite2-perl-0.38/trigger.c:481: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 nName = strlen(zName);
data/libdbd-sqlite2-perl-0.38/trigger.c:588: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).
    sDb.n = strlen(sDb.z);
data/libdbd-sqlite2-perl-0.38/util.c:209: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).
  zNew = malloc( strlen(*pz) + 1 );
data/libdbd-sqlite2-perl-0.38/util.c:226: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).
  zNew = sqliteMalloc_(strlen(z)+1, 0, zFile, line);
data/libdbd-sqlite2-perl-0.38/util.c:310: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).
  zNew = sqliteMallocRaw(strlen(z)+1);
data/libdbd-sqlite2-perl-0.38/util.c:340: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).
  nByte = strlen(zFirst) + 1;
data/libdbd-sqlite2-perl-0.38/util.c:343: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).
    nByte += strlen(z);
data/libdbd-sqlite2-perl-0.38/util.c:352: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).
  zResult += strlen(zResult);
data/libdbd-sqlite2-perl-0.38/util.c:356: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).
    zResult += strlen(zResult);
data/libdbd-sqlite2-perl-0.38/util.c:385: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( n<=0 ) n = strlen(z);
data/libdbd-sqlite2-perl-0.38/util.c:395: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( n<=0 ) n = strlen(z);
data/libdbd-sqlite2-perl-0.38/util.c:396:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(zResult, z, n);
data/libdbd-sqlite2-perl-0.38/util.c:490: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( n<=0 ) n = strlen(z);
data/libdbd-sqlite2-perl-0.38/util.c:765: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).
    a += strlen(&a[1]) + 2;
data/libdbd-sqlite2-perl-0.38/util.c:766: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).
    b += strlen(&b[1]) + 2;
data/libdbd-sqlite2-perl-0.38/vacuum.c:52: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( nText<0 ) nText = strlen(zText);
data/libdbd-sqlite2-perl-0.38/vacuum.c:177: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).
  assert( strlen(p->zPragma)<100 );
data/libdbd-sqlite2-perl-0.38/vacuum.c:178: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).
  assert( strlen(argv[0])<30 );
data/libdbd-sqlite2-perl-0.38/vacuum.c:256: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).
  nFilename = strlen(zFilename);
data/libdbd-sqlite2-perl-0.38/vacuum.c:288: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).
    assert( strlen(zPragma[i])<100 );
data/libdbd-sqlite2-perl-0.38/vdbe.c:207: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).
  pStack->n = strlen(pStack->zShort)+1;
data/libdbd-sqlite2-perl-0.38/vdbe.c:389:27:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  for(i=0; i<nBuf-1 && (c=getc(in))!=EOF; i++){
data/libdbd-sqlite2-perl-0.38/vdbe.c:394:13:  [1] (buffer) getc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        c = getc(in);
data/libdbd-sqlite2-perl-0.38/vdbe.c:688: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).
    pTos->n = strlen(pOp->p3)+1;
data/libdbd-sqlite2-perl-0.38/vdbe.c:705: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).
    pTos->n = strlen(z) + 1;
data/libdbd-sqlite2-perl-0.38/vdbe.c:913: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).
  nSep = strlen(zSep);
data/libdbd-sqlite2-perl-0.38/vdbe.c:1255:12:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
      goto mismatch;
data/libdbd-sqlite2-perl-0.38/vdbe.c:1263:14:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        goto mismatch;
data/libdbd-sqlite2-perl-0.38/vdbe.c:1269:14:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
        goto mismatch;
data/libdbd-sqlite2-perl-0.38/vdbe.c:1274:10:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
    goto mismatch;
data/libdbd-sqlite2-perl-0.38/vdbe.c:1280:1:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
mismatch:
data/libdbd-sqlite2-perl-0.38/vdbe.c:2050: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).
      len = strlen(z);
data/libdbd-sqlite2-perl-0.38/vdbe.c:3746: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).
    pTos->n = strlen(z) + 1;
data/libdbd-sqlite2-perl-0.38/vdbe.c:4000: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).
  nField = strlen(pOp->p3);
data/libdbd-sqlite2-perl-0.38/vdbe.c:4217: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).
  nDelim = strlen(zDelim);
data/libdbd-sqlite2-perl-0.38/vdbe.c:4285: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).
    pTos->n = strlen(z) + 1;
data/libdbd-sqlite2-perl-0.38/vdbe.c:4621: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).
    sqliteHashInsert(&p->aSet[i].hash, pOp->p3, strlen(pOp->p3)+1, p);
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:422: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( n<0 ) n = strlen(zResult);
data/libdbd-sqlite2-perl-0.38/vdbeaux.c:965: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(zVal)+1;

ANALYSIS SUMMARY:

Hits = 361
Lines analyzed = 41756 in approximately 1.45 seconds (28856 lines/second)
Physical Source Lines of Code (SLOC) = 28171
Hits@level = [0]  59 [1] 106 [2] 214 [3]   2 [4]  39 [5]   0
Hits@level+ = [0+] 420 [1+] 361 [2+] 255 [3+]  41 [4+]  39 [5+]   0
Hits/KSLOC@level+ = [0+] 14.9089 [1+] 12.8146 [2+] 9.05186 [3+] 1.4554 [4+] 1.3844 [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.