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/libre-1.1.0/include/re.h
Examining data/libre-1.1.0/include/re_aes.h
Examining data/libre-1.1.0/include/re_base64.h
Examining data/libre-1.1.0/include/re_bfcp.h
Examining data/libre-1.1.0/include/re_bitv.h
Examining data/libre-1.1.0/include/re_conf.h
Examining data/libre-1.1.0/include/re_crc32.h
Examining data/libre-1.1.0/include/re_dbg.h
Examining data/libre-1.1.0/include/re_dns.h
Examining data/libre-1.1.0/include/re_fmt.h
Examining data/libre-1.1.0/include/re_hash.h
Examining data/libre-1.1.0/include/re_hmac.h
Examining data/libre-1.1.0/include/re_http.h
Examining data/libre-1.1.0/include/re_httpauth.h
Examining data/libre-1.1.0/include/re_ice.h
Examining data/libre-1.1.0/include/re_jbuf.h
Examining data/libre-1.1.0/include/re_json.h
Examining data/libre-1.1.0/include/re_list.h
Examining data/libre-1.1.0/include/re_lock.h
Examining data/libre-1.1.0/include/re_main.h
Examining data/libre-1.1.0/include/re_mbuf.h
Examining data/libre-1.1.0/include/re_md5.h
Examining data/libre-1.1.0/include/re_mem.h
Examining data/libre-1.1.0/include/re_mod.h
Examining data/libre-1.1.0/include/re_mqueue.h
Examining data/libre-1.1.0/include/re_msg.h
Examining data/libre-1.1.0/include/re_natbd.h
Examining data/libre-1.1.0/include/re_net.h
Examining data/libre-1.1.0/include/re_odict.h
Examining data/libre-1.1.0/include/re_rtmp.h
Examining data/libre-1.1.0/include/re_rtp.h
Examining data/libre-1.1.0/include/re_sa.h
Examining data/libre-1.1.0/include/re_sdp.h
Examining data/libre-1.1.0/include/re_sha.h
Examining data/libre-1.1.0/include/re_sip.h
Examining data/libre-1.1.0/include/re_sipevent.h
Examining data/libre-1.1.0/include/re_sipreg.h
Examining data/libre-1.1.0/include/re_sipsess.h
Examining data/libre-1.1.0/include/re_srtp.h
Examining data/libre-1.1.0/include/re_stun.h
Examining data/libre-1.1.0/include/re_sys.h
Examining data/libre-1.1.0/include/re_tcp.h
Examining data/libre-1.1.0/include/re_telev.h
Examining data/libre-1.1.0/include/re_tls.h
Examining data/libre-1.1.0/include/re_tmr.h
Examining data/libre-1.1.0/include/re_turn.h
Examining data/libre-1.1.0/include/re_types.h
Examining data/libre-1.1.0/include/re_udp.h
Examining data/libre-1.1.0/include/re_uri.h
Examining data/libre-1.1.0/include/re_websock.h
Examining data/libre-1.1.0/src/aes/apple/aes.c
Examining data/libre-1.1.0/src/aes/openssl/aes.c
Examining data/libre-1.1.0/src/aes/stub.c
Examining data/libre-1.1.0/src/base64/b64.c
Examining data/libre-1.1.0/src/bfcp/attr.c
Examining data/libre-1.1.0/src/bfcp/bfcp.h
Examining data/libre-1.1.0/src/bfcp/conn.c
Examining data/libre-1.1.0/src/bfcp/msg.c
Examining data/libre-1.1.0/src/bfcp/reply.c
Examining data/libre-1.1.0/src/bfcp/request.c
Examining data/libre-1.1.0/src/conf/conf.c
Examining data/libre-1.1.0/src/crc32/crc32.c
Examining data/libre-1.1.0/src/dbg/dbg.c
Examining data/libre-1.1.0/src/dns/client.c
Examining data/libre-1.1.0/src/dns/cstr.c
Examining data/libre-1.1.0/src/dns/darwin/srv.c
Examining data/libre-1.1.0/src/dns/dname.c
Examining data/libre-1.1.0/src/dns/dns.h
Examining data/libre-1.1.0/src/dns/hdr.c
Examining data/libre-1.1.0/src/dns/ns.c
Examining data/libre-1.1.0/src/dns/res.c
Examining data/libre-1.1.0/src/dns/rr.c
Examining data/libre-1.1.0/src/dns/rrlist.c
Examining data/libre-1.1.0/src/dns/win32/srv.c
Examining data/libre-1.1.0/src/fmt/ch.c
Examining data/libre-1.1.0/src/fmt/hexdump.c
Examining data/libre-1.1.0/src/fmt/pl.c
Examining data/libre-1.1.0/src/fmt/print.c
Examining data/libre-1.1.0/src/fmt/prm.c
Examining data/libre-1.1.0/src/fmt/regex.c
Examining data/libre-1.1.0/src/fmt/str.c
Examining data/libre-1.1.0/src/fmt/str_error.c
Examining data/libre-1.1.0/src/fmt/time.c
Examining data/libre-1.1.0/src/fmt/unicode.c
Examining data/libre-1.1.0/src/hash/func.c
Examining data/libre-1.1.0/src/hash/hash.c
Examining data/libre-1.1.0/src/hmac/apple/hmac.c
Examining data/libre-1.1.0/src/hmac/hmac.c
Examining data/libre-1.1.0/src/hmac/hmac_sha1.c
Examining data/libre-1.1.0/src/hmac/openssl/hmac.c
Examining data/libre-1.1.0/src/http/auth.c
Examining data/libre-1.1.0/src/http/chunk.c
Examining data/libre-1.1.0/src/http/client.c
Examining data/libre-1.1.0/src/http/http.h
Examining data/libre-1.1.0/src/http/msg.c
Examining data/libre-1.1.0/src/http/server.c
Examining data/libre-1.1.0/src/httpauth/basic.c
Examining data/libre-1.1.0/src/httpauth/digest.c
Examining data/libre-1.1.0/src/ice/cand.c
Examining data/libre-1.1.0/src/ice/candpair.c
Examining data/libre-1.1.0/src/ice/chklist.c
Examining data/libre-1.1.0/src/ice/comp.c
Examining data/libre-1.1.0/src/ice/connchk.c
Examining data/libre-1.1.0/src/ice/ice.c
Examining data/libre-1.1.0/src/ice/ice.h
Examining data/libre-1.1.0/src/ice/icem.c
Examining data/libre-1.1.0/src/ice/icesdp.c
Examining data/libre-1.1.0/src/ice/icestr.c
Examining data/libre-1.1.0/src/ice/stunsrv.c
Examining data/libre-1.1.0/src/ice/util.c
Examining data/libre-1.1.0/src/jbuf/jbuf.c
Examining data/libre-1.1.0/src/json/decode.c
Examining data/libre-1.1.0/src/json/decode_odict.c
Examining data/libre-1.1.0/src/json/encode.c
Examining data/libre-1.1.0/src/list/list.c
Examining data/libre-1.1.0/src/lock/lock.c
Examining data/libre-1.1.0/src/lock/rwlock.c
Examining data/libre-1.1.0/src/lock/win32/lock.c
Examining data/libre-1.1.0/src/main/epoll.c
Examining data/libre-1.1.0/src/main/init.c
Examining data/libre-1.1.0/src/main/main.c
Examining data/libre-1.1.0/src/main/main.h
Examining data/libre-1.1.0/src/main/method.c
Examining data/libre-1.1.0/src/main/openssl.c
Examining data/libre-1.1.0/src/mbuf/mbuf.c
Examining data/libre-1.1.0/src/md5/md5.c
Examining data/libre-1.1.0/src/md5/md5.h
Examining data/libre-1.1.0/src/md5/wrap.c
Examining data/libre-1.1.0/src/mem/mem.c
Examining data/libre-1.1.0/src/mem/secure.c
Examining data/libre-1.1.0/src/mod/dl.c
Examining data/libre-1.1.0/src/mod/mod.c
Examining data/libre-1.1.0/src/mod/mod_internal.h
Examining data/libre-1.1.0/src/mod/win32/dll.c
Examining data/libre-1.1.0/src/mqueue/mqueue.c
Examining data/libre-1.1.0/src/mqueue/mqueue.h
Examining data/libre-1.1.0/src/mqueue/win32/pipe.c
Examining data/libre-1.1.0/src/msg/ctype.c
Examining data/libre-1.1.0/src/msg/param.c
Examining data/libre-1.1.0/src/natbd/filtering.c
Examining data/libre-1.1.0/src/natbd/genalg.c
Examining data/libre-1.1.0/src/natbd/hairpinning.c
Examining data/libre-1.1.0/src/natbd/lifetime.c
Examining data/libre-1.1.0/src/natbd/mapping.c
Examining data/libre-1.1.0/src/natbd/natstr.c
Examining data/libre-1.1.0/src/net/bsd/brt.c
Examining data/libre-1.1.0/src/net/if.c
Examining data/libre-1.1.0/src/net/ifaddrs.c
Examining data/libre-1.1.0/src/net/linux/rt.c
Examining data/libre-1.1.0/src/net/net.c
Examining data/libre-1.1.0/src/net/netstr.c
Examining data/libre-1.1.0/src/net/posix/pif.c
Examining data/libre-1.1.0/src/net/rt.c
Examining data/libre-1.1.0/src/net/sock.c
Examining data/libre-1.1.0/src/net/sockopt.c
Examining data/libre-1.1.0/src/net/win32/wif.c
Examining data/libre-1.1.0/src/odict/entry.c
Examining data/libre-1.1.0/src/odict/get.c
Examining data/libre-1.1.0/src/odict/odict.c
Examining data/libre-1.1.0/src/odict/type.c
Examining data/libre-1.1.0/src/rtmp/amf.c
Examining data/libre-1.1.0/src/rtmp/amf_dec.c
Examining data/libre-1.1.0/src/rtmp/amf_enc.c
Examining data/libre-1.1.0/src/rtmp/chunk.c
Examining data/libre-1.1.0/src/rtmp/conn.c
Examining data/libre-1.1.0/src/rtmp/control.c
Examining data/libre-1.1.0/src/rtmp/ctrans.c
Examining data/libre-1.1.0/src/rtmp/dechunk.c
Examining data/libre-1.1.0/src/rtmp/hdr.c
Examining data/libre-1.1.0/src/rtmp/rtmp.h
Examining data/libre-1.1.0/src/rtmp/stream.c
Examining data/libre-1.1.0/src/rtp/fb.c
Examining data/libre-1.1.0/src/rtp/member.c
Examining data/libre-1.1.0/src/rtp/ntp.c
Examining data/libre-1.1.0/src/rtp/pkt.c
Examining data/libre-1.1.0/src/rtp/rr.c
Examining data/libre-1.1.0/src/rtp/rtcp.c
Examining data/libre-1.1.0/src/rtp/rtcp.h
Examining data/libre-1.1.0/src/rtp/rtp.c
Examining data/libre-1.1.0/src/rtp/sdes.c
Examining data/libre-1.1.0/src/rtp/sess.c
Examining data/libre-1.1.0/src/rtp/source.c
Examining data/libre-1.1.0/src/sa/ntop.c
Examining data/libre-1.1.0/src/sa/printaddr.c
Examining data/libre-1.1.0/src/sa/pton.c
Examining data/libre-1.1.0/src/sa/sa.c
Examining data/libre-1.1.0/src/sa/sa.h
Examining data/libre-1.1.0/src/sdp/attr.c
Examining data/libre-1.1.0/src/sdp/format.c
Examining data/libre-1.1.0/src/sdp/media.c
Examining data/libre-1.1.0/src/sdp/msg.c
Examining data/libre-1.1.0/src/sdp/sdp.h
Examining data/libre-1.1.0/src/sdp/session.c
Examining data/libre-1.1.0/src/sdp/str.c
Examining data/libre-1.1.0/src/sdp/util.c
Examining data/libre-1.1.0/src/sha/sha1.c
Examining data/libre-1.1.0/src/sip/addr.c
Examining data/libre-1.1.0/src/sip/auth.c
Examining data/libre-1.1.0/src/sip/contact.c
Examining data/libre-1.1.0/src/sip/cseq.c
Examining data/libre-1.1.0/src/sip/ctrans.c
Examining data/libre-1.1.0/src/sip/dialog.c
Examining data/libre-1.1.0/src/sip/keepalive.c
Examining data/libre-1.1.0/src/sip/keepalive_udp.c
Examining data/libre-1.1.0/src/sip/msg.c
Examining data/libre-1.1.0/src/sip/reply.c
Examining data/libre-1.1.0/src/sip/request.c
Examining data/libre-1.1.0/src/sip/sip.c
Examining data/libre-1.1.0/src/sip/sip.h
Examining data/libre-1.1.0/src/sip/strans.c
Examining data/libre-1.1.0/src/sip/transp.c
Examining data/libre-1.1.0/src/sip/via.c
Examining data/libre-1.1.0/src/sipevent/listen.c
Examining data/libre-1.1.0/src/sipevent/msg.c
Examining data/libre-1.1.0/src/sipevent/notify.c
Examining data/libre-1.1.0/src/sipevent/sipevent.h
Examining data/libre-1.1.0/src/sipevent/subscribe.c
Examining data/libre-1.1.0/src/sipreg/reg.c
Examining data/libre-1.1.0/src/sipsess/accept.c
Examining data/libre-1.1.0/src/sipsess/ack.c
Examining data/libre-1.1.0/src/sipsess/close.c
Examining data/libre-1.1.0/src/sipsess/connect.c
Examining data/libre-1.1.0/src/sipsess/info.c
Examining data/libre-1.1.0/src/sipsess/listen.c
Examining data/libre-1.1.0/src/sipsess/modify.c
Examining data/libre-1.1.0/src/sipsess/reply.c
Examining data/libre-1.1.0/src/sipsess/request.c
Examining data/libre-1.1.0/src/sipsess/sess.c
Examining data/libre-1.1.0/src/sipsess/sipsess.h
Examining data/libre-1.1.0/src/srtp/misc.c
Examining data/libre-1.1.0/src/srtp/replay.c
Examining data/libre-1.1.0/src/srtp/srtcp.c
Examining data/libre-1.1.0/src/srtp/srtp.c
Examining data/libre-1.1.0/src/srtp/srtp.h
Examining data/libre-1.1.0/src/srtp/stream.c
Examining data/libre-1.1.0/src/stun/addr.c
Examining data/libre-1.1.0/src/stun/attr.c
Examining data/libre-1.1.0/src/stun/ctrans.c
Examining data/libre-1.1.0/src/stun/dnsdisc.c
Examining data/libre-1.1.0/src/stun/hdr.c
Examining data/libre-1.1.0/src/stun/ind.c
Examining data/libre-1.1.0/src/stun/keepalive.c
Examining data/libre-1.1.0/src/stun/msg.c
Examining data/libre-1.1.0/src/stun/rep.c
Examining data/libre-1.1.0/src/stun/req.c
Examining data/libre-1.1.0/src/stun/stun.c
Examining data/libre-1.1.0/src/stun/stun.h
Examining data/libre-1.1.0/src/stun/stunstr.c
Examining data/libre-1.1.0/src/sys/daemon.c
Examining data/libre-1.1.0/src/sys/endian.c
Examining data/libre-1.1.0/src/sys/fs.c
Examining data/libre-1.1.0/src/sys/rand.c
Examining data/libre-1.1.0/src/sys/sleep.c
Examining data/libre-1.1.0/src/sys/sys.c
Examining data/libre-1.1.0/src/tcp/tcp.c
Examining data/libre-1.1.0/src/tcp/tcp_high.c
Examining data/libre-1.1.0/src/telev/telev.c
Examining data/libre-1.1.0/src/tls/openssl/tls.c
Examining data/libre-1.1.0/src/tls/openssl/tls.h
Examining data/libre-1.1.0/src/tls/openssl/tls_tcp.c
Examining data/libre-1.1.0/src/tls/openssl/tls_udp.c
Examining data/libre-1.1.0/src/tmr/tmr.c
Examining data/libre-1.1.0/src/turn/chan.c
Examining data/libre-1.1.0/src/turn/perm.c
Examining data/libre-1.1.0/src/turn/turnc.c
Examining data/libre-1.1.0/src/turn/turnc.h
Examining data/libre-1.1.0/src/udp/mcast.c
Examining data/libre-1.1.0/src/udp/udp.c
Examining data/libre-1.1.0/src/uri/uri.c
Examining data/libre-1.1.0/src/uri/uric.c
Examining data/libre-1.1.0/src/websock/websock.c

