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/libnfc-1.8.0/contrib/win32/err.h
Examining data/libnfc-1.8.0/contrib/win32/libnfc/buses/uart.c
Examining data/libnfc-1.8.0/contrib/win32/libnfc/log-internal.c
Examining data/libnfc-1.8.0/contrib/win32/stdlib.c
Examining data/libnfc-1.8.0/contrib/win32/sys/select.h
Examining data/libnfc-1.8.0/contrib/win32/unistd.h
Examining data/libnfc-1.8.0/contrib/windows.h
Examining data/libnfc-1.8.0/examples/doc/quick_start_example1.c
Examining data/libnfc-1.8.0/examples/doc/quick_start_example2.c
Examining data/libnfc-1.8.0/examples/nfc-anticol.c
Examining data/libnfc-1.8.0/examples/nfc-dep-initiator.c
Examining data/libnfc-1.8.0/examples/nfc-dep-target.c
Examining data/libnfc-1.8.0/examples/nfc-emulate-forum-tag2.c
Examining data/libnfc-1.8.0/examples/nfc-emulate-tag.c
Examining data/libnfc-1.8.0/examples/nfc-emulate-uid.c
Examining data/libnfc-1.8.0/examples/nfc-mfsetuid.c
Examining data/libnfc-1.8.0/examples/nfc-poll.c
Examining data/libnfc-1.8.0/examples/nfc-relay.c
Examining data/libnfc-1.8.0/examples/pn53x-diagnose.c
Examining data/libnfc-1.8.0/examples/pn53x-sam.c
Examining data/libnfc-1.8.0/examples/pn53x-tamashell.c
Examining data/libnfc-1.8.0/include/nfc/nfc-emulation.h
Examining data/libnfc-1.8.0/include/nfc/nfc-types.h
Examining data/libnfc-1.8.0/include/nfc/nfc.h
Examining data/libnfc-1.8.0/libnfc/buses/empty.c
Examining data/libnfc-1.8.0/libnfc/buses/i2c.c
Examining data/libnfc-1.8.0/libnfc/buses/i2c.h
Examining data/libnfc-1.8.0/libnfc/buses/spi.c
Examining data/libnfc-1.8.0/libnfc/buses/spi.h
Examining data/libnfc-1.8.0/libnfc/buses/uart.c
Examining data/libnfc-1.8.0/libnfc/buses/uart.h
Examining data/libnfc-1.8.0/libnfc/buses/usbbus.c
Examining data/libnfc-1.8.0/libnfc/buses/usbbus.h
Examining data/libnfc-1.8.0/libnfc/chips/pn53x-internal.h
Examining data/libnfc-1.8.0/libnfc/chips/pn53x.c
Examining data/libnfc-1.8.0/libnfc/chips/pn53x.h
Examining data/libnfc-1.8.0/libnfc/conf.c
Examining data/libnfc-1.8.0/libnfc/conf.h
Examining data/libnfc-1.8.0/libnfc/drivers.h
Examining data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.c
Examining data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.h
Examining data/libnfc-1.8.0/libnfc/drivers/acr122_usb.h
Examining data/libnfc-1.8.0/libnfc/drivers/acr122s.c
Examining data/libnfc-1.8.0/libnfc/drivers/acr122s.h
Examining data/libnfc-1.8.0/libnfc/drivers/arygon.c
Examining data/libnfc-1.8.0/libnfc/drivers/arygon.h
Examining data/libnfc-1.8.0/libnfc/drivers/pcsc.c
Examining data/libnfc-1.8.0/libnfc/drivers/pcsc.h
Examining data/libnfc-1.8.0/libnfc/drivers/pn532_i2c.c
Examining data/libnfc-1.8.0/libnfc/drivers/pn532_i2c.h
Examining data/libnfc-1.8.0/libnfc/drivers/pn532_spi.c
Examining data/libnfc-1.8.0/libnfc/drivers/pn532_spi.h
Examining data/libnfc-1.8.0/libnfc/drivers/pn532_uart.c
Examining data/libnfc-1.8.0/libnfc/drivers/pn532_uart.h
Examining data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.c
Examining data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.h
Examining data/libnfc-1.8.0/libnfc/drivers/pn71xx.c
Examining data/libnfc-1.8.0/libnfc/drivers/pn71xx.h
Examining data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c
Examining data/libnfc-1.8.0/libnfc/iso14443-subr.c
Examining data/libnfc-1.8.0/libnfc/iso7816.h
Examining data/libnfc-1.8.0/libnfc/log-internal.c
Examining data/libnfc-1.8.0/libnfc/log-internal.h
Examining data/libnfc-1.8.0/libnfc/log.c
Examining data/libnfc-1.8.0/libnfc/log.h
Examining data/libnfc-1.8.0/libnfc/mirror-subr.c
Examining data/libnfc-1.8.0/libnfc/mirror-subr.h
Examining data/libnfc-1.8.0/libnfc/nfc-device.c
Examining data/libnfc-1.8.0/libnfc/nfc-emulation.c
Examining data/libnfc-1.8.0/libnfc/nfc-internal.c
Examining data/libnfc-1.8.0/libnfc/nfc-internal.h
Examining data/libnfc-1.8.0/libnfc/nfc.c
Examining data/libnfc-1.8.0/libnfc/target-subr.c
Examining data/libnfc-1.8.0/libnfc/target-subr.h
Examining data/libnfc-1.8.0/test/test_access_storm.c
Examining data/libnfc-1.8.0/test/test_dep_active.c
Examining data/libnfc-1.8.0/test/test_dep_passive.c
Examining data/libnfc-1.8.0/test/test_device_modes_as_dep.c
Examining data/libnfc-1.8.0/test/test_register_access.c
Examining data/libnfc-1.8.0/test/test_register_endianness.c
Examining data/libnfc-1.8.0/utils/jewel.c
Examining data/libnfc-1.8.0/utils/jewel.h
Examining data/libnfc-1.8.0/utils/mifare.c
Examining data/libnfc-1.8.0/utils/mifare.h
Examining data/libnfc-1.8.0/utils/nfc-barcode.c
Examining data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c
Examining data/libnfc-1.8.0/utils/nfc-jewel.c
Examining data/libnfc-1.8.0/utils/nfc-list.c
Examining data/libnfc-1.8.0/utils/nfc-mfclassic.c
Examining data/libnfc-1.8.0/utils/nfc-mfultralight.c
Examining data/libnfc-1.8.0/utils/nfc-read-forum-tag3.c
Examining data/libnfc-1.8.0/utils/nfc-relay-picc.c
Examining data/libnfc-1.8.0/utils/nfc-scan-device.c
Examining data/libnfc-1.8.0/utils/nfc-utils.c
Examining data/libnfc-1.8.0/utils/nfc-utils.h

