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/lldpd-1.0.7/libevent/evport.c
Examining data/lldpd-1.0.7/libevent/bufferevent_async.c
Examining data/lldpd-1.0.7/libevent/log.c
Examining data/lldpd-1.0.7/libevent/evrpc.c
Examining data/lldpd-1.0.7/libevent/iocp-internal.h
Examining data/lldpd-1.0.7/libevent/kqueue-internal.h
Examining data/lldpd-1.0.7/libevent/include/evutil.h
Examining data/lldpd-1.0.7/libevent/include/evrpc.h
Examining data/lldpd-1.0.7/libevent/include/evdns.h
Examining data/lldpd-1.0.7/libevent/include/event.h
Examining data/lldpd-1.0.7/libevent/include/event2/buffer_compat.h
Examining data/lldpd-1.0.7/libevent/include/event2/listener.h
Examining data/lldpd-1.0.7/libevent/include/event2/bufferevent_struct.h
Examining data/lldpd-1.0.7/libevent/include/event2/visibility.h
Examining data/lldpd-1.0.7/libevent/include/event2/keyvalq_struct.h
Examining data/lldpd-1.0.7/libevent/include/event2/event_compat.h
Examining data/lldpd-1.0.7/libevent/include/event2/tag_compat.h
Examining data/lldpd-1.0.7/libevent/include/event2/bufferevent_compat.h
Examining data/lldpd-1.0.7/libevent/include/event2/buffer.h
Examining data/lldpd-1.0.7/libevent/include/event2/dns_struct.h
Examining data/lldpd-1.0.7/libevent/include/event2/bufferevent_ssl.h
Examining data/lldpd-1.0.7/libevent/include/event2/util.h
Examining data/lldpd-1.0.7/libevent/include/event2/event.h
Examining data/lldpd-1.0.7/libevent/include/event2/http.h
Examining data/lldpd-1.0.7/libevent/include/event2/rpc_compat.h
Examining data/lldpd-1.0.7/libevent/include/event2/thread.h
Examining data/lldpd-1.0.7/libevent/include/event2/http_struct.h
Examining data/lldpd-1.0.7/libevent/include/event2/rpc_struct.h
Examining data/lldpd-1.0.7/libevent/include/event2/dns.h
Examining data/lldpd-1.0.7/libevent/include/event2/event_struct.h
Examining data/lldpd-1.0.7/libevent/include/event2/bufferevent.h
Examining data/lldpd-1.0.7/libevent/include/event2/http_compat.h
Examining data/lldpd-1.0.7/libevent/include/event2/dns_compat.h
Examining data/lldpd-1.0.7/libevent/include/event2/tag.h
Examining data/lldpd-1.0.7/libevent/include/event2/rpc.h
Examining data/lldpd-1.0.7/libevent/include/evhttp.h
Examining data/lldpd-1.0.7/libevent/event-internal.h
Examining data/lldpd-1.0.7/libevent/minheap-internal.h
Examining data/lldpd-1.0.7/libevent/epoll.c
Examining data/lldpd-1.0.7/libevent/util-internal.h
Examining data/lldpd-1.0.7/libevent/arc4random.c
Examining data/lldpd-1.0.7/libevent/changelist-internal.h
Examining data/lldpd-1.0.7/libevent/strlcpy-internal.h
Examining data/lldpd-1.0.7/libevent/ipv6-internal.h
Examining data/lldpd-1.0.7/libevent/WIN32-Code/tree.h
Examining data/lldpd-1.0.7/libevent/WIN32-Code/getopt.c
Examining data/lldpd-1.0.7/libevent/WIN32-Code/nmake/evconfig-private.h
Examining data/lldpd-1.0.7/libevent/WIN32-Code/nmake/event2/event-config.h
Examining data/lldpd-1.0.7/libevent/WIN32-Code/getopt_long.c
Examining data/lldpd-1.0.7/libevent/WIN32-Code/getopt.h
Examining data/lldpd-1.0.7/libevent/ratelim-internal.h
Examining data/lldpd-1.0.7/libevent/evutil_rand.c
Examining data/lldpd-1.0.7/libevent/time-internal.h
Examining data/lldpd-1.0.7/libevent/evmap-internal.h
Examining data/lldpd-1.0.7/libevent/evthread.c
Examining data/lldpd-1.0.7/libevent/evthread_pthread.c
Examining data/lldpd-1.0.7/libevent/log-internal.h
Examining data/lldpd-1.0.7/libevent/evmap.c
Examining data/lldpd-1.0.7/libevent/http.c
Examining data/lldpd-1.0.7/libevent/defer-internal.h
Examining data/lldpd-1.0.7/libevent/bufferevent_sock.c
Examining data/lldpd-1.0.7/libevent/evsignal-internal.h
Examining data/lldpd-1.0.7/libevent/sample/event-read-fifo.c
Examining data/lldpd-1.0.7/libevent/sample/le-proxy.c
Examining data/lldpd-1.0.7/libevent/sample/time-test.c
Examining data/lldpd-1.0.7/libevent/sample/dns-example.c
Examining data/lldpd-1.0.7/libevent/sample/hello-world.c
Examining data/lldpd-1.0.7/libevent/sample/hostcheck.c
Examining data/lldpd-1.0.7/libevent/sample/signal-test.c
Examining data/lldpd-1.0.7/libevent/sample/openssl_hostname_validation.c
Examining data/lldpd-1.0.7/libevent/sample/https-client.c
Examining data/lldpd-1.0.7/libevent/sample/http-connect.c
Examining data/lldpd-1.0.7/libevent/sample/openssl_hostname_validation.h
Examining data/lldpd-1.0.7/libevent/sample/hostcheck.h
Examining data/lldpd-1.0.7/libevent/sample/http-server.c
Examining data/lldpd-1.0.7/libevent/bufferevent_filter.c
Examining data/lldpd-1.0.7/libevent/event_tagging.c
Examining data/lldpd-1.0.7/libevent/epolltable-internal.h
Examining data/lldpd-1.0.7/libevent/evdns.c
Examining data/lldpd-1.0.7/libevent/test/regress_dns.c
Examining data/lldpd-1.0.7/libevent/test/regress_util.c
Examining data/lldpd-1.0.7/libevent/test/regress.gen.c
Examining data/lldpd-1.0.7/libevent/test/bench_http.c
Examining data/lldpd-1.0.7/libevent/test/regress_thread.c
Examining data/lldpd-1.0.7/libevent/test/regress_testutils.h
Examining data/lldpd-1.0.7/libevent/test/regress.c
Examining data/lldpd-1.0.7/libevent/test/regress_ssl.c
Examining data/lldpd-1.0.7/libevent/test/tinytest_local.h
Examining data/lldpd-1.0.7/libevent/test/regress_buffer.c
Examining data/lldpd-1.0.7/libevent/test/regress_thread.h
Examining data/lldpd-1.0.7/libevent/test/regress_listener.c
Examining data/lldpd-1.0.7/libevent/test/test-eof.c
Examining data/lldpd-1.0.7/libevent/test/regress_testutils.c
Examining data/lldpd-1.0.7/libevent/test/regress_http.c
Examining data/lldpd-1.0.7/libevent/test/tinytest_macros.h
Examining data/lldpd-1.0.7/libevent/test/bench_httpclient.c
Examining data/lldpd-1.0.7/libevent/test/test-init.c
Examining data/lldpd-1.0.7/libevent/test/test-fdleak.c
Examining data/lldpd-1.0.7/libevent/test/regress_bufferevent.c
Examining data/lldpd-1.0.7/libevent/test/regress_main.c
Examining data/lldpd-1.0.7/libevent/test/print-winsock-errors.c
Examining data/lldpd-1.0.7/libevent/test/regress_minheap.c
Examining data/lldpd-1.0.7/libevent/test/regress_finalize.c
Examining data/lldpd-1.0.7/libevent/test/tinytest.h
Examining data/lldpd-1.0.7/libevent/test/regress.h
Examining data/lldpd-1.0.7/libevent/test/regress_iocp.c
Examining data/lldpd-1.0.7/libevent/test/regress.gen.h
Examining data/lldpd-1.0.7/libevent/test/bench_cascade.c
Examining data/lldpd-1.0.7/libevent/test/regress_zlib.c
Examining data/lldpd-1.0.7/libevent/test/test-changelist.c
Examining data/lldpd-1.0.7/libevent/test/test-time.c
Examining data/lldpd-1.0.7/libevent/test/bench.c
Examining data/lldpd-1.0.7/libevent/test/regress_rpc.c
Examining data/lldpd-1.0.7/libevent/test/tinytest.c
Examining data/lldpd-1.0.7/libevent/test/test-closed.c
Examining data/lldpd-1.0.7/libevent/test/test-ratelim.c
Examining data/lldpd-1.0.7/libevent/test/regress_et.c
Examining data/lldpd-1.0.7/libevent/test/test-weof.c
Examining data/lldpd-1.0.7/libevent/test/test-dumpevents.c
Examining data/lldpd-1.0.7/libevent/signal.c
Examining data/lldpd-1.0.7/libevent/ht-internal.h
Examining data/lldpd-1.0.7/libevent/poll.c
Examining data/lldpd-1.0.7/libevent/compat/sys/queue.h
Examining data/lldpd-1.0.7/libevent/bufferevent_openssl.c
Examining data/lldpd-1.0.7/libevent/evbuffer-internal.h
Examining data/lldpd-1.0.7/libevent/evutil_time.c
Examining data/lldpd-1.0.7/libevent/listener.c
Examining data/lldpd-1.0.7/libevent/mm-internal.h
Examining data/lldpd-1.0.7/libevent/evthread_win32.c
Examining data/lldpd-1.0.7/libevent/bufferevent_ratelim.c
Examining data/lldpd-1.0.7/libevent/event_iocp.c
Examining data/lldpd-1.0.7/libevent/buffer_iocp.c
Examining data/lldpd-1.0.7/libevent/devpoll.c
Examining data/lldpd-1.0.7/libevent/bufferevent-internal.h
Examining data/lldpd-1.0.7/libevent/kqueue.c
Examining data/lldpd-1.0.7/libevent/evutil.c
Examining data/lldpd-1.0.7/libevent/evrpc-internal.h
Examining data/lldpd-1.0.7/libevent/select.c
Examining data/lldpd-1.0.7/libevent/bufferevent.c
Examining data/lldpd-1.0.7/libevent/buffer.c
Examining data/lldpd-1.0.7/libevent/http-internal.h
Examining data/lldpd-1.0.7/libevent/strlcpy.c
Examining data/lldpd-1.0.7/libevent/epoll_sub.c
Examining data/lldpd-1.0.7/libevent/bufferevent_pair.c
Examining data/lldpd-1.0.7/libevent/win32select.c
Examining data/lldpd-1.0.7/libevent/event.c
Examining data/lldpd-1.0.7/libevent/evthread-internal.h
Examining data/lldpd-1.0.7/libevent/openssl-compat.h
Examining data/lldpd-1.0.7/libevent/cmake/CheckFunctionExistsEx.c
Examining data/lldpd-1.0.7/libevent/cmake/CheckFileOffsetBits.c
Examining data/lldpd-1.0.7/include/osx/if_bridgevar.h
Examining data/lldpd-1.0.7/include/osx/if_bond_var.h
Examining data/lldpd-1.0.7/include/osx/if_vlan_var.h
Examining data/lldpd-1.0.7/include/osx/lacp.h
Examining data/lldpd-1.0.7/include/netinet/if_ether.h
Examining data/lldpd-1.0.7/include/linux/kernel.h
Examining data/lldpd-1.0.7/include/linux/types.h
Examining data/lldpd-1.0.7/include/linux/filter.h
Examining data/lldpd-1.0.7/include/linux/neighbour.h
Examining data/lldpd-1.0.7/include/linux/rtnetlink.h
Examining data/lldpd-1.0.7/include/linux/if_ether.h
Examining data/lldpd-1.0.7/include/linux/if_bonding.h
Examining data/lldpd-1.0.7/include/linux/wireless.h
Examining data/lldpd-1.0.7/include/linux/if_vlan.h
Examining data/lldpd-1.0.7/include/linux/if_bridge.h
Examining data/lldpd-1.0.7/include/linux/if.h
Examining data/lldpd-1.0.7/include/linux/if_link.h
Examining data/lldpd-1.0.7/include/linux/netlink.h
Examining data/lldpd-1.0.7/include/linux/if_packet.h
Examining data/lldpd-1.0.7/include/linux/hdlc/ioctl.h
Examining data/lldpd-1.0.7/include/linux/ethtool.h
Examining data/lldpd-1.0.7/include/linux/bpf_common.h
Examining data/lldpd-1.0.7/include/linux/libc-compat.h
Examining data/lldpd-1.0.7/include/linux/if_addr.h
Examining data/lldpd-1.0.7/include/linux/sockios.h
Examining data/lldpd-1.0.7/include/sys/queue.h
Examining data/lldpd-1.0.7/src/log.c
Examining data/lldpd-1.0.7/src/version.c
Examining data/lldpd-1.0.7/src/ctl.c
Examining data/lldpd-1.0.7/src/marshal.h
Examining data/lldpd-1.0.7/src/lldp-const.h
Examining data/lldpd-1.0.7/src/client/conf-med.c
Examining data/lldpd-1.0.7/src/client/commands.c
Examining data/lldpd-1.0.7/src/client/client.h
Examining data/lldpd-1.0.7/src/client/text_writer.c
Examining data/lldpd-1.0.7/src/client/writer.h
Examining data/lldpd-1.0.7/src/client/json_writer.c
Examining data/lldpd-1.0.7/src/client/xml_writer.c
Examining data/lldpd-1.0.7/src/client/misc.c
Examining data/lldpd-1.0.7/src/client/utf8.c
Examining data/lldpd-1.0.7/src/client/kv_writer.c
Examining data/lldpd-1.0.7/src/client/lldpcli.c
Examining data/lldpd-1.0.7/src/client/conf-power.c
Examining data/lldpd-1.0.7/src/client/display.c
Examining data/lldpd-1.0.7/src/client/conf-dot3.c
Examining data/lldpd-1.0.7/src/client/conf.c
Examining data/lldpd-1.0.7/src/client/show.c
Examining data/lldpd-1.0.7/src/client/conf-lldp.c
Examining data/lldpd-1.0.7/src/client/tokenizer.c
Examining data/lldpd-1.0.7/src/client/conf-system.c
Examining data/lldpd-1.0.7/src/daemon/privsep_io.c
Examining data/lldpd-1.0.7/src/daemon/privsep_fd.c
Examining data/lldpd-1.0.7/src/daemon/pattern.c
Examining data/lldpd-1.0.7/src/daemon/frame.c
Examining data/lldpd-1.0.7/src/daemon/client.c
Examining data/lldpd-1.0.7/src/daemon/agent_priv.c
Examining data/lldpd-1.0.7/src/daemon/interfaces-linux.c
Examining data/lldpd-1.0.7/src/daemon/priv-bsd.c
Examining data/lldpd-1.0.7/src/daemon/lldpd.c
Examining data/lldpd-1.0.7/src/daemon/priv-seccomp.c
Examining data/lldpd-1.0.7/src/daemon/interfaces-bsd.c
Examining data/lldpd-1.0.7/src/daemon/bitmap.c
Examining data/lldpd-1.0.7/src/daemon/protocols/sonmp.h
Examining data/lldpd-1.0.7/src/daemon/protocols/lldp.c
Examining data/lldpd-1.0.7/src/daemon/protocols/edp.h
Examining data/lldpd-1.0.7/src/daemon/protocols/cdp.h
Examining data/lldpd-1.0.7/src/daemon/protocols/sonmp.c
Examining data/lldpd-1.0.7/src/daemon/protocols/edp.c
Examining data/lldpd-1.0.7/src/daemon/protocols/cdp.c
Examining data/lldpd-1.0.7/src/daemon/interfaces.c
Examining data/lldpd-1.0.7/src/daemon/agent.c
Examining data/lldpd-1.0.7/src/daemon/dmi-linux.c
Examining data/lldpd-1.0.7/src/daemon/netlink.c
Examining data/lldpd-1.0.7/src/daemon/frame.h
Examining data/lldpd-1.0.7/src/daemon/dmi-freebsd.c
Examining data/lldpd-1.0.7/src/daemon/lldp-tlv.h
Examining data/lldpd-1.0.7/src/daemon/dmi-dummy.c
Examining data/lldpd-1.0.7/src/daemon/interfaces-solaris.c
Examining data/lldpd-1.0.7/src/daemon/lldpd.h
Examining data/lldpd-1.0.7/src/daemon/dmi-osx.c
Examining data/lldpd-1.0.7/src/daemon/forward-solaris.c
Examining data/lldpd-1.0.7/src/daemon/dmi-openbsd.c
Examining data/lldpd-1.0.7/src/daemon/interfaces-bpf.c
Examining data/lldpd-1.0.7/src/daemon/trace.h
Examining data/lldpd-1.0.7/src/daemon/priv-linux.c
Examining data/lldpd-1.0.7/src/daemon/agent.h
Examining data/lldpd-1.0.7/src/daemon/main.c
Examining data/lldpd-1.0.7/src/daemon/privsep.c
Examining data/lldpd-1.0.7/src/daemon/event.c
Examining data/lldpd-1.0.7/src/daemon/priv.c
Examining data/lldpd-1.0.7/src/daemon/forward-linux.c
Examining data/lldpd-1.0.7/src/daemon/forward-bsd.c
Examining data/lldpd-1.0.7/src/lldpd-structs.c
Examining data/lldpd-1.0.7/src/compat/asprintf.c
Examining data/lldpd-1.0.7/src/compat/strnlen.c
Examining data/lldpd-1.0.7/src/compat/compat.h
Examining data/lldpd-1.0.7/src/compat/malloc.c
Examining data/lldpd-1.0.7/src/compat/setproctitle.c
Examining data/lldpd-1.0.7/src/compat/daemon.c
Examining data/lldpd-1.0.7/src/compat/realloc.c
Examining data/lldpd-1.0.7/src/compat/strtonum.c
Examining data/lldpd-1.0.7/src/compat/vsyslog.c
Examining data/lldpd-1.0.7/src/compat/strndup.c
Examining data/lldpd-1.0.7/src/compat/strlcpy.c
Examining data/lldpd-1.0.7/src/compat/empty.c
Examining data/lldpd-1.0.7/src/compat/getline.c
Examining data/lldpd-1.0.7/src/log.h
Examining data/lldpd-1.0.7/src/ctl.h
Examining data/lldpd-1.0.7/src/lib/lldpctl.h
Examining data/lldpd-1.0.7/src/lib/helpers.c
Examining data/lldpd-1.0.7/src/lib/helpers.h
Examining data/lldpd-1.0.7/src/lib/atoms/dot1.c
Examining data/lldpd-1.0.7/src/lib/atoms/interface.c
Examining data/lldpd-1.0.7/src/lib/atoms/custom.c
Examining data/lldpd-1.0.7/src/lib/atoms/port.c
Examining data/lldpd-1.0.7/src/lib/atoms/dot3.c
Examining data/lldpd-1.0.7/src/lib/atoms/config.c
Examining data/lldpd-1.0.7/src/lib/atoms/med.c
Examining data/lldpd-1.0.7/src/lib/atoms/chassis.c
Examining data/lldpd-1.0.7/src/lib/atoms/mgmt.c
Examining data/lldpd-1.0.7/src/lib/atom.c
Examining data/lldpd-1.0.7/src/lib/connection.c
Examining data/lldpd-1.0.7/src/lib/errors.c
Examining data/lldpd-1.0.7/src/lib/fixedpoint.h
Examining data/lldpd-1.0.7/src/lib/fixedpoint.c
Examining data/lldpd-1.0.7/src/lib/atom.h
Examining data/lldpd-1.0.7/src/marshal.c
Examining data/lldpd-1.0.7/src/lldpd-structs.h
Examining data/lldpd-1.0.7/tests/common.h
Examining data/lldpd-1.0.7/tests/check-compat.h
Examining data/lldpd-1.0.7/tests/check_edp.c
Examining data/lldpd-1.0.7/tests/decode.c
Examining data/lldpd-1.0.7/tests/check_marshal.c
Examining data/lldpd-1.0.7/tests/check_sonmp.c
Examining data/lldpd-1.0.7/tests/check_snmp.c
Examining data/lldpd-1.0.7/tests/check_cdp.c
Examining data/lldpd-1.0.7/tests/check_bitmap.c
Examining data/lldpd-1.0.7/tests/check_pattern.c
Examining data/lldpd-1.0.7/tests/check_fixedpoint.c
Examining data/lldpd-1.0.7/tests/check_lldp.c
Examining data/lldpd-1.0.7/tests/common.c

