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/ladvd-1.1.2/src/child.c
Examining data/ladvd-1.1.2/src/child.h
Examining data/ladvd-1.1.2/src/cli.c
Examining data/ladvd-1.1.2/src/cli.h
Examining data/ladvd-1.1.2/src/common.h
Examining data/ladvd-1.1.2/src/compat/compat.h
Examining data/ladvd-1.1.2/src/compat/imsg-buffer.c
Examining data/ladvd-1.1.2/src/compat/imsg.c
Examining data/ladvd-1.1.2/src/compat/imsg.h
Examining data/ladvd-1.1.2/src/compat/setproctitle.c
Examining data/ladvd-1.1.2/src/compat/strlcat.c
Examining data/ladvd-1.1.2/src/compat/strlcpy.c
Examining data/ladvd-1.1.2/src/compat/sys-queue.h
Examining data/ladvd-1.1.2/src/compat/vis.c
Examining data/ladvd-1.1.2/src/compat/vis.h
Examining data/ladvd-1.1.2/src/ether.h
Examining data/ladvd-1.1.2/src/filter.h
Examining data/ladvd-1.1.2/src/main.c
Examining data/ladvd-1.1.2/src/main.h
Examining data/ladvd-1.1.2/src/netif.c
Examining data/ladvd-1.1.2/src/netif_bsd.c
Examining data/ladvd-1.1.2/src/netif_linux.c
Examining data/ladvd-1.1.2/src/parent.c
Examining data/ladvd-1.1.2/src/parent.h
Examining data/ladvd-1.1.2/src/proto/cdp.c
Examining data/ladvd-1.1.2/src/proto/cdp.h
Examining data/ladvd-1.1.2/src/proto/edp.c
Examining data/ladvd-1.1.2/src/proto/edp.h
Examining data/ladvd-1.1.2/src/proto/fdp.c
Examining data/ladvd-1.1.2/src/proto/fdp.h
Examining data/ladvd-1.1.2/src/proto/lldp.c
Examining data/ladvd-1.1.2/src/proto/lldp.h
Examining data/ladvd-1.1.2/src/proto/ndp.c
Examining data/ladvd-1.1.2/src/proto/ndp.h
Examining data/ladvd-1.1.2/src/proto/protos.h
Examining data/ladvd-1.1.2/src/proto/tlv.c
Examining data/ladvd-1.1.2/src/proto/tlv.h
Examining data/ladvd-1.1.2/src/sysinfo.c
Examining data/ladvd-1.1.2/src/util.c
Examining data/ladvd-1.1.2/src/util.h
Examining data/ladvd-1.1.2/tests/check_child.c
Examining data/ladvd-1.1.2/tests/check_cli.c
Examining data/ladvd-1.1.2/tests/check_compat.c
Examining data/ladvd-1.1.2/tests/check_parent.c
Examining data/ladvd-1.1.2/tests/check_proto.c
Examining data/ladvd-1.1.2/tests/check_tlv.c
Examining data/ladvd-1.1.2/tests/check_util.c
Examining data/ladvd-1.1.2/tests/check_wrap.c
Examining data/ladvd-1.1.2/tests/check_wrap.h

FINAL RESULTS:

data/ladvd-1.1.2/src/child.c:99:6:  [5] (race) chmod:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchmod( ) instead.
	if (chmod(PACKAGE_SOCKET, S_IRWXU|S_IRWXG) == -1)
data/ladvd-1.1.2/src/child.c:101:6:  [5] (race) chown:
  This accepts filename arguments; if an attacker can move those files, a
  race condition results. (CWE-362). Use fchown( ) instead.
	if (chown(PACKAGE_SOCKET, -1, pwd->pw_gid) == -1)
data/ladvd-1.1.2/src/parent.c:574:22:  [5] (race) readlink:
  This accepts filename arguments; if an attacker can move those files or
  change the link content, a race condition results. Also, it does not
  terminate with ASCII NUL. (CWE-362, CWE-20). Reconsider approach.
    if (ret == -1 || readlink(path, sub_path, sizeof(sub_path) - 1) == -1)
data/ladvd-1.1.2/src/cli.c:425: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, PACKAGE_NAME " version " PACKAGE_VERSION "\n" 
data/ladvd-1.1.2/src/compat/setproctitle.c:144:4:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
			vsnprintf(buf + len, sizeof(buf) - len , fmt, ap);
