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/zurl-1.11.0/tests/websockettest/websockettest.cpp
Examining data/zurl-1.11.0/tests/httprequesttest/httprequesttest.cpp
Examining data/zurl-1.11.0/src/main.cpp
Examining data/zurl-1.11.0/src/httprequest.cpp
Examining data/zurl-1.11.0/src/worker.h
Examining data/zurl-1.11.0/src/addressresolver.h
Examining data/zurl-1.11.0/src/app.cpp
Examining data/zurl-1.11.0/src/verifyhost.h
Examining data/zurl-1.11.0/src/websocket.h
Examining data/zurl-1.11.0/src/qzmq/src/qzmqcontext.h
Examining data/zurl-1.11.0/src/qzmq/src/qzmqsocket.cpp
Examining data/zurl-1.11.0/src/qzmq/src/qzmqsocket.h
Examining data/zurl-1.11.0/src/qzmq/src/qzmqreprouter.h
Examining data/zurl-1.11.0/src/qzmq/src/qzmqreprouter.cpp
Examining data/zurl-1.11.0/src/qzmq/src/qzmqcontext.cpp
Examining data/zurl-1.11.0/src/qzmq/src/qzmqreqmessage.h
Examining data/zurl-1.11.0/src/qzmq/src/qzmqvalve.h
Examining data/zurl-1.11.0/src/qzmq/src/qzmqvalve.cpp
Examining data/zurl-1.11.0/src/qzmq/examples/helloserver/helloserver.cpp
Examining data/zurl-1.11.0/src/qzmq/examples/helloclient/helloclient.cpp
Examining data/zurl-1.11.0/src/worker.cpp
Examining data/zurl-1.11.0/src/appconfig.h
Examining data/zurl-1.11.0/src/jdns/tools/jdns/main.cpp
Examining data/zurl-1.11.0/src/jdns/tools/jdns/main.h
Examining data/zurl-1.11.0/src/jdns/include/jdns/jdns.h
Examining data/zurl-1.11.0/src/jdns/include/jdns/qjdnsshared.h
Examining data/zurl-1.11.0/src/jdns/include/jdns/qjdns.h
Examining data/zurl-1.11.0/src/jdns/include/jdns/jdns_export.h
Examining data/zurl-1.11.0/src/jdns/src/qjdns/qjdns_sock.h
Examining data/zurl-1.11.0/src/jdns/src/qjdns/qjdns_p.h
Examining data/zurl-1.11.0/src/jdns/src/qjdns/qjdnsshared_p.h
Examining data/zurl-1.11.0/src/jdns/src/qjdns/qjdns.cpp
Examining data/zurl-1.11.0/src/jdns/src/qjdns/qjdns_sock.cpp
Examining data/zurl-1.11.0/src/jdns/src/qjdns/qjdnsshared.cpp
Examining data/zurl-1.11.0/src/jdns/src/jdns/jdns_mdnsd.c
Examining data/zurl-1.11.0/src/jdns/src/jdns/jdns_mdnsd.h
Examining data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c
Examining data/zurl-1.11.0/src/jdns/src/jdns/jdns_p.h
Examining data/zurl-1.11.0/src/jdns/src/jdns/jdns.c
Examining data/zurl-1.11.0/src/jdns/src/jdns/jdns_packet.c
Examining data/zurl-1.11.0/src/jdns/src/jdns/jdns_packet.h
Examining data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c
Examining data/zurl-1.11.0/src/addressresolver.cpp
Examining data/zurl-1.11.0/src/websocket.cpp
Examining data/zurl-1.11.0/src/httprequest.h
Examining data/zurl-1.11.0/src/verifyhost.cpp
Examining data/zurl-1.11.0/src/common/tests/httpheaderstest/httpheaderstest.cpp
Examining data/zurl-1.11.0/src/common/bufferlist.cpp
Examining data/zurl-1.11.0/src/common/zhttprequestpacket.cpp
Examining data/zurl-1.11.0/src/common/zhttpresponsepacket.cpp
Examining data/zurl-1.11.0/src/common/processquit.h
Examining data/zurl-1.11.0/src/common/tnetstring.cpp
Examining data/zurl-1.11.0/src/common/processquit.cpp
Examining data/zurl-1.11.0/src/common/log.cpp
Examining data/zurl-1.11.0/src/common/httpheaders.cpp
Examining data/zurl-1.11.0/src/common/zhttprequestpacket.h
Examining data/zurl-1.11.0/src/common/log.h
Examining data/zurl-1.11.0/src/common/httpheaders.h
Examining data/zurl-1.11.0/src/common/tnetstring.h
Examining data/zurl-1.11.0/src/common/layertracker.h
Examining data/zurl-1.11.0/src/common/zhttpresponsepacket.h
Examining data/zurl-1.11.0/src/common/bufferlist.h
Examining data/zurl-1.11.0/src/common/layertracker.cpp
Examining data/zurl-1.11.0/src/app.h

FINAL RESULTS:

data/zurl-1.11.0/src/common/log.cpp:66:7:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
		str.vsprintf(fmt, ap);