FINAL RESULTS:

data/lldpd-1.0.7/src/daemon/lldpd.c:1787: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(ctlname, uid, gid) == -1)
data/lldpd-1.0.7/src/daemon/lldpd.c:1789: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(ctlname,
data/lldpd-1.0.7/libevent/evdns.c:445:49:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define EVDNS_LOG_CHECK	 __attribute__ ((format(printf, 2, 3)))
data/lldpd-1.0.7/libevent/evutil.c:1879:6:  [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.
	r = vsnprintf(buf, buflen, format, ap);
data/lldpd-1.0.7/libevent/evutil.c:2534:3:  [4] (buffer) _tcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
  _tcscat(path, TEXT("\\"));
data/lldpd-1.0.7/libevent/evutil.c:2535:3:  [4] (buffer) _tcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
  _tcscat(path, library_name);
data/lldpd-1.0.7/libevent/include/event2/buffer.h:664:25:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
  __attribute__((format(printf, 2, 3)))
data/lldpd-1.0.7/libevent/include/event2/buffer.h:679:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 2, 0)))
data/lldpd-1.0.7/libevent/include/event2/util.h:599:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 3, 4)))
data/lldpd-1.0.7/libevent/include/event2/util.h:608:24:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	__attribute__((format(printf, 3, 0)))
data/lldpd-1.0.7/libevent/log-internal.h:37:49:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define EV_CHECK_FMT(a,b) __attribute__((format(printf, a, b)))
data/lldpd-1.0.7/libevent/sample/http-server.c:520:3:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
		strcpy(addr.sun_path, o.unixsock);
