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/librtr-0.6.3/doxygen/examples/rtr_mgr.c
Examining data/librtr-0.6.3/doxygen/examples/ssh_tr.c
Examining data/librtr-0.6.3/rtrlib/lib/alloc_utils.c
Examining data/librtr-0.6.3/rtrlib/lib/alloc_utils.h
Examining data/librtr-0.6.3/rtrlib/lib/alloc_utils_private.h
Examining data/librtr-0.6.3/rtrlib/lib/convert_byte_order.c
Examining data/librtr-0.6.3/rtrlib/lib/convert_byte_order_private.h
Examining data/librtr-0.6.3/rtrlib/lib/ip.c
Examining data/librtr-0.6.3/rtrlib/lib/ip.h
Examining data/librtr-0.6.3/rtrlib/lib/ip_private.h
Examining data/librtr-0.6.3/rtrlib/lib/ipv4.c
Examining data/librtr-0.6.3/rtrlib/lib/ipv4.h
Examining data/librtr-0.6.3/rtrlib/lib/ipv4_private.h
Examining data/librtr-0.6.3/rtrlib/lib/ipv6.c
Examining data/librtr-0.6.3/rtrlib/lib/ipv6.h
Examining data/librtr-0.6.3/rtrlib/lib/ipv6_private.h
Examining data/librtr-0.6.3/rtrlib/lib/log.c
Examining data/librtr-0.6.3/rtrlib/lib/log_private.h
Examining data/librtr-0.6.3/rtrlib/lib/utils.c
Examining data/librtr-0.6.3/rtrlib/lib/utils_private.h
Examining data/librtr-0.6.3/rtrlib/pfx/pfx.h
Examining data/librtr-0.6.3/rtrlib/pfx/pfx_private.h
Examining data/librtr-0.6.3/rtrlib/pfx/trie/trie-pfx.c
Examining data/librtr-0.6.3/rtrlib/pfx/trie/trie-pfx.h
Examining data/librtr-0.6.3/rtrlib/pfx/trie/trie.c
Examining data/librtr-0.6.3/rtrlib/pfx/trie/trie_private.h
Examining data/librtr-0.6.3/rtrlib/rtr/packets.c
Examining data/librtr-0.6.3/rtrlib/rtr/packets_private.h
Examining data/librtr-0.6.3/rtrlib/rtr/rtr.c
Examining data/librtr-0.6.3/rtrlib/rtr/rtr.h
Examining data/librtr-0.6.3/rtrlib/rtr/rtr_private.h
Examining data/librtr-0.6.3/rtrlib/rtr_mgr.c
Examining data/librtr-0.6.3/rtrlib/rtr_mgr.h
Examining data/librtr-0.6.3/rtrlib/rtr_mgr_private.h
Examining data/librtr-0.6.3/rtrlib/rtrlib_export_private.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/ht-spkitable.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/ht-spkitable_private.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommy.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommy.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyalloc.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyalloc.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyarray.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyarray.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyarrayblk.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyarrayblk.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyarrayblkof.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyarrayblkof.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyarrayof.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyarrayof.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommychain.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyhash.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyhash.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyhashdyn.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyhashdyn.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyhashlin.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyhashlin.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyhashtbl.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommyhashtbl.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommylist.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommylist.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommytrie.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommytrie.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommytrieinp.c
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommytrieinp.h
Examining data/librtr-0.6.3/rtrlib/spki/hashtable/tommyds-1.8/tommytypes.h
Examining data/librtr-0.6.3/rtrlib/spki/spkitable.h
Examining data/librtr-0.6.3/rtrlib/spki/spkitable_private.h
Examining data/librtr-0.6.3/rtrlib/transport/ssh/ssh_transport.c
Examining data/librtr-0.6.3/rtrlib/transport/ssh/ssh_transport.h
Examining data/librtr-0.6.3/rtrlib/transport/ssh/ssh_transport_private.h
Examining data/librtr-0.6.3/rtrlib/transport/tcp/tcp_transport.c
Examining data/librtr-0.6.3/rtrlib/transport/tcp/tcp_transport.h
Examining data/librtr-0.6.3/rtrlib/transport/tcp/tcp_transport_private.h
Examining data/librtr-0.6.3/rtrlib/transport/transport.c
Examining data/librtr-0.6.3/rtrlib/transport/transport.h
Examining data/librtr-0.6.3/rtrlib/transport/transport_private.h
Examining data/librtr-0.6.3/tests/test_dynamic_groups.c
Examining data/librtr-0.6.3/tests/test_getbits.c
Examining data/librtr-0.6.3/tests/test_ht_spkitable.c
Examining data/librtr-0.6.3/tests/test_ht_spkitable_locks.c
Examining data/librtr-0.6.3/tests/test_ipaddr.c
Examining data/librtr-0.6.3/tests/test_live_validation.c
Examining data/librtr-0.6.3/tests/test_pfx.c
Examining data/librtr-0.6.3/tests/test_pfx_locks.c
Examining data/librtr-0.6.3/tests/test_trie.c
Examining data/librtr-0.6.3/tests/unittests/rtrlib_unittests.h
Examining data/librtr-0.6.3/tests/unittests/test_packets.c
Examining data/librtr-0.6.3/tests/unittests/test_packets.h
Examining data/librtr-0.6.3/tests/unittests/test_packets_static.c
Examining data/librtr-0.6.3/tests/unittests/test_packets_static.h
Examining data/librtr-0.6.3/tools/rpki-rov.c
Examining data/librtr-0.6.3/tools/rtrclient.c