FINAL RESULTS:

data/libre-1.1.0/src/sa/ntop.c:154:2:  [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(dst, tmp);
data/libre-1.1.0/src/sys/sys.c:202:11:  [4] (misc) getlogin:
  It's often easy to fool getlogin. Sometimes it does not work at all,
  because some program messed up the utmp file. Often, it gives only the
  first 8 characters of the login name. The user currently logged in on the
  controlling tty of our program need not be the user who started it. Avoid
  getlogin() for security-related purposes (CWE-807). Use getpwuid(geteuid())
  and extract the desired information instead.
		login = getlogin();
data/libre-1.1.0/src/dns/win32/srv.c:40:9:  [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.
	hLib = LoadLibrary(TEXT("iphlpapi.dll"));
data/libre-1.1.0/src/lock/win32/lock.c:38:2:  [3] (misc) InitializeCriticalSection:
  Exceptions can be thrown in low-memory situations. Use
  InitializeCriticalSectionAndSpinCount instead.
	InitializeCriticalSection(&l->c);
data/libre-1.1.0/src/lock/win32/lock.c:47:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&l->c);
data/libre-1.1.0/src/lock/win32/lock.c:53:2:  [3] (misc) EnterCriticalSection:
  On some versions of Windows, exceptions can be thrown in low-memory
  situations. Use InitializeCriticalSectionAndSpinCount instead.
	EnterCriticalSection(&l->c);
data/libre-1.1.0/src/net/win32/wif.c:39:9:  [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.
	hLib = LoadLibrary(TEXT("iphlpapi.dll"));
data/libre-1.1.0/src/sys/rand.c:50:2:  [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((uint32_t) tmr_jiffies());
data/libre-1.1.0/src/sys/sys.c:197:10:  [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.
	login = getenv("LOGNAME");
data/libre-1.1.0/src/sys/sys.c:199:11:  [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.
		login = getenv("USER");
data/libre-1.1.0/include/re_fmt.h:148:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
size_t utf8_byteseq(char u[4], unsigned cp);
data/libre-1.1.0/include/re_ice.h:141: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 foundation[32];      /**< Foundation string                    */
data/libre-1.1.0/include/re_rtp.h:136: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[4];      /**< Name (ASCII)               */
data/libre-1.1.0/include/re_rtp.h:224:48:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int   rtcp_send_app(struct rtp_sock *rs, const char name[4],
data/libre-1.1.0/src/aes/apple/aes.c:56: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(st->key, key, st->key_bytes);
data/libre-1.1.0/src/base64/b64.c:11: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 b64_table[65] =
data/libre-1.1.0/src/base64/b64.c:70: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/libre-1.1.0/src/conf/conf.c:23: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/libre-1.1.0/src/conf/conf.c:41:20:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	int err = 0, fd = open(filename, O_RDONLY);
data/libre-1.1.0/src/conf/conf.c:153: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 expr[512];
data/libre-1.1.0/src/conf/conf.c:270: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 expr[512];
data/libre-1.1.0/src/dbg/dbg.c:109:10:  [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).
	dbg.f = fopen(name, "a+");
data/libre-1.1.0/src/dbg/dbg.c:188: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/libre-1.1.0/src/dns/darwin/srv.c:56:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char str[64];
data/libre-1.1.0/src/dns/dname.c:167: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/libre-1.1.0/src/dns/ns.c:35:6:  [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).
	f = fopen("/etc/resolv.conf", "r");
data/libre-1.1.0/src/dns/ns.c:40:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char line[128];
data/libre-1.1.0/src/dns/ns.c:85:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char prop[PROP_NAME_MAX] = {0}, value[PROP_VALUE_MAX] = {0};
data/libre-1.1.0/src/dns/rrlist.c:36: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(addr, rr->rdata.aaaa.addr, 16);
data/libre-1.1.0/src/fmt/pl.c:264: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(str, pl->p, len);
data/libre-1.1.0/src/fmt/pl.c:290: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(p, src->p, src->l);
data/libre-1.1.0/src/fmt/pl.c:318: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(p, src->p, src->l);
data/libre-1.1.0/src/fmt/print.c:166: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 pch, ch, num[NUM_SIZE], addr[64], msg[256];
data/libre-1.1.0/src/fmt/print.c:516: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((void *)pl->p, p, size);
data/libre-1.1.0/src/fmt/print.c:548: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(dp->p, p, size);
data/libre-1.1.0/src/fmt/prm.c:21: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 expr[128];
data/libre-1.1.0/src/fmt/prm.c:52: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 expr[128];
data/libre-1.1.0/src/fmt/str.c:80: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(p, src, sz);
data/libre-1.1.0/src/fmt/unicode.c:24: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 ubuf[6] = "\\u00", ebuf[2] = "\\";
data/libre-1.1.0/src/fmt/unicode.c:106: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 ubuf[4];
data/libre-1.1.0/src/fmt/unicode.c:196:21:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
size_t utf8_byteseq(char u[4], unsigned cp)
data/libre-1.1.0/src/hmac/apple/hmac.c:60: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(hmac->key, key, key_len);
data/libre-1.1.0/src/hmac/hmac.c:45: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(hmac->key, key, key_len);
data/libre-1.1.0/src/hmac/hmac_sha1.c:97: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, osha, t);
data/libre-1.1.0/src/ice/connchk.c:210: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 username_buf[64];
data/libre-1.1.0/src/ice/ice.h:76: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[32];               /**< Name of the media stream           */
data/libre-1.1.0/src/ice/icesdp.c:194: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 type[8];
data/libre-1.1.0/src/ice/icesdp.c:363: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 type[8];
data/libre-1.1.0/src/json/decode_odict.c:20: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 index[64];
data/libre-1.1.0/src/json/decode_odict.c:95: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 index[64];
data/libre-1.1.0/src/mbuf/mbuf.c:226: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(mb->buf + mb->pos, buf, size);
data/libre-1.1.0/src/mbuf/mbuf.c:345:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(buf, mb->buf + mb->pos, size);
data/libre-1.1.0/src/md5/md5.c:170:6:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
					memcpy(xbuf, data, 64);
data/libre-1.1.0/src/md5/md5.c:346: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(pms->buf + offset, p, copy);
data/libre-1.1.0/src/md5/md5.c:360: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(pms->buf, p, left);
data/libre-1.1.0/src/mem/mem.c:503: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(mstat, &memstat, sizeof(*mstat));
data/libre-1.1.0/src/msg/param.c:23: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 xpr[128];
data/libre-1.1.0/src/msg/param.c:54: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 expr[128];
data/libre-1.1.0/src/net/bsd/brt.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ifname[IFNAMSIZ], *buf, *p;
data/libre-1.1.0/src/net/linux/rt.c:46: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 ifname[IFNAMSIZ];  /**< Interface name                 */
data/libre-1.1.0/src/net/net.c:37:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char hostname[256];
data/libre-1.1.0/src/net/net.c: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 ifname[64] = "";
data/libre-1.1.0/src/net/net.c:138: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 ifname[64];
data/libre-1.1.0/src/net/rt.c:26:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[64];
data/libre-1.1.0/src/rtmp/amf_dec.c:177: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 ix[32];
data/libre-1.1.0/src/rtmp/amf_dec.c:218: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 key[16];
data/libre-1.1.0/src/rtp/rtcp.c:55:46:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
int rtcp_send_app(struct rtp_sock *rs, const char name[4],
data/libre-1.1.0/src/sa/ntop.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 tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp;
data/libre-1.1.0/src/sa/ntop.c:139:9:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		tp += sprintf(tp, "%x", words[i]);
data/libre-1.1.0/src/sa/printaddr.c:37:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		char ifname[IF_NAMESIZE];
data/libre-1.1.0/src/sa/pton.c:89: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(dst, tmp, NS_INADDRSZ);
data/libre-1.1.0/src/sa/pton.c:187:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(dst, tmp, NS_IN6ADDRSZ);
data/libre-1.1.0/src/sa/pton.c:243: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(&sa->u.in.sin_addr.s_addr, a, 4);
data/libre-1.1.0/src/sa/sa.c:49: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/libre-1.1.0/src/sa/sa.c:135: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->u.in6.sin6_addr, addr, 16);
data/libre-1.1.0/src/sa/sa.c:161: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(&sa->u.in, s, sizeof(struct sockaddr_in));
data/libre-1.1.0/src/sa/sa.c:167: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(&sa->u.in6, s, sizeof(struct sockaddr_in6));
data/libre-1.1.0/src/sa/sa.c:306: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(addr, &sa->u.in6.sin6_addr, 16);
data/libre-1.1.0/src/sa/sa.c:452: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(dst, src, sizeof(*dst));
data/libre-1.1.0/src/sdp/format.c:100: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).
	fmt->pt    = atoi(fmt->id);
data/libre-1.1.0/src/sdp/format.c:137:12:  [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).
	fmt->pt = atoi(fmt->id);
data/libre-1.1.0/src/sdp/media.c:313: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).
			lfmt->pt = atoi(lfmt->id ? lfmt->id : "");
data/libre-1.1.0/src/sdp/sdp.h:42:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char *protov[8];
data/libre-1.1.0/src/sha/sha1.c:143: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(block, buffer, 64);
data/libre-1.1.0/src/sha/sha1.c:223: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(&context->buffer[j], data, (i = 64-j));
data/libre-1.1.0/src/sha/sha1.c:231: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(&context->buffer[j], &data[i], len - i);
data/libre-1.1.0/src/sip/request.c:539: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[256];
data/libre-1.1.0/src/sip/transp.c:825: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 ws_uri[256];
data/libre-1.1.0/src/sipevent/listen.c:139: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 m[256];
data/libre-1.1.0/src/sipreg/reg.c:150: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/libre-1.1.0/src/sipsess/listen.c:194: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 m[256];
data/libre-1.1.0/src/srtp/misc.c:59: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(x, master_salt, salt_bytes);
data/libre-1.1.0/src/stun/ctrans.c:243: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(ct->tid, tid, STUN_TID_SIZE);
data/libre-1.1.0/src/stun/ctrans.c:258: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(ct->key, key, keylen);
data/libre-1.1.0/src/stun/dnsdisc.c:24: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 domain[256];      /**< Cached domain name      */
data/libre-1.1.0/src/stun/dnsdisc.c:273: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 q[256];
data/libre-1.1.0/src/stun/msg.c:289:2:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
	memcpy(hdr.tid, tid, STUN_TID_SIZE);
data/libre-1.1.0/src/sys/fs.c:67: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 win32_path[MAX_PATH];
data/libre-1.1.0/src/sys/rand.c:123: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 s[2];
data/libre-1.1.0/src/tcp/tcp.c:574:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[64] = "";
data/libre-1.1.0/src/tcp/tcp.c:575: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 serv[6] = "0";
data/libre-1.1.0/src/tcp/tcp.c:700:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[64] = "";
data/libre-1.1.0/src/tcp/tcp.c:701: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 serv[NI_MAXSERV] = "0";
data/libre-1.1.0/src/tcp/tcp.c:861:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[64];
data/libre-1.1.0/src/tcp/tcp.c:862: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 serv[NI_MAXSERV] = "0";
data/libre-1.1.0/src/tcp/tcp.c:938:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[64] = "";
data/libre-1.1.0/src/tcp/tcp.c:939: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 serv[NI_MAXSERV] = "0";
data/libre-1.1.0/src/tcp/tcp.c:1011:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[64];
data/libre-1.1.0/src/tcp/tcp.c:1012: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 serv[NI_MAXSERV];
data/libre-1.1.0/src/tls/openssl/tls.c:865: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(cli_key,            p, key_size);  p += key_size;
data/libre-1.1.0/src/tls/openssl/tls.c:866: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(srv_key,            p, key_size);  p += key_size;
data/libre-1.1.0/src/tls/openssl/tls.c:867: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(cli_key + key_size, p, salt_size); p += salt_size;
data/libre-1.1.0/src/tls/openssl/tls.c:868: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(srv_key + key_size, p, salt_size);
data/libre-1.1.0/src/udp/udp.c:261:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char addr[64];
data/libre-1.1.0/src/udp/udp.c:262: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 serv[6] = "0";
data/libre-1.1.0/src/uri/uri.c:168: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 expr[128];
data/libre-1.1.0/src/uri/uri.c:228: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 expr[128];
data/libre-1.1.0/src/websock/websock.c:47: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 nonce[24];
data/libre-1.1.0/src/websock/websock.c:388:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char buf[32];
data/libre-1.1.0/src/conf/conf.c:24:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
#define read _read
data/libre-1.1.0/src/conf/conf.c:48:21:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		const ssize_t n = read(fd, (void *)buf, sizeof(buf));
data/libre-1.1.0/src/dns/cstr.c:31: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).
	len = (uint8_t)strlen(str);
data/libre-1.1.0/src/dns/win32/srv.c:76:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	while (pIPAddr && strlen(pIPAddr->IpAddress.String) > 0) {
data/libre-1.1.0/src/fmt/pl.c:36: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).
	pl->l = strlen(str);
data/libre-1.1.0/src/fmt/print.c:440: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).
			err |= write_padded(addr, strlen(addr), pad, ' ',
data/libre-1.1.0/src/fmt/print.c:461: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).
			err |= write_padded(addr, strlen(addr), pad, ' ',
data/libre-1.1.0/src/fmt/str.c:29: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 (!hex || !str || (strlen(str) != (2 * len)))
data/libre-1.1.0/src/fmt/str.c:53:8:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	(void)strncpy(dst, src, n-1);
data/libre-1.1.0/src/fmt/str.c:74: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).
	sz = strlen(src) + 1;
data/libre-1.1.0/src/fmt/str.c:141: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).
	return s ? strlen(s) : 0;