data/lldpd-1.0.7/libevent/sample/https-client.c:28:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/lldpd-1.0.7/libevent/sample/https-client.c:28:18:  [4] (format) _snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf _snprintf
data/lldpd-1.0.7/libevent/test/print-winsock-errors.c:11:14:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define E(x) printf (#x " -> \"%s\"\n", evutil_socket_error_to_string (x));
data/lldpd-1.0.7/libevent/test/regress_dns.c:1035:11:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	int ok = access(RESOLV_FILE, R_OK);
data/lldpd-1.0.7/libevent/test/tinytest_local.h:9: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.
#ifdef snprintf
data/lldpd-1.0.7/libevent/test/tinytest_local.h:10: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.
#undef snprintf
data/lldpd-1.0.7/libevent/test/tinytest_local.h:12:9:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
#define snprintf evutil_snprintf
data/lldpd-1.0.7/libevent/test/tinytest_macros.h:44:2:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
	printf args ;						\
data/lldpd-1.0.7/libevent/util-internal.h:371:10:  [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.
			(void)fprintf(stderr,				\
data/lldpd-1.0.7/src/client/commands.c:560:7:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
						fprintf(stderr, fmt,
data/lldpd-1.0.7/src/client/json_writer.c:152:3:  [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(fh, current->boolean?"true":"false");
data/lldpd-1.0.7/src/client/lldpcli.c:91:21:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
	return (ctlname && access(ctlname, R_OK|W_OK) == 0);
data/lldpd-1.0.7/src/compat/asprintf.c:39:8:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	ret = vsnprintf(string, INIT_SZ, fmt, ap2);
data/lldpd-1.0.7/src/compat/asprintf.c:53:10:  [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.
			ret = vsnprintf(newstr, len, fmt, ap2);
data/lldpd-1.0.7/src/compat/compat.h:49:71:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int vasprintf(char **, const char *, va_list) __attribute__ ((format (printf, 2, 0)));
data/lldpd-1.0.7/src/compat/compat.h:50:67:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
int asprintf (char **, const char *, ...) __attribute__ ((format (printf, 2, 3)));
data/lldpd-1.0.7/src/compat/compat.h:54:66:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void vsyslog(int, const char *, va_list) __attribute__ ((format (printf, 2, 0)));
data/lldpd-1.0.7/src/compat/compat.h:82:65:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void setproctitle(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:149:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
	if ((snprintf(path, SYSFS_PATH_MAX,
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:160:7:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
		if (snprintf(path, SYSFS_PATH_MAX,
data/lldpd-1.0.7/src/daemon/lldpd.c:786:4:  [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.
			execvp("lsb_release", command);
data/lldpd-1.0.7/src/daemon/lldpd.c:1369:5:  [4] (shell) execl:
  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.
				execl(path, "lldpcli", sdebug,
data/lldpd-1.0.7/src/daemon/lldpd.c:1375:5:  [4] (shell) execl:
  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.
				execl(path, "lldpcli", sdebug,
data/lldpd-1.0.7/src/daemon/priv.c:529:3:  [4] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused).
		strcat(current, tok);
data/lldpd-1.0.7/src/daemon/priv.c:553:6:  [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.
	if (snprintf(path, sizeof(path),
data/lldpd-1.0.7/src/log.c:169:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, fmt, ap);
data/lldpd-1.0.7/src/log.c:172:3:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
		vfprintf(stderr, nfmt, ap);
data/lldpd-1.0.7/src/log.h:25:84:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void             log_warn(const char *, const char *, ...) __attribute__ ((format (printf, 2, 3)));
data/lldpd-1.0.7/src/log.h:26:85:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void             log_warnx(const char *, const char *, ...) __attribute__ ((format (printf, 2, 3)));
data/lldpd-1.0.7/src/log.h:27:84:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void             log_info(const char *, const char *, ...) __attribute__ ((format (printf, 2, 3)));
data/lldpd-1.0.7/src/log.h:28:85:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void             log_debug(const char *, const char *, ...) __attribute__ ((format (printf, 2, 3)));
data/lldpd-1.0.7/src/version.c:94:3:  [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(destination,
data/lldpd-1.0.7/libevent/WIN32-Code/getopt.c:45:14:  [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.
__weak_alias(getopt,_getopt);
data/lldpd-1.0.7/libevent/WIN32-Code/getopt.c:83:1:  [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.
getopt(nargc, nargv, ostr)
data/lldpd-1.0.7/libevent/WIN32-Code/getopt.h:26:5:  [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.
int getopt(int, char**, const char*);
data/lldpd-1.0.7/libevent/WIN32-Code/getopt.h:27:5:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
int getopt_long(int, char**, const char*, const struct option*, int*);
data/lldpd-1.0.7/libevent/WIN32-Code/getopt_long.c:160:1:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
getopt_long(nargc, nargv, options, long_options, index)
data/lldpd-1.0.7/libevent/event_iocp.c:79:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&port->lock);
data/lldpd-1.0.7/libevent/event_iocp.c:95:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&port->lock);
data/lldpd-1.0.7/libevent/event_iocp.c:255:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&port->lock);
data/lldpd-1.0.7/libevent/event_iocp.c:264:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&port->lock);
data/lldpd-1.0.7/libevent/evthread_win32.c:78:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(lock);
data/lldpd-1.0.7/libevent/evthread_win32.c:221:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cond->lock);
data/lldpd-1.0.7/libevent/evthread_win32.c:244:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cond->lock);
data/lldpd-1.0.7/libevent/evthread_win32.c:255:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&cond->lock);
data/lldpd-1.0.7/libevent/evthread_win32.c:289:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(lock);
data/lldpd-1.0.7/libevent/evthread_win32.c:291:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&cond->lock);
data/lldpd-1.0.7/libevent/evutil.c:2422:9:  [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.
	return getenv(varname);
data/lldpd-1.0.7/libevent/evutil.c:2536:10:  [3] (misc) LoadLibrary:
  Ensure that the full path to the library is specified, or current directory
  may be used (CWE-829, CWE-20). Use registry entry or GetWindowsDirectory to
  find library path, if you aren't already.
  return LoadLibrary(path);
data/lldpd-1.0.7/libevent/listener.c:623:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&as->lock);
data/lldpd-1.0.7/libevent/listener.c:667:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&as->lock);
data/lldpd-1.0.7/libevent/listener.c:679:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&as->lock);
data/lldpd-1.0.7/libevent/listener.c:728:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&as->lock);
data/lldpd-1.0.7/libevent/listener.c:750:3:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
		EnterCriticalSection(&as->lock);
data/lldpd-1.0.7/libevent/listener.c:876:4:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
			EnterCriticalSection(&lev->accepting[i]->lock);
data/lldpd-1.0.7/libevent/sample/dns-example.c:174:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(c, v, "xvc:Ts:g")) != -1) {
data/lldpd-1.0.7/libevent/sample/http-server.c:365:16:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
	while ((opt = getopt(argc, argv, "hp:U:uIv")) != -1) {
data/lldpd-1.0.7/libevent/sample/http-server.c:473: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 (o.verbose || getenv("EVENT_DEBUG_LOGGING_ALL"))
data/lldpd-1.0.7/libevent/test/bench.c:158:14:  [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 ((c = getopt(argc, argv, "n:a:w:")) != -1) {
data/lldpd-1.0.7/libevent/test/bench_cascade.c:154:14:  [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 ((c = getopt(argc, argv, "n:")) != -1) {
data/lldpd-1.0.7/libevent/test/regress.c:2656:6:  [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 (getenv("EVENT_NOWAFFLES") != NULL) {
data/lldpd-1.0.7/libevent/test/regress_main.c:443:7:  [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 (!getenv("EVENT_NO_DEBUG_LOCKS"))
data/lldpd-1.0.7/libevent/test/regress_main.c:447:6:  [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 (getenv("EVENT_DEBUG_MODE")) {
data/lldpd-1.0.7/libevent/test/regress_main.c:451:6:  [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 (getenv("EVENT_DEBUG_LOGGING_ALL")) {
data/lldpd-1.0.7/libevent/test/regress_main.c:459:6:  [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 (getenv("EVENT_NO_FILE_BUFFERING")) {
data/lldpd-1.0.7/libevent/test/test-ratelim.c:592:3:  [3] (random) srand:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srand(tv.tv_usec);
data/lldpd-1.0.7/libevent/test/test-ratelim.c:594:3:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
		srandom(tv.tv_usec);
data/lldpd-1.0.7/src/client/lldpcli.c:445:15:  [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, options)) != -1) {
data/lldpd-1.0.7/src/compat/compat.h:46:8:  [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.
#undef getopt
data/lldpd-1.0.7/src/daemon/lldpd.c:1441:29:  [3] (buffer) getenv:
  Environment variables are untrustable input if they can be set by an
  attacker. They can have any content and length, and the same variable can
  be set more than once (CWE-807, CWE-20). Check environment variables
  carefully before using them.
	const char *notifysocket = getenv("NOTIFY_SOCKET");
data/lldpd-1.0.7/src/daemon/lldpd.c:1579:15:  [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, opts)) != -1) {
data/lldpd-1.0.7/src/daemon/priv.c:710:8:  [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(chrootdir) == -1)
data/lldpd-1.0.7/include/linux/ethtool.h:181: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	driver[32];
data/lldpd-1.0.7/include/linux/ethtool.h:182: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	version[32];
data/lldpd-1.0.7/include/linux/ethtool.h:183: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	fw_version[ETHTOOL_FWVERS_LEN];
data/lldpd-1.0.7/include/linux/ethtool.h:184: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	bus_info[ETHTOOL_BUSINFO_LEN];
data/lldpd-1.0.7/include/linux/ethtool.h:185: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	erom_version[ETHTOOL_EROMVERS_LEN];
data/lldpd-1.0.7/include/linux/ethtool.h:186: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	reserved2[12];
data/lldpd-1.0.7/include/linux/ethtool.h:854:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	h_dest[ETH_ALEN];
data/lldpd-1.0.7/include/linux/ethtool.h:1105: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	data[ETHTOOL_FLASH_MAX_FILENAME];
data/lldpd-1.0.7/include/linux/hdlc/ioctl.h:74: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 master[IFNAMSIZ];	/* Name of master FRAD device */
data/lldpd-1.0.7/include/linux/if.h:233: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	ifrn_name[IFNAMSIZ];		/* if name, e.g. "en0" */
data/lldpd-1.0.7/include/linux/if.h:246:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char	ifru_slave[IFNAMSIZ];	/* Just fits the size */
data/lldpd-1.0.7/include/linux/if.h:247: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	ifru_newname[IFNAMSIZ];
data/lldpd-1.0.7/include/linux/if_bonding.h:106: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 slave_name[IFNAMSIZ];
data/lldpd-1.0.7/include/linux/if_ether.h:162:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	h_dest[ETH_ALEN];	/* destination eth addr	*/
data/lldpd-1.0.7/include/linux/if_ether.h:163:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	h_source[ETH_ALEN];	/* source ether addr	*/
data/lldpd-1.0.7/include/linux/if_packet.h:9:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char spkt_device[14];
data/lldpd-1.0.7/include/linux/if_packet.h:20:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	sll_addr[8];
data/lldpd-1.0.7/include/linux/if_packet.h:295:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char	mr_address[8];
data/lldpd-1.0.7/include/linux/if_vlan.h:51: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 device1[24];
data/lldpd-1.0.7/include/linux/if_vlan.h:54: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 device2[24];
data/lldpd-1.0.7/include/linux/wireless.h:898: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		name[IFNAMSIZ];
data/lldpd-1.0.7/include/linux/wireless.h:936: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	ifrn_name[IFNAMSIZ];	/* if name, e.g. "eth0" */
data/lldpd-1.0.7/include/linux/wireless.h:1061: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		name[IFNAMSIZ];	/* Name of the extension */
data/lldpd-1.0.7/include/osx/if_bond_var.h:62: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 			ibs_if_name[IFNAMSIZ];	/* interface name */
data/lldpd-1.0.7/include/osx/if_bond_var.h:90: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	ibru_if_name[IFNAMSIZ];		/* interface name */
data/lldpd-1.0.7/include/osx/if_bridgevar.h:157: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		ifbr_ifsname[IFNAMSIZ];	/* member if name */
data/lldpd-1.0.7/include/osx/if_bridgevar.h:267: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		ifba_ifsname[IFNAMSIZ];	/* member if name */
data/lldpd-1.0.7/include/osx/if_bridgevar.h:277: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		ifba_ifsname[IFNAMSIZ];	/* member if name */
data/lldpd-1.0.7/include/osx/if_bridgevar.h:285: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		ifba_ifsname[IFNAMSIZ];	/* member if name */
data/lldpd-1.0.7/include/osx/if_vlan_var.h:85: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	vlr_parent[IFNAMSIZ];
data/lldpd-1.0.7/include/osx/lacp.h: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((void *)field, (void *)&tmp_value, sizeof(uint16_t));
data/lldpd-1.0.7/include/osx/lacp.h:276:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)&tmp_field, (void *)field, sizeof(uint16_t));
data/lldpd-1.0.7/include/osx/lacp.h: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((void *)field, (void *)&tmp_value, sizeof(uint32_t));
data/lldpd-1.0.7/include/osx/lacp.h:304:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy((void *)&tmp_field, (void *)field, sizeof(uint32_t));
data/lldpd-1.0.7/libevent/arc4random.c:81:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char s[256];
data/lldpd-1.0.7/libevent/arc4random.c:152:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[ADD_ENTROPY];
data/lldpd-1.0.7/libevent/arc4random.c:181:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[ADD_ENTROPY];
data/lldpd-1.0.7/libevent/arc4random.c:217:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[ADD_ENTROPY];
data/lldpd-1.0.7/libevent/arc4random.c:257: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[128];
data/lldpd-1.0.7/libevent/arc4random.c:258:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char entropy[64];
data/lldpd-1.0.7/libevent/arc4random.c:297:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[ADD_ENTROPY];
data/lldpd-1.0.7/libevent/buffer.c:842: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(tmp->buffer, chain->buffer + chain->misalign,
data/lldpd-1.0.7/libevent/buffer.c:1231:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data,
data/lldpd-1.0.7/libevent/buffer.c:1246:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(data, chain->buffer + chain->misalign + pos_in_chain,
data/lldpd-1.0.7/libevent/buffer.c:1424: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(buffer, chain->buffer + chain->misalign, chain->off);
data/lldpd-1.0.7/libevent/buffer.c:1436: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(buffer, chain->buffer + chain->misalign, size);
data/lldpd-1.0.7/libevent/buffer.c:1627: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(&it2, &it, sizeof(it));
data/lldpd-1.0.7/libevent/buffer.c:1649: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(&it2, &it, sizeof(it));
data/lldpd-1.0.7/libevent/buffer.c:1768:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(chain->buffer + chain->misalign + chain->off,
data/lldpd-1.0.7/libevent/buffer.c:1779:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(chain->buffer + chain->off, data, datlen);
data/lldpd-1.0.7/libevent/buffer.c:1801: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(chain->buffer + chain->misalign + chain->off,
data/lldpd-1.0.7/libevent/buffer.c:1811: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(tmp->buffer, data, datlen);
data/lldpd-1.0.7/libevent/buffer.c:1865:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(chain->buffer + chain->misalign - datlen,
data/lldpd-1.0.7/libevent/buffer.c:1874:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(chain->buffer,
data/lldpd-1.0.7/libevent/buffer.c:1898: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(tmp->buffer + tmp->misalign, data, datlen);
data/lldpd-1.0.7/libevent/buffer.c:2021:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(tmp->buffer, chain->buffer + chain->misalign,
data/lldpd-1.0.7/libevent/buffer.c:2872:27:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define	va_copy(dst, src)	memcpy(&(dst), &(src), sizeof(va_list))
data/lldpd-1.0.7/libevent/bufferevent_ratelim.c:169: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(&r->tick_timeout, tick_len, sizeof(struct timeval));
data/lldpd-1.0.7/libevent/bufferevent_sock.c:125: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(&bev_p->conn_address, addr, addrlen);
data/lldpd-1.0.7/libevent/bufferevent_sock.c:497: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 portbuf[10];
data/lldpd-1.0.7/libevent/evdns.c:213:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[HOST_NAME_MAX];
data/lldpd-1.0.7/libevent/evdns.c:377: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 hostname[1];
data/lldpd-1.0.7/libevent/evdns.c:457: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[512];
data/lldpd-1.0.7/libevent/evdns.c:521: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(&timeout, &ns->base->global_nameserver_probe_initial_timeout,
data/lldpd-1.0.7/libevent/evdns.c:539: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 addrbuf[128];
data/lldpd-1.0.7/libevent/evdns.c:566: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 addrbuf[128];
data/lldpd-1.0.7/libevent/evdns.c:624: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 addrbuf[128];
data/lldpd-1.0.7/libevent/evdns.c:852: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->reply, reply, sizeof(struct reply));
data/lldpd-1.0.7/libevent/evdns.c:887: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 addrbuf[128];
data/lldpd-1.0.7/libevent/evdns.c:918: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[64];
data/lldpd-1.0.7/libevent/evdns.c:981:53:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define GET32(x) do { if (j + 4 > length) goto err; memcpy(&t32_, packet + j, 4); j += 4; x = ntohl(t32_); } while (0)
data/lldpd-1.0.7/libevent/evdns.c:982:53:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#define GET16(x) do { if (j + 2 > length) goto err; memcpy(&t_, packet + j, 2); j += 2; x = ntohs(t_); } while (0)
data/lldpd-1.0.7/libevent/evdns.c:1017: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(cp, packet + j, label_len);
data/lldpd-1.0.7/libevent/evdns.c:1038: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 tmp_name[256], cmp_name[256]; /* used by the macros */
data/lldpd-1.0.7/libevent/evdns.c:1138:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&reply.data.a.addresses[reply.data.a.addrcount],
data/lldpd-1.0.7/libevent/evdns.c:1155:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 cname[HOST_NAME_MAX];
data/lldpd-1.0.7/libevent/evdns.c:1176:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&reply.data.aaaa.addresses[reply.data.aaaa.addrcount],
data/lldpd-1.0.7/libevent/evdns.c:1237: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 tmp_name[256]; /* used by the macros */
data/lldpd-1.0.7/libevent/evdns.c:1264: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(&server_req->addr, addr, addrlen);
data/lldpd-1.0.7/libevent/evdns.c:1287: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(q->name, tmp_name, namelen+1);
data/lldpd-1.0.7/libevent/evdns.c:1390: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 addrbuf[128];
data/lldpd-1.0.7/libevent/evdns.c:1497: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 addrbuf[128];
data/lldpd-1.0.7/libevent/evdns.c:1626:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + j, &t_, 2);				\
data/lldpd-1.0.7/libevent/evdns.c:1633:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + j, &t32_, 4);				\
data/lldpd-1.0.7/libevent/evdns.c:1653:4:  [2] (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 + j, start, label_len);
data/lldpd-1.0.7/libevent/evdns.c:1664:4:  [2] (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 + j, start, label_len);
data/lldpd-1.0.7/libevent/evdns.c:1834:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(item->data, data, datalen);
data/lldpd-1.0.7/libevent/evdns.c:1869: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[32];
data/lldpd-1.0.7/libevent/evdns.c:1909:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[1500];
data/lldpd-1.0.7/libevent/evdns.c:1972:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buf+len_idx, &t_, 2);
data/lldpd-1.0.7/libevent/evdns.c:1977:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
				memcpy(buf+j, item->data, item->datalen);
data/lldpd-1.0.7/libevent/evdns.c:1997: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(req->response, buf, req->response_len);
data/lldpd-1.0.7/libevent/evdns.c:2167: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(sa, &(req->addr), req->addrlen);
data/lldpd-1.0.7/libevent/evdns.c:2335: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 addrbuf[128];
data/lldpd-1.0.7/libevent/evdns.c:2508: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 addrbuf[128];
data/lldpd-1.0.7/libevent/evdns.c:2562: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(&ns->address, address, addrlen);
data/lldpd-1.0.7/libevent/evdns.c:2708: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(sa, &server->address, server->addrlen);
data/lldpd-1.0.7/libevent/evdns.c:2795: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 namebuf[256];
data/lldpd-1.0.7/libevent/evdns.c:2814: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 randbits[(sizeof(namebuf)+7)/8];
data/lldpd-1.0.7/libevent/evdns.c:2988: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[32];
data/lldpd-1.0.7/libevent/evdns.c:3023: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[73];
data/lldpd-1.0.7/libevent/evdns.c:3038: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(cp, "ip6.arpa", strlen("ip6.arpa")+1);
data/lldpd-1.0.7/libevent/evdns.c:3146: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( ((u8 *) sdomain) + sizeof(struct search_domain), domain, domain_len);
data/lldpd-1.0.7/libevent/evdns.c:3198: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 hostname[HOST_NAME_MAX + 1], *domainname;
data/lldpd-1.0.7/libevent/evdns.c:3226:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(newname, base_name, base_len);
data/lldpd-1.0.7/libevent/evdns.c:3228:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(newname + base_len + need_to_append_dot, postfix, postfix_len);
data/lldpd-1.0.7/libevent/evdns.c:3502: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(&base->global_timeout, &tv, sizeof(struct timeval));
data/lldpd-1.0.7/libevent/evdns.c:3509: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(&base->global_getaddrinfo_allow_skew, &tv,
data/lldpd-1.0.7/libevent/evdns.c:3553: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(&base->global_nameserver_probe_initial_timeout, &tv,
data/lldpd-1.0.7/libevent/evdns.c:3643: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 path[MAX_PATH+1];
data/lldpd-1.0.7/libevent/evdns.c:3746:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, addr, ips-addr);
data/lldpd-1.0.7/libevent/evdns.c:4229: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(&he->addr, &ss, socklen);
data/lldpd-1.0.7/libevent/evdns.c:4230: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(he->hostname, hostname, namelen+1);
data/lldpd-1.0.7/libevent/evdns.c:4254:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char tmp[64];
data/lldpd-1.0.7/libevent/evdns.c:4594: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(addrp, ((char*)addresses)+i*addrlen, addrlen);
data/lldpd-1.0.7/libevent/event.c:552: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 environment[64];
data/lldpd-1.0.7/libevent/event.c:659: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(&base->max_dispatch_time,
data/lldpd-1.0.7/libevent/event.c:1227:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&cfg->max_dispatch_interval, max_interval,
data/lldpd-1.0.7/libevent/event.c:1503: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(&tv, duration, sizeof(struct timeval));
data/lldpd-1.0.7/libevent/event.c:2512: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[1];
data/lldpd-1.0.7/libevent/event.c:3542:11:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			return memcpy(p, str, ln+1);
data/lldpd-1.0.7/libevent/event.c:3605:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buf[1024];
data/lldpd-1.0.7/libevent/evrpc.c:220: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(constructed_uri, EVRPC_URI_PREFIX, strlen(EVRPC_URI_PREFIX));
data/lldpd-1.0.7/libevent/evrpc.c:221: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(constructed_uri + strlen(EVRPC_URI_PREFIX), uri, strlen(uri));
data/lldpd-1.0.7/libevent/evrpc.c:1046: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(meta->data, data, data_size);
data/lldpd-1.0.7/libevent/evthread.c:128: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(target, cbs, sizeof(evthread_lock_fns_));
data/lldpd-1.0.7/libevent/evthread.c:172: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(target, cbs, sizeof(evthread_cond_fns_));
data/lldpd-1.0.7/libevent/evthread.c:330: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(&original_lock_fns_, &evthread_lock_fns_,
data/lldpd-1.0.7/libevent/evthread.c:332: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(&evthread_lock_fns_, &cbs,
data/lldpd-1.0.7/libevent/evthread.c:335: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(&original_cond_fns_, &evthread_cond_fns_,
data/lldpd-1.0.7/libevent/evutil.c:93:9:  [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).
#define open _open
data/lldpd-1.0.7/libevent/evutil.c:111: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(pathname, flags|O_CLOEXEC, (mode_t)mode);
data/lldpd-1.0.7/libevent/evutil.c:116: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(pathname, flags, (mode_t)mode);
data/lldpd-1.0.7/libevent/evutil.c:859: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(res->ai_addr, sa, socklen);
data/lldpd-1.0.7/libevent/evutil.c:1203: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(addrp, ent->h_addr_list[i], ent->h_length);
data/lldpd-1.0.7/libevent/evutil.c:1364: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(ai_new, ai, sizeof(*ai_new));
data/lldpd-1.0.7/libevent/evutil.c:1496: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[2048];
data/lldpd-1.0.7/libevent/evutil.c:1502: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[2048];
data/lldpd-1.0.7/libevent/evutil.c:1910:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[64], *cp;
data/lldpd-1.0.7/libevent/evutil.c:2100: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[128];
data/lldpd-1.0.7/libevent/evutil.c:2121:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, ip_as_string+1, len);
data/lldpd-1.0.7/libevent/evutil.c:2138:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, ip_as_string, cp-ip_as_string);
data/lldpd-1.0.7/libevent/evutil.c:2151:10:  [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).
		port = atoi(port_part);
data/lldpd-1.0.7/libevent/evutil.c:2174:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out, &sin6, sizeof(sin6));
data/lldpd-1.0.7/libevent/evutil.c:2193:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(out, &sin, sizeof(sin));
data/lldpd-1.0.7/libevent/evutil.c:2202: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 b[128];
data/lldpd-1.0.7/libevent/evutil.c:2286:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char EVUTIL_TOUPPER_TABLE[256] = {
data/lldpd-1.0.7/libevent/evutil.c:2304:23:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static const unsigned char EVUTIL_TOLOWER_TABLE[256] = {
data/lldpd-1.0.7/libevent/evutil.c:2488:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char LOOPBACK_S6[16] =
data/lldpd-1.0.7/libevent/evutil.c:2529:3:  [2] (buffer) TCHAR:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  TCHAR path[MAX_PATH];
data/lldpd-1.0.7/libevent/evutil_rand.c:101: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(b, &u, n_bytes);
data/lldpd-1.0.7/libevent/evutil_rand.c:112: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(b, &u, n);
data/lldpd-1.0.7/libevent/evutil_time.c:354: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(&base->mach_timebase_units, &mi, sizeof(mi));
data/lldpd-1.0.7/libevent/http.c:134: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 tmpserv[16];
data/lldpd-1.0.7/libevent/http.c:296:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, replaced, len);
data/lldpd-1.0.7/libevent/http.c:456: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 size[22];
data/lldpd-1.0.7/libevent/http.c:500: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 date[50];
data/lldpd-1.0.7/libevent/http.c:515: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 len[22];
data/lldpd-1.0.7/libevent/http.c:1689:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	req->response_code = atoi(number);
data/lldpd-1.0.7/libevent/http.c:2080: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(newval + old_len + 1, line, line_len + 1);
data/lldpd-1.0.7/libevent/http.c:3070: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.
static const char uri_chars[256] = {
data/lldpd-1.0.7/libevent/http.c:3184:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char tmp[3];
data/lldpd-1.0.7/libevent/http.c:4154: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(req->host_cache, host, len);
data/lldpd-1.0.7/libevent/http.c:4242:36:  [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).
		http->base, NULL, bev, hostname, atoi(portname));
data/lldpd-1.0.7/libevent/http.c:4347: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 ntop[NI_MAXHOST];
data/lldpd-1.0.7/libevent/http.c:4348: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 strport[NI_MAXSERV];
data/lldpd-1.0.7/libevent/http.c:4424: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 strport[NI_MAXSERV];
data/lldpd-1.0.7/libevent/http.c:4604:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[64];
data/lldpd-1.0.7/libevent/http.c:4609:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf, s+1, n_chars);
data/lldpd-1.0.7/libevent/http.c:4672: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(uri->host, cp, eos-cp);
data/lldpd-1.0.7/libevent/include/event2/dns_struct.h:72: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 name[1];
data/lldpd-1.0.7/libevent/listener.c:469: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 addrbuf[1];
data/lldpd-1.0.7/libevent/log.c:189: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];
data/lldpd-1.0.7/libevent/poll.c:153: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(pop->event_set_copy, pop->event_set,
data/lldpd-1.0.7/libevent/poll.c:314: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(&pop->event_set[i], &pop->event_set[pop->nfds],
data/lldpd-1.0.7/libevent/sample/dns-example.c:48:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buf[32];
data/lldpd-1.0.7/libevent/sample/dns-example.c:89:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[128];
data/lldpd-1.0.7/libevent/sample/event-read-fifo.c:36: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[255];
data/lldpd-1.0.7/libevent/sample/event-read-fifo.c:123:11:  [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).
	socket = open(fifo, O_RDONLY | O_NONBLOCK, 0);
data/lldpd-1.0.7/libevent/sample/http-connect.c:44: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 buffer[URL_MAX];
data/lldpd-1.0.7/libevent/sample/http-connect.c:61: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 buffer[URL_MAX];
data/lldpd-1.0.7/libevent/sample/http-server.c:70:9:  [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).
#ifndef open
data/lldpd-1.0.7/libevent/sample/http-server.c:71:9:  [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).
#define open _open
data/lldpd-1.0.7/libevent/sample/http-server.c:81: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 uri_root[512];
data/lldpd-1.0.7/libevent/sample/http-server.c:167: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 cbuf[128];
data/lldpd-1.0.7/libevent/sample/http-server.c:259: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(pattern, whole_path, dirlen);
data/lldpd-1.0.7/libevent/sample/http-server.c:313:13:  [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(whole_path, O_RDONLY)) < 0) {
data/lldpd-1.0.7/libevent/sample/http-server.c:367:23:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			case 'p': o.port = atoi(optarg); break;
data/lldpd-1.0.7/libevent/sample/http-server.c:398: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 addrbuf[128];
data/lldpd-1.0.7/libevent/sample/https-client.c:53: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 buffer[256];
data/lldpd-1.0.7/libevent/sample/https-client.c:125: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 cert_str[256];
data/lldpd-1.0.7/libevent/sample/https-client.c:195: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 uri[256];
data/lldpd-1.0.7/libevent/sample/https-client.c:238:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				retries = atoi(argv[i + 1]);
data/lldpd-1.0.7/libevent/sample/https-client.c:245:15:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				timeout = atoi(argv[i + 1]);
data/lldpd-1.0.7/libevent/sample/https-client.c:449:14:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE * f = fopen(data_file, "rb");
data/lldpd-1.0.7/libevent/sample/https-client.c:450:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024];
data/lldpd-1.0.7/libevent/sample/le-proxy.c:247:11:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		int p = atoi(argv[i]);
data/lldpd-1.0.7/libevent/select.c:163: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(sop->event_readset_out, sop->event_readset_in,
data/lldpd-1.0.7/libevent/select.c:165: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(sop->event_writeset_out, sop->event_writeset_in,
data/lldpd-1.0.7/libevent/signal.c:135:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char signals[1024];
data/lldpd-1.0.7/libevent/test/bench.c:161:16:  [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).
			num_pipes = atoi(optarg);
data/lldpd-1.0.7/libevent/test/bench.c:164:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			num_active = atoi(optarg);
data/lldpd-1.0.7/libevent/test/bench.c:167:17:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
			num_writes = atoi(optarg);
data/lldpd-1.0.7/libevent/test/bench_cascade.c:157:16:  [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).
			num_pipes = atoi(optarg);
data/lldpd-1.0.7/libevent/test/regress.c:86:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char wbuf[4096];
data/lldpd-1.0.7/libevent/test/regress.c:87:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char rbuf[4096];
data/lldpd-1.0.7/libevent/test/regress.c:112: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[256];
data/lldpd-1.0.7/libevent/test/regress.c:131: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[256];
data/lldpd-1.0.7/libevent/test/regress.c:249: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[128];
data/lldpd-1.0.7/libevent/test/regress.c:267: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[128];
data/lldpd-1.0.7/libevent/test/regress.c:402: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];
data/lldpd-1.0.7/libevent/test/regress.c:835: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[256];
data/lldpd-1.0.7/libevent/test/regress.c:1795: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[128];
data/lldpd-1.0.7/libevent/test/regress.c:2098: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[256];
data/lldpd-1.0.7/libevent/test/regress.c:2332: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[256];
data/lldpd-1.0.7/libevent/test/regress.c:2420:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[4096];
data/lldpd-1.0.7/libevent/test/regress.c:2449:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)EVBUFFER_DATA(tmp))[1] = '\xff';
data/lldpd-1.0.7/libevent/test/regress.c:2610: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 b[256];
data/lldpd-1.0.7/libevent/test/regress.c:2622: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 b[256];
data/lldpd-1.0.7/libevent/test/regress.c:2650: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 varbuf[128];
data/lldpd-1.0.7/libevent/test/regress.c:2985: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(mem, "{[<guardedram>]}", 16);
data/lldpd-1.0.7/libevent/test/regress.gen.c:882: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(msg->some_bytes_data, value, len);
data/lldpd-1.0.7/libevent/test/regress.gen.c:890: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(msg->fixed_bytes_data, value, 24);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:175:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char buffer[512], *tmp;
data/lldpd-1.0.7/libevent/test/regress_buffer.c:301: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[2] = { 'A', 'A' };
data/lldpd-1.0.7/libevent/test/regress_buffer.c:476:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		tt_assert(*(char *)(iovecs[0].iov_base) = 'b');
data/lldpd-1.0.7/libevent/test/regress_buffer.c:750:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 *)v[0].iov_base = 'b';
data/lldpd-1.0.7/libevent/test/regress_buffer.c:800: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 data[4096];
data/lldpd-1.0.7/libevent/test/regress_buffer.c:917:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char data[4096];
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1002:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char data[4096];
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1666:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			char format[32];
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1706: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 test3[EVBUFFER_INITIAL_LENGTH];
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2025: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 tmp[16];
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2101: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 tmp[16];
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2216: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 tmp[128], *buffer = malloc(8096);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2505: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 charbuf[128];
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2610: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 charbuf[1024];
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2633: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 tmp[1024];
data/lldpd-1.0.7/libevent/test/regress_bufferevent.c:129: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 buffer[8333];
data/lldpd-1.0.7/libevent/test/regress_bufferevent.c:396: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 buffer[65000];
data/lldpd-1.0.7/libevent/test/regress_bufferevent.c:541: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 buffer[8333];
data/lldpd-1.0.7/libevent/test/regress_bufferevent.c:682: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[512];
data/lldpd-1.0.7/libevent/test/regress_bufferevent.c:1287: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 payload[4096];
data/lldpd-1.0.7/libevent/test/regress_dns.c:112: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[INET6_ADDRSTRLEN+1];
data/lldpd-1.0.7/libevent/test/regress_dns.c:258:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 addr6[17] = "abcdefghijklmnop";
data/lldpd-1.0.7/libevent/test/regress_dns.c:333: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[INET6_ADDRSTRLEN+1];
data/lldpd-1.0.7/libevent/test/regress_dns.c:443: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(resolve_addr6.s6_addr,
data/lldpd-1.0.7/libevent/test/regress_dns.c:480: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 addrs_buf[256];
data/lldpd-1.0.7/libevent/test/regress_dns.c:508: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(res->addrs_buf, addresses, len);
data/lldpd-1.0.7/libevent/test/regress_dns.c:546: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[64];
data/lldpd-1.0.7/libevent/test/regress_dns.c:660: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[64];
data/lldpd-1.0.7/libevent/test/regress_dns.c:735: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[64];
data/lldpd-1.0.7/libevent/test/regress_dns.c:834: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 buf1[64], buf2[64];
data/lldpd-1.0.7/libevent/test/regress_dns.c:909: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[64];
data/lldpd-1.0.7/libevent/test/regress_dns.c:973: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[64];
data/lldpd-1.0.7/libevent/test/regress_dns.c:1266: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[128];
data/lldpd-1.0.7/libevent/test/regress_dns.c:1448: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[128];
data/lldpd-1.0.7/libevent/test/regress_dns.c:2130: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[64];
data/lldpd-1.0.7/libevent/test/regress_dns.c:2175: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[64];
data/lldpd-1.0.7/libevent/test/regress_dns.c:2260: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[64];
data/lldpd-1.0.7/libevent/test/regress_http.c:181: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 strport[NI_MAXSERV];
data/lldpd-1.0.7/libevent/test/regress_http.c:327: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 addrbuf[128];
data/lldpd-1.0.7/libevent/test/regress_http.c:934: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[4096];
data/lldpd-1.0.7/libevent/test/regress_http.c:1193: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 address[64];
data/lldpd-1.0.7/libevent/test/regress_http.c:1462: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 address[64];
data/lldpd-1.0.7/libevent/test/regress_http.c:2530: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 url_tmp[4096];
data/lldpd-1.0.7/libevent/test/regress_http.c:3850: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 address[64];
data/lldpd-1.0.7/libevent/test/regress_http.c:4387: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 address[64];
data/lldpd-1.0.7/libevent/test/regress_http.c:4417: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 addrbuf[128];
data/lldpd-1.0.7/libevent/test/regress_iocp.c:243: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 junk[1024];
data/lldpd-1.0.7/libevent/test/regress_iocp.c:310: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[128];
data/lldpd-1.0.7/libevent/test/regress_main.c:125: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 tmpfilename[32];
data/lldpd-1.0.7/libevent/test/regress_main.c:128:2:  [2] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused). Risk is low because the source is a constant string.
	strcpy(tmpfilename, "/tmp/eventtmp.XXXXXX");
data/lldpd-1.0.7/libevent/test/regress_main.c:132:7:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
	fd = mkstemp(tmpfilename);
data/lldpd-1.0.7/libevent/test/regress_main.c:145: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 tmpfilepath[MAX_PATH];
data/lldpd-1.0.7/libevent/test/regress_main.c:146: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 tmpfilename[MAX_PATH];
data/lldpd-1.0.7/libevent/test/regress_ssl.c:331:6:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
	n = atoi(line);
data/lldpd-1.0.7/libevent/test/regress_testutils.c:173: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).
		int err = atoi(tab->ans);
data/lldpd-1.0.7/libevent/test/regress_testutils.c:177: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).
		int err = atoi(tab->ans);
data/lldpd-1.0.7/libevent/test/regress_thread.c:319: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(&alerted[5].delay, &tv_timeout, sizeof(tv_timeout));
data/lldpd-1.0.7/libevent/test/regress_thread.c:320: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(&alerted[6].delay, &tv_timeout, sizeof(tv_timeout));
data/lldpd-1.0.7/libevent/test/regress_util.c:121: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 written[128];
data/lldpd-1.0.7/libevent/test/regress_util.c:168: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 written[128];
data/lldpd-1.0.7/libevent/test/regress_util.c:295: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 cbuf[128];
data/lldpd-1.0.7/libevent/test/regress_util.c:388: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[16];
data/lldpd-1.0.7/libevent/test/regress_util.c:559: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[128];
data/lldpd-1.0.7/libevent/test/regress_util.c:649: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[8];
data/lldpd-1.0.7/libevent/test/regress_util.c:820: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[128];
data/lldpd-1.0.7/libevent/test/regress_util.c:872: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 buf1[32];
data/lldpd-1.0.7/libevent/test/regress_util.c:873: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 buf2[32];
data/lldpd-1.0.7/libevent/test/regress_util.c:1072: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[128];
data/lldpd-1.0.7/libevent/test/regress_util.c:1402: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 date[30];
data/lldpd-1.0.7/libevent/test/regress_util.c:1436: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 result[30];
data/lldpd-1.0.7/libevent/test/regress_zlib.c:146:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			p->next_in = (unsigned char *)v_in[0].iov_base;
data/lldpd-1.0.7/libevent/test/regress_zlib.c:153:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		p->next_out = (unsigned char *)v_out[0].iov_base;
data/lldpd-1.0.7/libevent/test/regress_zlib.c:200:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
			p->next_in = (unsigned char *)v_in[0].iov_base;
data/lldpd-1.0.7/libevent/test/regress_zlib.c:207:27:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		p->next_out = (unsigned char *)v_out[0].iov_base;
data/lldpd-1.0.7/libevent/test/regress_zlib.c:280: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 buffer[8333];
data/lldpd-1.0.7/libevent/test/test-eof.c:59: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[256];
data/lldpd-1.0.7/libevent/test/test-ratelim.c:116: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];
data/lldpd-1.0.7/libevent/test/tinytest.c:91:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char commandname[MAX_PATH+1];
data/lldpd-1.0.7/libevent/test/tinytest.c:164: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 buffer[LONGEST_TEST_NAME+256];
data/lldpd-1.0.7/libevent/test/tinytest.c:217:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char b[1];
data/lldpd-1.0.7/libevent/test/tinytest.c:232: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 b[1];
data/lldpd-1.0.7/libevent/test/tinytest.c:309: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 fullname[LONGEST_TEST_NAME];
data/lldpd-1.0.7/libevent/test/tinytest.c:445:29:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
				opt_timeout = (unsigned)atoi(v[i]);
data/lldpd-1.0.7/libevent/util-internal.h:389: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 ss_padding[128];
data/lldpd-1.0.7/libevent/win32select.c:265: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(out->fd_array, in->fd_array, in->fd_count * (sizeof(SOCKET)));
data/lldpd-1.0.7/src/client/commands.c:515:4:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 prefix[maxl + 2]; /* Extra space may be added at the end */
data/lldpd-1.0.7/src/client/commands.c:555:6:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
					char fmt[100];
data/lldpd-1.0.7/src/client/conf-lldp.c:30: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 interval_ms[8]; /* less than 2.5 hours */
data/lldpd-1.0.7/src/client/conf-lldp.c:51:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(interval_ms, interval, arglen-2);
data/lldpd-1.0.7/src/client/display.c:118:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char spcp[2] = { pcp + '0', '\0' };
data/lldpd-1.0.7/src/client/display.c:287: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[1600]; /* should be enough for printing */
data/lldpd-1.0.7/src/client/display.c:347: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[5]; /* should be enough for printing */
data/lldpd-1.0.7/src/client/display.c:667:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char sage[30];
data/lldpd-1.0.7/src/client/display.c:832: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[20] = {};
data/lldpd-1.0.7/src/client/json_writer.c:145:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static const char pairs[2][2] = { "{}", "[]" };
data/lldpd-1.0.7/src/client/lldpcli.c:249:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char line[2048];
data/lldpd-1.0.7/src/client/lldpcli.c:512:16:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
		FILE *file = fopen(first->name, "r");
data/lldpd-1.0.7/src/client/lldpcli.c:564:20:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		cargv = &((const char **)argv)[optind];
data/lldpd-1.0.7/src/client/text_writer.c:37: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[128];
data/lldpd-1.0.7/src/client/tokenizer.c:44: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 input[2*strlen(line) + 3]; /* 3 = 2 for '\n ' and 1 for \0 */
data/lldpd-1.0.7/src/compat/daemon.c:58:24:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if (!noclose && (fd = open("/dev/null", O_RDWR, 0)) != -1) {
data/lldpd-1.0.7/src/compat/strndup.c:20: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(result, string, len);
data/lldpd-1.0.7/src/ctl.c:167: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(*output_buffer + *output_len, &hdr, sizeof(struct hmsg_header));
data/lldpd-1.0.7/src/ctl.c:169:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(*output_buffer + *output_len + sizeof(struct hmsg_header), buffer, len);
data/lldpd-1.0.7/src/ctl.c:216: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(&hdr, *input_buffer, sizeof(struct hmsg_header));
data/lldpd-1.0.7/src/daemon/agent.c:82:17:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
                memcpy(name, vp->name, sizeof(oid) * vp->namelen);
data/lldpd-1.0.7/src/daemon/agent.c:122: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(header_idx.best, index, sizeof(oid) * len);
data/lldpd-1.0.7/src/daemon/agent.c:136: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(header_idx.name + header_idx.vp->namelen,
data/lldpd-1.0.7/src/daemon/agent_priv.c:198: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(t->remote, addr.sun_path, strlen(addr.sun_path));
data/lldpd-1.0.7/src/daemon/client.c:405: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(&port->p_med_policy[set->med_policy->type - 1],
data/lldpd-1.0.7/src/daemon/client.c:420: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(loc, set->med_location, sizeof(struct lldpd_med_loc));
data/lldpd-1.0.7/src/daemon/client.c:422:16:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		if (newdata) memcpy(newdata, loc->data, loc->data_len);
data/lldpd-1.0.7/src/daemon/client.c:428: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(&port->p_med_power, set->med_power,
data/lldpd-1.0.7/src/daemon/client.c:445: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(&port->p_power, set->dot3_power,
data/lldpd-1.0.7/src/daemon/dmi-freebsd.c:36: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 buffer[100] = {};
data/lldpd-1.0.7/src/daemon/dmi-linux.c:36: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 buffer[100] = {};
data/lldpd-1.0.7/src/daemon/dmi-openbsd.c:27: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 result[100] = {};
data/lldpd-1.0.7/src/daemon/dmi-osx.c:58: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(result, CFDataGetBytePtr((CFDataRef)cfres),
data/lldpd-1.0.7/src/daemon/event.c:301:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&neighbor->p_entries, &backup_p_entries,
data/lldpd-1.0.7/src/daemon/event.c:714: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 buffer[EVENT_BUFFER];
data/lldpd-1.0.7/src/daemon/event.c:932:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char buf[1024] = {};
data/lldpd-1.0.7/src/daemon/frame.h:40:17:  [2] (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, &type, sizeof(type)), \
data/lldpd-1.0.7/src/daemon/frame.h:51: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),		       \
data/lldpd-1.0.7/src/daemon/frame.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(value, pos, bytes);		       \
data/lldpd-1.0.7/src/daemon/frame.h:109: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(&types.f_uint16, tlv, sizeof(uint16_t)),	       \
data/lldpd-1.0.7/src/daemon/frame.h:111: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(tlv, &types.f_uint16, sizeof(uint16_t)),	       \
data/lldpd-1.0.7/src/daemon/frame.h:125:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	 memcpy(tlv, &types.f_uint16, sizeof(uint16_t)),	       \
data/lldpd-1.0.7/src/daemon/interfaces-bpf.c:105: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(buffer, (char *)bpfbuf->data + bh->bh_hdrlen, size);
data/lldpd-1.0.7/src/daemon/interfaces-bsd.c:172: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[sizeof(struct agrportinfo)*24] = {};
data/lldpd-1.0.7/src/daemon/interfaces-bsd.c:386: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(iface->address, LLADDR(saddrdl), ETHER_ADDR_LEN);
data/lldpd-1.0.7/src/daemon/interfaces-bsd.c:453: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(&address->address,
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:146: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 path[SYSFS_PATH_MAX];
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:298: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(iface->address, epaddr->data, ETHER_ADDR_LEN);
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:322: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 path[SYSFS_PATH_MAX];
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:323: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 line[100];
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:382: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(iface->address, mac,
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:499:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(uset->link_modes.supported,
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:503:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(uset->link_modes.advertising,
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:507:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(uset->link_modes.lp_advertising,
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:654: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 name[IFNAMSIZ];
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:817: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(&hardware->h_lladdr, iface->address, ETHER_ADDR_LEN);
data/lldpd-1.0.7/src/daemon/interfaces-solaris.c:70: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(&address->address,
data/lldpd-1.0.7/src/daemon/interfaces-solaris.c:103: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(device->address, LLADDR(saddrdl), ETHER_ADDR_LEN);
data/lldpd-1.0.7/src/daemon/interfaces.c:392: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(name, hardware->h_lladdr, ETHER_ADDR_LEN);
data/lldpd-1.0.7/src/daemon/interfaces.c:427: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 addrstrbuf[INET6_ADDRSTRLEN];
data/lldpd-1.0.7/src/daemon/interfaces.c:439:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&in_addr, &((struct sockaddr_in *)&addr->address)->sin_addr,
data/lldpd-1.0.7/src/daemon/interfaces.c:451:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&in_addr, &((struct sockaddr_in6 *)&addr->address)->sin6_addr,
data/lldpd-1.0.7/src/daemon/interfaces.c:513:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char addr[sizeof(struct in6_addr)];
data/lldpd-1.0.7/src/daemon/interfaces.c:604:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(port->p_id, hardware->h_ifname, port->p_id_len);
data/lldpd-1.0.7/src/daemon/interfaces.c:628:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(port->p_id, hardware->h_lladdr, ETHER_ADDR_LEN);
data/lldpd-1.0.7/src/daemon/interfaces.c:715:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&hardware->h_lladdr, iface->address, ETHER_ADDR_LEN);
data/lldpd-1.0.7/src/daemon/interfaces.c:777:4:  [2] (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_mac, arbitrary, ETHER_ADDR_LEN);
data/lldpd-1.0.7/src/daemon/lldpd.c:47:10:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
# define vfork fork
data/lldpd-1.0.7/src/daemon/lldpd.c:201: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(destination, cloned, sizeof(struct lldpd_port));
data/lldpd-1.0.7/src/daemon/lldpd.c:273: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(&mgmt->m_addr, addrptr, addrsize);
data/lldpd-1.0.7/src/daemon/lldpd.c:380: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 save[LLDPD_PORT_START_MARKER];
data/lldpd-1.0.7/src/daemon/lldpd.c:386: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(port, save, sizeof(save));
data/lldpd-1.0.7/src/daemon/lldpd.c:490: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(ochassis, chassis, sizeof(struct lldpd_chassis));
data/lldpd-1.0.7/src/daemon/lldpd.c:505: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(&ochassis->c_entries, &entries, sizeof(entries));
data/lldpd-1.0.7/src/daemon/lldpd.c:559: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(&eheader, frame, sizeof(struct ether_header));
data/lldpd-1.0.7/src/daemon/lldpd.c:688: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(port->p_lastframe->frame, frame, s);
data/lldpd-1.0.7/src/daemon/lldpd.c:760:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char release[1024];
data/lldpd-1.0.7/src/daemon/lldpd.c:772:8:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	pid = vfork();
data/lldpd-1.0.7/src/daemon/lldpd.c:780:18:  [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 ((devnull = open("/dev/null", O_RDWR, 0)) != -1) {
data/lldpd-1.0.7/src/daemon/lldpd.c:833:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char release[1024];
data/lldpd-1.0.7/src/daemon/lldpd.c:834: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 line[1024];
data/lldpd-1.0.7/src/daemon/lldpd.c:839:13:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *fp = fopen("/etc/os-release", "r");
data/lldpd-1.0.7/src/daemon/lldpd.c:842:8:  [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).
		fp = fopen("/usr/lib/os-release", "r");
data/lldpd-1.0.7/src/daemon/lldpd.c:877: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 buffer[256];
data/lldpd-1.0.7/src/daemon/lldpd.c:950: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(buffer + sizeof(buffer) - 4, "...", 4);
data/lldpd-1.0.7/src/daemon/lldpd.c:1341:18:  [2] (race) vfork:
  On some old systems, vfork() permits race conditions, and it's very
  difficult to use correctly (CWE-362). Use fork() instead.
	pid_t lldpcli = vfork();
data/lldpd-1.0.7/src/daemon/lldpd.c:1344: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 sdebug[debug + 4];
data/lldpd-1.0.7/src/daemon/lldpd.c:1363:18:  [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 ((devnull = open("/dev/null", O_RDWR, 0)) != -1) {
data/lldpd-1.0.7/src/daemon/lldpd.c:1740:13:  [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("/dev/null", O_RDWR, 0)) != -1) {
data/lldpd-1.0.7/src/daemon/lldpd.c:1809: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 ((pid = open(pidfile,
data/lldpd-1.0.7/src/daemon/netlink.c:347: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(iff->address, RTA_DATA(attribute), RTA_PAYLOAD(attribute));
data/lldpd-1.0.7/src/daemon/netlink.c:451: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(&ip.sin_addr, RTA_DATA(attribute),
data/lldpd-1.0.7/src/daemon/netlink.c:453: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(&ifa->address, &ip, sizeof(struct sockaddr_in));
data/lldpd-1.0.7/src/daemon/netlink.c:458: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(&ip6.sin6_addr, RTA_DATA(attribute),
data/lldpd-1.0.7/src/daemon/netlink.c:460: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(&ifa->address, &ip6, sizeof(struct sockaddr_in6));
data/lldpd-1.0.7/src/daemon/netlink.c:500: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((void *)new->vlan_bmap, (void *)old->vlan_bmap,
data/lldpd-1.0.7/src/daemon/netlink.c:528: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 addr[INET6_ADDRSTRLEN + 1];
data/lldpd-1.0.7/src/daemon/priv-bsd.c:42: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 dev[20];
data/lldpd-1.0.7/src/daemon/priv-bsd.c:45:9:  [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(dev, O_RDWR);
data/lldpd-1.0.7/src/daemon/priv-bsd.c:48:8:  [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("/dev/bpf", O_RDWR);
data/lldpd-1.0.7/src/daemon/priv-bsd.c:146: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 descr[IFDESCRSIZE];
data/lldpd-1.0.7/src/daemon/priv-bsd.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(descr, "lldpd: was ", 11);
data/lldpd-1.0.7/src/daemon/priv-linux.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).
	if ((fd = open(file, O_RDONLY)) == -1) {
data/lldpd-1.0.7/src/daemon/priv-linux.c:191: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 descr[IFALIASZ];
data/lldpd-1.0.7/src/daemon/priv-linux.c:202:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((fp = fopen(file, "r+")) == NULL) {
data/lldpd-1.0.7/src/daemon/priv-linux.c:221: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(descr, "lldpd: was ", 11);
data/lldpd-1.0.7/src/daemon/priv-seccomp.c:150:59:  [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).
	    (rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(open), 0)) < 0 ||
data/lldpd-1.0.7/src/daemon/priv.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 dev[IFNAMSIZ] = {};
data/lldpd-1.0.7/src/daemon/priv.c:253: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 name[IFNAMSIZ];
data/lldpd-1.0.7/src/daemon/priv.c:307: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 name[IFNAMSIZ];
data/lldpd-1.0.7/src/daemon/priv.c:327: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 name[IFNAMSIZ];
data/lldpd-1.0.7/src/daemon/priv.c:517: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 path[PATH_MAX+1], current[PATH_MAX+1] = {};
data/lldpd-1.0.7/src/daemon/priv.c:551: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 path[1024];
data/lldpd-1.0.7/src/daemon/priv.c:556:16:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	if ((source = open(LOCALTIME, O_RDONLY)) == -1) {
data/lldpd-1.0.7/src/daemon/priv.c:576: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 buffer[1024];
data/lldpd-1.0.7/src/daemon/priv.c:579:21:  [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 ((destination = open(path,
data/lldpd-1.0.7/src/daemon/priv.c:655:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	const char *caps_strings[2] = {
data/lldpd-1.0.7/src/daemon/privsep_fd.c:56: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/lldpd-1.0.7/src/daemon/privsep_fd.c:73: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), &fd, sizeof(int));
data/lldpd-1.0.7/src/daemon/privsep_fd.c:96: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/lldpd-1.0.7/src/daemon/privsep_fd.c:126: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(&fd, CMSG_DATA(cmsg), sizeof(int));
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:453:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(chassis->c_id, chassis->c_name, tlv_len);
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:527:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(port->p_id, port->p_descr, tlv_len);
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:624: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(chassis->c_descr, platform, platform_len);
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:631: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(chassis->c_descr, software, software_len);
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:640: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(chassis->c_descr, platform, platform_len);
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:641: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(chassis->c_descr + platform_len,
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:643: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(chassis->c_descr + platform_len + strlen(CONCAT_PLATFORM),
data/lldpd-1.0.7/src/daemon/protocols/edp.c:129:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
					      POKE_UINT16(atoi(hardware->h_ifname +
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:520:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(&frame->frame, packet, frame->size);
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:601: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(hardware->h_lchassis_previous_id, chassis->c_id,
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:607: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(hardware->h_lport_previous_id, port->p_id,
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:633: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 lldpaddr[ETHER_ADDR_LEN];
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:638:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char orgid[3];
data/lldpd-1.0.7/src/daemon/protocols/sonmp.c:340: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(chassis->c_id + 1, &address, sizeof(struct in_addr));
data/lldpd-1.0.7/src/lib/atom.h:62: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 state_data[IFNAMSIZ + 64];
data/lldpd-1.0.7/src/lib/atoms/config.c:129: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(aval, value, len);
data/lldpd-1.0.7/src/lib/atoms/config.c:146: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(&config, c->config, sizeof(struct lldpd_config));
data/lldpd-1.0.7/src/lib/atoms/config.c:265: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(&config, c->config, sizeof(struct lldpd_config));
data/lldpd-1.0.7/src/lib/atoms/custom.c:211: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(custom->tlv->oui_info, buf, n);
data/lldpd-1.0.7/src/lib/atoms/med.c:545:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(value, m->location->data + 2, 2);
data/lldpd-1.0.7/src/lib/atoms/med.c:551:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(value, m->location->data, m->location->data_len);
data/lldpd-1.0.7/src/lib/atoms/med.c:628:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(mloc->location->data + 2, value, 2);
data/lldpd-1.0.7/src/lib/atoms/med.c:641: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(mloc->location->data, value,
data/lldpd-1.0.7/src/lib/atoms/med.c:707: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(new, m->location->data, m->location->data_len);
data/lldpd-1.0.7/src/lib/atoms/med.c:710:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(new + m->location->data_len + 2, el->value, el->len);
data/lldpd-1.0.7/src/lib/atoms/med.c:856:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(value, m->value, m->len);
data/lldpd-1.0.7/src/lib/connection.c:257: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(conn->input_buffer + conn->input_buffer_len, data, length);
data/lldpd-1.0.7/src/lldpd-structs.c:114: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(custom, curr, sizeof(struct lldpd_custom));
data/lldpd-1.0.7/src/lldpd-structs.c:116:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(custom->oui_info, curr->oui_info, custom->oui_info_len);
data/lldpd-1.0.7/src/lldpd-structs.h:441:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char frame[1];
data/lldpd-1.0.7/src/lldpd-structs.h:477: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			 h_ifname[IFNAMSIZ]; /* Should be unique */
data/lldpd-1.0.7/src/log.c:42: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.
static const char *tokens[MAX_DBG_TOKENS + 1] = {NULL};
data/lldpd-1.0.7/src/marshal.c:43:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char object[0];
data/lldpd-1.0.7/src/marshal.c:134: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(serialized->object, unserialized, size);
data/lldpd-1.0.7/src/marshal.c:144:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&source,
data/lldpd-1.0.7/src/marshal.c:151:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&osize, (unsigned char*)unserialized + current->offset2, sizeof(int));
data/lldpd-1.0.7/src/marshal.c:167: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((unsigned char *)serialized->object + current->offset,
data/lldpd-1.0.7/src/marshal.c:187: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((unsigned char *)new + len + padlen, target, sublen);
data/lldpd-1.0.7/src/marshal.c:307: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(*output, serialized->object, size);
data/lldpd-1.0.7/src/marshal.c:327: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((unsigned char *)*output + current->offset,
data/lldpd-1.0.7/src/marshal.c:336:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&osize, (unsigned char *)*output + current->offset2, sizeof(int));
data/lldpd-1.0.7/src/marshal.c:350:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy((unsigned char *)*output + current->offset,
data/lldpd-1.0.7/tests/check_fixedpoint.c:160:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[5] = {};
data/lldpd-1.0.7/tests/check_fixedpoint.c:170:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[5] = {};
data/lldpd-1.0.7/tests/check_fixedpoint.c:191:11:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	unsigned char buffer[5] = {};
data/lldpd-1.0.7/tests/check_lldp.c:233: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(&tmp, (unsigned char*) pkt->data + ETHERTYPE_OFFSET, ETHER_TYPE_LEN);
data/lldpd-1.0.7/tests/check_lldp.c:237: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(&tmp, (unsigned char*) pkt->data + ETHERTYPE_OFFSET + ETHER_TYPE_LEN, VLAN_TAG_SIZE);
data/lldpd-1.0.7/tests/check_marshal.c:40: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 a5[7];
data/lldpd-1.0.7/tests/check_marshal.c:845: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(&source_simple2, &source_simple1, sizeof(source_simple1));
data/lldpd-1.0.7/tests/check_marshal.c:846: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(&entry2, &entry1, sizeof(entry1));
data/lldpd-1.0.7/tests/check_snmp.c:384:9:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	static char *buffer[4] = {NULL, NULL, NULL, NULL};
data/lldpd-1.0.7/tests/check_snmp.c:940: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(vp->name, lldp_oid, sizeof(lldp_oid));
data/lldpd-1.0.7/tests/check_snmp.c:941: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(vp->name + sizeof(lldp_oid)/sizeof(oid),
data/lldpd-1.0.7/tests/check_snmp.c:946: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(target, lldp_oid, sizeof(lldp_oid));
data/lldpd-1.0.7/tests/check_snmp.c:947: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(target + sizeof(lldp_oid)/sizeof(oid),
data/lldpd-1.0.7/tests/check_sonmp.c:169: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 cid[5];
data/lldpd-1.0.7/tests/check_sonmp.c:183: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(cid + 1, &ip, sizeof(in_addr_t));
data/lldpd-1.0.7/tests/common.c:31: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 macaddress[ETHER_ADDR_LEN] = { 0x5e, 0x10, 0x8e, 0xe7, 0x84, 0xad };
data/lldpd-1.0.7/tests/common.c:66: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(pkt->data, buffer, size);
data/lldpd-1.0.7/tests/common.c:93:9:  [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).
	dump = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 0644);
data/lldpd-1.0.7/tests/common.c:122: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(hardware.h_lladdr, macaddress, ETHER_ADDR_LEN);
data/lldpd-1.0.7/tests/decode.c:70:11:  [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).
	int fd = open(argv[1], O_RDONLY);
data/lldpd-1.0.7/tests/decode.c:73: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[BUFSIZE];
data/lldpd-1.0.7/tests/decode.c:144:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char ipaddress[INET6_ADDRSTRLEN + 1];
data/lldpd-1.0.7/libevent/WIN32-Code/getopt_long.c:186: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).
			current_argv_len = strlen(current_argv);
data/lldpd-1.0.7/libevent/WIN32-Code/getopt_long.c:192:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(long_options[i].name) == current_argv_len) {
data/lldpd-1.0.7/libevent/arc4random.c:132:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		result = read(fd, buf+numread, count-numread);
data/lldpd-1.0.7/libevent/arc4random.c:264:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(fd, buf, sizeof(buf));
data/lldpd-1.0.7/libevent/buffer.c:2362:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, p, howmuch);
data/lldpd-1.0.7/libevent/buffer.c:3118:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(fd, mem+read_so_far, length-read_so_far);
data/lldpd-1.0.7/libevent/bufferevent_openssl.c:226: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 bio_bufferevent_write(b, s, strlen(s));
data/lldpd-1.0.7/libevent/evdns.c:1281: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).
		namelen = (int)strlen(tmp_name);
data/lldpd-1.0.7/libevent/evdns.c:1936: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).
		j = dnsname_to_labels(buf, buf_len, j, s, strlen(s), &table);
data/lldpd-1.0.7/libevent/evdns.c:1955:55:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			r = dnsname_to_labels(buf, buf_len, j, item->name, strlen(item->name), &table);
data/lldpd-1.0.7/libevent/evdns.c:1967:56:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				r = dnsname_to_labels(buf, buf_len, j, item->data, strlen(item->data), &table);
data/lldpd-1.0.7/libevent/evdns.c:2788: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).
	const size_t name_len = strlen(name);
data/lldpd-1.0.7/libevent/evdns.c:3037: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).
	EVUTIL_ASSERT(cp + strlen("ip6.arpa") < buf+sizeof(buf));
data/lldpd-1.0.7/libevent/evdns.c:3038: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).
	memcpy(cp, "ip6.arpa", strlen("ip6.arpa")+1);
data/lldpd-1.0.7/libevent/evdns.c:3137:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	domain_len = strlen(domain);
data/lldpd-1.0.7/libevent/evdns.c:3211: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).
	const size_t base_len = strlen(base_name);
data/lldpd-1.0.7/libevent/evdns.c:3474: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).
	size_t optlen = strlen(optionname);
data/lldpd-1.0.7/libevent/evdns.c:3475:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t slen = strlen(s1);
data/lldpd-1.0.7/libevent/evdns.c:3650: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).
	len_out = strlen(path)+strlen(hostfile)+1;
data/lldpd-1.0.7/libevent/evdns.c:3650: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).
	len_out = strlen(path)+strlen(hostfile)+1;
data/lldpd-1.0.7/libevent/evdns.c:4223:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		namelen = strlen(hostname);
data/lldpd-1.0.7/libevent/event.c:3536:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t ln = strlen(str);
data/lldpd-1.0.7/libevent/event.c:3592:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	r = read(fd, (void*) &msg, sizeof(msg));
data/lldpd-1.0.7/libevent/event.c:3611:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while (read(fd, (char*)buf, sizeof(buf)) > 0)
data/lldpd-1.0.7/libevent/event_tagging.c:307:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	evtag_marshal(buf, tag, string, (ev_uint32_t)strlen(string));
data/lldpd-1.0.7/libevent/evrpc.c:216:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	constructed_uri_len = strlen(EVRPC_URI_PREFIX) + strlen(uri) + 1;
data/lldpd-1.0.7/libevent/evrpc.c:216:51:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	constructed_uri_len = strlen(EVRPC_URI_PREFIX) + strlen(uri) + 1;
data/lldpd-1.0.7/libevent/evrpc.c:220: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).
	memcpy(constructed_uri, EVRPC_URI_PREFIX, strlen(EVRPC_URI_PREFIX));
data/lldpd-1.0.7/libevent/evrpc.c:221: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).
	memcpy(constructed_uri + strlen(EVRPC_URI_PREFIX), uri, strlen(uri));
data/lldpd-1.0.7/libevent/evrpc.c:221:58:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	memcpy(constructed_uri + strlen(EVRPC_URI_PREFIX), uri, strlen(uri));
data/lldpd-1.0.7/libevent/evutil.c:94:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read _read
data/lldpd-1.0.7/libevent/evutil.c:179:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((r = read(fd, mem+read_so_far, N_TO_READ(st.st_size - read_so_far))) > 0) {
data/lldpd-1.0.7/libevent/evutil.c:1682:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (s && (len = strlen (s)) > 0 && s[len - 1] == '\n') {
data/lldpd-1.0.7/libevent/evutil.c:1931:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(buf) > len)
data/lldpd-1.0.7/libevent/evutil.c:1967:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				cp += strlen(cp);
data/lldpd-1.0.7/libevent/evutil.c:1973: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(buf) > len)
data/lldpd-1.0.7/libevent/evutil.c:2012: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).
			eow = src+strlen(src);
data/lldpd-1.0.7/libevent/evutil.c:2532:21:  [1] (buffer) _tcslen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (n == 0 || n + _tcslen(library_name) + 2 >= MAX_PATH)
data/lldpd-1.0.7/libevent/evutil_time.c:142:2:  [1] (obsolete) usleep:
  This C routine is considered obsolete (as opposed to the shell command by
  the same name). The interaction of this function with SIGALRM and other
  timer functions such as sleep(), alarm(), setitimer(), and nanosleep() is
  unspecified (CWE-676). Use nanosleep(2) or setitimer(2) instead.
	usleep(tv->tv_usec);
data/lldpd-1.0.7/libevent/http.c:217:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	EVUTIL_ASSERT(strlen(del) == 1);
data/lldpd-1.0.7/libevent/http.c:274:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	old_size = strlen(html);
data/lldpd-1.0.7/libevent/http.c:925:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(p) == 0) {
data/lldpd-1.0.7/libevent/http.c:1725:12:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (len < strlen("GET / HTTP/1.0"))
data/lldpd-1.0.7/libevent/http.c:2066: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).
	old_len = strlen(header->value);
data/lldpd-1.0.7/libevent/http.c:2073:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	line_len = strlen(line);
data/lldpd-1.0.7/libevent/http.c:3118: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).
		size_t slen = strlen(uri);
data/lldpd-1.0.7/libevent/http.c:3204: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 ((ret = mm_malloc(strlen(uri) + 1)) == NULL) {
data/lldpd-1.0.7/libevent/http.c:3206: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).
			  (unsigned long)(strlen(uri) + 1));
data/lldpd-1.0.7/libevent/http.c:3210: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).
	evhttp_decode_uri_internal(uri, strlen(uri),
data/lldpd-1.0.7/libevent/http.c:3222: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 ((ret = mm_malloc(strlen(uri) + 1)) == NULL) {
data/lldpd-1.0.7/libevent/http.c:3224: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).
			  (unsigned long)(strlen(uri) + 1));
data/lldpd-1.0.7/libevent/http.c:3228: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).
	n = evhttp_decode_uri_internal(uri, strlen(uri),
data/lldpd-1.0.7/libevent/http.c:3267:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!query_part || !strlen(query_part)) {
data/lldpd-1.0.7/libevent/http.c:3288:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if ((decoded_value = mm_malloc(strlen(value) + 1)) == NULL) {
data/lldpd-1.0.7/libevent/http.c:3292: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).
		evhttp_decode_uri_internal(value, strlen(value),
data/lldpd-1.0.7/libevent/http.c:3332:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	offset = strlen(path);
data/lldpd-1.0.7/libevent/http.c:4144:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			p = host + strlen(host) - 1;
data/lldpd-1.0.7/libevent/http.c:4718: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).
			cp += strlen(cp);
data/lldpd-1.0.7/libevent/http.c:4943:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
#define URI_ADD_(f)	evbuffer_add(tmp, uri->f, strlen(uri->f))
data/lldpd-1.0.7/libevent/http.c:5052:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (scheme && !scheme_ok(scheme, scheme+strlen(scheme)))
data/lldpd-1.0.7/libevent/http.c:5061:50:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (userinfo && !userinfo_ok(userinfo, userinfo+strlen(userinfo)))
data/lldpd-1.0.7/libevent/http.c:5071:37:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (! bracket_addr_ok(host, host+strlen(host)))
data/lldpd-1.0.7/libevent/http.c:5074: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).
			if (! regname_ok(host, host+strlen(host)))
data/lldpd-1.0.7/libevent/http.c:5096:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (path && end_of_cpath(path, PART_PATH, uri->flags) != path+strlen(path))
data/lldpd-1.0.7/libevent/http.c:5105:68:  [1] (buffer) strlen:
  Does not handle 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 (query && end_of_cpath(query, PART_QUERY, uri->flags) != query+strlen(query))
data/lldpd-1.0.7/libevent/http.c:5113:80:  [1] (buffer) strlen:
  Does not handle 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 (fragment && end_of_cpath(fragment, PART_FRAGMENT, uri->flags) != fragment+strlen(fragment))
data/lldpd-1.0.7/libevent/log.c:201:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(buf);
data/lldpd-1.0.7/libevent/sample/event-read-fifo.c:57:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf) - 1);
data/lldpd-1.0.7/libevent/sample/hello-world.c:105: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).
	bufferevent_write(bev, MESSAGE, strlen(MESSAGE));
data/lldpd-1.0.7/libevent/sample/http-server.c:225: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(decoded_path)+strlen(docroot)+2;
data/lldpd-1.0.7/libevent/sample/http-server.c:225: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).
	len = strlen(decoded_path)+strlen(docroot)+2;
data/lldpd-1.0.7/libevent/sample/http-server.c:253:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!strlen(path) || path[strlen(path)-1] != '/')
data/lldpd-1.0.7/libevent/sample/http-server.c:253: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 (!strlen(path) || path[strlen(path)-1] != '/')
data/lldpd-1.0.7/libevent/sample/http-server.c:257: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).
		dirlen = strlen(whole_path);
data/lldpd-1.0.7/libevent/sample/https-client.c:302:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(path) == 0) {
data/lldpd-1.0.7/libevent/sample/openssl_hostname_validation.c:90:61:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        if ((size_t)ASN1_STRING_length(common_name_asn1) != strlen(common_name_str)) {
data/lldpd-1.0.7/libevent/sample/openssl_hostname_validation.c:134:84:  [1] (buffer) strlen:
  Does not handle 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 ((size_t)ASN1_STRING_length(current_name->d.dNSName) != strlen(dns_name)) {
data/lldpd-1.0.7/libevent/signal.c:149:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		n = read(fd, signals, sizeof(signals));
data/lldpd-1.0.7/libevent/test/regress.c:99:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read(fd,buf,len) recv((fd),(buf),(int)(len),0)
data/lldpd-1.0.7/libevent/test/regress.c:115:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf));
data/lldpd-1.0.7/libevent/test/regress.c:135:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf));
data/lldpd-1.0.7/libevent/test/regress.c:172: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).
	len = write(fd, TEST1, strlen(TEST1) + 1);
data/lldpd-1.0.7/libevent/test/regress.c:218:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, rbuf + roff, sizeof(rbuf) - roff);
data/lldpd-1.0.7/libevent/test/regress.c:252:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf));
data/lldpd-1.0.7/libevent/test/regress.c:306:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:351:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:838:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf));
data/lldpd-1.0.7/libevent/test/regress.c:900:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:948:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(child_pair[1], &c, 1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:951:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:958:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:1019:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:1798:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = read(fd, buf, sizeof(buf))) > 0)
data/lldpd-1.0.7/libevent/test/regress.c:1893:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, &c, 1);
data/lldpd-1.0.7/libevent/test/regress.c:1953: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).
	int towrite = (int)strlen(TEST1)+1;
data/lldpd-1.0.7/libevent/test/regress.c:2104:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n_read = read(fd, buf, sizeof(buf));
data/lldpd-1.0.7/libevent/test/regress.c:2311:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
   if (write(pair[1], TEST1, strlen(TEST1)+1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:2335:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	len = read(fd, buf, sizeof(buf));
data/lldpd-1.0.7/libevent/test/regress.c:2341: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 (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:2361:28:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(pair[0], TEST1, strlen(TEST1)+1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:2775:34:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (write(data->pair[1], TEST1, strlen(TEST1)+1) < 0) {
data/lldpd-1.0.7/libevent/test/regress.c:2917: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("Hello world")), >, 0);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:191: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).
	evbuffer_drain(evb, strlen("hello/"));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:948: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).
	tt_int_op(len, ==, strlen(data));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:964:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tt_assert(evbuffer_add_reference(src, data, strlen(data),
data/lldpd-1.0.7/libevent/test/regress_buffer.c:967: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).
	evbuffer_reserve_space(dst, strlen(data), v, 1);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:979: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(data) - 10) != -1);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:981: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).
	v[0].iov_len = strlen(data);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:989:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tt_assert(!memcmp(evbuffer_pullup(dst, strlen(data)),
data/lldpd-1.0.7/libevent/test/regress_buffer.c:990: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).
			  data, strlen(data)));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1169:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		datalen = strlen(data);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1367:19:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!cp || sz != strlen(content) || strcmp(cp, content)) {	\
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1374: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).
	evbuffer_add(evb, s, strlen(s)+2);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1386: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).
	evbuffer_add(evb, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1402: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).
	evbuffer_add(evb, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1432: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).
	evbuffer_add(evb, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1457: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).
	evbuffer_add(evb, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1477: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).
	evbuffer_add(evb, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1528: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).
	evbuffer_add(evb_tmp, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1533: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).
	evbuffer_add(evb_tmp, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1538: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).
	evbuffer_add(evb_tmp, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1567: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).
	evbuffer_add(evb_tmp, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1607: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).
	evbuffer_add(buf, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1665: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).
		for (j = 1; j < strlen(abc); ++j) {
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1713:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	evbuffer_add(buf, (unsigned char*)test1, strlen(test1));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1715: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).
	evbuffer_drain(buf, strlen(test1));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1717:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	evbuffer_add(buf, (unsigned char*)test2, strlen(test2));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:1726: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).
	evbuffer_drain(buf, strlen(test2));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2026:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len1 = strlen(chunk1), len2=strlen(chunk2);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2026: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).
	size_t len1 = strlen(chunk1), len2=strlen(chunk2);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2102:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len1 = strlen(chunk1), len2=strlen(chunk2);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2102: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).
	size_t len1 = strlen(chunk1), len2=strlen(chunk2);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2170:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len1 = strlen(chunk1), len2=strlen(chunk2);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2170: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).
	size_t len1 = strlen(chunk1), len2=strlen(chunk2);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2385: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).
	tt_int_op((v)->iov_len, ==, strlen(s));			\
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2386: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).
	tt_assert(!memcmp((v)->iov_base, (s), strlen(s)))
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2517: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).
	evbuffer_add(buf, string, strlen(string));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2599: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).
		vec[i].iov_len  = strlen(data[i]);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2613: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).
		evbuffer_remove(buf, charbuf, strlen(data[i]));
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2642: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).
	tt_int_op(strlen(string), ==, 206);
data/lldpd-1.0.7/libevent/test/regress_buffer.c:2647: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).
	evbuffer_add(buf, string+160, strlen(string)-160);
data/lldpd-1.0.7/libevent/test/regress_dns.c:499:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(addresses)+1;
data/lldpd-1.0.7/libevent/test/regress_et.c:97: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).
	tt_int_op(send(pair[0], test, (int)strlen(test)+1, 0), >, 0);
data/lldpd-1.0.7/libevent/test/regress_http.c:225:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t s_sz = strlen(s);
data/lldpd-1.0.7/libevent/test/regress_http.c:247: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).
	ptr = evbuffer_search(buf, s, strlen(s), NULL);
data/lldpd-1.0.7/libevent/test/regress_http.c:334:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			tt_assert(!strncmp(addrbuf, "127.0.0.1:", strlen("127.0.0.1:")));
data/lldpd-1.0.7/libevent/test/regress_http.c:337:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			tt_assert(!strncmp(addrbuf, "[::1]:", strlen("[::1]:")));
data/lldpd-1.0.7/libevent/test/regress_http.c:349:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strcmp("END", multi + strlen(multi) - 3) == 0)
data/lldpd-1.0.7/libevent/test/regress_http.c:494:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:578: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:712: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:747: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:832: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:915: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:980: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).
	bufferevent_write(bev1, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:998: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).
	bufferevent_write(bev2, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:1016: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).
	bufferevent_write(bev3, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:1028:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tt_assert(!strncmp(result1, "HTTP/1.1 501 ", strlen("HTTP/1.1 501 ")));
data/lldpd-1.0.7/libevent/test/regress_http.c:1032:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tt_assert(!strncmp(result2, "HTTP/1.1 200 ", strlen("HTTP/1.1 200 ")));
data/lldpd-1.0.7/libevent/test/regress_http.c:1036:47:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	tt_assert(!strncmp(result3, "HTTP/1.1 501 ", strlen("HTTP/1.1 501 ")));
data/lldpd-1.0.7/libevent/test/regress_http.c:1633:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (evbuffer_get_length(evhttp_request_get_input_buffer(req)) != strlen(what)) {
data/lldpd-1.0.7/libevent/test/regress_http.c:1805: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:1902:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (evbuffer_get_length(evhttp_request_get_input_buffer(req)) != strlen(what)) {
data/lldpd-1.0.7/libevent/test/regress_http.c:1904:96:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    (unsigned long)evbuffer_get_length(evhttp_request_get_input_buffer(req)), (unsigned long)strlen(what));
data/lldpd-1.0.7/libevent/test/regress_http.c:2039:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (evbuffer_get_length(evhttp_request_get_input_buffer(req)) != strlen(POST_DATA)) {
data/lldpd-1.0.7/libevent/test/regress_http.c:2041:98:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    (unsigned long) evbuffer_get_length(evhttp_request_get_input_buffer(req)), (unsigned long) strlen(POST_DATA));
data/lldpd-1.0.7/libevent/test/regress_http.c:2082:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (evbuffer_get_length(evhttp_request_get_input_buffer(req)) != strlen(what)) {
data/lldpd-1.0.7/libevent/test/regress_http.c:2084:96:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    (unsigned long)evbuffer_get_length(evhttp_request_get_input_buffer(req)), (unsigned long)strlen(what));
data/lldpd-1.0.7/libevent/test/regress_http.c:2156:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (evbuffer_get_length(evhttp_request_get_input_buffer(req)) != strlen(PUT_DATA)) {
data/lldpd-1.0.7/libevent/test/regress_http.c:2158:96:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    (unsigned long)evbuffer_get_length(evhttp_request_get_input_buffer(req)), (unsigned long)strlen(PUT_DATA));
data/lldpd-1.0.7/libevent/test/regress_http.c:2199:67:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (evbuffer_get_length(evhttp_request_get_input_buffer(req)) != strlen(what)) {
data/lldpd-1.0.7/libevent/test/regress_http.c:2201:96:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    (unsigned long)evbuffer_get_length(evhttp_request_get_input_buffer(req)), (unsigned long)strlen(what));
data/lldpd-1.0.7/libevent/test/regress_http.c:2251: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:2921: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).
		tt_int_op(sz,==,strlen(from));			\
data/lldpd-1.0.7/libevent/test/regress_http.c:2931: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).
		tt_int_op(sz,==,strlen(want));			\
data/lldpd-1.0.7/libevent/test/regress_http.c:3046: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:3131: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:3350: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:3524: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).
	http_stream_in_test_(arg, "/test", strlen(BASIC_REQUEST_BODY),
data/lldpd-1.0.7/libevent/test/regress_http.c:3946: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).
	bufferevent_write(bev, http_start_request, strlen(http_start_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:4348: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_http.c:4497: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).
	bufferevent_write(bev, "foobar", strlen("foobar"));
data/lldpd-1.0.7/libevent/test/regress_http.c:4528: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).
	bufferevent_write(bev, http_request, strlen(http_request));