FINAL RESULTS:

data/librtr-0.6.3/rtrlib/lib/ipv6.c:179:14:  [4] (buffer) sprintf:
  Does not check for buffer overflows (CWE-120). Use sprintf_s, snprintf, or
  vsnprintf.
        b += sprintf(b, "::%s%d.%d.%d.%d", a[2] ? "ffff:" : "", ((x >> 24) & 0xff), ((x >> 16) & 0xff), ((x >> 8) & 0xff), (x & 0xff));
data/librtr-0.6.3/rtrlib/lib/log.c:41:5:  [4] (format) vprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
    vprintf(frmt, argptr);
data/librtr-0.6.3/rtrlib/lib/log_private.h:17:62:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
void lrtr_dbg(const char *frmt, ...) __attribute__ ((format (printf, 1, 2)));
data/librtr-0.6.3/tools/rpki-rov.c:144: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(ip, input_tok);
data/librtr-0.6.3/tests/test_pfx_locks.c:147: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(time(NULL));
data/librtr-0.6.3/doxygen/examples/rtr_mgr.c:78: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 buffer[INET_ADDRSTRLEN];
data/librtr-0.6.3/rtrlib/lib/alloc_utils.c:54:22:  [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 new_string ? memcpy(new_string, string, length) : NULL;
data/librtr-0.6.3/rtrlib/lib/ipv6.c:193:18:  [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.
            b += sprintf(b, "%x", words[i]);
data/librtr-0.6.3/rtrlib/rtr/packets.c:373: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(((struct pdu_ipv6 *) pdu)->prefix, addr6, sizeof(addr6));
data/librtr-0.6.3/rtrlib/rtr/packets.c:521: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 pdu_converted[len];
data/librtr-0.6.3/rtrlib/rtr/packets.c:522: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(pdu_converted, pdu, len);
data/librtr-0.6.3/rtrlib/rtr/packets.c:611: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(pdu, &header, sizeof(header));
data/librtr-0.6.3/rtrlib/rtr/packets.c:654: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.
        char txt[42];
data/librtr-0.6.3/rtrlib/rtr/packets.c:729: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.
            char txt[len_err_txt + 1];
data/librtr-0.6.3/rtrlib/rtr/packets.c:768: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(entry->ski,pdu->ski,SKI_SIZE);
data/librtr-0.6.3/rtrlib/rtr/packets.c:769: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(entry->spki,pdu->spki,SPKI_SIZE);
data/librtr-0.6.3/rtrlib/rtr/packets.c:864: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(ary_ipv4 + *ind, pdu, pdu_size);
data/librtr-0.6.3/rtrlib/rtr/packets.c:868: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(ary_ipv6 + *ind, pdu, pdu_size);
data/librtr-0.6.3/rtrlib/rtr/packets.c:899: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((struct pdu_router_key *) *ary + *ind, pdu, pdu_size);
data/librtr-0.6.3/rtrlib/rtr/packets.c:926: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.
        char ip[INET6_ADDRSTRLEN];
data/librtr-0.6.3/rtrlib/rtr/packets.c:995: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 pdu[RTR_MAX_PDU_LEN];
data/librtr-0.6.3/rtrlib/rtr/packets.c:1050: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.
                char txt[67];
data/librtr-0.6.3/rtrlib/rtr/packets.c:1238: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 pdu[RTR_MAX_PDU_LEN];
data/librtr-0.6.3/rtrlib/rtr/packets.c:1300: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 pdu[RTR_MAX_PDU_LEN];
data/librtr-0.6.3/rtrlib/rtr/packets.c:1348: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(err_pdu->rest, erroneous_pdu, erroneous_pdu_len);
data/librtr-0.6.3/rtrlib/rtr/packets.c:1352: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(err_pdu->rest + erroneous_pdu_len + 4, err_text, err_text_len);
data/librtr-0.6.3/rtrlib/rtr/packets.c:1385:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char pdu[erroneous_pdu_len];
data/librtr-0.6.3/rtrlib/rtr/packets.c:1386: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(&pdu, erroneous_pdu, erroneous_pdu_len);
data/librtr-0.6.3/rtrlib/rtr_mgr.c:405:3:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
		memcpy(cg, &groups[i], sizeof(struct rtr_mgr_group));
data/librtr-0.6.3/rtrlib/rtr_mgr.c:607: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(new_group, group, sizeof(struct rtr_mgr_group));
data/librtr-0.6.3/rtrlib/spki/hashtable/ht-spkitable.c:57:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(spki_r->ski, key_e->ski, sizeof(key_e->ski));
data/librtr-0.6.3/rtrlib/spki/hashtable/ht-spkitable.c:58:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(spki_r->spki, key_e->spki, sizeof(key_e->spki));
data/librtr-0.6.3/rtrlib/spki/hashtable/ht-spkitable.c:67: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(key_e->ski, spki_r->ski, sizeof(spki_r->ski));
data/librtr-0.6.3/rtrlib/spki/hashtable/ht-spkitable.c:68: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(key_e->spki, spki_r->spki, sizeof(spki_r->spki));
data/librtr-0.6.3/rtrlib/spki/hashtable/ht-spkitable.c:380:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&a->hashtable, &b->hashtable, sizeof(tmp_hashtable));
data/librtr-0.6.3/rtrlib/spki/hashtable/ht-spkitable.c:381:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&a->list, &b->list, sizeof(tmp_list));
data/librtr-0.6.3/rtrlib/spki/hashtable/ht-spkitable.c:383:5:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
    memcpy(&b->hashtable, &tmp_hashtable, sizeof(tmp_hashtable));