data/ladvd-1.1.2/src/main.c:288: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, PACKAGE_NAME " version " PACKAGE_VERSION "\n" 
data/ladvd-1.1.2/src/parent.c:498:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    ret = snprintf(path, SYSFS_PATH_MAX,
data/ladvd-1.1.2/src/parent.c:540:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    ret = snprintf(path, SYSFS_PATH_MAX,
data/ladvd-1.1.2/src/parent.c:571:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    ret = snprintf(path, SYSFS_PATH_MAX,
data/ladvd-1.1.2/src/parent.c:581:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = snprintf(path, SYSFS_PATH_MAX,
data/ladvd-1.1.2/src/parent.c:586:8:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = snprintf(path, SYSFS_PATH_MAX,
data/ladvd-1.1.2/src/parent.c:605:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    ret = snprintf(path, SYSFS_PATH_MAX,
data/ladvd-1.1.2/src/parent.c:612:11:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    ret = snprintf(path, SYSFS_PATH_MAX,
data/ladvd-1.1.2/src/sysinfo.c:90:6:  [4] (shell) execvp:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	if (execvp(cmd[0], cmd) == -1)
data/ladvd-1.1.2/src/util.c:45:2:  [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, efmt, ap);
data/ladvd-1.1.2/tests/check_wrap.c:133:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(check_wrap_errstr, 1024, fmt, ap);
data/ladvd-1.1.2/tests/check_wrap.c:137:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(check_wrap_errstr, 1024, fmt, ap);
data/ladvd-1.1.2/src/cli.c:76:18:  [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, "LCEFNbdfp:ovh")) != -1) {
data/ladvd-1.1.2/src/main.c:84:18:  [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, "ade:fhm:noqrstu:vwyzc:l:LCEFN")) != -1) {
data/ladvd-1.1.2/src/util.c:181:9:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
    if (chroot(path) == -1)
data/ladvd-1.1.2/tests/check_parent.c:532:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((prefix = getenv("srcdir")) == NULL)
data/ladvd-1.1.2/tests/check_util.c:506:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((prefix = getenv("srcdir")) == NULL)
data/ladvd-1.1.2/tests/check_wrap.c:72:6:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
WRAP(chroot, CHROOT, (const char *dirname), (dirname));
data/ladvd-1.1.2/tests/check_wrap.c:153:19:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
    if ((prefix = getenv("srcdir")) == NULL)
data/ladvd-1.1.2/src/child.c:368:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg, &rmsg, offsetof(struct parent_msg, entries));
data/ladvd-1.1.2/src/child.c:373:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg, &rmsg, offsetof(struct parent_msg, entries));
data/ladvd-1.1.2/src/child.c:595: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 buf[MNL_SOCKET_BUFFER_SIZE];
data/ladvd-1.1.2/src/child.c:610: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 msg[2048] = {};
data/ladvd-1.1.2/src/common.h:115: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 name[IFNAMSIZ];
data/ladvd-1.1.2/src/common.h:116: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 description[IFDESCRSIZE];
data/ladvd-1.1.2/src/common.h:148: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 device_name[IFDESCRSIZE];
data/ladvd-1.1.2/src/common.h:154: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 name[IFNAMSIZ];
data/ladvd-1.1.2/src/common.h:161: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 hw_revision[LLDP_INVENTORY_SIZE + 1];
data/ladvd-1.1.2/src/common.h:162: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 fw_revision[LLDP_INVENTORY_SIZE + 1];
data/ladvd-1.1.2/src/common.h:163: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 sw_revision[LLDP_INVENTORY_SIZE + 1];
data/ladvd-1.1.2/src/common.h:164: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 serial_number[LLDP_INVENTORY_SIZE + 1];
data/ladvd-1.1.2/src/common.h:165: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 manufacturer[LLDP_INVENTORY_SIZE + 1];
data/ladvd-1.1.2/src/common.h:166: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 model_name[LLDP_INVENTORY_SIZE + 1];
data/ladvd-1.1.2/src/common.h:167: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 asset_id[LLDP_INVENTORY_SIZE + 1];
data/ladvd-1.1.2/src/common.h:172: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 uts_str[256];
data/ladvd-1.1.2/src/common.h:174: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 platform[256];
data/ladvd-1.1.2/src/common.h:175: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 hostname[256];
data/ladvd-1.1.2/src/common.h:176: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 country[3];
data/ladvd-1.1.2/src/common.h:177: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 location[256];
data/ladvd-1.1.2/src/common.h:237: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 name[IFNAMSIZ];
data/ladvd-1.1.2/src/common.h:239: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 buf[512];
data/ladvd-1.1.2/src/common.h:281: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 name[IFNAMSIZ];
data/ladvd-1.1.2/src/common.h:285:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char msg[ETHER_MAX_LEN];
data/ladvd-1.1.2/src/common.h:289: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 *peer[PEER_MAX];
data/ladvd-1.1.2/src/compat/imsg-buffer.c:100:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf->buf + buf->wpos, data, len);
data/ladvd-1.1.2/src/compat/imsg-buffer.c:236:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char		buf[CMSG_SPACE(sizeof(int))];
data/ladvd-1.1.2/src/compat/imsg-buffer.c:262: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(CMSG_DATA(cmsg), &buf->fd, sizeof(int));
data/ladvd-1.1.2/src/compat/imsg.c:88:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char	buf[CMSG_SPACE(sizeof(int) * 1)];
data/ladvd-1.1.2/src/compat/imsg.c:187:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(imsg->data, ibuf->r.rptr, datalen);
data/ladvd-1.1.2/src/compat/setproctitle.c:126:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[1024], ptitle[1024];
data/ladvd-1.1.2/src/compat/vis.c:171:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 tbuf[5];
data/ladvd-1.1.2/src/compat/vis.c:193: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(dst, tbuf, i);
data/ladvd-1.1.2/src/main.c:41: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 pidstr[16];
data/ladvd-1.1.2/src/main.c:226:7:  [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).
	fd = open(PACKAGE_PID_FILE, O_WRONLY|O_CREAT, 0666);
data/ladvd-1.1.2/src/netif.c:286:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&sysinfo->hwaddr, &netif->hwaddr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/netif.c:353:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&netif->ipaddr4, &saddr4.sin_addr,
data/ladvd-1.1.2/src/netif.c:374:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&netif->ipaddr6, &saddr6.sin6_addr,
data/ladvd-1.1.2/src/netif.c:391:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&netif->hwaddr, &saddrll.sll_addr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/netif.c:399:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&netif->hwaddr, LLADDR(&saddrdl), ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/netif.c:412:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(&netif->ipaddr6, &mnetif->ipaddr6, sizeof(mnetif->ipaddr6));
data/ladvd-1.1.2/src/netif_bsd.c:84: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 dname[IFNAMSIZ+1] = {};
data/ladvd-1.1.2/src/netif_bsd.c:235: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 dname[IFNAMSIZ+1] = {}, desc_sysctl[64] = {}, *dunit;
data/ladvd-1.1.2/src/netif_linux.c:76: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 dname[IFNAMSIZ+1] = {};
data/ladvd-1.1.2/src/netif_linux.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(&pt_info, mreq.buf, mreq.len);
data/ladvd-1.1.2/src/parent.c:426:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mreq->buf, &ecmd, sizeof(ecmd));
data/ladvd-1.1.2/src/parent.c:434:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mreq->buf, &edrvinfo, sizeof(edrvinfo));
data/ladvd-1.1.2/src/parent.c:481: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(mreq->buf, &pt_info, sizeof(pt_info));
data/ladvd-1.1.2/src/parent.c:492: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 path[SYSFS_PATH_MAX];
data/ladvd-1.1.2/src/parent.c:536: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 path[SYSFS_PATH_MAX];
data/ladvd-1.1.2/src/parent.c:555: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 path[SYSFS_PATH_MAX], id_str[16];
data/ladvd-1.1.2/src/parent.c:556: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 sub_path[SYSFS_PATH_MAX] = {}, *sub_base = NULL;
data/ladvd-1.1.2/src/parent.c:557: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 vendor_str[32], device_str[32], *s = NULL;
data/ladvd-1.1.2/src/parent.c:629: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 p_errbuf[PCAP_ERRBUF_SIZE] = {};
data/ladvd-1.1.2/src/parent.c:734:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mreq.mr_address, protos[p].dst_addr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/parent.c:755:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(LLADDR(saddrdl), protos[p].dst_addr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/parent.c:758:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(ifr.ifr_addr.sa_data, protos[p].dst_addr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/parent.c:790:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(mrecv.msg, data, mrecv.len);
data/ladvd-1.1.2/src/parent.h:31: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 name[IFNAMSIZ];
data/ladvd-1.1.2/src/proto/cdp.c:103: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(ether.dst, cdp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/cdp.c:104: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(ether.src, netif->hwaddr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/cdp.c:112: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(pos, &llc, sizeof(struct ether_llc));
data/ladvd-1.1.2/src/proto/cdp.c:121: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(pos, &cdp, sizeof(struct cdp_header));
data/ladvd-1.1.2/src/proto/cdp.c:312: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(cdp_start, &cdp, sizeof(struct cdp_header));
data/ladvd-1.1.2/src/proto/cdp.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(packet, &ether, sizeof(struct ether_hdr));
data/ladvd-1.1.2/src/proto/edp.c:57: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(ether.dst, edp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/edp.c:58: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(ether.src, netif->hwaddr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/edp.c:66: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(pos, &llc, sizeof(struct ether_llc));
data/ladvd-1.1.2/src/proto/edp.c:72: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(&edp.hwaddr, hwaddr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/edp.c:153:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(edp_start, &edp, sizeof(struct edp_header));
data/ladvd-1.1.2/src/proto/edp.c:155: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(edp_start, &edp, sizeof(struct edp_header));
data/ladvd-1.1.2/src/proto/edp.c:159: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(packet, &ether, sizeof(struct ether_hdr));
data/ladvd-1.1.2/src/proto/fdp.c:61: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(ether.dst, fdp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/fdp.c:62: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(ether.src, netif->hwaddr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/fdp.c:70: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(pos, &llc, sizeof(struct ether_llc));
data/ladvd-1.1.2/src/proto/fdp.c:77:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(pos, &fdp, sizeof(struct fdp_header));
data/ladvd-1.1.2/src/proto/fdp.c:182: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(fdp_start, &fdp, sizeof(struct fdp_header));
data/ladvd-1.1.2/src/proto/fdp.c:186: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(packet, &ether, sizeof(struct ether_hdr));
data/ladvd-1.1.2/src/proto/lldp.c:84: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(ether.dst, lldp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/lldp.c:85: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(ether.src, netif->hwaddr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/lldp.c:87: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(pos, &ether, sizeof(struct ether_hdr));
data/ladvd-1.1.2/src/proto/ndp.c:50: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(ether.dst, ndp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/ndp.c:51: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(ether.src, netif->hwaddr, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/proto/ndp.c:59: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(pos, &llc, sizeof(struct ether_llc));
data/ladvd-1.1.2/src/proto/ndp.c:69: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(pos, &ndp, sizeof(struct ndp_header));
data/ladvd-1.1.2/src/proto/ndp.c:77:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(packet, &ether, sizeof(struct ether_hdr));
data/ladvd-1.1.2/src/proto/tlv.c:30: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 src[TLV_LEN], *str = NULL;
data/ladvd-1.1.2/src/proto/tlv.c:44:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(src, value, srclen);
data/ladvd-1.1.2/src/proto/tlv.c:51:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&cap, value, sizeof(uint16_t));
data/ladvd-1.1.2/src/proto/tlv.c:93: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[TLV_LEN], *safe = NULL;
data/ladvd-1.1.2/src/proto/tlv.c:97: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, pos, srclen);
data/ladvd-1.1.2/src/proto/tlv.h:49: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(pos, &t, sizeof(t)), \
data/ladvd-1.1.2/src/proto/tlv.h:60: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(pos, value, (bytes) * sizeof(uint8_t)), \
data/ladvd-1.1.2/src/proto/tlv.h:82: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((d), pos, (b)), \
data/ladvd-1.1.2/src/proto/tlv.h:91: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((d), pos, (b)), \
data/ladvd-1.1.2/src/proto/tlv.h:122:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy((uint16_t *)tlv + 1, &type.uint16, sizeof(uint16_t)) \
data/ladvd-1.1.2/src/proto/tlv.h:137:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&type.uint16, tlv, sizeof(uint16_t)), \
data/ladvd-1.1.2/src/proto/tlv.h:139:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(tlv, &type.uint16, sizeof(uint16_t)) \
data/ladvd-1.1.2/src/proto/tlv.h:143:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(&type.uint16, pos, sizeof(uint16_t)), \
data/ladvd-1.1.2/src/proto/tlv.h:158:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy((uint16_t *)tlv + 1, &type.uint16, sizeof(uint16_t)) \
data/ladvd-1.1.2/src/proto/tlv.h:174:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy((uint16_t *)tlv + 1, &type.uint16, sizeof(uint16_t)) \
data/ladvd-1.1.2/src/sysinfo.c:68: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 buf[512], *bufp;
data/ladvd-1.1.2/src/sysinfo.c:81:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((null = open(_PATH_DEVNULL, O_RDWR)) == -1)
data/ladvd-1.1.2/src/sysinfo.c:249: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 line[256];
data/ladvd-1.1.2/src/sysinfo.c:265:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (atoi(line) == 1) {
data/ladvd-1.1.2/src/sysinfo.c:274:13:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
        if (atoi(line) == 1) {
data/ladvd-1.1.2/src/util.c:151: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 component[MAXPATHLEN];
data/ladvd-1.1.2/src/util.c:164:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	    memcpy(component, path, cp - path);
data/ladvd-1.1.2/src/util.c:232:17:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((file = fopen(path, "r")) == NULL)
data/ladvd-1.1.2/src/util.c:248:15:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    if ((fd = open(path, O_WRONLY|O_TRUNC)) == -1)
data/ladvd-1.1.2/src/util.c:377: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 descr[IFDESCRSIZE] = {};
data/ladvd-1.1.2/src/util.c:378: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 paddr[ETHER_ADDR_LEN] = {};
data/ladvd-1.1.2/src/util.c:401:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(paddr, qmsg->msg + ETHER_ADDR_LEN, ETHER_ADDR_LEN);
data/ladvd-1.1.2/src/util.c:433: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(mreq->buf, descr, mreq->len);
data/ladvd-1.1.2/tests/check_child.c:74: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).
    null = open(_PATH_DEVNULL, O_WRONLY);
data/ladvd-1.1.2/tests/check_child.c:105: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).
    null = open(_PATH_DEVNULL, O_WRONLY);
data/ladvd-1.1.2/tests/check_child.c:191: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(&ether.dst, lldp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/tests/check_child.c:193: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_child.c:444: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(&ether.dst, lldp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/tests/check_child.c:449:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_cli.c:43: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 *argv[7], ifname[IFNAMSIZ];
data/ladvd-1.1.2/tests/check_cli.c:44: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 buf[8192];
data/ladvd-1.1.2/tests/check_cli.c:287:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char buf[8192];
data/ladvd-1.1.2/tests/check_cli.c:335: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 buf[2048];
data/ladvd-1.1.2/tests/check_cli.c:384: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 buf[2048];
data/ladvd-1.1.2/tests/check_compat.c:63: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 dst[BUFSIZ];
data/ladvd-1.1.2/tests/check_compat.c:104: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 dst[BUFSIZ];
data/ladvd-1.1.2/tests/check_compat.c:134: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 dst[BUFSIZ];
data/ladvd-1.1.2/tests/check_parent.c:191: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(ether.dst, lldp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/tests/check_parent.c:193: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(mreq.buf, &ether, sizeof(struct ether_hdr));
data/ladvd-1.1.2/tests/check_parent.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(ether.dst, lldp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/tests/check_parent.c:383: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_parent.c:518: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 errbuf[PCAP_ERRBUF_SIZE];
data/ladvd-1.1.2/tests/check_proto.c:193: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(ether.dst, lldp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/tests/check_proto.c:194: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:200: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:205: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(msg.msg + offsetof(struct ether_hdr, type) + ETHER_VLAN_ENCAP_LEN, 
data/ladvd-1.1.2/tests/check_proto.c:211: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:230: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(ether.dst, cdp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/tests/check_proto.c:231: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:238: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:244: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:250: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:257: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:262: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(msg.msg + sizeof(ether) + ETHER_VLAN_ENCAP_LEN, &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.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(ether.dst, edp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/tests/check_proto.c:283: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:290: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:296: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:302: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:309: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:314: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(msg.msg + sizeof(ether) + ETHER_VLAN_ENCAP_LEN, &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:334: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(ether.dst, fdp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/tests/check_proto.c:335: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:342: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:348: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:354: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:361: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:366: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(msg.msg + sizeof(ether) + ETHER_VLAN_ENCAP_LEN, &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:386: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(ether.dst, ndp_dst, ETHER_ADDR_LEN);
data/ladvd-1.1.2/tests/check_proto.c:387: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:394: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:400: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:406: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(msg.msg + sizeof(ether), &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:413: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(msg.msg, &ether, sizeof(ether));
data/ladvd-1.1.2/tests/check_proto.c:418: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(msg.msg + sizeof(ether) + ETHER_VLAN_ENCAP_LEN, &llc, sizeof(llc));
data/ladvd-1.1.2/tests/check_proto.c:428: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 sobuf[1024];
data/ladvd-1.1.2/tests/check_proto.c:848: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 sobuf[1024];
data/ladvd-1.1.2/tests/check_tlv.c:37: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 value[32] = {};
data/ladvd-1.1.2/tests/check_util.c:37: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 buf[1024], *bp = NULL;
data/ladvd-1.1.2/tests/check_util.c:345: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(msg->msg + ETHER_ADDR_LEN, "\x02\x00\x01", 3);
data/ladvd-1.1.2/tests/check_util.c:354: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(msg->msg + ETHER_ADDR_LEN, "\x02\x00\x02", 3);
data/ladvd-1.1.2/tests/check_util.c:362: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(msg->msg + ETHER_ADDR_LEN, "\x02\x00\x03", 3);
data/ladvd-1.1.2/tests/check_util.c:371: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(msg->msg + ETHER_ADDR_LEN, "\x02\x00\x04", 3);
data/ladvd-1.1.2/tests/check_util.c:380: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(msg->msg + ETHER_ADDR_LEN, "\x02\x00\x04", 3);
data/ladvd-1.1.2/tests/check_util.c:389: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(msg->msg + ETHER_ADDR_LEN, "\x02\x00\x05", 3);
data/ladvd-1.1.2/tests/check_util.c:500: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 line[128];
data/ladvd-1.1.2/tests/check_util.c:576: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 path[MAXPATHLEN + 1] = {};
data/ladvd-1.1.2/tests/check_util.c:767: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 buf[1024];
data/ladvd-1.1.2/tests/check_wrap.c:34:1:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 check_wrap_errstr[1024];
data/ladvd-1.1.2/tests/check_wrap.c:104:7:  [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).
MWRAP(open, int, (const char *pathname, int flags, ...)) {
data/ladvd-1.1.2/tests/check_wrap.c:145: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 errbuf[PCAP_ERRBUF_SIZE];
data/ladvd-1.1.2/tests/check_wrap.c:166:13:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    fail_if(memcpy(msg->msg, data, msg->len) == NULL,
data/ladvd-1.1.2/src/child.c:88:14:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	old_umask = umask(S_IXUSR|S_IRWXG|S_IRWXO);
data/ladvd-1.1.2/src/child.c:104:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(old_umask);
data/ladvd-1.1.2/src/child.c:307:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    if ((len = read(fd, &rmsg, PARENT_MSG_MAX)) == -1)
data/ladvd-1.1.2/src/child.c:616:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(fd, msg, sizeof(msg));
data/ladvd-1.1.2/src/cli.c:175:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    while (read(fd, msg, PARENT_MSG_MAX) == PARENT_MSG_MAX) {
data/ladvd-1.1.2/src/cli.c:308:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (peer_host && (strlen(peer_host) > host_width))
data/ladvd-1.1.2/src/cli.c:391:44:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    evbuffer_add(req->output_buffer, data, strlen(data));
data/ladvd-1.1.2/src/compat/setproctitle.c:99: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).
			lastargv = argv[i] + strlen(argv[i]);
data/ladvd-1.1.2/src/compat/setproctitle.c:103: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).
			lastargv = envp[i] + strlen(envp[i]);
data/ladvd-1.1.2/src/compat/setproctitle.c:152:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0);
data/ladvd-1.1.2/src/compat/strlcat.c:49:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		return(dlen + strlen(s));
data/ladvd-1.1.2/src/main.c:162: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(optarg) != 2)
data/ladvd-1.1.2/src/main.c:234: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).
	    (write(fd, pidstr, strlen(pidstr)) <= 0))
data/ladvd-1.1.2/src/netif_bsd.c:115:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	dunit = dname + strlen(dname);
data/ladvd-1.1.2/src/netif_bsd.c:241: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).
    if (!strlen(dname))
data/ladvd-1.1.2/src/netif_bsd.c:245:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    dunit = dname + strlen(dname);
data/ladvd-1.1.2/src/netif_bsd.c:249: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).
    if (!strlen(dunit))
data/ladvd-1.1.2/src/netif_bsd.c:253:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    memmove(dunit + 1, dunit, strlen(dunit));
data/ladvd-1.1.2/src/netif_linux.c:113: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(dname)) {
data/ladvd-1.1.2/src/parent.c:198:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(reqfd, &mreq, PARENT_REQ_MAX);
data/ladvd-1.1.2/src/parent.c:315:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(msgfd, &msend, PARENT_MSG_MAX);
data/ladvd-1.1.2/src/parent.c:505: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).
	return write_line(path, mreq->buf, strlen(mreq->buf));
data/ladvd-1.1.2/src/parent.c:592: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).
	s = vendor_str + strlen(vendor_str);
data/ladvd-1.1.2/src/parent.c:595: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).
	s = device_str + strlen(device_str);
data/ladvd-1.1.2/src/parent.c:602: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).
	return(strlen(mreq->buf));
data/ladvd-1.1.2/src/parent.c:623:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    return(strlen(mreq->buf));
data/ladvd-1.1.2/src/proto/cdp.c:132:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PUSH_BYTES(sysinfo->hostname, strlen(sysinfo->hostname))
data/ladvd-1.1.2/src/proto/cdp.c:141:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PUSH_BYTES(sysinfo->uts_str, strlen(sysinfo->uts_str))
data/ladvd-1.1.2/src/proto/cdp.c:150:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PUSH_BYTES(sysinfo->platform, strlen(sysinfo->platform))
data/ladvd-1.1.2/src/proto/cdp.c:159: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).
	PUSH_BYTES(netif->name, strlen(netif->name))
data/ladvd-1.1.2/src/proto/cdp.c:289: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(sysinfo->location) != 0) {
data/ladvd-1.1.2/src/proto/cdp.c:293: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).
	    PUSH_BYTES(sysinfo->location, strlen(sysinfo->location))
data/ladvd-1.1.2/src/proto/cdp.c:304:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PUSH_BYTES(sysinfo->hostname, strlen(sysinfo->hostname))
data/ladvd-1.1.2/src/proto/edp.c:83:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PUSH_BYTES(sysinfo->hostname, strlen(sysinfo->hostname) + 1)
data/ladvd-1.1.2/src/proto/edp.c:114: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).
	    PUSH_BYTES(netif->name, strlen(netif->name)) &&
data/ladvd-1.1.2/src/proto/edp.c:137: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).
	    PUSH_BYTES(netif->name, strlen(netif->name))
data/ladvd-1.1.2/src/proto/fdp.c:88:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PUSH_BYTES(sysinfo->hostname, strlen(sysinfo->hostname))
data/ladvd-1.1.2/src/proto/fdp.c:97: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).
	PUSH_BYTES(netif->name, strlen(netif->name))
data/ladvd-1.1.2/src/proto/fdp.c:115: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).
	PUSH_BYTES(cap_str, strlen(cap_str))
data/ladvd-1.1.2/src/proto/fdp.c:124:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PUSH_BYTES(sysinfo->uts_str, strlen(sysinfo->uts_str))
data/ladvd-1.1.2/src/proto/fdp.c:133:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PUSH_BYTES(sysinfo->platform, strlen(sysinfo->platform))
data/ladvd-1.1.2/src/proto/lldp.c:110: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).
	PUSH_BYTES(netif->name, strlen(netif->name))
data/ladvd-1.1.2/src/proto/lldp.c:128:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strlen(netif->description))
data/ladvd-1.1.2/src/proto/lldp.c:130:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    else if (strlen(parent->description))
data/ladvd-1.1.2/src/proto/lldp.c:135: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(description) > 0) {
data/ladvd-1.1.2/src/proto/lldp.c:138: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).
	    PUSH_BYTES(description, strlen(description))
data/ladvd-1.1.2/src/proto/lldp.c:148:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PUSH_BYTES(sysinfo->hostname, strlen(sysinfo->hostname))
data/ladvd-1.1.2/src/proto/lldp.c:157:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	PUSH_BYTES(sysinfo->uts_str, strlen(sysinfo->uts_str))
data/ladvd-1.1.2/src/proto/lldp.c:251:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		PUSH_UINT8(strlen(vlanif->name)) &&
data/ladvd-1.1.2/src/proto/lldp.c:252:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		PUSH_BYTES(vlanif->name, strlen(vlanif->name))
data/ladvd-1.1.2/src/proto/lldp.c:318: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).
    if ((strlen(sysinfo->country) == 2) && (strlen(sysinfo->location) != 0)) {
data/ladvd-1.1.2/src/proto/lldp.c:318:45:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if ((strlen(sysinfo->country) == 2) && (strlen(sysinfo->location) != 0)) {
data/ladvd-1.1.2/src/proto/lldp.c:324:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    PUSH_UINT8(5 + strlen(sysinfo->location)) &&
data/ladvd-1.1.2/src/proto/lldp.c:328:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    PUSH_UINT8(strlen(sysinfo->location)) &&
data/ladvd-1.1.2/src/proto/lldp.c:329: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).
	    PUSH_BYTES(sysinfo->location, strlen(sysinfo->location))
data/ladvd-1.1.2/src/proto/lldp.c:340: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(hinv->hw_revision) > 0) {
data/ladvd-1.1.2/src/proto/lldp.c:345: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).
	    PUSH_BYTES(hinv->hw_revision, strlen(hinv->hw_revision))
data/ladvd-1.1.2/src/proto/lldp.c:353: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(hinv->fw_revision) > 0) {
data/ladvd-1.1.2/src/proto/lldp.c:358: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).
	    PUSH_BYTES(hinv->fw_revision, strlen(hinv->fw_revision))
data/ladvd-1.1.2/src/proto/lldp.c:366: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(hinv->sw_revision) > 0) {
data/ladvd-1.1.2/src/proto/lldp.c:371: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).
	    PUSH_BYTES(hinv->sw_revision, strlen(hinv->sw_revision))
data/ladvd-1.1.2/src/proto/lldp.c:379: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(hinv->serial_number) > 0) {
data/ladvd-1.1.2/src/proto/lldp.c:384: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).
	    PUSH_BYTES(hinv->serial_number, strlen(hinv->serial_number))
data/ladvd-1.1.2/src/proto/lldp.c:392: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(hinv->manufacturer) > 0) {
data/ladvd-1.1.2/src/proto/lldp.c:397: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).
	    PUSH_BYTES(hinv->manufacturer, strlen(hinv->manufacturer))