data/lldpd-1.0.7/libevent/test/regress_iocp.c:328:41:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	bufferevent_write(bea1, "Hello world", strlen("Hello world")+1);
data/lldpd-1.0.7/libevent/test/regress_main.c:130:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0077);
data/lldpd-1.0.7/libevent/test/regress_ssl.c:63:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read _read
data/lldpd-1.0.7/libevent/test/regress_ssl.c:618:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	size_t read;
data/lldpd-1.0.7/libevent/test/regress_ssl.c:645:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	++rw->read;
data/lldpd-1.0.7/libevent/test/regress_ssl.c:693: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).
	return bio_rwcount_write(b, s, strlen(s));
data/lldpd-1.0.7/libevent/test/regress_ssl.c:793:15:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	tt_int_op(rw.read, <=, 100);
data/lldpd-1.0.7/libevent/test/regress_util.c:1450: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(c.date) == 0)
data/lldpd-1.0.7/libevent/test/test-closed.c:97: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).
	if (send(pair[0], test, (int)strlen(test)+1, 0) < 0)
data/lldpd-1.0.7/libevent/test/test-eof.c:101: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).
	if (send(pair[0], test, (int)strlen(test)+1, 0) < 0)
data/lldpd-1.0.7/libevent/test/test-weof.c:65: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).
	len = send(fd, test, (int)strlen(test) + 1, 0);
