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/libevent-2.1.12-stable/util-internal.h
Examining data/libevent-2.1.12-stable/evmap.c
Examining data/libevent-2.1.12-stable/epolltable-internal.h
Examining data/libevent-2.1.12-stable/mm-internal.h
Examining data/libevent-2.1.12-stable/http.c
Examining data/libevent-2.1.12-stable/include/event.h
Examining data/libevent-2.1.12-stable/include/evrpc.h
Examining data/libevent-2.1.12-stable/include/event2/tag_compat.h
Examining data/libevent-2.1.12-stable/include/event2/event.h
Examining data/libevent-2.1.12-stable/include/event2/rpc_struct.h
Examining data/libevent-2.1.12-stable/include/event2/dns.h
Examining data/libevent-2.1.12-stable/include/event2/rpc_compat.h
Examining data/libevent-2.1.12-stable/include/event2/http_compat.h
Examining data/libevent-2.1.12-stable/include/event2/util.h
Examining data/libevent-2.1.12-stable/include/event2/event_struct.h
Examining data/libevent-2.1.12-stable/include/event2/rpc.h
Examining data/libevent-2.1.12-stable/include/event2/http_struct.h
Examining data/libevent-2.1.12-stable/include/event2/http.h
Examining data/libevent-2.1.12-stable/include/event2/tag.h
Examining data/libevent-2.1.12-stable/include/event2/buffer_compat.h
Examining data/libevent-2.1.12-stable/include/event2/dns_compat.h
Examining data/libevent-2.1.12-stable/include/event2/bufferevent_ssl.h
Examining data/libevent-2.1.12-stable/include/event2/listener.h
Examining data/libevent-2.1.12-stable/include/event2/keyvalq_struct.h
Examining data/libevent-2.1.12-stable/include/event2/thread.h
Examining data/libevent-2.1.12-stable/include/event2/bufferevent_struct.h
Examining data/libevent-2.1.12-stable/include/event2/bufferevent_compat.h
Examining data/libevent-2.1.12-stable/include/event2/dns_struct.h
Examining data/libevent-2.1.12-stable/include/event2/bufferevent.h
Examining data/libevent-2.1.12-stable/include/event2/buffer.h
Examining data/libevent-2.1.12-stable/include/event2/visibility.h
Examining data/libevent-2.1.12-stable/include/event2/event_compat.h
Examining data/libevent-2.1.12-stable/include/evdns.h
Examining data/libevent-2.1.12-stable/include/evhttp.h
Examining data/libevent-2.1.12-stable/include/evutil.h
Examining data/libevent-2.1.12-stable/http-internal.h
Examining data/libevent-2.1.12-stable/kqueue-internal.h
Examining data/libevent-2.1.12-stable/evutil_rand.c
Examining data/libevent-2.1.12-stable/iocp-internal.h
Examining data/libevent-2.1.12-stable/minheap-internal.h
Examining data/libevent-2.1.12-stable/evutil_time.c
Examining data/libevent-2.1.12-stable/bufferevent_ratelim.c
Examining data/libevent-2.1.12-stable/devpoll.c
Examining data/libevent-2.1.12-stable/evbuffer-internal.h
Examining data/libevent-2.1.12-stable/ratelim-internal.h
Examining data/libevent-2.1.12-stable/evthread_win32.c
Examining data/libevent-2.1.12-stable/test/regress.c
Examining data/libevent-2.1.12-stable/test/bench_http.c
Examining data/libevent-2.1.12-stable/test/regress_et.c
Examining data/libevent-2.1.12-stable/test/test-ratelim.c
Examining data/libevent-2.1.12-stable/test/regress_iocp.c
Examining data/libevent-2.1.12-stable/test/regress_buffer.c
Examining data/libevent-2.1.12-stable/test/tinytest.h
Examining data/libevent-2.1.12-stable/test/regress_zlib.c
Examining data/libevent-2.1.12-stable/test/test-time.c
Examining data/libevent-2.1.12-stable/test/regress_rpc.c
Examining data/libevent-2.1.12-stable/test/bench.c
Examining data/libevent-2.1.12-stable/test/regress_dns.c
Examining data/libevent-2.1.12-stable/test/regress_thread.c
Examining data/libevent-2.1.12-stable/test/regress.h
Examining data/libevent-2.1.12-stable/test/regress_testutils.c
Examining data/libevent-2.1.12-stable/test/test-dumpevents.c
Examining data/libevent-2.1.12-stable/test/test-eof.c
Examining data/libevent-2.1.12-stable/test/regress_listener.c
Examining data/libevent-2.1.12-stable/test/bench_cascade.c
Examining data/libevent-2.1.12-stable/test/test-closed.c
Examining data/libevent-2.1.12-stable/test/regress_finalize.c
Examining data/libevent-2.1.12-stable/test/regress_util.c
Examining data/libevent-2.1.12-stable/test/regress_ssl.c
Examining data/libevent-2.1.12-stable/test/regress_minheap.c
Examining data/libevent-2.1.12-stable/test/regress.gen.h
Examining data/libevent-2.1.12-stable/test/tinytest_macros.h
Examining data/libevent-2.1.12-stable/test/regress_testutils.h
Examining data/libevent-2.1.12-stable/test/print-winsock-errors.c
Examining data/libevent-2.1.12-stable/test/bench_httpclient.c
Examining data/libevent-2.1.12-stable/test/regress_http.c
Examining data/libevent-2.1.12-stable/test/tinytest_local.h
Examining data/libevent-2.1.12-stable/test/test-init.c
Examining data/libevent-2.1.12-stable/test/regress_bufferevent.c
Examining data/libevent-2.1.12-stable/test/regress_main.c
Examining data/libevent-2.1.12-stable/test/regress.gen.c
Examining data/libevent-2.1.12-stable/test/test-fdleak.c
Examining data/libevent-2.1.12-stable/test/tinytest.c
Examining data/libevent-2.1.12-stable/test/test-changelist.c
Examining data/libevent-2.1.12-stable/test/regress_thread.h
Examining data/libevent-2.1.12-stable/test/test-weof.c
Examining data/libevent-2.1.12-stable/event_tagging.c
Examining data/libevent-2.1.12-stable/log-internal.h
Examining data/libevent-2.1.12-stable/WIN32-Code/nmake/evconfig-private.h
Examining data/libevent-2.1.12-stable/WIN32-Code/nmake/event2/event-config.h
Examining data/libevent-2.1.12-stable/WIN32-Code/getopt.c
Examining data/libevent-2.1.12-stable/WIN32-Code/getopt_long.c
Examining data/libevent-2.1.12-stable/WIN32-Code/getopt.h
Examining data/libevent-2.1.12-stable/WIN32-Code/tree.h
Examining data/libevent-2.1.12-stable/ht-internal.h
Examining data/libevent-2.1.12-stable/buffer_iocp.c
Examining data/libevent-2.1.12-stable/bufferevent_async.c
Examining data/libevent-2.1.12-stable/time-internal.h
Examining data/libevent-2.1.12-stable/evthread_pthread.c
Examining data/libevent-2.1.12-stable/epoll_sub.c
Examining data/libevent-2.1.12-stable/log.c
Examining data/libevent-2.1.12-stable/poll.c
Examining data/libevent-2.1.12-stable/evmap-internal.h
Examining data/libevent-2.1.12-stable/changelist-internal.h
Examining data/libevent-2.1.12-stable/listener.c
Examining data/libevent-2.1.12-stable/bufferevent_filter.c
Examining data/libevent-2.1.12-stable/ipv6-internal.h
Examining data/libevent-2.1.12-stable/evsignal-internal.h
Examining data/libevent-2.1.12-stable/buffer.c
Examining data/libevent-2.1.12-stable/bufferevent_pair.c
Examining data/libevent-2.1.12-stable/select.c
Examining data/libevent-2.1.12-stable/bufferevent-internal.h
Examining data/libevent-2.1.12-stable/evrpc-internal.h
Examining data/libevent-2.1.12-stable/evutil.c
Examining data/libevent-2.1.12-stable/signal.c
Examining data/libevent-2.1.12-stable/sample/signal-test.c
Examining data/libevent-2.1.12-stable/sample/hostcheck.h
Examining data/libevent-2.1.12-stable/sample/le-proxy.c
Examining data/libevent-2.1.12-stable/sample/openssl_hostname_validation.c
Examining data/libevent-2.1.12-stable/sample/http-server.c
Examining data/libevent-2.1.12-stable/sample/time-test.c
Examining data/libevent-2.1.12-stable/sample/event-read-fifo.c
Examining data/libevent-2.1.12-stable/sample/http-connect.c
Examining data/libevent-2.1.12-stable/sample/https-client.c
Examining data/libevent-2.1.12-stable/sample/hello-world.c
Examining data/libevent-2.1.12-stable/sample/dns-example.c
Examining data/libevent-2.1.12-stable/sample/openssl_hostname_validation.h
Examining data/libevent-2.1.12-stable/sample/hostcheck.c
Examining data/libevent-2.1.12-stable/bufferevent.c
Examining data/libevent-2.1.12-stable/bufferevent_sock.c
Examining data/libevent-2.1.12-stable/evthread.c
Examining data/libevent-2.1.12-stable/win32select.c
Examining data/libevent-2.1.12-stable/arc4random.c
Examining data/libevent-2.1.12-stable/evthread-internal.h
Examining data/libevent-2.1.12-stable/bufferevent_openssl.c
Examining data/libevent-2.1.12-stable/kqueue.c
Examining data/libevent-2.1.12-stable/event_iocp.c
Examining data/libevent-2.1.12-stable/defer-internal.h
Examining data/libevent-2.1.12-stable/epoll.c
Examining data/libevent-2.1.12-stable/strlcpy-internal.h
Examining data/libevent-2.1.12-stable/event.c
Examining data/libevent-2.1.12-stable/evport.c
Examining data/libevent-2.1.12-stable/strlcpy.c
Examining data/libevent-2.1.12-stable/cmake/CheckFileOffsetBits.c
Examining data/libevent-2.1.12-stable/evdns.c
Examining data/libevent-2.1.12-stable/evrpc.c
Examining data/libevent-2.1.12-stable/event-internal.h
Examining data/libevent-2.1.12-stable/openssl-compat.h
Examining data/libevent-2.1.12-stable/compat/sys/queue.h