data/ladvd-1.1.2/src/proto/lldp.c:405: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(hinv->model_name) > 0) {
data/ladvd-1.1.2/src/proto/lldp.c:410: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).
	    PUSH_BYTES(hinv->model_name, strlen(hinv->model_name))
data/ladvd-1.1.2/src/proto/lldp.c:418: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(hinv->asset_id) > 0) {
data/ladvd-1.1.2/src/proto/lldp.c:423:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    PUSH_BYTES(hinv->asset_id, strlen(hinv->asset_id))
data/ladvd-1.1.2/src/sysinfo.c:108:29:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if ((buf[0] == '"') && buf[strlen(buf) -1] == '"') {
data/ladvd-1.1.2/src/sysinfo.c:109: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).
	    buf[strlen(buf) -1] = '\0'; 
data/ladvd-1.1.2/src/sysinfo.c:234:3:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(strlen(sysinfo->country) && strlen(sysinfo->location))?
data/ladvd-1.1.2/src/sysinfo.c:234:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	(strlen(sysinfo->country) && strlen(sysinfo->location))?
data/ladvd-1.1.2/src/util.c:156: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(path) >= sizeof(component))
data/ladvd-1.1.2/src/util.c:237: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).
	ret = strlen(line);
data/ladvd-1.1.2/src/util.c:293:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(msock, mreq, PARENT_REQ_MAX);
data/ladvd-1.1.2/src/util.c:432:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    mreq->len = strlen(descr) + 1;
data/ladvd-1.1.2/src/util.c:451: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).
	len = strlen(media_types[m]);