data/lldpd-1.0.7/libevent/test/tinytest.c:236:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		r = (int)read(outcome_pipe[0], b, 1);
data/lldpd-1.0.7/libevent/win32select.c:123:76:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
do_fd_set(struct win32op *op, struct idx_info *ent, evutil_socket_t s, int read)
data/lldpd-1.0.7/libevent/win32select.c:125:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	struct win_fd_set *set = read ? op->readset_in : op->writeset_in;
data/lldpd-1.0.7/libevent/win32select.c:126:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read) {
data/lldpd-1.0.7/libevent/win32select.c:137:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		set = read ? op->readset_in : op->writeset_in;
data/lldpd-1.0.7/libevent/win32select.c:140:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read)
data/lldpd-1.0.7/libevent/win32select.c:149:50:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			struct win32op *op, struct idx_info *ent, int read)
data/lldpd-1.0.7/libevent/win32select.c:152:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	struct win_fd_set *set = read ? op->readset_in : op->writeset_in;
data/lldpd-1.0.7/libevent/win32select.c:153:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read) {
data/lldpd-1.0.7/libevent/win32select.c:171:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read)
data/lldpd-1.0.7/src/client/commands.c:406:42:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			    !strncmp(candidate->token, token, strlen(token)) &&
data/lldpd-1.0.7/src/client/commands.c:499: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).
					    strlen(env.argv[env.argc -1 ]))) &&