data/zurl-1.11.0/src/common/tnetstring.cpp:373:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			out += QString().sprintf("\\x%02x", (unsigned char)c);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:101:9:  [4] (format) vsprintf:
  Potential format string problem (CWE-134). Make format string constant.
	return vsprintf(str, format, ap);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:162:9:  [4] (buffer) strcpy:
  Does not check for buffer overflows when copying to destination [MS-banned]
  (CWE-120). Consider using snprintf, strcpy_s, or strlcpy (warning: strncpy
  easily misused).
	return strcpy(dst, src);
data/zurl-1.11.0/src/jdns/src/qjdns/qjdnsshared.cpp:104:6:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
	str.sprintf("%02x", in);
data/zurl-1.11.0/src/jdns/tools/jdns/main.cpp:40:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
			out += QString().sprintf("\\x%02x", (unsigned int)c);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:143:8:  [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.
	val = getenv(name);
data/zurl-1.11.0/src/app.cpp:324: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(!file.open(QIODevice::ReadOnly))
data/zurl-1.11.0/src/app.cpp:470:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			in_valve->open();
data/zurl-1.11.0/src/app.cpp:472:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			in_req_valve->open();
data/zurl-1.11.0/src/app.cpp:784:14:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			in_valve->open();
data/zurl-1.11.0/src/app.cpp:786:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
			in_req_valve->open();
data/zurl-1.11.0/src/common/bufferlist.cpp:91:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(outp, buf.data() + offset, bsize);
data/zurl-1.11.0/src/common/bufferlist.cpp:151: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(outp, buf.data() + offset_, bsize);
data/zurl-1.11.0/src/common/log.cpp:131:12:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
	FILE *f = fopen(fname.toLocal8Bit().data(), "a");
data/zurl-1.11.0/src/httprequest.cpp:425: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(p, buf.data(), buf.size());
data/zurl-1.11.0/src/jdns/src/jdns/jdns.c:132: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, in, len);
data/zurl-1.11.0/src/jdns/src/jdns/jdns.c:140: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, in, len);
data/zurl-1.11.0/src/jdns/src/jdns/jdns.c:295:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char line[67]; // 3 * 16 + 2 + 16 + zero byte
data/zurl-1.11.0/src/jdns/src/jdns/jdns.c:403:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(buf + 2, str->data, str->size);
data/zurl-1.11.0/src/jdns/src/jdns/jdns.c:1016: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(&s->cb, callbacks, sizeof(jdns_callbacks_t));
data/zurl-1.11.0/src/jdns/src/jdns/jdns.c:2231:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char buf[JDNS_UDP_UNI_IN_MAX];
data/zurl-1.11.0/src/jdns/src/jdns/jdns.c:3021: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 + at, texts->item[n]->data, len);
data/zurl-1.11.0/src/jdns/src/jdns/jdns.c:3377:13:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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[JDNS_UDP_MUL_IN_MAX];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_mdnsd.c:80:14:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    unsigned char to6[16];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_mdnsd.c:329:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(u->to6, addr->addr.v6, 16);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_packet.c:140: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 out[MAX_LABEL_LENGTH - 1];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_packet.c:210: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 + out_size, label + 1, label_size);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_packet.c:367: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(label + i, name->data + at, len);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_packet.c:381: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 label[MAX_LABEL_LENGTH];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_packet.c:423: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(*bufp, label, len);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_packet.c:767: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, write->value->data, write->value->size);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:137: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 defdname[256];		/* default domain (deprecated) */
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:186: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, in + at, len);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:239: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 + pos, data, size);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:399: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 String[4 * 4];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:408:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
    char HostName[MAX_HOSTNAME_LEN + 4] ;
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:409: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 DomainName[MAX_DOMAIN_NAME_LEN + 4];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:413: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 ScopeId[MAX_SCOPE_ID_LEN + 4];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:603: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, e->data, elen);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:745:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_value[PROP_VALUE_MAX];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:746:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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_name[PROP_NAME_MAX];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:752:3:  [2] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf. Risk is low because the source has a constant maximum length.
		sprintf(prop_name, "net.dns%d", i + 1);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:53: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, s, len);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:63: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, src, size);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:113:9:  [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).
	return fopen(path, mode);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:365: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(s->data, str, str_len);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:498: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(a->addr.v6, ipv6, 16);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:516:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char ipv6[16];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:611:12:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
		unsigned char b[4];
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:631: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(part, p, len);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:1285: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(&ip, pr->rdata, 4);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:1312: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(&priority, pr->rdata, 2);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:1328: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(&priority, pr->rdata, 2);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:1330: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(&weight, pr->rdata + 2, 2);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:1332:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(&port, pr->rdata + 4, 2);
data/zurl-1.11.0/src/jdns/src/qjdns/qjdns_sock.cpp:55:17:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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  _S6_u8[16];
data/zurl-1.11.0/src/jdns/src/qjdns/qjdns_sock.cpp:110: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(mc.ipv6mr_multiaddr.s6_addr, addr, 16);
data/zurl-1.11.0/src/qzmq/src/qzmqsocket.cpp:372: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(zmq_msg_data(&msg), buf.data(), buf.size());
data/zurl-1.11.0/src/qzmq/src/qzmqsocket.cpp:431: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(zmq_msg_data(&msg), buf.data(), buf.size());
data/zurl-1.11.0/src/qzmq/src/qzmqvalve.cpp:99: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).
void Valve::open()
data/zurl-1.11.0/src/qzmq/src/qzmqvalve.h:43: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).
	void open();