data/libre-1.1.0/src/http/client.c:587:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (re_regex(uri, strlen(uri), "[a-z]+://[^:/]+[:]*[0-9]*[^]+",
data/libre-1.1.0/src/ice/ice.h:62:7:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	bool mismatch;               /**< ICE mismatch flag                  */
data/libre-1.1.0/src/ice/icem.c:435:22:  [1] (buffer) mismatch:
  Function does not check the second iterator for over-read conditions
  (CWE-126). This function is often discouraged by most C++ coding standards
  in favor of its safer alternatives provided since C++14. Consider using a
  form of this function that checks the second iterator before potentially
  overflowing it.
	return icem ? icem->mismatch : true;
data/libre-1.1.0/src/ice/icesdp.c:200: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).
	err = re_regex(val, strlen(val),
data/libre-1.1.0/src/ice/stunsrv.c:173: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).
			   (uint8_t *)icem->lpwd, strlen(icem->lpwd), true, 1,
data/libre-1.1.0/src/ice/stunsrv.c:195:52:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	err = stun_msg_chk_mi(req, (uint8_t *)icem->lpwd, strlen(icem->lpwd));
data/libre-1.1.0/src/ice/stunsrv.c:207: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).
	err = re_regex(attr->v.username, strlen(attr->v.username),
data/libre-1.1.0/src/ice/stunsrv.c:261: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).
			  (uint8_t *)icem->lpwd, strlen(icem->lpwd), true, 2,