data/lldpd-1.0.7/src/client/commands.c:507:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					if (cword->word && strlen(cword->word) > maxl)
data/lldpd-1.0.7/src/client/commands.c:508: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).
						maxl = strlen(cword->word);
data/lldpd-1.0.7/src/client/commands.c:525: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(cword->word) == n) break;
data/lldpd-1.0.7/src/client/commands.c:538: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).
			    strlen(prefix) > 0 &&
data/lldpd-1.0.7/src/client/commands.c:539: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).
			    strlen(env.argv[env.argc-1]) < strlen(prefix)) {
data/lldpd-1.0.7/src/client/commands.c:539: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).
			    strlen(env.argv[env.argc-1]) < strlen(prefix)) {
data/lldpd-1.0.7/src/client/commands.c:542: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).
						prefix[strlen(prefix)] = ' ';
data/lldpd-1.0.7/src/client/conf-lldp.c:46: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).
		arglen = strlen(interval);
data/lldpd-1.0.7/src/client/conf-lldp.c:103:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!status || !strlen(status)) {
data/lldpd-1.0.7/src/client/conf-lldp.c:175:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!id || !strlen(id)) {
data/lldpd-1.0.7/src/client/conf-lldp.c:339:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!vlan_id || !strlen(vlan_id)) {
data/lldpd-1.0.7/src/client/conf-lldp.c:352:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (!vlan_prio || !strlen(vlan_prio)) {
data/lldpd-1.0.7/src/client/conf-lldp.c:366: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).
		if (!vlan_dei || !strlen(vlan_dei)) {
data/lldpd-1.0.7/src/client/conf-system.c:209:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (value && strlen(value) == 1 && value[0] == '.') {
data/lldpd-1.0.7/src/client/display.c:658:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (pi && strlen(pi) > 0)
data/lldpd-1.0.7/src/client/display.c:948: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).
	if (str == NULL || strlen(str) == 0) return "(none)";
data/lldpd-1.0.7/src/client/kv_writer.c:40:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	s = strlen(p->prefix) + 1 + strlen(tag);
data/lldpd-1.0.7/src/client/kv_writer.c:40: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).
	s = strlen(p->prefix) + 1 + strlen(tag);
data/lldpd-1.0.7/src/client/kv_writer.c:43:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(p->prefix) > 0)
data/lldpd-1.0.7/src/client/lldpcli.c:203:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(rl_line_buffer);
data/lldpd-1.0.7/src/client/lldpcli.c:214:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (compl && strlen(argv[argc-1]) < strlen(compl)) {
data/lldpd-1.0.7/src/client/lldpcli.c:214:38:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (compl && strlen(argv[argc-1]) < strlen(compl)) {
data/lldpd-1.0.7/src/client/lldpcli.c:215:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (rl_insert_text(compl + strlen(argv[argc-1])) < 0) {
data/lldpd-1.0.7/src/client/lldpcli.c:364:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(dir->d_name) < 5) return 0;
data/lldpd-1.0.7/src/client/lldpcli.c:365: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).
	if (strcmp(dir->d_name + strlen(dir->d_name) - 5, ".conf")) return 0;
data/lldpd-1.0.7/src/client/misc.c:35:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(element);
data/lldpd-1.0.7/src/client/misc.c:59: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).
	result = calloc(1, strlen(value) + 1);
