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/yubico-piv-tool-2.1.1/common/util.c
Examining data/yubico-piv-tool-2.1.1/common/util.h
Examining data/yubico-piv-tool-2.1.1/common/openssl-compat.h
Examining data/yubico-piv-tool-2.1.1/common/openssl-compat.c
Examining data/yubico-piv-tool-2.1.1/lib/ykpiv-config.h
Examining data/yubico-piv-tool-2.1.1/lib/ykpiv.h
Examining data/yubico-piv-tool-2.1.1/lib/util.c
Examining data/yubico-piv-tool-2.1.1/lib/ykpiv.c
Examining data/yubico-piv-tool-2.1.1/lib/tests/basic.c
Examining data/yubico-piv-tool-2.1.1/lib/tests/parse_key.c
Examining data/yubico-piv-tool-2.1.1/lib/tests/api.c
Examining data/yubico-piv-tool-2.1.1/lib/error.c
Examining data/yubico-piv-tool-2.1.1/lib/internal.c
Examining data/yubico-piv-tool-2.1.1/lib/internal.h
Examining data/yubico-piv-tool-2.1.1/lib/version.c
Examining data/yubico-piv-tool-2.1.1/ykcs11/utils.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/openssl_utils.c
Examining data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/obj_types.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/token.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/pkcs11y.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/objects.c
Examining data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c
Examining data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c
Examining data/yubico-piv-tool-2.1.1/ykcs11/utils.c
Examining data/yubico-piv-tool-2.1.1/ykcs11/debug.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/objects.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c
Examining data/yubico-piv-tool-2.1.1/ykcs11/openssl_types.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/token.c
Examining data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c
Examining data/yubico-piv-tool-2.1.1/ykcs11/openssl_utils.h
Examining data/yubico-piv-tool-2.1.1/ykcs11/ykcs11-config.h
Examining data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c
Examining data/yubico-piv-tool-2.1.1/tool/tests/test_inout.c
Examining data/yubico-piv-tool-2.1.1/tool/tests/parse_name.c
Examining data/yubico-piv-tool-2.1.1/tool/cmdline.c
Examining data/yubico-piv-tool-2.1.1/tool/cmdline.h

FINAL RESULTS:

data/yubico-piv-tool-2.1.1/common/util.c:125: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(name, orig_name);
data/yubico-piv-tool-2.1.1/common/util.c:219:11:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
          sprintf(tmp + i * step, "%02x%s", buf[i], space == true ? " " : "");
data/yubico-piv-tool-2.1.1/common/util.c:395:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
  ret = snprintf(prompt, sizeof(prompt), READ_PW_PROMPT_BASE, name);