data/libre-1.1.0/src/mbuf/mbuf.c:304: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).
	return mbuf_write_mem(mb, (const uint8_t *)str, strlen(str));
data/libre-1.1.0/src/mod/mod.c:82:21:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (re_regex(name, strlen(name), "[/]*[^./]+" MOD_EXT, NULL, &x))
data/libre-1.1.0/src/mqueue/mqueue.h:15:9:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return read(s, buf, len);
data/libre-1.1.0/src/rtmp/conn.c:816:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (re_regex(uri, strlen(uri), "[a-z]+://[^/]+/[^]+",
data/libre-1.1.0/src/rtp/pkt.c:184: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).
			err |= mbuf_write_u8(mb, strlen(reason));
data/libre-1.1.0/src/rtp/sdes.c:58: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(v); /* note: max 255 chars */
data/libre-1.1.0/src/sa/ntop.c:136: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).
			tp += strlen(tp);
data/libre-1.1.0/src/sdp/util.c:29:20:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	if (re_regex(val, strlen(val), "[0-9]+[/]*[a-z]* [^ ]+[ ]*[^ ]*",
data/libre-1.1.0/src/stun/dnsdisc.c:244: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).
	dns->port = service[strlen(service)-1] == 's' ? STUNS_PORT : STUN_PORT;
data/libre-1.1.0/src/sys/daemon.c:48:8:  [1] (access) umask:
  Ensure that umask is given most restrictive possible setting (e.g., 066 or
  077) (CWE-732).
	(void)umask(0);
data/libre-1.1.0/src/sys/sleep.c:43:8:  [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.
	(void)usleep(us);
data/libre-1.1.0/src/sys/sys.c:46: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).
	err = re_regex(u.release, strlen(u.release),
data/libre-1.1.0/src/tcp/tcp.c:335:10:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
				goto read;
data/libre-1.1.0/src/tcp/tcp.c:368:2:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
 read:
data/libre-1.1.0/src/tls/openssl/tls.c:62: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 (size < (int)strlen(tls->pass)+1)
data/libre-1.1.0/src/tls/openssl/tls.c:65:2:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
	strncpy(buf, tls->pass, size);
data/libre-1.1.0/src/tls/openssl/tls.c:67: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).
	return (int)strlen(tls->pass);
data/libre-1.1.0/src/tls/openssl/tls.c:371:11:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					(int)strlen(cn), -1, 0))
data/libre-1.1.0/src/tls/openssl/tls.c:858:10:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
					    strlen(label), NULL, 0, 0)) {

ANALYSIS SUMMARY:

Hits = 157
Lines analyzed = 61987 in approximately 1.22 seconds (50709 lines/second)
Physical Source Lines of Code (SLOC) = 39774
Hits@level = [0]   9 [1]  38 [2] 109 [3]   8 [4]   2 [5]   0
Hits@level+ = [0+] 166 [1+] 157 [2+] 119 [3+]  10 [4+]   2 [5+]   0
Hits/KSLOC@level+ = [0+] 4.17358 [1+] 3.9473 [2+] 2.9919 [3+] 0.251421 [4+] 0.0502841 [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.