data/ladvd-1.1.2/src/util.c:452:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memmove(portname + 2, portname + len, strlen(portname + len) + 1);
data/ladvd-1.1.2/src/util.c:457: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).
	len = strlen("ethernet");
data/ladvd-1.1.2/src/util.c:458:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memmove(portname + 3, portname + len, strlen(portname + len) + 1);
data/ladvd-1.1.2/tests/check_child.c:57:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(spair[1], mreq, PARENT_REQ_MAX) > 0) {
data/ladvd-1.1.2/tests/check_child.c:81:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless(strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_child.c:119:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(spair[1], mreq, PARENT_REQ_MAX) > 0) {
data/ladvd-1.1.2/tests/check_child.c:172:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless(strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_child.c:184:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless(strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_child.c:196:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless(strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_child.c:294:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless(strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_child.c:415:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	    while (read(sock, &msg, PARENT_MSG_MAX) > 0) {
data/ladvd-1.1.2/tests/check_child.c:429:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless(strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_cli.c:99:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[5], buf, sizeof(buf)) < 0,
data/ladvd-1.1.2/tests/check_cli.c:113:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[5], buf, sizeof(buf)) < 0,
data/ladvd-1.1.2/tests/check_cli.c:139:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[5], buf, sizeof(buf)) < 0,
data/ladvd-1.1.2/tests/check_cli.c:141:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(buf, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_cli.c:163:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[5], buf, sizeof(buf)) < 0,
data/ladvd-1.1.2/tests/check_cli.c:165:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(buf, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_cli.c:249:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[5], buf, sizeof(buf)) < 0,
data/ladvd-1.1.2/tests/check_cli.c:251:39:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(buf, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_cli.c:301:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[1], buf, sizeof(buf)) < 0,
data/ladvd-1.1.2/tests/check_cli.c:316:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[1], buf, sizeof(buf)) < 0,
data/ladvd-1.1.2/tests/check_cli.c:349:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[1], buf, sizeof(buf)) < 0,
data/ladvd-1.1.2/tests/check_cli.c:363:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[1], buf, sizeof(buf)) < 0,
data/ladvd-1.1.2/tests/check_cli.c:393:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_cli.c:407:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_cli.c:409:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(spair[1], &pcap_fhdr, sizeof(pcap_fhdr));
data/ladvd-1.1.2/tests/check_cli.c:423:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_cli.c:425:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(spair[1], buf, sizeof(buf));
data/ladvd-1.1.2/tests/check_cli.c:492:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_cli.c:506:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_compat.c:69: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).
    fail_unless (len == strlen(src), "length should not be %zu", len);
data/ladvd-1.1.2/tests/check_compat.c:70:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == 0, "length should be 0");
data/ladvd-1.1.2/tests/check_compat.c:72: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).
    fail_unless (len == strlen(src), "length should not be %zu", len);