data/librtr-0.6.3/rtrlib/spki/hashtable/ht-spkitable.c:384: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(&b->list, &tmp_list, sizeof(tmp_list));
data/librtr-0.6.3/tests/test_getbits.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 buf[INET_ADDRSTRLEN];
data/librtr-0.6.3/tests/test_getbits.c:133:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];
data/librtr-0.6.3/tests/test_ht_spkitable.c:134: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(ski, record->ski, 20);
data/librtr-0.6.3/tests/test_ipaddr.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 buf[INET_ADDRSTRLEN];
data/librtr-0.6.3/tests/test_ipaddr.c:79:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-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];
data/librtr-0.6.3/tests/test_pfx.c:403:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip[INET6_ADDRSTRLEN];
data/librtr-0.6.3/tests/unittests/test_packets_static.c:296: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(&pdu_serial_network,
data/librtr-0.6.3/tools/rpki-rov.c:35: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 input[256];
data/librtr-0.6.3/tools/rpki-rov.c: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 input[256];
data/librtr-0.6.3/tools/rpki-rov.c:100:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip[128];
data/librtr-0.6.3/tools/rpki-rov.c:146: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).
		mask = atoi(input_tok);
data/librtr-0.6.3/tools/rpki-rov.c:147:43:  [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).
		input_tok = strtok(NULL, delims); asn = atoi(input_tok);