FINAL RESULTS:

data/libnfc-1.8.0/contrib/win32/err.h:7: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, __VA_ARGS__); \
data/libnfc-1.8.0/contrib/win32/err.h:12: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, __VA_ARGS__); \
data/libnfc-1.8.0/contrib/win32/libnfc/buses/uart.c:68:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(acPortName, "\\\\.\\%s", pcPortName);
data/libnfc-1.8.0/contrib/win32/libnfc/log-internal.c:47:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, args);
data/libnfc-1.8.0/contrib/win32/libnfc/log-internal.c:57:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, va);
data/libnfc-1.8.0/contrib/win32/stdlib.c:43: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(str, name);
data/libnfc-1.8.0/contrib/win32/stdlib.c:45: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(str, value);
data/libnfc-1.8.0/contrib/win32/stdlib.c:54: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(str, name);
data/libnfc-1.8.0/contrib/windows.h:45:13:  [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.
#    define snprintf(S, n, ...) sprintf(S, __VA_ARGS__)
data/libnfc-1.8.0/contrib/windows.h:45:33:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
#    define snprintf(S, n, ...) sprintf(S, __VA_ARGS__)
data/libnfc-1.8.0/contrib/windows.h:51:13:  [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.
#    define snprintf sprintf_s
data/libnfc-1.8.0/libnfc/buses/i2c.c:214:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(res[szRes - 1], "/dev/%s", pdDirEnt->d_name);
data/libnfc-1.8.0/libnfc/buses/spi.c:302:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(res[szRes - 1], "/dev/%s", pdDirEnt->d_name);
data/libnfc-1.8.0/libnfc/buses/uart.c:421:9:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        sprintf(res[szRes - 1], "/dev/%s", pdDirEnt->d_name);
data/libnfc-1.8.0/libnfc/conf.c:257:3:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
  sprintf(newkey, "device.%s", key);
data/libnfc-1.8.0/libnfc/conf.c:277:11:  [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(filename, de->d_name);
data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.c:227:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(ndd.pcsc_device_name, "%4" SCNuPTR, &index) != 1) {
data/libnfc-1.8.0/libnfc/drivers/acr122s.c:433:7:  [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.
      snprintf(connstring, sizeof(nfc_connstring), "%s:%s:%"PRIu32, ACR122S_DRIVER_NAME, acPort, ACR122S_DEFAULT_SPEED);
data/libnfc-1.8.0/libnfc/drivers/acr122s.c:549:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(speed_s, "%10"PRIu32, &ndd.speed) != 1) {
data/libnfc-1.8.0/libnfc/drivers/acr122s.c:592: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(pnd->name, ACR122S_DRIVER_NAME);
data/libnfc-1.8.0/libnfc/drivers/arygon.c:119:7:  [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.
      snprintf(connstring, sizeof(nfc_connstring), "%s:%s:%"PRIu32, ARYGON_DRIVER_NAME, acPort, ARYGON_DEFAULT_SPEED);
data/libnfc-1.8.0/libnfc/drivers/arygon.c:238:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(speed_s, "%10"PRIu32, &ndd.speed) != 1) {
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:480:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(ndd.pcsc_device_name, "%4" SCNuPTR, &index) != 1) {
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:959:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf((char *) *pbuf,
data/libnfc-1.8.0/libnfc/drivers/pn532_spi.c:109:7:  [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.
      snprintf(connstring, sizeof(nfc_connstring), "%s:%s:%"PRIu32, PN532_SPI_DRIVER_NAME, acPort, PN532_SPI_DEFAULT_SPEED);
data/libnfc-1.8.0/libnfc/drivers/pn532_spi.c:205:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(speed_s, "%10"PRIu32, &ndd.speed) != 1) {
data/libnfc-1.8.0/libnfc/drivers/pn532_uart.c:94:7:  [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.
      snprintf(connstring, sizeof(nfc_connstring), "%s:%s:%"PRIu32, PN532_UART_DRIVER_NAME, acPort, PN532_UART_DEFAULT_SPEED);
data/libnfc-1.8.0/libnfc/drivers/pn532_uart.c:211:9:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
    if (sscanf(speed_s, "%10"PRIu32, &ndd.speed) != 1) {
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:110: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(pnd->connstring, connstring);
data/libnfc-1.8.0/libnfc/log-internal.c:36:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, args);
data/libnfc-1.8.0/libnfc/log-internal.c:44:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  vfprintf(stderr, format, va);
data/libnfc-1.8.0/libnfc/log.c:62:3:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
  sprintf(str, "%"PRIu32, context->log_level);
data/libnfc-1.8.0/libnfc/log.h:78:23:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
__attribute__((format(printf, 4, 5)))
data/libnfc-1.8.0/libnfc/nfc-internal.c:232:13:  [4] (buffer) sscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  int res = sscanf(connstring, format, param0, param1, param2);
data/libnfc-1.8.0/libnfc/nfc.c:319:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(pnd->name, context->user_defined_devices[i].name);
data/libnfc-1.8.0/libnfc/nfc.c:377:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy(old_env_log_level, env_log_level);
data/libnfc-1.8.0/libnfc/nfc.c:396:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
        strcpy((char *)(connstrings + device_found), context->user_defined_devices[i].connstring);
data/libnfc-1.8.0/libnfc/nfc.c:403:7:  [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((char *)(connstrings + device_found), context->user_defined_devices[i].connstring);
data/libnfc-1.8.0/utils/mifare.h:142:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  uint8_t  access;
data/libnfc-1.8.0/utils/mifare.h:157:12:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  uint8_t  access;
data/libnfc-1.8.0/utils/nfc-relay-picc.c:144:7:  [4] (buffer) fscanf:
  The scanf() family's %s operation, without a limit specification, permits
  buffer overflows (CWE-120, CWE-20). Specify a limit to %s, or use a
  different input function. If the scanf format is influenceable by an
  attacker, it's exploitable.
  if (fscanf(fd3, pchScan, &uiBytes) < 1) {
data/libnfc-1.8.0/contrib/win32/stdlib.c:40: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.
  char *env = getenv(name);
data/libnfc-1.8.0/libnfc/buses/usbbus.c:50:27:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    char *env_log_level = getenv("LIBNFC_LOG_LEVEL");
data/libnfc-1.8.0/libnfc/log.c:79:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
  env_log_level = getenv("LIBNFC_LOG_LEVEL");
data/libnfc-1.8.0/libnfc/nfc-internal.c:101:18:  [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 *envvar = getenv("LIBNFC_DEFAULT_DEVICE");
data/libnfc-1.8.0/libnfc/nfc-internal.c:120:12:  [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.
  envvar = getenv("LIBNFC_DEVICE");
data/libnfc-1.8.0/libnfc/nfc-internal.c:129:12:  [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.
  envvar = getenv("LIBNFC_AUTO_SCAN");
data/libnfc-1.8.0/libnfc/nfc-internal.c:133:12:  [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.
  envvar = getenv("LIBNFC_INTRUSIVE_SCAN");
data/libnfc-1.8.0/libnfc/nfc-internal.c:137:12:  [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.
  envvar = getenv("LIBNFC_LOG_LEVEL");
data/libnfc-1.8.0/libnfc/nfc.c:369:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
      char *env_log_level = getenv("LIBNFC_LOG_LEVEL");
data/libnfc-1.8.0/utils/nfc-read-forum-tag3.c:176:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
  while ((ch = getopt(argc, argv, "hqo:")) != -1) {
data/libnfc-1.8.0/contrib/win32/libnfc/buses/uart.c:61: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    acPortName[255];
data/libnfc-1.8.0/contrib/win32/libnfc/buses/uart.c:245:3:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  TCHAR szPort[15];
data/libnfc-1.8.0/contrib/win32/libnfc/buses/uart.c:249:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
  sprintf(szPort, "COM%d", nPort);
data/libnfc-1.8.0/contrib/win32/libnfc/buses/uart.c:276:7:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
      sprintf(availablePorts[curIndex], "COM%d", i);
data/libnfc-1.8.0/contrib/win32/libnfc/log-internal.c:37: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 buffer[1024];
data/libnfc-1.8.0/contrib/win32/stdlib.c:42: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 *str[32];
data/libnfc-1.8.0/contrib/win32/stdlib.c:53: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 *str[32];
data/libnfc-1.8.0/examples/nfc-anticol.c:235: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(abtAtqa, abtRx, 2);
data/libnfc-1.8.0/examples/nfc-anticol.c:246: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(abtRawUid, abtRx, 4);
data/libnfc-1.8.0/examples/nfc-anticol.c:249:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
  memcpy(abtSelectTag + 2, abtRx, 5);
data/libnfc-1.8.0/examples/nfc-anticol.c:278:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(abtRawUid + 4, abtRx, 4);
data/libnfc-1.8.0/examples/nfc-anticol.c:282: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(abtSelectTag + 2, abtRx, 5);
data/libnfc-1.8.0/examples/nfc-anticol.c:309: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(abtRawUid + 8, abtRx, 4);
data/libnfc-1.8.0/examples/nfc-anticol.c:313: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(abtSelectTag + 2, abtRx, 5);
data/libnfc-1.8.0/examples/nfc-anticol.c:327: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(abtAts, abtRx, szRx);
data/libnfc-1.8.0/examples/nfc-emulate-forum-tag2.c:138: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(data_out, nfcforum_tag2_memory_area + (data_in[1] * 4), 16);
data/libnfc-1.8.0/examples/nfc-emulate-tag.c:100:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy((char *)pbtOutput, "You read block ");
data/libnfc-1.8.0/examples/nfc-emulate-tag.c:123: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(pbtOutput + 1, pnt->nti.nai.abtAts, pnt->nti.nai.szAtsLen);
data/libnfc-1.8.0/examples/nfc-emulate-uid.c:122: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(abtTmp, argv[arg] + i * 2, 2);
data/libnfc-1.8.0/examples/nfc-mfsetuid.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     tmp[3] = { 0x00, 0x00, 0x00 };
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:176: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(tmp, argv[arg] + i * 2, 2);
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:184: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(tmp, argv[arg] + i * 2, 2);
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:252: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(abtAtqa, abtRx, 2);
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:263: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(abtRawUid, abtRx, 4);
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:266: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(abtSelectTag + 2, abtRx, 5);
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:295: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(abtRawUid + 4, abtRx, 4);
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:299: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(abtSelectTag + 2, abtRx, 5);
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:326: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(abtRawUid + 8, abtRx, 4);
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:330: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(abtSelectTag + 2, abtRx, 5);
data/libnfc-1.8.0/examples/pn53x-tamashell.c:88:18:  [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 ((input = fopen(argv[1], "r")) == NULL) {
data/libnfc-1.8.0/include/nfc/nfc-types.h:63: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.
typedef char nfc_connstring[NFC_BUFSIZE_CONNSTRING];
data/libnfc-1.8.0/libnfc/buses/i2c.c:90:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  id->fd = open(pcI2C_busName, O_RDWR | O_NOCTTY | O_NONBLOCK);
data/libnfc-1.8.0/libnfc/buses/spi.c:89:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  sp->fd = open(pcPortName, O_RDWR | O_NOCTTY | O_NONBLOCK);
data/libnfc-1.8.0/libnfc/buses/uart.c:116:12:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  sp->fd = open(pcPortName, O_RDWR | O_NOCTTY | O_NONBLOCK);
data/libnfc-1.8.0/libnfc/buses/usbbus.c:53:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    if (env_log_level && (((atoi(env_log_level) >> (NFC_LOG_GROUP_LIBUSB * 2)) & 0x00000003) >= NFC_LOG_PRIORITY_DEBUG)) {
data/libnfc-1.8.0/libnfc/chips/pn53x.c:285: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(pbtRx + res, abtRx2 + 1, res2 - 1);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:508: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(pnti->nai.abtAts, pbtRawData, pnti->nai.szAtsLen);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:517: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(pnti->nai.abtUid, pbtUid + 1, 7);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:521: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(pnti->nai.abtUid, pbtUid + 1, 3);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:522: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(pnti->nai.abtUid + 3, pbtUid + 5, 3);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:523: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(pnti->nai.abtUid + 6, pbtUid + 8, 4);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:526: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(pnti->nai.abtUid, pbtUid, pnti->nai.szUidLen);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:538: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(pnti->nbi.abtPupi, pbtRawData, 4);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:542: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(pnti->nbi.abtApplicationData, pbtRawData, 4);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:546: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(pnti->nbi.abtProtocolInfo, pbtRawData, 3);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:564: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(pnti->nii.abtDIV, pbtRawData, 4);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:570: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(pnti->nii.abtAtr, pbtRawData, szRawData - 8);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:578: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(pnti->nsi.abtUID, pbtRawData, 8);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:589: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(pnti->nci.abtUID, pbtRawData, 2);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:595: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(pnti->nci.abtUID + 2, pbtRawData, 2);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:606: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(pnti->nfi.abtId, pbtRawData, 8);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:609: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(pnti->nfi.abtPad, pbtRawData, 8);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:613: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(pnti->nfi.abtSysCode, pbtRawData, 2);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:621: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(pnti->nji.btSensRes, pbtRawData, 2);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:623: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(pnti->nji.btId, pbtRawData, 4);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:627: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(pnti->nti.abtData, pbtRawData, szRawData);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:1379: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(pnt, &nttmp, sizeof(nfc_target));
data/libnfc-1.8.0/libnfc/chips/pn53x.c:1550: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(abtCmd + 1, pbtTx, szFrameBytes);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:1583: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(pbtRx, abtRx + 1, szRx - 1);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:1608: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(abtCmd + 2, pbtTx, szTx);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:1612: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(abtCmd + 1, pbtTx, szTx);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:1636: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(pbtRx, abtRx + 1, szRxLen);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:1936: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(pbtTxRaw, pbtTx, szTx);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:2152: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(abtCmd + 2, CHIP_DATA(pnd)->current_target->nti.nfi.abtId, 8);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:2206: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(abtCmd + 2, CHIP_DATA(pnd)->current_target->nti.nii.abtDIV, 4);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:2279: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(abtCmd + 1, CHIP_DATA(pnd)->current_target->nti.nci.abtUID, 2);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:2451: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(abtFeliCaParams, pnt->nti.nfi.abtId, 8);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:2453: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(abtFeliCaParams + 8, pnt->nti.nfi.abtPad, 8);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:2455: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(abtFeliCaParams + 16, pnt->nti.nfi.abtSysCode, 2);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:2627: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(pbtRx, abtRx + 1, szRx - 1);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:2689: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(pbtRx, abtRx + 1, szRx);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:2722: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(abtCmd + 1, pbtTx, szFrameBytes);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:2784: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(abtCmd + 1, pbtTx, szTx);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3011: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(abtCmd + 3, pbtInitiatorData, szInitiatorData);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3155: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(abtCmd + offset, pbtPassiveInitiatorData, 4);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3163: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(abtCmd + offset, pbtPassiveInitiatorData, 5);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3171: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(abtCmd + offset, pbtPassiveInitiatorData, 5);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3183: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(abtCmd + offset, pbtNFCID3i, 10);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3189: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(abtCmd + offset, pbtGBi, szGBi);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3207: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(pnt->nti.ndi.abtNFCID3, abtRx + 2, 10);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3215: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(pnt->nti.ndi.abtGB, abtRx + 17, pnt->nti.ndi.szGB);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3244: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(abtCmd + 2, pbtMifareParams, 6);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3248: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(abtCmd + 8, pbtFeliCaParams, 18);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3252: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(abtCmd + 26, pbtNFCID3t, 10);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3257: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(abtCmd + 36, pbtGBt, szGBt);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3263: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(abtCmd + 37, pbtGBt, szGBt);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3271: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(abtCmd + 37 + szOptionalBytes, pbtTkt, szTkt);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3295: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(pbtRx, abtRx + 1, szRx);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3344: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(pbtFrame + 6, pbtData, szData);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3370: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(pbtFrame + 9, pbtData, szData);
data/libnfc-1.8.0/libnfc/chips/pn53x.c:3772: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(CHIP_DATA(pnd)->current_target, pnt, sizeof(nfc_target));
data/libnfc-1.8.0/libnfc/chips/pn53x.h:178: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 firmware_text[22];
data/libnfc-1.8.0/libnfc/conf.c:60:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
escaped_value(const char line[BUFSIZ], int i, char **value)
data/libnfc-1.8.0/libnfc/conf.c:78: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(*value, &line[i - c], c);
data/libnfc-1.8.0/libnfc/conf.c:93:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
non_escaped_value(const char line[BUFSIZ], int i, char **value)
data/libnfc-1.8.0/libnfc/conf.c:104: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(*value, &line[i - c], c);
data/libnfc-1.8.0/libnfc/conf.c:119: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.
parse_line(const char line[BUFSIZ], char **key, char **value)
data/libnfc-1.8.0/libnfc/conf.c:143: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, &line[i - c], c);
data/libnfc-1.8.0/libnfc/conf.c:176: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).
  FILE *f = fopen(filename, "r");
data/libnfc-1.8.0/libnfc/conf.c:181: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 line[BUFSIZ];
data/libnfc-1.8.0/libnfc/conf.c:217:26:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    context->log_level = atoi(value);
data/libnfc-1.8.0/libnfc/conf.c:256: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 newkey[BUFSIZ];
data/libnfc-1.8.0/libnfc/conf.c:276: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 filename[BUFSIZ] = LIBNFC_DEVICECONFDIR"/";
data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.c:155: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    acDeviceNames[256 + 64 * PCSC_MAX_DEVICES];
data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.c:222: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(fullconnstring, connstring, sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.c:342: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(abtTxBuf + ACR122_PCSC_WRAP_LEN, pbtData, szData);
data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.c:431: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(pbtData, DRIVER_DATA(pnd)->abtRx + 2, len);
data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.c:442:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char abtFw[11];
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:365:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer + strlen(buffer), " / ");
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:465: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(&(DRIVER_DATA(pnd)->tama_frame), acr122_usb_frame_template, sizeof(acr122_usb_frame_template));
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:466: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(&(DRIVER_DATA(pnd)->apdu_frame), acr122_usb_frame_template, sizeof(acr122_usb_frame_template));
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:544: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(DRIVER_DATA(pnd)->apdu_frame.apdu_payload, data, data_len);
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:560: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(DRIVER_DATA(pnd)->tama_frame.tama_payload, tama, tama_len);
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:735: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(pbtData, abtRxBuf + offset, len);
data/libnfc-1.8.0/libnfc/drivers/acr122s.c:334: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, data, data_size);
data/libnfc-1.8.0/libnfc/drivers/acr122s.c:403: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(version, cmd + 11, len);
data/libnfc-1.8.0/libnfc/drivers/acr122s.c:491: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 version[32];
data/libnfc-1.8.0/libnfc/drivers/acr122s.c:505: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(connstrings[device_found], connstring, sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/drivers/acr122s.c:626: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[DEVICE_NAME_LENGTH];
data/libnfc-1.8.0/libnfc/drivers/acr122s.c:710: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, tmp + 13, data_len);
data/libnfc-1.8.0/libnfc/drivers/arygon.c:186: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(connstrings[device_found], connstring, sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/drivers/arygon.c:324: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 arygon_firmware_version[10];
data/libnfc-1.8.0/libnfc/drivers/arygon.c:541: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(str, p, szData);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:240: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(atqa, resp, resp_len - 2);
data/libnfc-1.8.0/libnfc/drivers/pcsc.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(ats, resp + 1, resp[0] - 1);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:293: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(sak, resp, resp_len - 2);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:318: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(uid, resp, resp_len - 2);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:338:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pnt->nti.nai.abtUid, puid, szuid);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:352:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pnt->nti.nai.abtAts, ats, ats_len);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:359:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pnt->nti.nai.abtAts, "\x75\x77\x81\x02", 4);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:361:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(pnt->nti.nai.abtAts + 4, patr + 4, (uint8_t)(szatr - 5));
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:379: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(pnt->nti.nbi.abtApplicationData, patr + 4, 4);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:380: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(pnt->nti.nbi.abtProtocolInfo, patr + 8, 3);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:408: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    acDeviceNames[256 + 64 * PCSC_MAX_DEVICES];
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:475: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(fullconnstring, connstring, sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:559:10:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  static char strError[75];
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:797: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_data + 5, pbtTx + 2, szTx - 2);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:817: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_data + 5, pbtTx + 2, szTx - 2);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:825:7:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
      memcpy(apdu_data + 5, pbtTx + 2, szTx - 2);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:833: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_data + 5, pbtTx + 2, szTx - 2);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:836: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_data, pbtTx, szTx);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:843: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(pbtRx, resp, resp_len);
data/libnfc-1.8.0/libnfc/drivers/pn532_i2c.c:246: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(connstrings[device_found], connstring, sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/drivers/pn532_i2c.c:408: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(abtFrame, pn53x_preamble_and_start, PN53X_PREAMBLE_AND_START_LEN);	// Every packet must start with the preamble and start bytes.
data/libnfc-1.8.0/libnfc/drivers/pn532_i2c.c:500: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(pbtData, &(i2cRx[1]), copyLength);
data/libnfc-1.8.0/libnfc/drivers/pn532_i2c.c:628: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(pbtData, &frameBuf[TFI_idx + 2], len - 2);
data/libnfc-1.8.0/libnfc/drivers/pn532_spi.c:164: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(connstrings[device_found], connstring, sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/drivers/pn532_spi.c:645: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(ack_tx_buf + 1, pn53x_ack_frame, ack_frame_len);
data/libnfc-1.8.0/libnfc/drivers/pn532_uart.c:164: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(connstrings[device_found], connstring, sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.c:371:9:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
        strcpy(buffer + strlen(buffer), " / ");
data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.c:715: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(pbtData, abtRxBuf + offset, len);
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:67: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(connstrings[device_found++], connstring, sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:109:3:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
  strcpy(pnd->name, "pn71xx-device");
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:228: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 buffer [100];
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:252: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(TagInfo, pTagInfo, sizeof(nfc_tag_info_t));
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:303:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(nttmp.nti.nai.abtAts, "\x75\x77\x81\x02", 4);
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:357: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(uidPtr, TagInfo->uid, len);
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:363: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(pnt, &nttmp, sizeof(nfc_target));
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:390: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 buffer[500];
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:422: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(pnt, &nt, sizeof(nfc_target));
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:517: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(*pbuf, info, buflen);
data/libnfc-1.8.0/libnfc/iso14443-subr.c:142: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(pbtCascadedUID + 1, abtUID, 7);
data/libnfc-1.8.0/libnfc/iso14443-subr.c:148: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(pbtCascadedUID + 1, abtUID, 3);
data/libnfc-1.8.0/libnfc/iso14443-subr.c:150: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(pbtCascadedUID + 5, abtUID + 3, 7);
data/libnfc-1.8.0/libnfc/iso14443-subr.c:156: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(pbtCascadedUID, abtUID, szUID);
data/libnfc-1.8.0/libnfc/log.c:61: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 str[32];
data/libnfc-1.8.0/libnfc/log.c:90:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    log_level = atoi(env_log_level);
data/libnfc-1.8.0/libnfc/log.h:97: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	 __acBuf[1024]; \
data/libnfc-1.8.0/libnfc/nfc-internal.c:103:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(res->user_defined_devices[0].name, "user defined default device");
data/libnfc-1.8.0/libnfc/nfc-internal.c:122:5:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
    strcpy(res->user_defined_devices[0].name, "user defined device");
data/libnfc-1.8.0/libnfc/nfc-internal.c:139:22:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
    res->log_level = atoi(envvar);
data/libnfc-1.8.0/libnfc/nfc-internal.c:230: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 format[32];
data/libnfc-1.8.0/libnfc/nfc-internal.h:126:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
  struct nfc_device *(*open)(const nfc_context *context, const nfc_connstring connstring);
data/libnfc-1.8.0/libnfc/nfc-internal.h:165: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[DEVICE_NAME_LENGTH];
data/libnfc-1.8.0/libnfc/nfc-internal.h:197: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[DEVICE_NAME_LENGTH];
data/libnfc-1.8.0/libnfc/nfc.c:305:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    pnd = ndr->open(context, ncs);
data/libnfc-1.8.0/libnfc/nfc.c:581: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(abtInit, pbtInitData, szInitData);
data/libnfc-1.8.0/libnfc/nfc.c:637: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(&(ant[szTargetFound]), &nt, sizeof(nfc_target));
data/libnfc-1.8.0/libnfc/target-subr.c:40: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 type[128];
data/libnfc-1.8.0/libnfc/target-subr.c:48: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 type[128];
data/libnfc-1.8.0/utils/mifare.c:102: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(abtCmd + 2, (uint8_t *) pmp, szParamLen);
data/libnfc-1.8.0/utils/mifare.c:136: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(pmp->mpd.abtData, abtRx, 16);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:163:15:  [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_out, "\x90\x00", res = 2);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:166:15:  [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_out, "\x90\x00", res = 2);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:169:15:  [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_out, "\x6a\x00", res = 2);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:181:15:  [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_out, "\x90\x00", res = 2);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:183:15:  [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_out, "\x90\x00", res = 2);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:185:15:  [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_out, "\x6a\x82", res = 2);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:199:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data_out, "\x6a\x82", res = 2);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:202:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data_out, nfcforum_capability_container + (data_in[P1] << 8) + data_in[P2], data_in[LC]);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:203:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data_out + data_in[LC], "\x90\x00", 2);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:207:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data_out, ndef_data->ndef_file + (data_in[P1] << 8) + data_in[P2], data_in[LC]);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:208:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(data_out + data_in[LC], "\x90\x00", 2);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:215: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(ndef_data->ndef_file + (data_in[P1] << 8) + data_in[P2], data_in + DATA, data_in[LC]);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:219: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(data_out, "\x90\x00", res = 2);
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:259: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 (!(F = fopen(filename, "r"))) {
data/libnfc-1.8.0/utils/nfc-emulate-forum-tag4.c:296: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 (!(F = fopen(filename, "w"))) {
data/libnfc-1.8.0/utils/nfc-jewel.c:125: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    buffer[BUFSIZ];
data/libnfc-1.8.0/utils/nfc-jewel.c:223:14:  [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).
    pfDump = fopen(argv[2], "rb");
data/libnfc-1.8.0/utils/nfc-jewel.c:291:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      pfDump = fopen(argv[2], "wb");
data/libnfc-1.8.0/utils/nfc-list.c:113:14:  [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).
      mask = atoi(argv[arg]);
data/libnfc-1.8.0/utils/nfc-mfclassic.c:192: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(mp.mpa.abtAuthUid, nt.nti.nai.abtUid + nt.nti.nai.szUidLen - 4, 4);
data/libnfc-1.8.0/utils/nfc-mfclassic.c:216: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(mp.mpa.abtKey, default_key, sizeof(default_key));
data/libnfc-1.8.0/utils/nfc-mfclassic.c:226: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(mp.mpa.abtKey, keys + (key_index * 6), 6);
data/libnfc-1.8.0/utils/nfc-mfclassic.c:367:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(mtDump.amb[iBlock].mbt.abtKeyA, default_key, sizeof(default_key));
data/libnfc-1.8.0/utils/nfc-mfclassic.c:369:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
            memcpy(mtDump.amb[iBlock].mbt.abtKeyB, default_key, sizeof(default_key));
data/libnfc-1.8.0/utils/nfc-mfclassic.c:628: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(mtDump.amb[0].mbt.abtKeyA, default_key, sizeof(default_key));
data/libnfc-1.8.0/utils/nfc-mfclassic.c:629: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(mtDump.amb[0].mbt.abtAccessBits, default_acl, sizeof(mp.mpt.abtAccessBits));
data/libnfc-1.8.0/utils/nfc-mfclassic.c:630: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(mtDump.amb[0].mbt.abtKeyB, default_key, sizeof(default_key));
data/libnfc-1.8.0/utils/nfc-mfclassic.c:647: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(original_b0, mp.mpd.abtData, sizeof(mp.mpd.abtData));
data/libnfc-1.8.0/utils/nfc-mfclassic.c:661: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(mp.mpd.abtData, original_b0, sizeof(original_b0));
data/libnfc-1.8.0/utils/nfc-mfclassic.c:698:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    bForceKeyFile = ((argc > 6) && (strcmp((char *)argv[6], "f") == 0));
data/libnfc-1.8.0/utils/nfc-mfclassic.c:707:45:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    bForceKeyFile = ((argc > 6) && (strcmp((char *)argv[6], "f") == 0));
data/libnfc-1.8.0/utils/nfc-mfclassic.c:734:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *pfKeys = fopen(argv[5], "rb");
data/libnfc-1.8.0/utils/nfc-mfclassic.c:804: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(fileUid, mtKeys.amb[0].mbm.abtUID, 4);
data/libnfc-1.8.0/utils/nfc-mfclassic.c:872:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *pfKeys = fopen(argv[5], "rb");
data/libnfc-1.8.0/utils/nfc-mfclassic.c:888:20:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    FILE *pfDump = fopen(argv[4], "rb");
data/libnfc-1.8.0/utils/nfc-mfclassic.c:909:22:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
      FILE *pfDump = fopen(argv[4], "wb");
data/libnfc-1.8.0/utils/nfc-mfultralight.c:129: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(mtDump.ul[page / 4].mbd.abtData, mp.mpd.abtData, uiBlocks - page < 4 ? (uiBlocks - page) * 4 : 16);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:144: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(mtDump.ul[4].mbc11.pwd, iPWD, 4);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:145: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(mtDump.ul[4].mbc11.pack, iPACK, 2);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:148: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(mtDump.ul[9].mbc21a.pwd, iPWD, 4);
data/libnfc-1.8.0/utils/nfc-mfultralight.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(mtDump.ul[9].mbc21b.pack, iPACK, 2);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:158: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(mtDump.nt[43].mbc21356d.pwd, iPWD, 4);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:159: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(mtDump.nt[44].mbc21356e.pack, iPACK, 2);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:162: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(mtDump.nt[133].mbc21356d.pwd, iPWD, 4);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:163: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(mtDump.nt[134].mbc21356e.pack, iPACK, 2);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:166: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(mtDump.nt[229].mbc21356d.pwd, iPWD, 4);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:167: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(mtDump.nt[230].mbc21356e.pack, iPACK, 2);
data/libnfc-1.8.0/utils/nfc-mfultralight.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(&abtPWAuth[1], pwd, 4);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:301: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(original_b0, mp.mpd.abtData, 12);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:316: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(mp.mpd.abtData, original_b0 + page * 4, 4);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:347: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    buffer[BUFSIZ];
data/libnfc-1.8.0/utils/nfc-mfultralight.c:431: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(mp.mpd.abtData, mtDump.ul[uiBlock].mbd.abtData + ((page % 4) * 4), 4);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:481: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 nibble[2] = { 0x00, '\n' }; /* for strtol */
data/libnfc-1.8.0/utils/nfc-mfultralight.c:699: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(iPACK, abtRx, 2);
data/libnfc-1.8.0/utils/nfc-mfultralight.c:706:14:  [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).
    pfDump = fopen(argv[2], "rb");
data/libnfc-1.8.0/utils/nfc-mfultralight.c:734:14:  [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).
    pfDump = fopen(argv[2], "wb");
data/libnfc-1.8.0/utils/nfc-read-forum-tag3.c:99: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(frame + 2, nfi.abtId, 8);
data/libnfc-1.8.0/utils/nfc-read-forum-tag3.c:100: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(frame + 10, payload, payload_len);
data/libnfc-1.8.0/utils/nfc-read-forum-tag3.c:163: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, &rx[res_overhead + 1], *data_len);
data/libnfc-1.8.0/utils/nfc-read-forum-tag3.c:205:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    ndef_stream = fopen(ndef_output, "wb");
data/libnfc-1.8.0/utils/nfc-relay-picc.c:133: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 pchScan[256];
data/libnfc-1.8.0/utils/nfc-relay-picc.c:143:3:  [2] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant string.
  strcat(pchScan, " %04x:");
data/libnfc-1.8.0/utils/nfc-relay-picc.c:375: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(pbtTkt, pbtTk, szTk);
data/libnfc-1.8.0/utils/nfc-relay-picc.c:381: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(&(ntEmulatedTarget.nti.nai.abtAts[4]), pbtTkt, szTk);
data/libnfc-1.8.0/contrib/win32/stdlib.c:44:5:  [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(str, "=");
data/libnfc-1.8.0/contrib/win32/stdlib.c:55:3:  [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(str, "=");
data/libnfc-1.8.0/examples/nfc-emulate-uid.c:117:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    } else if ((arg == argc - 1) && (strlen(argv[arg]) == 8)) {         // See if UID was specified as HEX string
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:174: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).
    } else if (strlen(argv[arg]) == 8) {
data/libnfc-1.8.0/examples/nfc-mfsetuid.c:182: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).
    } else if (strlen(argv[arg]) == 32) {
data/libnfc-1.8.0/examples/pn53x-sam.c:117:15:  [1] (buffer) getchar:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  int input = getchar();
data/libnfc-1.8.0/examples/pn53x-tamashell.c:149: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).
      if (ret == NULL || strlen(cmd) <= 0) {
data/libnfc-1.8.0/libnfc/buses/i2c.c:134:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  recCount = read(I2C_DATA(id) ->fd, pbtRx, szRx);
data/libnfc-1.8.0/libnfc/buses/i2c.c:203:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (!strncmp(pdDirEnt->d_name, *p, strlen(*p))) {
data/libnfc-1.8.0/libnfc/buses/i2c.c:210: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 (!(res[szRes - 1] = malloc(6 + strlen(pdDirEnt->d_name)))) {
data/libnfc-1.8.0/libnfc/buses/spi.c:288: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).
    if (!isdigit(pdDirEnt->d_name[strlen(pdDirEnt->d_name) - 1]))
data/libnfc-1.8.0/libnfc/buses/spi.c:293:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (!strncmp(pdDirEnt->d_name, *p, strlen(*p))) {
data/libnfc-1.8.0/libnfc/buses/spi.c:299: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 (!(res[szRes - 1] = malloc(6 + strlen(pdDirEnt->d_name))))
data/libnfc-1.8.0/libnfc/buses/uart.c:179:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  if (read(UART_DATA(sp)->fd, rx, available_bytes_count) < 0) {
data/libnfc-1.8.0/libnfc/buses/uart.c:358:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    res = read(UART_DATA(sp)->fd, pbtRx + received_bytes_count, MIN(available_bytes_count, (expected_bytes_count - received_bytes_count)));
data/libnfc-1.8.0/libnfc/buses/uart.c:405: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).
    if (!isdigit(pdDirEnt->d_name[strlen(pdDirEnt->d_name) - 1]))
data/libnfc-1.8.0/libnfc/buses/uart.c:410:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (!strncmp(pdDirEnt->d_name, *p, strlen(*p))) {
data/libnfc-1.8.0/libnfc/buses/uart.c:417: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 (!(res[szRes - 1] = malloc(6 + strlen(pdDirEnt->d_name)))) {
data/libnfc-1.8.0/libnfc/conf.c:226:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(context->user_defined_devices[context->user_defined_device_count - 1].name, value, DEVICE_NAME_LENGTH - 1);
data/libnfc-1.8.0/libnfc/conf.c:236:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(context->user_defined_devices[context->user_defined_device_count - 1].connstring, value, NFC_BUFSIZE_CONNSTRING - 1);
data/libnfc-1.8.0/libnfc/conf.c:272:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const size_t filename_len = strlen(de->d_name);
data/libnfc-1.8.0/libnfc/conf.c:273:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        const size_t extension_len = strlen(".conf");
data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.c:177:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int     l = strlen(supported_devices[i]);
data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.c:224: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(ndd.pcsc_device_name) < 5) { // We can assume it's a reader ID as pcsc_name always ends with "NN NN"
data/libnfc-1.8.0/libnfc/drivers/acr122_pcsc.c:243:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fullconnstring, ncs[index], sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:364: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).
      if (strlen(buffer) > 0)
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:365: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).
        strcpy(buffer + strlen(buffer), " / ");
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:366:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      usb_get_string_simple(udev, dev->descriptor.iProduct, buffer + strlen(buffer), len - strlen(buffer));
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:366:92:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      usb_get_string_simple(udev, dev->descriptor.iProduct, buffer + strlen(buffer), len - strlen(buffer));
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:374:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, acr122_usb_supported_devices[n].name, len);
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:595:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read:
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:622:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      goto read;
data/libnfc-1.8.0/libnfc/drivers/acr122_usb.c:675:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        goto read; // FIXME May cause some trouble on Touchatag, right ?
data/libnfc-1.8.0/libnfc/drivers/arygon.c:538:5:  [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.
    sscanf((const char *)p, "%02x%9s", &szData, p);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:206:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (pnd == NULL || strlen(pnd->name) == 0) {
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:430:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      int     l = strlen(supported_devices[i]);
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:477: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(ndd.pcsc_device_name) < 5) { // We can assume it's a reader ID as pcsc_name always ends with "NN NN"
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:496:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(fullconnstring, ncs[index], sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/drivers/pcsc.c:704:11:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    (void)strncpy(strError, msg, sizeof(strError));
data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.c:370: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).
      if (strlen(buffer) > 0)
data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.c:371: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).
        strcpy(buffer + strlen(buffer), " / ");
data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.c:372:70:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      usb_get_string_simple(udev, dev->descriptor.iProduct, buffer + strlen(buffer), len - strlen(buffer));
data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.c:372:92:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      usb_get_string_simple(udev, dev->descriptor.iProduct, buffer + strlen(buffer), len - strlen(buffer));
data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.c:380:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(buffer, pn53x_usb_supported_devices[n].name, len);
data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.c:620:1:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
read:
data/libnfc-1.8.0/libnfc/drivers/pn53x_usb.c:643:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      goto read;
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:426:5:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
    usleep(period);
data/libnfc-1.8.0/libnfc/drivers/pn71xx.c:512:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t buflen = strlen(info) + 1;
data/libnfc-1.8.0/libnfc/log.h:106: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).
    __szBuf += strlen (pcTag) + 2; \
data/libnfc-1.8.0/libnfc/nfc-internal.c:93:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(res->user_defined_devices[i].name, "");
data/libnfc-1.8.0/libnfc/nfc-internal.c:94:5:  [1] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant character.
    strcpy(res->user_defined_devices[i].connstring, "");
data/libnfc-1.8.0/libnfc/nfc-internal.c:104:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(res->user_defined_devices[0].connstring, envvar, NFC_BUFSIZE_CONNSTRING);
data/libnfc-1.8.0/libnfc/nfc-internal.c:123:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(res->user_defined_devices[0].connstring, envvar, NFC_BUFSIZE_CONNSTRING);
data/libnfc-1.8.0/libnfc/nfc-internal.c:210: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).
  int n = strlen(connstring) + 1;
data/libnfc-1.8.0/libnfc/nfc.c:287:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ncs, connstring, sizeof(nfc_connstring));
data/libnfc-1.8.0/libnfc/nfc.c:297:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (0 != strncmp(ndr->name, ncs, strlen(ndr->name))) {
data/libnfc-1.8.0/libnfc/nfc.c:299:37:  [1] (buffer) strlen:
  Does not handle 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 ((0 != strncmp("usb", ncs, strlen("usb"))) || 0 != strncmp("_usb", ndr->name + (strlen(ndr->name) - 4), 4)) {
data/libnfc-1.8.0/libnfc/nfc.c:299:90:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if ((0 != strncmp("usb", ncs, strlen("usb"))) || 0 != strncmp("_usb", ndr->name + (strlen(ndr->name) - 4), 4)) {
data/libnfc-1.8.0/libnfc/nfc.c:308:36:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (0 == strncmp("usb", ncs, strlen("usb"))) {
data/libnfc-1.8.0/libnfc/nfc.c:373: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).
        if ((old_env_log_level = malloc(strlen(env_log_level) + 1)) == NULL) {
data/libnfc-1.8.0/libnfc/nfc.c:1428:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  return strlen(*buf);
data/libnfc-1.8.0/utils/jewel.h:116:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  jewel_req_read     read;
data/libnfc-1.8.0/utils/jewel.h:167:22:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  jewel_res_read     read;
data/libnfc-1.8.0/utils/nfc-jewel.c:96:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      req.read.btCmd = TC_READ;
data/libnfc-1.8.0/utils/nfc-jewel.c:97:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
      req.read.btAdd = (block << 3) + byte;
data/libnfc-1.8.0/utils/nfc-jewel.c:99:55:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        ttDump.ttd.abtData[(block << 3) + byte] = res.read.btDat;
data/libnfc-1.8.0/utils/nfc-mfclassic.c:712:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (strlen(argv[3]) != 9) {
data/libnfc-1.8.0/utils/nfc-mfultralight.c:566:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
      if (arg + 1 == argc || strlen(argv[++arg]) != 8 || ! ev1_load_pwd(iPWD, argv[arg])) {
data/libnfc-1.8.0/utils/nfc-read-forum-tag3.c:200:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if ((strlen(ndef_output) == 1) && (ndef_output[0] == '-')) {
data/libnfc-1.8.0/utils/nfc-relay-picc.c:136:15:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
  while ((c = fgetc(fd3)) != '#') {
data/libnfc-1.8.0/utils/nfc-relay-picc.c:141:3:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
  strncpy(pchScan, pchPrefix, 250);

ANALYSIS SUMMARY:

Hits = 368
Lines analyzed = 27589 in approximately 0.89 seconds (30848 lines/second)
Physical Source Lines of Code (SLOC) = 18590
Hits@level = [0] 772 [1]  71 [2] 246 [3]  10 [4]  41 [5]   0
Hits@level+ = [0+] 1140 [1+] 368 [2+] 297 [3+]  51 [4+]  41 [5+]   0
Hits/KSLOC@level+ = [0+] 61.3233 [1+] 19.7956 [2+] 15.9763 [3+] 2.74341 [4+] 2.20549 [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.