data/ladvd-1.1.2/tests/check_compat.c:73:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == 0, "length should be 0");
data/ladvd-1.1.2/tests/check_compat.c:75: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).
    fail_unless (len == strlen(src), "length should not be %zu", len);
data/ladvd-1.1.2/tests/check_compat.c:76:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == 9, "length should be equal to 9");
data/ladvd-1.1.2/tests/check_compat.c:80: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).
    fail_unless (len == strlen(src), "length should be equal to src");
data/ladvd-1.1.2/tests/check_compat.c:81:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == strlen(src),
data/ladvd-1.1.2/tests/check_compat.c:81:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == strlen(src),
data/ladvd-1.1.2/tests/check_compat.c:84: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).
    fail_unless (len == strlen(src) * 2, "length should be equal to src * 2");
data/ladvd-1.1.2/tests/check_compat.c:85:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == strlen(src) * 2,
data/ladvd-1.1.2/tests/check_compat.c:85:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == strlen(src) * 2,
data/ladvd-1.1.2/tests/check_compat.c:90:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (len == BUFSIZ + strlen(src) - 8, "length should not be %zu");
data/ladvd-1.1.2/tests/check_compat.c:91:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == BUFSIZ - 1, "length should be BUFSIZ - 1");
data/ladvd-1.1.2/tests/check_compat.c:95:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (len == BUFSIZ + strlen(src) - 1,
data/ladvd-1.1.2/tests/check_compat.c:97:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == BUFSIZ - 1, "length should be BUFSIZ - 1");
data/ladvd-1.1.2/tests/check_compat.c:110: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).
    fail_unless (len == strlen(src), "length should not be %zu", len);