FINAL RESULTS:

data/libevent-2.1.12-stable/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/libevent-2.1.12-stable/evutil.c:1886: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/libevent-2.1.12-stable/evutil.c:2580:3:  [4] (buffer) _tcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
  _tcscat(path, TEXT("\\"));
data/libevent-2.1.12-stable/evutil.c:2581:3:  [4] (buffer) _tcscat:
  Does not check for buffer overflows when concatenating to destination
  [MS-banned] (CWE-120).
  _tcscat(path, library_name);
data/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/sample/http-server.c:522: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/evutil.c:2468: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/libevent-2.1.12-stable/evutil.c:2582: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/sample/http-server.c:366: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/libevent-2.1.12-stable/sample/http-server.c:475: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/libevent-2.1.12-stable/test/bench.c:162: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:m:l")) != -1) {
data/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress.c:2703: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/libevent-2.1.12-stable/test/regress_main.c:500: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/libevent-2.1.12-stable/test/regress_main.c:504: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/libevent-2.1.12-stable/test/regress_main.c:508: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/libevent-2.1.12-stable/test/regress_main.c:516: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/libevent-2.1.12-stable/test/test-ratelim.c:677: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/libevent-2.1.12-stable/test/test-ratelim.c:679: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/libevent-2.1.12-stable/test/test-time.c:99: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/libevent-2.1.12-stable/arc4random.c:84: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/libevent-2.1.12-stable/arc4random.c:155: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/libevent-2.1.12-stable/arc4random.c:178: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/libevent-2.1.12-stable/arc4random.c:215: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/libevent-2.1.12-stable/arc4random.c:255: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/libevent-2.1.12-stable/arc4random.c:256: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/libevent-2.1.12-stable/arc4random.c: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 buf[ADD_ENTROPY];
data/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/buffer.c:1425: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(buffer, chain->buffer + chain->misalign, chain->off);
data/libevent-2.1.12-stable/buffer.c:1438: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/libevent-2.1.12-stable/buffer.c:1629: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/libevent-2.1.12-stable/buffer.c:1651: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/libevent-2.1.12-stable/buffer.c:1770: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/libevent-2.1.12-stable/buffer.c:1781: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/libevent-2.1.12-stable/buffer.c:1803: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/libevent-2.1.12-stable/buffer.c:1813: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/libevent-2.1.12-stable/buffer.c:1867: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/libevent-2.1.12-stable/buffer.c:1876: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/libevent-2.1.12-stable/buffer.c:1900: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/libevent-2.1.12-stable/buffer.c:2023: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/libevent-2.1.12-stable/buffer.c:2874: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/evdns.c:3554: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/libevent-2.1.12-stable/evdns.c:3646: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/libevent-2.1.12-stable/evdns.c:3749: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/libevent-2.1.12-stable/evdns.c:4232: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/libevent-2.1.12-stable/evdns.c:4233: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/libevent-2.1.12-stable/evdns.c:4257: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/libevent-2.1.12-stable/evdns.c:4597: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/event.c:1221: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/libevent-2.1.12-stable/event.c:1497: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/libevent-2.1.12-stable/event.c:2509: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/libevent-2.1.12-stable/event.c:3539: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/libevent-2.1.12-stable/event.c:3602: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/evutil.c:97: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/libevent-2.1.12-stable/evutil.c:115: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/libevent-2.1.12-stable/evutil.c:120: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/libevent-2.1.12-stable/evutil.c:863: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/libevent-2.1.12-stable/evutil.c:1210: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/libevent-2.1.12-stable/evutil.c:1371: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/libevent-2.1.12-stable/evutil.c:1503: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/libevent-2.1.12-stable/evutil.c:1509: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/libevent-2.1.12-stable/evutil.c:1917: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/libevent-2.1.12-stable/evutil.c:2143: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/libevent-2.1.12-stable/evutil.c:2164: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/libevent-2.1.12-stable/evutil.c:2181: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/libevent-2.1.12-stable/evutil.c:2194: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/libevent-2.1.12-stable/evutil.c:2220: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/libevent-2.1.12-stable/evutil.c:2239: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/libevent-2.1.12-stable/evutil.c:2248: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/libevent-2.1.12-stable/evutil.c:2332: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/libevent-2.1.12-stable/evutil.c:2350: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/libevent-2.1.12-stable/evutil.c:2534: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/libevent-2.1.12-stable/evutil.c:2575: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/evutil_time.c:396: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/http.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 size[22];
data/libevent-2.1.12-stable/http.c:504: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/libevent-2.1.12-stable/http.c:519: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/libevent-2.1.12-stable/http.c:1698: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/libevent-2.1.12-stable/http.c:2089: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/libevent-2.1.12-stable/http.c:3079: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/libevent-2.1.12-stable/http.c:3193: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/libevent-2.1.12-stable/http.c:4166: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/libevent-2.1.12-stable/http.c:4254: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/libevent-2.1.12-stable/http.c:4359: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/libevent-2.1.12-stable/http.c:4360: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/libevent-2.1.12-stable/http.c:4435: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/libevent-2.1.12-stable/http.c:4615: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/libevent-2.1.12-stable/http.c:4620: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/libevent-2.1.12-stable/http.c:4683: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/poll.c:164:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(pop->event_set_copy, pop->event_set,
data/libevent-2.1.12-stable/poll.c:331: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/sample/http-connect.c:34:47:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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* uri_path(struct evhttp_uri *uri, char buffer[URL_MAX])
data/libevent-2.1.12-stable/sample/http-connect.c:48:51:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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* uri_hostport(struct evhttp_uri *uri, char buffer[URL_MAX])
data/libevent-2.1.12-stable/sample/http-connect.c:77: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/libevent-2.1.12-stable/sample/http-connect.c:91: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 hostport[URL_MAX];
data/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/sample/http-server.c:368: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/libevent-2.1.12-stable/sample/http-server.c:400: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/sample/https-client.c:124: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/libevent-2.1.12-stable/sample/https-client.c:223: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/libevent-2.1.12-stable/sample/https-client.c:266: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/libevent-2.1.12-stable/sample/https-client.c:273: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/libevent-2.1.12-stable/sample/https-client.c:479: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/libevent-2.1.12-stable/sample/https-client.c:480: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/bench.c:165: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/libevent-2.1.12-stable/test/bench.c:168: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/libevent-2.1.12-stable/test/bench.c:171: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress.c:83: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/libevent-2.1.12-stable/test/regress.c:84: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/libevent-2.1.12-stable/test/regress.c:109: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/libevent-2.1.12-stable/test/regress.c:128: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/libevent-2.1.12-stable/test/regress.c:246: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/libevent-2.1.12-stable/test/regress.c:264: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/libevent-2.1.12-stable/test/regress.c:399: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/libevent-2.1.12-stable/test/regress.c:882: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/libevent-2.1.12-stable/test/regress.c:1842: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/libevent-2.1.12-stable/test/regress.c:2145: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/libevent-2.1.12-stable/test/regress.c:2379: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/libevent-2.1.12-stable/test/regress.c:2467: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/libevent-2.1.12-stable/test/regress.c:2496: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/libevent-2.1.12-stable/test/regress.c:2657: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/libevent-2.1.12-stable/test/regress.c:2669: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/libevent-2.1.12-stable/test/regress.c:2697: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/libevent-2.1.12-stable/test/regress.c:3032: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/libevent-2.1.12-stable/test/regress.gen.c:885: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/libevent-2.1.12-stable/test/regress.gen.c:893: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress_buffer.c:506: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/libevent-2.1.12-stable/test/regress_buffer.c:780: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/libevent-2.1.12-stable/test/regress_buffer.c:830: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/libevent-2.1.12-stable/test/regress_buffer.c:947: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/libevent-2.1.12-stable/test/regress_buffer.c:1032: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/libevent-2.1.12-stable/test/regress_buffer.c:1696: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/libevent-2.1.12-stable/test/regress_buffer.c:1736: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/libevent-2.1.12-stable/test/regress_buffer.c:2055: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/libevent-2.1.12-stable/test/regress_buffer.c:2131: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/libevent-2.1.12-stable/test/regress_buffer.c:2246: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/libevent-2.1.12-stable/test/regress_buffer.c:2538: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/libevent-2.1.12-stable/test/regress_buffer.c:2689: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/libevent-2.1.12-stable/test/regress_buffer.c:2712: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/libevent-2.1.12-stable/test/regress_bufferevent.c:142: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/libevent-2.1.12-stable/test/regress_bufferevent.c:409: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/libevent-2.1.12-stable/test/regress_bufferevent.c:554: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/libevent-2.1.12-stable/test/regress_bufferevent.c:695: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/libevent-2.1.12-stable/test/regress_bufferevent.c:1315: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress_dns.c:1434: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/libevent-2.1.12-stable/test/regress_dns.c:2127: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress_http.c: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 strport[NI_MAXSERV];
data/libevent-2.1.12-stable/test/regress_http.c:331: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/libevent-2.1.12-stable/test/regress_http.c: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 buf[4096];
data/libevent-2.1.12-stable/test/regress_http.c:1195: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/libevent-2.1.12-stable/test/regress_http.c:1461: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/libevent-2.1.12-stable/test/regress_http.c:2529: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/libevent-2.1.12-stable/test/regress_http.c:3849: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/libevent-2.1.12-stable/test/regress_http.c:4386: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/libevent-2.1.12-stable/test/regress_http.c:4416: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress_main.c:135: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/libevent-2.1.12-stable/test/regress_main.c:138: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/libevent-2.1.12-stable/test/regress_main.c:142: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/libevent-2.1.12-stable/test/regress_main.c:155: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/libevent-2.1.12-stable/test/regress_main.c:156: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress_util.c:354: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/libevent-2.1.12-stable/test/regress_util.c:447: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/libevent-2.1.12-stable/test/regress_util.c:618: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/libevent-2.1.12-stable/test/regress_util.c:708: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/libevent-2.1.12-stable/test/regress_util.c:879: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/libevent-2.1.12-stable/test/regress_util.c:931: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/libevent-2.1.12-stable/test/regress_util.c:932: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/libevent-2.1.12-stable/test/regress_util.c:1141: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/libevent-2.1.12-stable/test/regress_util.c:1506: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/libevent-2.1.12-stable/test/regress_util.c:1540: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/test-ratelim.c:132: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/tinytest.c:207: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/libevent-2.1.12-stable/test/tinytest.c:268: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/libevent-2.1.12-stable/test/tinytest.c:283: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/libevent-2.1.12-stable/test/tinytest.c:368: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/libevent-2.1.12-stable/test/tinytest.c:504: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/arc4random.c:135: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/libevent-2.1.12-stable/arc4random.c:262: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/libevent-2.1.12-stable/buffer.c:2364: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/libevent-2.1.12-stable/buffer.c:3120: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/evdns.c:3653: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/libevent-2.1.12-stable/evdns.c:3653: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/libevent-2.1.12-stable/evdns.c:4226: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/libevent-2.1.12-stable/event.c:3533: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/libevent-2.1.12-stable/event.c:3589: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/libevent-2.1.12-stable/event.c:3608: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/evutil.c:98:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read _read
data/libevent-2.1.12-stable/evutil.c:183: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/libevent-2.1.12-stable/evutil.c:1689: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/libevent-2.1.12-stable/evutil.c:1938: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/libevent-2.1.12-stable/evutil.c:1974: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/libevent-2.1.12-stable/evutil.c:1980: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/libevent-2.1.12-stable/evutil.c:2054: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/libevent-2.1.12-stable/evutil.c:2578: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/libevent-2.1.12-stable/evutil_time.c:174: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/http.c:934: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/libevent-2.1.12-stable/http.c:1734: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/libevent-2.1.12-stable/http.c:2075: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/libevent-2.1.12-stable/http.c:2082: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/libevent-2.1.12-stable/http.c:3127: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/libevent-2.1.12-stable/http.c:3213: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/libevent-2.1.12-stable/http.c:3215: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/libevent-2.1.12-stable/http.c:3219: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/libevent-2.1.12-stable/http.c:3231: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/libevent-2.1.12-stable/http.c:3233: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/libevent-2.1.12-stable/http.c:3237: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/libevent-2.1.12-stable/http.c:3276: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/libevent-2.1.12-stable/http.c:3298: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/libevent-2.1.12-stable/http.c:3302: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/libevent-2.1.12-stable/http.c:3344: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/libevent-2.1.12-stable/http.c:4156: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/libevent-2.1.12-stable/http.c:4729: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/libevent-2.1.12-stable/http.c:4954: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/libevent-2.1.12-stable/http.c:5063: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/libevent-2.1.12-stable/http.c:5072: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/libevent-2.1.12-stable/http.c:5082: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/libevent-2.1.12-stable/http.c:5085: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/libevent-2.1.12-stable/http.c:5107: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/libevent-2.1.12-stable/http.c:5116: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/libevent-2.1.12-stable/http.c:5124: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/sample/hello-world.c:104: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/libevent-2.1.12-stable/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(o->docroot)+2;
data/libevent-2.1.12-stable/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(o->docroot)+2;
data/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/sample/https-client.c:330: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress.c:96: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/libevent-2.1.12-stable/test/regress.c:112: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/libevent-2.1.12-stable/test/regress.c:132: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/libevent-2.1.12-stable/test/regress.c:169: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/libevent-2.1.12-stable/test/regress.c:215: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/libevent-2.1.12-stable/test/regress.c:249: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/libevent-2.1.12-stable/test/regress.c:303: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/libevent-2.1.12-stable/test/regress.c:348: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/libevent-2.1.12-stable/test/regress.c:885: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/libevent-2.1.12-stable/test/regress.c:947: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/libevent-2.1.12-stable/test/regress.c:995: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/libevent-2.1.12-stable/test/regress.c:998: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/libevent-2.1.12-stable/test/regress.c:1005: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/libevent-2.1.12-stable/test/regress.c:1066: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/libevent-2.1.12-stable/test/regress.c:1845: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/libevent-2.1.12-stable/test/regress.c:1940: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/libevent-2.1.12-stable/test/regress.c:2000: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/libevent-2.1.12-stable/test/regress.c:2151: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/libevent-2.1.12-stable/test/regress.c:2358: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/libevent-2.1.12-stable/test/regress.c:2382: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/libevent-2.1.12-stable/test/regress.c:2388: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/libevent-2.1.12-stable/test/regress.c:2408: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/libevent-2.1.12-stable/test/regress.c:2822: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/libevent-2.1.12-stable/test/regress.c:2964: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress_buffer.c:978: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/libevent-2.1.12-stable/test/regress_buffer.c:994: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/libevent-2.1.12-stable/test/regress_buffer.c:997: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/libevent-2.1.12-stable/test/regress_buffer.c:1009: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/libevent-2.1.12-stable/test/regress_buffer.c:1011: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/libevent-2.1.12-stable/test/regress_buffer.c:1019: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/libevent-2.1.12-stable/test/regress_buffer.c:1020: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/libevent-2.1.12-stable/test/regress_buffer.c:1199: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/libevent-2.1.12-stable/test/regress_buffer.c:1397: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/libevent-2.1.12-stable/test/regress_buffer.c:1404: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/libevent-2.1.12-stable/test/regress_buffer.c:1416: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress_buffer.c:1462: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/libevent-2.1.12-stable/test/regress_buffer.c:1487: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/libevent-2.1.12-stable/test/regress_buffer.c:1507: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/libevent-2.1.12-stable/test/regress_buffer.c:1558: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/libevent-2.1.12-stable/test/regress_buffer.c:1563: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/libevent-2.1.12-stable/test/regress_buffer.c:1568: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/libevent-2.1.12-stable/test/regress_buffer.c:1597: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/libevent-2.1.12-stable/test/regress_buffer.c:1637: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/libevent-2.1.12-stable/test/regress_buffer.c:1695: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/libevent-2.1.12-stable/test/regress_buffer.c:1743: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/libevent-2.1.12-stable/test/regress_buffer.c:1745: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/libevent-2.1.12-stable/test/regress_buffer.c:1747: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/libevent-2.1.12-stable/test/regress_buffer.c:1756: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/libevent-2.1.12-stable/test/regress_buffer.c:2056: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/libevent-2.1.12-stable/test/regress_buffer.c:2056: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/libevent-2.1.12-stable/test/regress_buffer.c:2132: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/libevent-2.1.12-stable/test/regress_buffer.c:2132: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/libevent-2.1.12-stable/test/regress_buffer.c:2200: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/libevent-2.1.12-stable/test/regress_buffer.c:2200: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/libevent-2.1.12-stable/test/regress_buffer.c:2415: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/libevent-2.1.12-stable/test/regress_buffer.c:2416: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/libevent-2.1.12-stable/test/regress_buffer.c:2553: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/libevent-2.1.12-stable/test/regress_buffer.c:2589: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(tmpfilecontent);
data/libevent-2.1.12-stable/test/regress_buffer.c:2678: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/libevent-2.1.12-stable/test/regress_buffer.c:2692: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/libevent-2.1.12-stable/test/regress_buffer.c:2721: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/libevent-2.1.12-stable/test/regress_buffer.c:2726: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress_http.c:227: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/libevent-2.1.12-stable/test/regress_http.c:251: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/libevent-2.1.12-stable/test/regress_http.c:338: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/libevent-2.1.12-stable/test/regress_http.c:341: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/libevent-2.1.12-stable/test/regress_http.c:353: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/libevent-2.1.12-stable/test/regress_http.c:498: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/libevent-2.1.12-stable/test/regress_http.c:580: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/libevent-2.1.12-stable/test/regress_http.c:714: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/libevent-2.1.12-stable/test/regress_http.c:749: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/libevent-2.1.12-stable/test/regress_http.c:834: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/libevent-2.1.12-stable/test/regress_http.c:917: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/libevent-2.1.12-stable/test/regress_http.c:982: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/libevent-2.1.12-stable/test/regress_http.c:1000: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/libevent-2.1.12-stable/test/regress_http.c:1018: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/libevent-2.1.12-stable/test/regress_http.c:1030: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/libevent-2.1.12-stable/test/regress_http.c:1034: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/libevent-2.1.12-stable/test/regress_http.c:1038: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/libevent-2.1.12-stable/test/regress_http.c:1632: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/libevent-2.1.12-stable/test/regress_http.c:1804: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/libevent-2.1.12-stable/test/regress_http.c:1901: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/libevent-2.1.12-stable/test/regress_http.c:1903: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/libevent-2.1.12-stable/test/regress_http.c:2038: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/libevent-2.1.12-stable/test/regress_http.c:2040: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/libevent-2.1.12-stable/test/regress_http.c:2081: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/libevent-2.1.12-stable/test/regress_http.c:2083: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/libevent-2.1.12-stable/test/regress_http.c:2155: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/libevent-2.1.12-stable/test/regress_http.c:2157: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/libevent-2.1.12-stable/test/regress_http.c:2198: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/libevent-2.1.12-stable/test/regress_http.c:2200: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/libevent-2.1.12-stable/test/regress_http.c:2250: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/libevent-2.1.12-stable/test/regress_http.c:2920: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/libevent-2.1.12-stable/test/regress_http.c:2930: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/libevent-2.1.12-stable/test/regress_http.c:3045: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/libevent-2.1.12-stable/test/regress_http.c:3130: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/libevent-2.1.12-stable/test/regress_http.c:3349: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/libevent-2.1.12-stable/test/regress_http.c:3523: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/libevent-2.1.12-stable/test/regress_http.c:3945: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/libevent-2.1.12-stable/test/regress_http.c:4347: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/libevent-2.1.12-stable/test/regress_http.c:4496: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/libevent-2.1.12-stable/test/regress_http.c:4527: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress_main.c:140:2:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	umask(0077);
data/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/regress_util.c:1554: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/test/tinytest.c:287: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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/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/libevent-2.1.12-stable/win32select.c:171:7:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if (read)

ANALYSIS SUMMARY:

Hits = 536
Lines analyzed = 85002 in approximately 2.18 seconds (38903 lines/second)
Physical Source Lines of Code (SLOC) = 57894
Hits@level = [0] 314 [1] 205 [2] 276 [3]  36 [4]  19 [5]   0
Hits@level+ = [0+] 850 [1+] 536 [2+] 331 [3+]  55 [4+]  19 [5+]   0
Hits/KSLOC@level+ = [0+] 14.682 [1+] 9.2583 [2+] 5.71735 [3+] 0.950012 [4+] 0.328186 [5+]   0
Dot directories skipped = 1 (--followdotdir overrides)
Minimum risk level = 1
Not every hit is necessarily a security vulnerability.
There may be other security vulnerabilities; review your code!
See 'Secure Programming HOWTO'
(https://dwheeler.com/secure-programs) for more information.