data/librtr-0.6.3/tools/rpki-rov.c:176:5:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
				char tmp[100];
data/librtr-0.6.3/tools/rtrclient.c:56:2:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
	char ip[INET6_ADDRSTRLEN];
data/librtr-0.6.3/tools/rtrclient.c:190:24:  [2] (integer) atoi:
  Unless checked, the resulting number can exceed the expected range
  (CWE-190). If source untrusted, check both minimum and maximum, even if the
  input had no minus sign (large numbers can roll over into negative number;
  consider saving to an unsigned value if that is intended).
		unsigned int iport = atoi(port);
data/librtr-0.6.3/rtrlib/lib/alloc_utils.c:51: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 length = strlen(string) + 1;
data/librtr-0.6.3/rtrlib/rtr/packets.c:1052:99:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
                rtr_send_error_pdu_from_host(rtr_socket, pdu, RTR_MAX_PDU_LEN, CORRUPT_DATA, txt, strlen(txt) + 1);
data/librtr-0.6.3/rtrlib/rtr/packets.c:1361: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).
    return rtr_send_error_pdu(rtr_socket, pdu, RTR_MAX_PDU_LEN, CORRUPT_DATA, txt, strlen(txt) + 1);
data/librtr-0.6.3/rtrlib/transport/ssh/ssh_transport.c:200: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(sock->config.username) + 1 + strlen(sock->config.host) + 1 +
data/librtr-0.6.3/rtrlib/transport/ssh/ssh_transport.c:200: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).
    len = strlen(sock->config.username) + 1 + strlen(sock->config.host) + 1 +
data/librtr-0.6.3/rtrlib/transport/tcp/tcp_transport.c:189: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(sock->config.port) + strlen(sock->config.host) + 2;
data/librtr-0.6.3/rtrlib/transport/tcp/tcp_transport.c:189: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).
    len = strlen(sock->config.port) + strlen(sock->config.host) + 2;
data/librtr-0.6.3/tests/test_pfx_locks.c:57:3:  [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(rand() / (RAND_MAX / 20));
data/librtr-0.6.3/tests/test_pfx_locks.c:93:3:  [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(rand() / (RAND_MAX / 20));
data/librtr-0.6.3/tests/test_pfx_locks.c:128:3:  [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(rand() / (RAND_MAX / 20));
data/librtr-0.6.3/tests/test_pfx_locks.c:162:3:  [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(200);
data/librtr-0.6.3/tools/rpki-rov.c:120: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).
		input_len = strlen(input) - 1;
data/librtr-0.6.3/tools/rtrclient.c:126: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 (strncasecmp(argv[1], "tcp", strlen(argv[1])) == 0) {
data/librtr-0.6.3/tools/rtrclient.c:128: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).
	} else if (strncasecmp(argv[1], "ssh", strlen(argv[1])) == 0) {

ANALYSIS SUMMARY:

Hits = 67
Lines analyzed = 16227 in approximately 0.54 seconds (30221 lines/second)
Physical Source Lines of Code (SLOC) = 8762
Hits@level = [0] 111 [1]  14 [2]  48 [3]   1 [4]   4 [5]   0
Hits@level+ = [0+] 178 [1+]  67 [2+]  53 [3+]   5 [4+]   4 [5+]   0
Hits/KSLOC@level+ = [0+] 20.315 [1+] 7.64666 [2+] 6.04885 [3+] 0.570646 [4+] 0.456517 [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.