data/yubico-piv-tool-2.1.1/lib/internal.c:729:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
   if (vsnprintf(rgsz_message, sizeof(rgsz_message), sz_format, vl) < 0) {
data/yubico-piv-tool-2.1.1/lib/tests/api.c:43:26:  [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 dprintf(fd, ...) fprintf(stdout, __VA_ARGS__)
data/yubico-piv-tool-2.1.1/lib/util.c:790:7:  [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.
      fprintf(stderr, sz_roca_format, state->serial, psz_msg);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:637: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(result, s);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1724:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat (my_argv, len > 1 ? "--" : "-");
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1725:7:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
      strcat (my_argv, fopt);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1729:9:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
        strcat (my_argv, farg);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1790: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 (additional_error, ADDITIONAL_ERROR);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1791:5:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
    strcat (additional_error, filename);
data/yubico-piv-tool-2.1.1/ykcs11/debug.h:40:5:  [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.
    fprintf (stderr, x, ##__VA_ARGS__);                                                       \
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c:49:26:  [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 dprintf(fd, ...) fprintf(stdout, __VA_ARGS__)
data/yubico-piv-tool-2.1.1/lib/internal.c:616:15:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  psz_value = getenv(sz_name);
data/yubico-piv-tool-2.1.1/lib/tests/api.c:922:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *confirmed = getenv("YKPIV_ENV_HWTESTS_CONFIRMED");
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1211:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
      c = getopt_long (argc, argv, "hVv::r:k::a:s:A:H:n:i:o:K:p:S:P:N:f:", long_options, &option_index);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c:830:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  char *confirmed = getenv("YKPIV_ENV_HWTESTS_CONFIRMED");
data/yubico-piv-tool-2.1.1/ykcs11/utils.c:79:3:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
  InitializeCriticalSection(mtx);
data/yubico-piv-tool-2.1.1/ykcs11/utils.c:123:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
  EnterCriticalSection(mutex);
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:114:21:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  const char *dbg = getenv("YKCS11_DBG");
data/yubico-piv-tool-2.1.1/common/openssl-compat.c:237: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.
	unsigned char seedmask[EVP_MAX_MD_SIZE];
data/yubico-piv-tool-2.1.1/common/openssl-compat.c:268:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(db + emlen - flen - mdlen, from, flen);
data/yubico-piv-tool-2.1.1/common/openssl-compat.c:302: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.
	unsigned char seed[EVP_MAX_MD_SIZE], phash[EVP_MAX_MD_SIZE];
data/yubico-piv-tool-2.1.1/common/util.c:74:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    file = fopen(file_name, mod);
data/yubico-piv-tool-2.1.1/common/util.c:116: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 name[1025];
data/yubico-piv-tool-2.1.1/common/util.c:169: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 raw_buf[YKPIV_OBJ_MAX_SIZE * 2 + 1];
data/yubico-piv-tool-2.1.1/common/util.c:199: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(buf, raw_buf, raw_len);
data/yubico-piv-tool-2.1.1/common/util.c:211: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 tmp[YKPIV_OBJ_MAX_SIZE * 3 + 1];
data/yubico-piv-tool-2.1.1/common/util.c:356:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[1024];
data/yubico-piv-tool-2.1.1/common/util.c:361: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(data, in, in_len);
data/yubico-piv-tool-2.1.1/common/util.c:375: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 prompt[sizeof(READ_PW_PROMPT_BASE) + 32] = {0};
data/yubico-piv-tool-2.1.1/common/util.c:555: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 n[256];
data/yubico-piv-tool-2.1.1/common/util.c:569: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 len_buf[5];
data/yubico-piv-tool-2.1.1/lib/internal.c:265: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(key_tmp, keyraw, cb_keysize);
data/yubico-piv-tool-2.1.1/lib/internal.c:267: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(key_tmp, keyraw + cb_keysize, cb_keysize);
data/yubico-piv-tool-2.1.1/lib/internal.c:269: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(key_tmp, keyraw + (2 * cb_keysize), cb_keysize);
data/yubico-piv-tool-2.1.1/lib/internal.c:322: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 buf[8] = { 0 };
data/yubico-piv-tool-2.1.1/lib/internal.c:332: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(out, in, inlen);
data/yubico-piv-tool-2.1.1/lib/internal.c:357: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 buf[8] = { 0 };
data/yubico-piv-tool-2.1.1/lib/internal.c:367: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(out, in, inlen);
data/yubico-piv-tool-2.1.1/lib/internal.c:412: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 tmp[DES_LEN_3DES] = { 0 };
data/yubico-piv-tool-2.1.1/lib/internal.c:563: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 sz_line[256];
data/yubico-piv-tool-2.1.1/lib/internal.c:566: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 sz_name[256] = { 0 };
data/yubico-piv-tool-2.1.1/lib/internal.c:567: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 sz_value[256] = { 0 };
data/yubico-piv-tool-2.1.1/lib/internal.c:570:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((pf = fopen(_CONFIG_FILE, "r"))) {
data/yubico-piv-tool-2.1.1/lib/internal.c:602: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 sz_name[256] = { 0 };
data/yubico-piv-tool-2.1.1/lib/internal.c:609: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 sz_value[100] = { 0 };
data/yubico-piv-tool-2.1.1/lib/internal.c:647: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 rgsz_message[4096];
data/yubico-piv-tool-2.1.1/lib/internal.h:177:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[0xff];
data/yubico-piv-tool-2.1.1/lib/internal.h:179: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 raw[0xff + 5];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:103: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 version[256];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:104:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char reader_buf[2048];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:152: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 reader_buf[2048];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:275: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 e[4];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:276: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 p[128];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:277: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 q[128];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:278: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 dmp1[128];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:279: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 dmq1[128];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:280: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 iqmp[128];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:334: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 secret[32];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:335: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 secret2[32];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:336:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[256];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:379: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 signature[1024];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:380: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 encoded[1024];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:381:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[1024];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:382: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 signinput[1024];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:383: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 rand[128];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:420: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 attest[2048];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:459: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 signature[1024];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:460: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 encoded[1024];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:461:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[1024];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:462: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 signinput[1024];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:463: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 rand[128];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:544: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 attest[2048];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:565:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char key[24];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:865:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[256];
data/yubico-piv-tool-2.1.1/lib/tests/api.c:866:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data_in[256] = {0};
data/yubico-piv-tool-2.1.1/lib/tests/parse_key.c:40:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char text[49];
data/yubico-piv-tool-2.1.1/lib/tests/parse_key.c:41:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const unsigned char formatted[24];
data/yubico-piv-tool-2.1.1/lib/tests/parse_key.c:59: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.
	unsigned char key[24];
data/yubico-piv-tool-2.1.1/lib/util.c:132: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(cardid->data, p_temp, YKPIV_CARDID_SIZE);
data/yubico-piv-tool-2.1.1/lib/util.c:169: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(buf, CHUID_TMPL, sizeof(CHUID_TMPL));
data/yubico-piv-tool-2.1.1/lib/util.c:170: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(buf + CHUID_GUID_OFFS, id, sizeof(id));
data/yubico-piv-tool-2.1.1/lib/util.c:197:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(ccc->data, buf + CCC_ID_OFFS, YKPIV_CCCID_SIZE);
data/yubico-piv-tool-2.1.1/lib/util.c:228: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(buf, CCC_TMPL, len);
data/yubico-piv-tool-2.1.1/lib/util.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(buf + CCC_ID_OFFS, id, YKPIV_CCCID_SIZE);
data/yubico-piv-tool-2.1.1/lib/util.c:332: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(pKey->cert, buf, cbBuf);
data/yubico-piv-tool-2.1.1/lib/util.c:392: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(*data, buf, cbBuf);
data/yubico-piv-tool-2.1.1/lib/util.c:456: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(&flags, p_item, cb_item);
data/yubico-piv-tool-2.1.1/lib/util.c:519: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(*containers, ptr, len);
data/yubico-piv-tool-2.1.1/lib/util.c:568: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(buf + offset, (uint8_t*)containers, data_len);
data/yubico-piv-tool-2.1.1/lib/util.c:650: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(pData + offset, ptr, len);
data/yubico-piv-tool-2.1.1/lib/util.c:720: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(buf + offset, data + data_offset, data_chunk);
data/yubico-piv-tool-2.1.1/lib/util.c:741: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_data[11];
data/yubico-piv-tool-2.1.1/lib/util.c:743:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[1024];
data/yubico-piv-tool-2.1.1/lib/util.c:922: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(ptr_modulus, data_ptr, cb_modulus);
data/yubico-piv-tool-2.1.1/lib/util.c:948: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(ptr_exp, data_ptr, cb_exp);
data/yubico-piv-tool-2.1.1/lib/util.c:989: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(ptr_point, data_ptr, cb_point);
data/yubico-piv-tool-2.1.1/lib/util.c:1059: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(&(config->pin_last_changed), p_item, cb_item);
data/yubico-piv-tool-2.1.1/lib/util.c:1075: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(config->mgm_key, p_item, cb_item);
data/yubico-piv-tool-2.1.1/lib/util.c:1200: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(mgm->data, p_item, cb_item);
data/yubico-piv-tool-2.1.1/lib/util.c:1276: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(mgm->data, mgm_key, sizeof(mgm_key));
data/yubico-piv-tool-2.1.1/lib/util.c:1310: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(&flags_1, p_item, cb_item);
data/yubico-piv-tool-2.1.1/lib/util.c:1346:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[0xff];
data/yubico-piv-tool-2.1.1/lib/util.c:1464: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(buf + offset, data, data_len);
data/yubico-piv-tool-2.1.1/lib/util.c:1566: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(metadata->pubkey, p, cb);
data/yubico-piv-tool-2.1.1/lib/util.c:1604: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_temp, p_item, cb_item);
data/yubico-piv-tool-2.1.1/lib/util.c:1633: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_temp, p_item, cb_item);
data/yubico-piv-tool-2.1.1/lib/util.c:1658: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_temp, p_item, cb_item);
data/yubico-piv-tool-2.1.1/lib/util.c:1750: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(pTemp, data, cb_data);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:312:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[0xff];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:321: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(apdu.st.data, piv_aid, sizeof(piv_aid));
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:403: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 reader[CB_BUF_MAX];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:450: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 reader_buf[2048];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:642:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char data[80];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:676:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[261];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:681: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(apdu.raw, templ, 4);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:692: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(apdu.st.data, in_ptr, this_size);
data/yubico-piv-tool-2.1.1/lib/ykpiv.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(out_data, data, recv_len - 2);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:715:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[261];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:738: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(out_data, data, recv_len - 2);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:809:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[261];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:810: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 challenge[8];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:848: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(challenge, data + 4, 8);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:854: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 response[8];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:872: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(dataptr, response, 8);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:883: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(challenge, dataptr, 8);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:897: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 response[8];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:930:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[261];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:966: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(apdu.st.data + 3, new_key, DES_LEN_3DES);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1018: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 indata[1024];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1020:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[1024];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1066: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(dataptr, sign_in, in_len);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1110: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(out, dataptr, len);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1155:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[261];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1237: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(apdu.st.data, yk_aid, sizeof(yk_aid));
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1278: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(apdu.st.data, piv_aid, sizeof(piv_aid));
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1369: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(state->pin, pin, len);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1397: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(state->mgm_key, key, CB_MGM_KEY);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1405:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[261];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1421: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(apdu.st.data, pin, pin_len);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1513:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[0xff];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1553: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 indata[0x10];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1554:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[0xff];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1569: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(indata, current_pin, current_pin_len);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1573: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(indata + CB_PIN_MAX, new_pin, new_pin_len);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1660: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 indata[5];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1723:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[CB_BUF_MAX];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1740: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(dataptr, indata, len);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1768:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char key_data[1024];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1771:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[256];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1775:18:  [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.
  const unsigned char *params[5];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1872: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(in_ptr, params[i], lens[i]);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1994:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[261] = { 0 };
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:2021: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(challenge, data + 4, 8);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:2032:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[261] = { 0 };
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:2054: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(dataptr, response, response_len);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:2090:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[0xff];
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:2107: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(apdu.st.data, yk_aid, sizeof(yk_aid));
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:2110: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(apdu.st.data, mgmt_aid, sizeof(mgmt_aid));
data/yubico-piv-tool-2.1.1/lib/ykpiv.h:255:5:  [2] (buffer) wchar_t:
  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.
    wchar_t name[40];
data/yubico-piv-tool-2.1.1/tool/cmdline.c:109: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.
const char *gengetopt_args_info_help[31];
data/yubico-piv-tool-2.1.1/tool/cmdline.c:606:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  outfile = fopen(filename, "w");
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1107:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          (*((char ***)field))[i + field_given] = tmp->arg.string_arg; break;
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1128:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          (*((char ***)field))[0] = gengetopt_strdup(default_value->string_arg);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1610: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 my_argv[CONFIG_FILE_LINE_BUFFER_SIZE+1];
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1611: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 linebuf[CONFIG_FILE_LINE_SIZE];
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1619:15:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  if ((file = fopen(filename, "r")) == 0)
data/yubico-piv-tool-2.1.1/tool/tests/parse_name.c:58:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[1024];
data/yubico-piv-tool-2.1.1/tool/tests/test_inout.c:53: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 buf2[sizeof(buf)];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:97: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 version[7];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:117: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 signinput[1024];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:149: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 message[256] = {0};
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:152: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(message, key->oid, key->oid_len);
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:153: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(message + key->oid_len, m, m_length);
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:409:16:  [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 e[4];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:410:16:  [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 p[128];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:411:16:  [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 q[128];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:412:16:  [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 dmp1[128];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:413:16:  [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 dmq1[128];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:414:16:  [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 iqmp[128];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:468:16:  [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_ptr[48];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:580: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 certdata[YKPIV_OBJ_MAX_SIZE];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:623: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 id[MAX(sizeof(ykpiv_cardid), sizeof(ykpiv_cccid))];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:687: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 digest[EVP_MAX_MD_SIZE + MAX_OID_LEN];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:711: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 buf[YKPIV_OBJ_MAX_SIZE];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:801: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(digest, oid, oid_len);
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:827: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 signature[1024];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:907: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 digest[EVP_MAX_MD_SIZE + MAX_OID_LEN];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1067: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(digest, oid, oid_len);
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1075: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 signature[1024];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1296: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 hashed[EVP_MAX_MD_SIZE * 2];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1336:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[1024];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1354: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 buf[1024];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1385:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[YKPIV_OBJ_MAX_SIZE];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1491: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 buf[YKPIV_OBJ_MAX_SIZE];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1559:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[1024];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1593: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 rand[128];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1612: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 signature[1024];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1613: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 encoded[1024];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1739:16:  [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 secret[32];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1740:16:  [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 secret2[32];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1741:16:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      unsigned char data[256];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1780:16:  [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 secret[48];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1781:16:  [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 secret2[48];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1782:16:  [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 public_key[97];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1838: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 readers[2048];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1854:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[2048];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1903:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[YKPIV_OBJ_MAX_SIZE];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1942:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[YKPIV_OBJ_MAX_SIZE];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1974: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 pwbuf[128];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:2084:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          unsigned char key[KEY_LEN];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:2086: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 keybuf[KEY_LEN*2+2]; /* one extra byte for potential \n */
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:2154: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 new_keybuf[KEY_LEN*2+2] = {0}; /* one extra byte for potential \n */
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:2183:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
          unsigned char new_key[KEY_LEN];
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:2254: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 pinbuf[8+2] = {0};
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:2276: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 pinbuf[8+2] = {0};
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:2277: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 new_pinbuf[8+2] = {0};
data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c:270: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(session->op_info.buf, buf, padlen);
data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c:279: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(session->op_info.buf, buf, padlen);
data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c:287: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(session->op_info.buf, buf, padlen);
data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c:293: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 sigbuf[256];
data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c:318: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(sig, sigbuf, siglen);
data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c:510: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(der, sig, sig_len);
data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c:780: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(session->op_info.buf + session->op_info.buf_len, in, in_len);
data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c:839: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(session->op_info.op.encrypt.oaep_label, oaep->pSourceData, oaep->ulSourceDataLen);
data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c:879: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(dec, session->op_info.buf, dec_len);
data/yubico-piv-tool-2.1.1/ykcs11/mechanisms.c:898: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(data, dec, cb_len);
data/yubico-piv-tool-2.1.1/ykcs11/objects.c:380: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(template->pValue, data, len);
data/yubico-piv-tool-2.1.1/ykcs11/objects.c:499: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(template->pValue, data, len);
data/yubico-piv-tool-2.1.1/ykcs11/objects.c:740: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(template->pValue, data, len);
data/yubico-piv-tool-2.1.1/ykcs11/objects.c:944: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(template->pValue, data, len);
data/yubico-piv-tool-2.1.1/ykcs11/objects.c:1279: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(s->data[sub_id].data, data, len);
data/yubico-piv-tool-2.1.1/ykcs11/openssl_utils.c:635: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(out + len - actual, buf, actual);
data/yubico-piv-tool-2.1.1/ykcs11/openssl_utils.c:641: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(out, buf + actual - len, len);
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:236: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 manufacturer_id[32];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:238: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 library_description[32];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:253: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 slot_description[64];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:254: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 manufacturer_id[32];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:269: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 label[32];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:270: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 manufacturer_id[32];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:271: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 model[16];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:272: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 serial_number[16];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:286: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 utc_time[16];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:513: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 year[4];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:514: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 month[2];
data/yubico-piv-tool-2.1.1/ykcs11/pkcs11.h:515: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 day[2];
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:131: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(hdata, hashed_data, 20);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:137: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(hdata, hashed_data, 32);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:143: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(hdata, hashed_data, 48);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:149: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(hdata, hashed_data, 64);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:169: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(hdata, data, data_len);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:176: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(hdata, SHA1_DIGEST, sizeof(SHA1_DIGEST));
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:177: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(hdata + sizeof(SHA1_DIGEST), hashed_data, 20);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:184: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(hdata, SHA256_DIGEST, sizeof(SHA256_DIGEST));
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:185: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(hdata + sizeof(SHA256_DIGEST), hashed_data, 32);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:192: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(hdata, SHA384_DIGEST, sizeof(SHA384_DIGEST));
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:193: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(hdata + sizeof(SHA384_DIGEST), hashed_data, 48);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:200: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(hdata, SHA512_DIGEST, sizeof(SHA512_DIGEST));
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:201: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(hdata + sizeof(SHA512_DIGEST), hashed_data, 64);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:605: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(der_ptr, r_ptr, r_len);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:620: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(der_ptr, s_ptr, s_len);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:705: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(hdata, data, data_len);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:1169: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 obj_label[1024];
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:1276: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 obj_label[1024];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:142: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[16];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:162:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char buf[64];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:183: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[64];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:221: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(info, &token_mechanisms[i].info, sizeof(CK_MECHANISM_INFO));
data/yubico-piv-tool-2.1.1/ykcs11/token.c:243:16:  [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 new_key[24];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:296: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 term_pin[YKPIV_MAX_PIN_LEN + 1];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:298: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(term_pin, pin, pin_len);
data/yubico-piv-tool-2.1.1/ykcs11/token.c:323: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 key[24];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:367: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_data[11];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:369:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  unsigned char data[1024];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:373: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 version[7];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:374: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 label[32];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:451: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(cert_data, data, certptr - data);
data/yubico-piv-tool-2.1.1/ykcs11/token.c:459: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 certdata[YKPIV_OBJ_MAX_SIZE + 16];
data/yubico-piv-tool-2.1.1/ykcs11/token.c:476: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(certptr, in, cert_len);
data/yubico-piv-tool-2.1.1/ykcs11/utils.c:55: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(dst, src, len);
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:115: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).
  verbose = dbg ? atoi(dbg) : 0;
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:313: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 readers[2048];
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:392:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
      char buf[sizeof(readers) + 1];
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:496: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(pInfo, &slots[slotID].slot_info, sizeof(CK_SLOT_INFO));
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:542: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(pInfo, &slots[slotID].token_info, sizeof(CK_TOKEN_INFO));
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:1145: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(pInfo, &session->info, sizeof(CK_SESSION_INFO));
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:2125: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(session->op_info.buf + session->op_info.buf_len, pPart, ulPartLen);
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:2340: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(session->op_info.buf, pEncryptedData, ulEncryptedDataLen);
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:2409: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(session->op_info.buf + session->op_info.buf_len, pEncryptedPart, ulEncryptedPartLen);
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:3512:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char data[YKPIV_OBJ_MAX_SIZE];
data/yubico-piv-tool-2.1.1/common/util.c:121:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strlen(orig_name) > 1024) {
data/yubico-piv-tool-2.1.1/common/util.c:182:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        int read;
data/yubico-piv-tool-2.1.1/common/util.c:188:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if(read <= 0) {
data/yubico-piv-tool-2.1.1/common/util.c:191:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
          return (size_t)read;
data/yubico-piv-tool-2.1.1/common/util.c:386:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if(pwbuf[strlen(pwbuf) - 1] == '\n') {
data/yubico-piv-tool-2.1.1/common/util.c:387: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).
        pwbuf[strlen(pwbuf) - 1] = '\0';
data/yubico-piv-tool-2.1.1/lib/internal.c:527: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).
  char *psz_tail = sz + strlen(sz) - 1;
data/yubico-piv-tool-2.1.1/lib/internal.c:577:13:  [1] (buffer) sscanf:
  It's unclear if the %s limit in the format string is small enough
  (CWE-120). Check that the limit is sufficiently small, or use a different
  input function.
        if (sscanf(sz_line, "%255[^=]=%255s", sz_name, sz_value) == 2) {
data/yubico-piv-tool-2.1.1/lib/tests/api.c:158:67:  [1] (buffer) strlen:
  Does not handle 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(reader_ptr = reader_buf; *reader_ptr != '\0'; reader_ptr += strlen(reader_ptr) + 1) {
data/yubico-piv-tool-2.1.1/lib/tests/api.c:284:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bio = BIO_new_mem_buf(private_key_pem, strlen(private_key_pem));
data/yubico-piv-tool-2.1.1/lib/tests/api.c:340:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bio = BIO_new_mem_buf(certificate_pem, strlen(certificate_pem));
data/yubico-piv-tool-2.1.1/lib/tests/api.c:390:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bio = BIO_new_mem_buf(certificate_pem, strlen(certificate_pem));
data/yubico-piv-tool-2.1.1/lib/tests/api.c:470:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    bio = BIO_new_mem_buf(certificate_pem, strlen(certificate_pem));
data/yubico-piv-tool-2.1.1/lib/tests/api.c:569:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = ykpiv_hex_decode(mgm_key, strlen(mgm_key), key, &key_len);
data/yubico-piv-tool-2.1.1/lib/tests/api.c:575:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = ykpiv_hex_decode(default_mgm_key, strlen(default_mgm_key), key, &key_len);
data/yubico-piv-tool-2.1.1/lib/tests/api.c:581:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = ykpiv_hex_decode(default_mgm_key, strlen(default_mgm_key), key, &key_len);
data/yubico-piv-tool-2.1.1/lib/tests/api.c:587:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = ykpiv_hex_decode(mgm_key, strlen(mgm_key), key, &key_len);
data/yubico-piv-tool-2.1.1/lib/tests/api.c:593:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = ykpiv_hex_decode(mgm_key, strlen(mgm_key), key, &key_len);
data/yubico-piv-tool-2.1.1/lib/tests/api.c:599:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = ykpiv_hex_decode(default_mgm_key, strlen(default_mgm_key), key, &key_len);
data/yubico-piv-tool-2.1.1/lib/tests/api.c:605:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = ykpiv_hex_decode(default_mgm_key, strlen(default_mgm_key), key, &key_len);
data/yubico-piv-tool-2.1.1/lib/tests/api.c:611: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).
  res = ykpiv_hex_decode(weak_mgm_key, strlen(weak_mgm_key), key, &key_len);
data/yubico-piv-tool-2.1.1/lib/tests/api.c:617:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  res = ykpiv_hex_decode(default_mgm_key, strlen(default_mgm_key), key, &key_len);
data/yubico-piv-tool-2.1.1/lib/tests/parse_key.c:61: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).
	ykpiv_rc res = ykpiv_hex_decode(text, strlen(text), key, &len);
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:489:69:  [1] (buffer) strlen:
  Does not handle 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(reader_ptr = reader_buf; *reader_ptr != '\0'; reader_ptr += strlen(reader_ptr) + 1) {
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:494:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if(strlen(ptr) < strlen(wanted)) {
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:494:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if(strlen(ptr) < strlen(wanted)) {
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:497: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).
          if(strncasecmp(ptr, wanted, strlen(wanted)) == 0) {
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:639:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if((res = _ykpiv_verify(state, state->pin, strlen(state->pin))) != YKPIV_OK)
data/yubico-piv-tool-2.1.1/lib/ykpiv.c:1462:48:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return ykpiv_verify_select(state, pin, pin ? strlen(pin) : 0, tries, false);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:295:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
     (strlen(CMDLINE_PARSER_PACKAGE_NAME) ? CMDLINE_PARSER_PACKAGE_NAME : CMDLINE_PARSER_PACKAGE),
data/yubico-piv-tool-2.1.1/tool/cmdline.c:298:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_versiontext) > 0)
data/yubico-piv-tool-2.1.1/tool/cmdline.c:305:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_purpose) > 0)
data/yubico-piv-tool-2.1.1/tool/cmdline.c:308:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_usage) > 0)
data/yubico-piv-tool-2.1.1/tool/cmdline.c:313:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(gengetopt_args_info_description) > 0)
data/yubico-piv-tool-2.1.1/tool/cmdline.c:482: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).
  for (i = 0, len = strlen(val); values[i]; ++i)
data/yubico-piv-tool-2.1.1/tool/cmdline.c:488:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if (strlen(values[i]) == len)
data/yubico-piv-tool-2.1.1/tool/cmdline.c:634: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).
  result = (char*)malloc(strlen(s) + 1);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:670: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 (arg) + 1;
data/yubico-piv-tool-2.1.1/tool/cmdline.c:715:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (! tok || strlen(tok) == 1)
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1613:19:  [1] (buffer) equal:
  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.
  int result = 0, equal;
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1630: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(linebuf);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1666:13:  [1] (buffer) equal:
  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.
      if ( !equal )
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1723: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(fopt);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1726:42:  [1] (buffer) equal:
  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.
      if (len > 1 && ((farg && *farg) || equal))
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1727:9:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
        strcat (my_argv, "=");
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1789: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).
    additional_error = (char *)malloc(strlen(filename) + strlen(ADDITIONAL_ERROR) + 1);
data/yubico-piv-tool-2.1.1/tool/cmdline.c:1789: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).
    additional_error = (char *)malloc(strlen(filename) + strlen(ADDITIONAL_ERROR) + 1);
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1140: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(pin);
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1173: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).
  pin_len = strlen(pin);
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1174: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).
  new_len = strlen(new_pin);
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:1846:64:  [1] (buffer) strlen:
  Does not handle 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(reader_ptr = readers; *reader_ptr != '\0'; reader_ptr += strlen(reader_ptr) + 1) {
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:2100:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if(ykpiv_hex_decode(key_ptr, strlen(key_ptr), key, &key_len) != YKPIV_OK) {
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:2182:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if(strlen(new_mgm_key) == (KEY_LEN * 2)){
data/yubico-piv-tool-2.1.1/tool/yubico-piv-tool.c:2185:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if(ykpiv_hex_decode(new_mgm_key, strlen(new_mgm_key), new_key, &new_key_len) != YKPIV_OK) {
data/yubico-piv-tool-2.1.1/ykcs11/objects.c:327: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(piv_objects[obj].label);
data/yubico-piv-tool-2.1.1/ykcs11/objects.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).
    len = strlen(piv_objects[obj].label);
data/yubico-piv-tool-2.1.1/ykcs11/objects.c:418: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(piv_objects[obj].label);
data/yubico-piv-tool-2.1.1/ykcs11/objects.c:545: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(piv_objects[obj].label);
data/yubico-piv-tool-2.1.1/ykcs11/objects.c:777: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(piv_objects[obj].label);
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c:99:54:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  asrt(strncmp(info.manufacturerID, MANUFACTURER_ID, strlen(MANUFACTURER_ID)), 0, "MANUFACTURER");
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c:104:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  asrt(strncmp(info.libraryDescription, YKCS11_DESCRIPTION, strlen(YKCS11_DESCRIPTION)), 0, "LIB_DESC");
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c:132: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).
  asrt(strncmp(info.label, TOKEN_LABEL, strlen(TOKEN_LABEL)), 0, "TOKEN_LABEL");
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c:134: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).
  asrt(strncmp(info.model, TOKEN_MODEL, strlen(TOKEN_MODEL)), 0, "TOKEN_MODEL");
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c:148:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strncmp(info.model, TOKEN_MODEL_YK4, strlen(TOKEN_MODEL_YK4)) != 0 &&
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c:149:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncmp(info.model, TOKEN_MODEL_YK5, strlen(TOKEN_MODEL_YK5)) != 0 && 
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c:150:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      strncmp(info.model, TOKEN_MODEL_NEO, strlen(TOKEN_MODEL_NEO)) != 0) {
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests.c:155:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if(strncmp(info.model, TOKEN_MODEL_NEO, strlen(TOKEN_MODEL_NEO)) == 0) {
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:1212: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).
  asrt(obj_label_len, strlen((char*)label), "LABEL LEN");
data/yubico-piv-tool-2.1.1/ykcs11/tests/ykcs11_tests_util.c:1326: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).
  asrt(obj_label_len, strlen((char*)label), "LABEL LEN");
data/yubico-piv-tool-2.1.1/ykcs11/token.c:118:7:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (strlen(token_model) > len)
data/yubico-piv-tool-2.1.1/ykcs11/ykcs11.c:353: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).
  for(char *reader = readers; *reader; reader += strlen(reader) + 1) {

ANALYSIS SUMMARY:

Hits = 363
Lines analyzed = 25522 in approximately 0.71 seconds (35773 lines/second)
Physical Source Lines of Code (SLOC) = 19216
Hits@level = [0] 391 [1]  71 [2] 271 [3]   7 [4]  14 [5]   0
Hits@level+ = [0+] 754 [1+] 363 [2+] 292 [3+]  21 [4+]  14 [5+]   0
Hits/KSLOC@level+ = [0+] 39.2381 [1+] 18.8905 [2+] 15.1957 [3+] 1.09284 [4+] 0.72856 [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.