data/zurl-1.11.0/src/verifyhost.cpp:417:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy(peer_CN, ASN1_STRING_data(tmp), j);
data/zurl-1.11.0/src/verifyhost.cpp:419:15:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
              memcpy(peer_CN, ASN1_STRING_get0_data(tmp), j);
data/zurl-1.11.0/src/websocket.cpp:143:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(p, mask.data(), 4);
data/zurl-1.11.0/src/websocket.cpp:150: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, payload.data(), payloadSize);
data/zurl-1.11.0/src/websocket.cpp:237: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(payload.data(), p, payloadSize);
data/zurl-1.11.0/src/websocket.cpp:501: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(data.data() + 2, rawReason.data(), rawReason.size());
data/zurl-1.11.0/src/app.cpp:702:47:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		QList<QByteArray> message = in_stream_sock->read();
data/zurl-1.11.0/src/common/processquit.cpp:226:8:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		if(::read(sig_pipe[0], &c, 1) == -1)
data/zurl-1.11.0/src/jdns/src/jdns/jdns.c:115:53:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	return _make_printable((const unsigned char *)str, strlen(str));
data/zurl-1.11.0/src/jdns/src/jdns/jdns_mdnsd.c:170: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).
    len = strlen(low);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_p.h:94: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).
#define _ustrlen(str) strlen((const char *)str)
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:274:21:  [1] (buffer) fgetc:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		unsigned char c = fgetc(f);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:600: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).
	elen = strlen((char *)e->data);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:601: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).
	plen = strlen(path);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:863:5:  [1] (buffer) strlen:
  Does not handle 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(RESVAR.defdname) > 0)
data/zurl-1.11.0/src/jdns/src/jdns/jdns_sys.c:880: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(RESVAR.dnsrch[n]) > 0)
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:51: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(s) + 1; // the zero
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:157: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(src);
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:372:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
	jdns_string_set(s, (const unsigned char *)str, strlen(str));
data/zurl-1.11.0/src/jdns/src/jdns/jdns_util.c:509: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).
	int slen = strlen(str);
data/zurl-1.11.0/src/qzmq/examples/helloclient/helloclient.cpp:36:33:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		QList<QByteArray> resp = sock.read();
data/zurl-1.11.0/src/qzmq/examples/helloserver/helloserver.cpp:28:31:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
		QZmq::ReqMessage msg = sock.read();
data/zurl-1.11.0/src/qzmq/src/qzmqreprouter.cpp:91:23:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
ReqMessage RepRouter::read()
data/zurl-1.11.0/src/qzmq/src/qzmqreprouter.cpp:93:29:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return ReqMessage(d->sock->read());
data/zurl-1.11.0/src/qzmq/src/qzmqreprouter.h:48:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	ReqMessage read();
data/zurl-1.11.0/src/qzmq/src/qzmqsocket.cpp:329:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	QList<QByteArray> read()
data/zurl-1.11.0/src/qzmq/src/qzmqsocket.cpp:643:27:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
QList<QByteArray> Socket::read()
data/zurl-1.11.0/src/qzmq/src/qzmqsocket.cpp:645:12:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	return d->read();
data/zurl-1.11.0/src/qzmq/src/qzmqsocket.h:93:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
	QList<QByteArray> read();
data/zurl-1.11.0/src/qzmq/src/qzmqvalve.cpp:62:34:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
			QList<QByteArray> msg = sock->read();
data/zurl-1.11.0/src/verifyhost.cpp:179:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
  size_t len = strlen(hostname);
data/zurl-1.11.0/src/verifyhost.cpp:182: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(pattern);
data/zurl-1.11.0/src/verifyhost.cpp:339:25:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
          if((altlen == strlen(altptr)) &&
data/zurl-1.11.0/src/verifyhost.cpp:428: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(peer_CN && (curlx_uztosi(strlen((char *)peer_CN)) != j)) {
data/zurl-1.11.0/src/verifyhost.cpp:441: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).
      CURLcode rc = Curl_convert_from_utf8(NULL /*safe*/, peer_CN, strlen((char *)peer_CN));

ANALYSIS SUMMARY:

Hits = 97
Lines analyzed = 24296 in approximately 0.57 seconds (42541 lines/second)
Physical Source Lines of Code (SLOC) = 17792
Hits@level = [0]  83 [1]  29 [2]  61 [3]   1 [4]   6 [5]   0
Hits@level+ = [0+] 180 [1+]  97 [2+]  68 [3+]   7 [4+]   6 [5+]   0
Hits/KSLOC@level+ = [0+] 10.1169 [1+] 5.45189 [2+] 3.82194 [3+] 0.393435 [4+] 0.33723 [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.