data/lldpd-1.0.7/src/client/misc.c:61:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	for (i = 0; i < strlen(value); i++) {
data/lldpd-1.0.7/src/client/text_writer.c:63: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 (descr == NULL || strlen(descr) == 0) {
data/lldpd-1.0.7/src/client/tokenizer.c:44:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	char input[2*strlen(line) + 3]; /* 3 = 2 for '\n ' and 1 for \0 */
data/lldpd-1.0.7/src/client/tokenizer.c:45: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).
	memset(input, 0, 2*strlen(line) + 3);
data/lldpd-1.0.7/src/client/xml_writer.c:63:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (descr && (strlen(descr) > 0)) {
data/lldpd-1.0.7/src/compat/getline.c:59:7:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		p = fgetc(fp);
data/lldpd-1.0.7/src/daemon/agent.c:864: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).
			    *var_len = strlen(				\
data/lldpd-1.0.7/src/daemon/agent.c:1028: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).
		*var_len = strlen(chassis->c_name);
data/lldpd-1.0.7/src/daemon/agent.c:1032: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).
		*var_len = strlen(chassis->c_descr);
data/lldpd-1.0.7/src/daemon/agent.c:1120: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).
		*var_len = strlen(vlan->v_name);
data/lldpd-1.0.7/src/daemon/agent.c:1248: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).
		*var_len = strlen(port->p_descr);
data/lldpd-1.0.7/src/daemon/agent.c:1866: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).
			    strlen(rport->p_chassis->c_name));
data/lldpd-1.0.7/src/daemon/agent.c:1873: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).
			    strlen(rport->p_descr));
data/lldpd-1.0.7/src/daemon/agent.c:1892:18:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  if (msg && msg[strlen(msg)-1] == '\n') msg[strlen(msg)-1] = '\0';
data/lldpd-1.0.7/src/daemon/agent.c:1892:46:  [1] (buffer) strlen:
  Does not handle 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 (msg && msg[strlen(msg)-1] == '\n') msg[strlen(msg)-1] = '\0';
data/lldpd-1.0.7/src/daemon/agent_priv.c:193:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		calloc(1, strlen(addr.sun_path) + 1)) == NULL) {
data/lldpd-1.0.7/src/daemon/agent_priv.c:198: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).
	memcpy(t->remote, addr.sun_path, strlen(addr.sun_path));
data/lldpd-1.0.7/src/daemon/agent_priv.c:199: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).
	t->remote_length = strlen(addr.sun_path);