data/ladvd-1.1.2/tests/check_compat.c:111:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == 0, "length should be 0");
data/ladvd-1.1.2/tests/check_compat.c:113: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).
    fail_unless (len == strlen(src), "length should not be %zu", len);
data/ladvd-1.1.2/tests/check_compat.c:114:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == 0, "length should be 0");
data/ladvd-1.1.2/tests/check_compat.c:116: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).
    fail_unless (len == strlen(src), "length should not be %zu", len);
data/ladvd-1.1.2/tests/check_compat.c:117:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == 9, "length should be equal to 9");
data/ladvd-1.1.2/tests/check_compat.c:121: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).
    fail_unless (len == strlen(src), "length should be equal to src");
data/ladvd-1.1.2/tests/check_compat.c:122:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == strlen(src), "length should be equal to src");
data/ladvd-1.1.2/tests/check_compat.c:122:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == strlen(src), "length should be equal to src");
data/ladvd-1.1.2/tests/check_compat.c:126: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).
    fail_unless (len == strlen(src), "length should be equal to src");
data/ladvd-1.1.2/tests/check_compat.c:127:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == strlen(src), "length should be equal to src");
data/ladvd-1.1.2/tests/check_compat.c:127:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == strlen(src), "length should be equal to src");
data/ladvd-1.1.2/tests/check_compat.c:139:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == 40, "length should be equal to 40");
data/ladvd-1.1.2/tests/check_compat.c:142:23:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    strvisx(dst, src, strlen(src), VIS_CSTYLE|VIS_NL|VIS_TAB|VIS_OCTAL);
data/ladvd-1.1.2/tests/check_compat.c:143:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == 40, "length should be equal to 40");
data/ladvd-1.1.2/tests/check_compat.c:147:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strlen(dst) == 39, "length should be equal to 39");
data/ladvd-1.1.2/tests/check_parent.c:364:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_parent.c:375:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_parent.c:390:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_parent.c:455:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_parent.c:485:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_parent.c:494:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_parent.c:503:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_parent.c:547:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_parent.c:566:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_parent.c:587:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_parent.c:604:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_proto.c:818:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[1], sobuf, sizeof(sobuf)) < 0, "read failed");
data/ladvd-1.1.2/tests/check_proto.c:819:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless(strncmp(sobuf, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_proto.c:833:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[1], sobuf, sizeof(sobuf)) < 0, "read failed");
data/ladvd-1.1.2/tests/check_proto.c:834:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless(strncmp(sobuf, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_proto.c:1055:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    fail_if(read(spair[1], sobuf, sizeof(sobuf)) < 0, "read failed");
data/ladvd-1.1.2/tests/check_proto.c:1056:40:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless(strncmp(sobuf, errstr, strlen(errstr)) == 0, "invalid output: %s", sobuf);
data/ladvd-1.1.2/tests/check_tlv.c:83:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:46:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:69:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(spair[1], bp, left);
data/ladvd-1.1.2/tests/check_util.c:138:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:159:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:178:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:423:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (mreq->len == strlen(descr) + 1,
data/ladvd-1.1.2/tests/check_util.c:437:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (mreq->len == strlen(descr) + 1,
data/ladvd-1.1.2/tests/check_util.c:451:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (mreq->len == strlen(descr) + 1,
data/ladvd-1.1.2/tests/check_util.c:465:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (mreq->len == strlen(descr) + 1,
data/ladvd-1.1.2/tests/check_util.c:479:31:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (mreq->len == strlen(descr) + 1,
data/ladvd-1.1.2/tests/check_util.c:532: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).
    fail_unless (strncmp(line, data, strlen(data)) == 0,
data/ladvd-1.1.2/tests/check_util.c:538: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).
    fail_unless (strncmp(line, data, strlen(data)) == 0,
data/ladvd-1.1.2/tests/check_util.c:551:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sum = ntohs(my_chksum(data, strlen(data), cisco));
data/ladvd-1.1.2/tests/check_util.c:556:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sum = ntohs(my_chksum(data, strlen(data), cisco));
data/ladvd-1.1.2/tests/check_util.c:561:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sum = ntohs(my_chksum(data, strlen(data) - 1, cisco));
data/ladvd-1.1.2/tests/check_util.c:566:33:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    sum = ntohs(my_chksum(data, strlen(data) - 1, cisco));
data/ladvd-1.1.2/tests/check_util.c:593:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:608:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:623:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:636:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:645:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:654:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:662:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:670:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:688:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:699:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:710:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:723:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:780:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:785:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(spair[1], &pcap_fhdr, sizeof(pcap_fhdr));
data/ladvd-1.1.2/tests/check_util.c:800:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:802:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(spair[1], buf, 1024);
data/ladvd-1.1.2/tests/check_util.c:809:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    fail_unless (strncmp(check_wrap_errstr, errstr, strlen(errstr)) == 0,
data/ladvd-1.1.2/tests/check_util.c:811:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(spair[1], buf, 1024);
data/ladvd-1.1.2/tests/check_wrap.h:66:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    len = read(sock, mreq, PARENT_REQ_MAX); \

ANALYSIS SUMMARY:

Hits = 401
Lines analyzed = 15176 in approximately 0.73 seconds (20673 lines/second)
Physical Source Lines of Code (SLOC) = 11169
Hits@level = [0]  52 [1] 194 [2] 183 [3]   7 [4]  14 [5]   3
Hits@level+ = [0+] 453 [1+] 401 [2+] 207 [3+]  24 [4+]  17 [5+]   3
Hits/KSLOC@level+ = [0+] 40.5587 [1+] 35.9029 [2+] 18.5334 [3+] 2.1488 [4+] 1.52207 [5+] 0.268601
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.