data/lldpd-1.0.7/src/daemon/agent_priv.c:220:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return agent_priv_unix_transport(string, strlen(string), local);
data/lldpd-1.0.7/src/daemon/agent_priv.c:227:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return agent_priv_unix_transport(string, strlen(string), local);
data/lldpd-1.0.7/src/daemon/client.c:363:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		port->p_id_len = strlen(set->local_id);
data/lldpd-1.0.7/src/daemon/client.c:504:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(set->ifname) == 0) {
data/lldpd-1.0.7/src/daemon/dmi-freebsd.c:43:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(buffer))
data/lldpd-1.0.7/src/daemon/dmi-linux.c:43:11:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((s = read(dmi, buffer, sizeof(buffer))) == -1) {
data/lldpd-1.0.7/src/daemon/dmi-linux.c:52:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(buffer))
data/lldpd-1.0.7/src/daemon/event.c:434:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	n = read(fd, &one, 0); err = errno;
data/lldpd-1.0.7/src/daemon/event.c:720:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			n = read(fd, buffer, sizeof(buffer));
data/lldpd-1.0.7/src/daemon/forward-linux.c:29:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read(f, &status, 1) == 1) {
data/lldpd-1.0.7/src/daemon/interfaces-bpf.c:91:6:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if (read(fd, bpfbuf->data, bpfbuf->len) == -1) {
data/lldpd-1.0.7/src/daemon/interfaces-bsd.c:290:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(vreq.vlr_parent) == 0) {
data/lldpd-1.0.7/src/daemon/interfaces-bsd.c:347: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(iface->name) < 4) continue;
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:360: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).
			if (strncmp(line, slaveif, strlen(slaveif)) == 0) {
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:361:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (line[strlen(line)-1] == '\n')
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:362:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					line[strlen(line)-1] = '\0';
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:364:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					line + strlen(slaveif)) == 0)
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:369:30:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strncmp(line, hwaddr, strlen(hwaddr)) == 0) {
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:370:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				if (line[strlen(line)-1] == '\n')
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:371:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					line[strlen(line)-1] = '\0';
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:372: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 (sscanf(line + strlen(hwaddr),
data/lldpd-1.0.7/src/daemon/interfaces-linux.c:378: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).
					    line + strlen(hwaddr));
data/lldpd-1.0.7/src/daemon/interfaces.c:591:43:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int has_alias = (iface->alias != NULL && strlen(iface->alias) != 0);
data/lldpd-1.0.7/src/daemon/interfaces.c:600: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).
			port->p_id_len = strlen(hardware->h_ifname);
data/lldpd-1.0.7/src/daemon/lldpd.c:795:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			status = read(pipefd[0], release+count, sizeof(release)-count);
data/lldpd-1.0.7/src/daemon/lldpd.c:862: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).
	ptr1 = release + strlen(release) - 1;
data/lldpd-1.0.7/src/daemon/lldpd.c:947:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(buffer) +
data/lldpd-1.0.7/src/daemon/lldpd.c:948: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).
			    strlen(cfg->g_protocols[i].name) + 3 > sizeof(buffer)) {
data/lldpd-1.0.7/src/daemon/lldpd.c:954:5:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings. Risk is low because the source is a
  constant string.
				strncat(buffer, ", ", 2);
data/lldpd-1.0.7/src/daemon/lldpd.c:955:4:  [1] (buffer) strncat:
  Easily used incorrectly (e.g., incorrectly computing the correct maximum
  size to add) [MS-banned] (CWE-120). Consider strcat_s, strlcat, snprintf,
  or automatically resizing strings.
			strncat(buffer, cfg->g_protocols[i].name, strlen(cfg->g_protocols[i].name));
data/lldpd-1.0.7/src/daemon/lldpd.c:955:46:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			strncat(buffer, cfg->g_protocols[i].name, strlen(cfg->g_protocols[i].name));
data/lldpd-1.0.7/src/daemon/lldpd.c:1256: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).
		LOCAL_CHASSIS(cfg)->c_id_len = strlen(cfg->g_config.c_cid_string);
data/lldpd-1.0.7/src/daemon/lldpd.c:1263: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).
		LOCAL_CHASSIS(cfg)->c_id_len = strlen(LOCAL_CHASSIS(cfg)->c_name);
data/lldpd-1.0.7/src/daemon/lldpd.c:1444:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	    strlen(notifysocket) < 2)
data/lldpd-1.0.7/src/daemon/lldpd.c:1460: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).
		.iov_len = strlen("READY=1")
data/lldpd-1.0.7/src/daemon/lldpd.c:1464:59:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		.msg_namelen = offsetof(struct sockaddr_un, sun_path) + strlen(notifysocket),
data/lldpd-1.0.7/src/daemon/lldpd.c:1633:8:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
			if (strlen(optarg)) lldpcli = optarg;
data/lldpd-1.0.7/src/daemon/lldpd.c:1816:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		if (write(pid, spid, strlen(spid)) == -1)
data/lldpd-1.0.7/src/daemon/lldpd.c:1889: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).
	    lsb_release && lsb_release[strlen(lsb_release) - 1] == '\n')
data/lldpd-1.0.7/src/daemon/lldpd.c:1890:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		lsb_release[strlen(lsb_release) - 1] = '\0';
data/lldpd-1.0.7/src/daemon/priv-bsd.c:164:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(description) == 0) {
data/lldpd-1.0.7/src/daemon/priv-bsd.c:191: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).
	ift.ifr_buffer.length = strlen(descr);
data/lldpd-1.0.7/src/daemon/priv-linux.c:47: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(file);
data/lldpd-1.0.7/src/daemon/priv-linux.c:210:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (strlen(description) == 0 &&
data/lldpd-1.0.7/src/daemon/priv-seccomp.c:139:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		    SCMP_SYS(read), 1, SCMP_CMP(0, SCMP_CMP_EQ, remote))) < 0 ||
data/lldpd-1.0.7/src/daemon/priv-seccomp.c:148:59:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	if ((rc = seccomp_rule_add(ctx, SCMP_ACT_ALLOW, SCMP_SYS(read), 0)) < 0 ||
data/lldpd-1.0.7/src/daemon/priv.c:95:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int rc, len = strlen(ctlname);
data/lldpd-1.0.7/src/daemon/priv.c:155:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	int rc, len = strlen(description);
data/lldpd-1.0.7/src/daemon/priv.c:237: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).
                len = strlen(un.nodename);
data/lldpd-1.0.7/src/daemon/priv.c:241: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).
                len = strlen(res->ai_canonname);
data/lldpd-1.0.7/src/daemon/priv.c:532:3:  [1] (buffer) strcat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120). Consider using strcat_s, strncat, strlcat, or
  snprintf (warning: strncat is easily misused). Risk is low because the
  source is a constant character.
		strcat(current, "/");
data/lldpd-1.0.7/src/daemon/priv.c:564: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).
	path[strlen(chrootdir) + 4] = '\0';
data/lldpd-1.0.7/src/daemon/priv.c:573: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).
	path[strlen(chrootdir) + 4] = '/';
data/lldpd-1.0.7/src/daemon/priv.c:578:15:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	mode_t old = umask(S_IWGRP | S_IWOTH);
data/lldpd-1.0.7/src/daemon/priv.c:584:3:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
		umask(old);
data/lldpd-1.0.7/src/daemon/priv.c:587:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(old);
data/lldpd-1.0.7/src/daemon/priv.c:588:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	while ((n = read(source, buffer, sizeof(buffer))) > 0) {
data/lldpd-1.0.7/src/daemon/privsep_io.c:44:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = read(priv_fd(ctx), s + pos, n - pos);
data/lldpd-1.0.7/src/daemon/privsep_io.c:68:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		res = read(priv_fd(ctx), s + pos, n - pos);
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:110: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).
	      POKE_BYTES(chassis_name, strlen(chassis_name)) &&
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:151: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).
	      POKE_BYTES(port_descr, strlen(port_descr)) &&
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:181: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).
		      POKE_BYTES(capstr, strlen(capstr)) &&
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:202: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).
	      POKE_BYTES(chassis_descr, strlen(chassis_descr)) &&
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:211: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).
	      POKE_BYTES(platform, strlen(platform)) &&
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:636: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).
			    strlen(CONCAT_PLATFORM) + 1)) == NULL) {
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:642:24:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		    CONCAT_PLATFORM, strlen(CONCAT_PLATFORM));
data/lldpd-1.0.7/src/daemon/protocols/cdp.c:643: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).
		memcpy(chassis->c_descr + platform_len + strlen(CONCAT_PLATFORM),
data/lldpd-1.0.7/src/daemon/protocols/edp.c:112: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).
			      POKE_BYTES(chassis->c_name, strlen(chassis->c_name)) &&
data/lldpd-1.0.7/src/daemon/protocols/edp.c:126:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					strlen(deviceslot[i])) == 0) {
data/lldpd-1.0.7/src/daemon/protocols/edp.c:130:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
							       strlen(deviceslot[i])))))
data/lldpd-1.0.7/src/daemon/protocols/edp.c:170: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).
				      POKE_BYTES(vlan->v_name, strlen(vlan->v_name)) &&
data/lldpd-1.0.7/src/daemon/protocols/edp.c:362: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).
			port->p_id_len = strlen(port->p_id);
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:159: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).
			    POKE_BYTES(chassis->c_name, strlen(chassis->c_name)) &&
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:168: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).
			    POKE_BYTES(chassis->c_descr, strlen(chassis->c_descr)) &&
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:220: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).
			    POKE_BYTES(port->p_descr, strlen(port->p_descr)) &&
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:256:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		      POKE_UINT8(strlen(vlan->v_name)) &&
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:257: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).
		      POKE_BYTES(vlan->v_name, strlen(vlan->v_name)) &&
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:389:6:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(strlen(value)>32)?32:strlen(value)) &&	\
data/lldpd-1.0.7/src/daemon/protocols/lldp.c:389:27:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
				(strlen(value)>32)?32:strlen(value)) &&	\
data/lldpd-1.0.7/src/daemon/protocols/sonmp.c:379: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).
	port->p_id_len = strlen(port->p_id);
data/lldpd-1.0.7/src/lib/atom.c:174:64:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		result = atom->set_buffer(atom, key, (u_int8_t*)value, value?strlen(value):0);
data/lldpd-1.0.7/src/lib/atoms/config.c:126:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		size_t len = strlen(value) + 1;
data/lldpd-1.0.7/src/lib/atoms/custom.c:110: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).
	if (!value || !strlen(value))
data/lldpd-1.0.7/src/lib/atoms/med.c:493:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	size_t len = strlen(result) + 1;
data/lldpd-1.0.7/src/lib/atoms/med.c:627: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).
		if (!value || strlen(value) != 2) goto bad;
data/lldpd-1.0.7/src/lib/atoms/med.c:634: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).
		mloc->location->data = calloc(1, strlen(value));
data/lldpd-1.0.7/src/lib/atoms/med.c:640: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).
		mloc->location->data_len = strlen(value);
data/lldpd-1.0.7/src/lib/atoms/med.c:881:9:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		len = strlen(value) + 1;
data/lldpd-1.0.7/src/lib/atoms/med.c:886:13:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		el->len = strlen(value);
data/lldpd-1.0.7/src/lib/atoms/port.c:556: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).
	if (!value || !strlen(value))
data/lldpd-1.0.7/src/lib/atoms/port.c:572:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		port->p_id_len = strlen(value);
data/lldpd-1.0.7/src/lib/connection.c:80:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if ((nb = read(conn->fd, (unsigned char*)data + offset, remain)) == -1) {
data/lldpd-1.0.7/src/lib/fixedpoint.c:135:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (!suffix) result[strlen(result) - 1] = '\0';
data/lldpd-1.0.7/src/marshal.c:105: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).
		size = strlen((char *)unserialized) + 1;
data/lldpd-1.0.7/tests/check_cdp.c:120: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).
	hardware.h_lport.p_id_len = strlen(hardware.h_lport.p_id);
data/lldpd-1.0.7/tests/check_cdp.c:416: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).
	ck_assert_int_eq(nport->p_id_len, strlen("Ethernet0"));
data/lldpd-1.0.7/tests/check_cdp.c:418:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		"Ethernet0", strlen("Ethernet0")) == 0);
data/lldpd-1.0.7/tests/check_cdp.c:551: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).
	ck_assert_int_eq(nchassis->c_id_len, strlen("rtbg6test01"));
data/lldpd-1.0.7/tests/check_cdp.c:553: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).
		"rtbg6test01", strlen("rtbg6test01")) == 0);
data/lldpd-1.0.7/tests/check_cdp.c:560: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).
	ck_assert_int_eq(nport->p_id_len, strlen("FastEthernet0/0"));
data/lldpd-1.0.7/tests/check_cdp.c:562: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).
		"FastEthernet0/0", strlen("FastEthernet0/0")) == 0);
data/lldpd-1.0.7/tests/check_edp.c:89: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).
	hardware.h_lport.p_id_len = strlen(hardware.h_lport.p_id);
data/lldpd-1.0.7/tests/check_edp.c:253: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).
	hardware.h_lport.p_id_len = strlen(hardware.h_lport.p_id);
data/lldpd-1.0.7/tests/check_edp.c:531: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).
	ck_assert_int_eq(nport->p_id_len, strlen("1/1"));
data/lldpd-1.0.7/tests/check_edp.c:533: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).
		"1/1", strlen("1/1")) == 0);
data/lldpd-1.0.7/tests/check_lldp.c:148: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).
	hardware.h_lport.p_id_len = strlen(hardware.h_lport.p_id);
data/lldpd-1.0.7/tests/check_lldp.c:202: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).
	hardware.h_lport.p_id_len = strlen(hardware.h_lport.p_id);
data/lldpd-1.0.7/tests/check_lldp.c:285: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).
	chassis.c_id_len = strlen(chassis.c_id);
data/lldpd-1.0.7/tests/check_lldp.c:300: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).
	pi1.p_pi_len = strlen(pi1.p_pi);
data/lldpd-1.0.7/tests/check_lldp.c:302: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).
	pi2.p_pi_len = strlen(pi2.p_pi);
data/lldpd-1.0.7/tests/check_lldp.c:408: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).
	chassis.c_id_len = strlen(chassis.c_id);
data/lldpd-1.0.7/tests/check_lldp.c:485: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).
	hardware.h_lport.p_id_len = strlen(hardware.h_lport.p_id);
data/lldpd-1.0.7/tests/check_snmp.c:341: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).
	custom1.oui_info_len = strlen((char*)custom1.oui_info);
data/lldpd-1.0.7/tests/check_snmp.c:342: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).
	custom2.oui_info_len = strlen((char*)custom2.oui_info);
data/lldpd-1.0.7/tests/check_snmp.c:343: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).
	custom3.oui_info_len = strlen((char*)custom3.oui_info);
data/lldpd-1.0.7/tests/check_snmp.c:344: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).
	custom4.oui_info_len = strlen((char*)custom4.oui_info);
data/lldpd-1.0.7/tests/check_snmp.c:345: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).
	custom5.oui_info_len = strlen((char*)custom5.oui_info);
data/lldpd-1.0.7/tests/check_sonmp.c:96: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).
	hardware.h_lport.p_id_len = strlen(hardware.h_lport.p_id);
data/lldpd-1.0.7/tests/check_sonmp.c:193: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).
	ck_assert_int_eq(nport->p_id_len, strlen("00-02-08"));
data/lldpd-1.0.7/tests/check_sonmp.c:195:15:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
		"00-02-08", strlen("00-02-08")) == 0);
data/lldpd-1.0.7/tests/decode.c:74:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ssize_t len = read(fd, buf, BUFSIZE);

ANALYSIS SUMMARY:

Hits = 949
Lines analyzed = 130599 in approximately 3.40 seconds (38370 lines/second)
Physical Source Lines of Code (SLOC) = 91037
Hits@level = [0] 543 [1] 372 [2] 493 [3]  40 [4]  42 [5]   2
Hits@level+ = [0+] 1492 [1+] 949 [2+] 577 [3+]  84 [4+]  44 [5+]   2
Hits/KSLOC@level+ = [0+] 16.3889 [1+] 10.4243 [2+] 6.33808 [3+] 0.922702 [4+] 0.48332 [5+] 0.0219691
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.