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/daq-3.0.0-alpha5/test/mock_stdio.c
Examining data/daq-3.0.0-alpha5/test/api_config_test.c
Examining data/daq-3.0.0-alpha5/test/daq_test_module.c
Examining data/daq-3.0.0-alpha5/test/mock_stdio.h
Examining data/daq-3.0.0-alpha5/test/daq_test_module.h
Examining data/daq-3.0.0-alpha5/test/api_base_test.c
Examining data/daq-3.0.0-alpha5/example/netinet_compat.h
Examining data/daq-3.0.0-alpha5/example/daqtest.c
Examining data/daq-3.0.0-alpha5/api/daq_instance_api_defaults.c
Examining data/daq-3.0.0-alpha5/api/daq.h
Examining data/daq-3.0.0-alpha5/api/daq_common.h
Examining data/daq-3.0.0-alpha5/api/daq_instance_api_defaults.h
Examining data/daq-3.0.0-alpha5/api/daq_dlt.h
Examining data/daq-3.0.0-alpha5/api/daq_config.c
Examining data/daq-3.0.0-alpha5/api/daq_module_api.h
Examining data/daq-3.0.0-alpha5/api/daq_api_internal.h
Examining data/daq-3.0.0-alpha5/api/daq_base.c
Examining data/daq-3.0.0-alpha5/api/daq_mod_ops.c
Examining data/daq-3.0.0-alpha5/api/daq_base_api.c
Examining data/daq-3.0.0-alpha5/api/daq_version.h
Examining data/daq-3.0.0-alpha5/modules/dump/daq_dump.c
Examining data/daq-3.0.0-alpha5/modules/divert/daq_divert.c
Examining data/daq-3.0.0-alpha5/modules/trace/daq_trace.c
Examining data/daq-3.0.0-alpha5/modules/bpf/daq_bpf.c
Examining data/daq-3.0.0-alpha5/modules/pcap/daq_pcap.c
Examining data/daq-3.0.0-alpha5/modules/fst/PMurHash.h
Examining data/daq-3.0.0-alpha5/modules/fst/PMurHash.c
Examining data/daq-3.0.0-alpha5/modules/fst/daq_fst.cc
Examining data/daq-3.0.0-alpha5/modules/nfq/daq_nfq.c
Examining data/daq-3.0.0-alpha5/modules/afpacket/daq_afpacket.c
Examining data/daq-3.0.0-alpha5/modules/netmap/daq_netmap.c

FINAL RESULTS:

data/daq-3.0.0-alpha5/api/daq_api_internal.h:31:50:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define DEBUG(...) do { if (daq_verbosity > 0) { printf(__VA_ARGS__); } } while (0)
data/daq-3.0.0-alpha5/api/daq_api_internal.h:36:103:  [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 daq_instance_set_errbuf(DAQ_Instance_h instance, const char *format, ...) __attribute__((format (printf, 2, 3)));
data/daq-3.0.0-alpha5/api/daq_mod_ops.c:129:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(instance->errbuf, sizeof(instance->errbuf), format, ap);
data/daq-3.0.0-alpha5/api/daq_mod_ops.c:136:5:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    vsnprintf(instance->errbuf, sizeof(instance->errbuf), format, ap);
data/daq-3.0.0-alpha5/api/daq_module_api.h:91:103:  [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 (*set_errbuf) (DAQ_ModuleInstance_h modinst, const char *format, ...) __attribute__((format (printf, 2, 3)));
data/daq-3.0.0-alpha5/modules/fst/daq_fst.cc:34:21:  [4] (format) printf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
#define debugf(...) printf(__VA_ARGS__)
data/daq-3.0.0-alpha5/test/mock_stdio.c:98:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        ret = vsnprintf(stdout_mock_buffer + stdout_mock_buffer_pos, sizeof(stdout_mock_buffer) - stdout_mock_buffer_pos, format, args);
data/daq-3.0.0-alpha5/test/mock_stdio.c:110:15:  [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.
        ret = vprintf(format, args);
data/daq-3.0.0-alpha5/test/mock_stdio.c:152:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        ret = vsnprintf(stdout_mock_buffer + stdout_mock_buffer_pos, sizeof(stdout_mock_buffer) - stdout_mock_buffer_pos, format, args);
data/daq-3.0.0-alpha5/test/mock_stdio.c:165:15:  [4] (format) vsnprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
        ret = vsnprintf(stderr_mock_buffer + stderr_mock_buffer_pos, sizeof(stderr_mock_buffer) - stderr_mock_buffer_pos, format, args);
data/daq-3.0.0-alpha5/test/mock_stdio.c:177:15:  [4] (format) vfprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
        ret = vfprintf(file, format, args);
data/daq-3.0.0-alpha5/example/daqtest.c:266:5:  [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) + getpid());   /* seed the RNG */
data/daq-3.0.0-alpha5/example/daqtest.c:1077:18:  [3] (buffer) getopt:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((ch = getopt(argc, argv, options)) != -1)
data/daq-3.0.0-alpha5/api/daq_base.c:56: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 *daq_verdict_strings[MAX_DAQ_VERDICT] = {
data/daq-3.0.0-alpha5/api/daq_base.c:66: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 *daq_mode_strings[MAX_DAQ_MODE] = {
data/daq-3.0.0-alpha5/api/daq_base.c:73: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 *daq_state_strings[MAX_DAQ_STATE] = {
data/daq-3.0.0-alpha5/api/daq_base.c:251: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 dirpath[NAME_SIZE];
data/daq-3.0.0-alpha5/api/daq_mod_ops.c:60: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 errbuf[DAQ_ERRBUF_SIZE];
data/daq-3.0.0-alpha5/example/daqtest.c:196:7:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
const char *ping_action_strings[MAX_PING_ACTION+1] =
data/daq-3.0.0-alpha5/example/daqtest.c:301: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(data, fake_ping_data + offset, dlen);
data/daq-3.0.0-alpha5/example/daqtest.c:307: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(data, normal_ping_data + offset, dlen);
data/daq-3.0.0-alpha5/example/daqtest.c:337: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(eth_reply->ether_dhost, eth_request->ether_shost, ETHER_ADDR_LEN);
data/daq-3.0.0-alpha5/example/daqtest.c:338: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(eth_reply->ether_shost, mac_addr, ETHER_ADDR_LEN);
data/daq-3.0.0-alpha5/example/daqtest.c:339: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(reply + ETHER_ADDR_LEN * 2, request + ETHER_ADDR_LEN * 2, arphdr_offset - ETHER_ADDR_LEN * 2);
data/daq-3.0.0-alpha5/example/daqtest.c:344: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(&etharp_reply->ea_hdr, &etharp_request->ea_hdr, sizeof(EthArpHdr));
data/daq-3.0.0-alpha5/example/daqtest.c:348: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(etharp_reply->arp_sha, mac_addr, ETHER_ADDR_LEN);
data/daq-3.0.0-alpha5/example/daqtest.c:349: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(etharp_reply->arp_spa, etharp_request->arp_tpa, 4);
data/daq-3.0.0-alpha5/example/daqtest.c:350: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(etharp_reply->arp_tha, etharp_request->arp_sha, ETHER_ADDR_LEN);
data/daq-3.0.0-alpha5/example/daqtest.c:351: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(etharp_reply->arp_tpa, etharp_request->arp_spa, 4);
data/daq-3.0.0-alpha5/example/daqtest.c:372: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(eth_reply->ether_dhost, eth_request->ether_shost, ETHER_ADDR_LEN);
data/daq-3.0.0-alpha5/example/daqtest.c:373: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(eth_reply->ether_shost, eth_request->ether_dhost, ETHER_ADDR_LEN);
data/daq-3.0.0-alpha5/example/daqtest.c:374: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(reply + ETHER_ADDR_LEN * 2, request + ETHER_ADDR_LEN * 2, iphdr_offset - ETHER_ADDR_LEN * 2);
data/daq-3.0.0-alpha5/example/daqtest.c:411: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(icmp_reply + 1, icmp_request + 1, dlen);
data/daq-3.0.0-alpha5/example/daqtest.c:559: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(&addr.s_addr, etharp->arp_spa, 4);
data/daq-3.0.0-alpha5/example/daqtest.c:564: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(&addr.s_addr, etharp->arp_tpa, 4);
data/daq-3.0.0-alpha5/example/daqtest.c:593: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 src_addr_str[INET6_ADDRSTRLEN], dst_addr_str[INET6_ADDRSTRLEN];
data/daq-3.0.0-alpha5/example/daqtest.c:623: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 src_addr_str[INET_ADDRSTRLEN], dst_addr_str[INET_ADDRSTRLEN];
data/daq-3.0.0-alpha5/example/daqtest.c:804: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 src_addr_str[INET6_ADDRSTRLEN], dst_addr_str[INET6_ADDRSTRLEN];
data/daq-3.0.0-alpha5/example/daqtest.c:883: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 addr_str[INET6_ADDRSTRLEN];
data/daq-3.0.0-alpha5/example/daqtest.c:886: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 timestr[64];
data/daq-3.0.0-alpha5/example/daqtest.c:1357: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 addr_str[INET_ADDRSTRLEN];
data/daq-3.0.0-alpha5/example/daqtest.c:1473: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.
    const char *recv_status_string[MAX_DAQ_RSTAT] = {
data/daq-3.0.0-alpha5/example/daqtest.c:1631: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 errbuf[256];
data/daq-3.0.0-alpha5/modules/afpacket/daq_afpacket.c:797: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 intf[IFNAMSIZ];
data/daq-3.0.0-alpha5/modules/afpacket/daq_afpacket.c:1078:13:  [2] (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->hdr.raw + TPACKET_ALIGN(egress->tp_hdrlen), packet_data, len);
data/daq-3.0.0-alpha5/modules/afpacket/daq_afpacket.c:1210: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(stats, &afpc->stats, sizeof(DAQ_Stats_t));
data/daq-3.0.0-alpha5/modules/afpacket/daq_afpacket.c:1433: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(desc->data, data, tp_snaplen);
data/daq-3.0.0-alpha5/modules/fst/daq_fst.cc: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(pkthdr, orig_pkthdr, sizeof(desc->pkthdr));
data/daq-3.0.0-alpha5/modules/fst/daq_fst.cc:454:21:  [2] (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->ha_state, fhs->data, entry->ha_state_len);
data/daq-3.0.0-alpha5/modules/netmap/daq_netmap.c:245: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).
    instance->fd = open("/dev/netmap", O_RDWR);
data/daq-3.0.0-alpha5/modules/netmap/daq_netmap.c:384: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 intf[IFNAMSIZ];
data/daq-3.0.0-alpha5/modules/netmap/daq_netmap.c:719: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(stats, &nmc->stats, sizeof(DAQ_Stats_t));
data/daq-3.0.0-alpha5/modules/netmap/daq_netmap.c:899: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(desc->data, data, len);
data/daq-3.0.0-alpha5/modules/nfq/daq_nfq.c:659: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(stats, &nfqc->stats, sizeof(DAQ_Stats_t));
data/daq-3.0.0-alpha5/modules/pcap/daq_pcap.c:73: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 pcap_errbuf[PCAP_ERRBUF_SIZE];
data/daq-3.0.0-alpha5/modules/pcap/daq_pcap.c:296:22:  [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).
            pc->fp = fopen(daq_base_api.config_get_input(modcfg), "rb");
data/daq-3.0.0-alpha5/modules/pcap/daq_pcap.c:531: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(stats, &pc->stats, sizeof(DAQ_Stats_t));
data/daq-3.0.0-alpha5/modules/pcap/daq_pcap.c:694: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(desc->data, data, caplen);
data/daq-3.0.0-alpha5/modules/trace/daq_trace.c:214:19:  [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).
    tc->outfile = fopen(filename, "w");
data/daq-3.0.0-alpha5/modules/trace/daq_trace.c:381: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 src_addr_str[INET6_ADDRSTRLEN], dst_addr_str[INET6_ADDRSTRLEN];
data/daq-3.0.0-alpha5/modules/trace/daq_trace.c:476: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 *daq_verdict_strings[MAX_DAQ_VERDICT] = {
data/daq-3.0.0-alpha5/test/api_base_test.c:238: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(&test1_module, &test_module, sizeof(DAQ_ModuleAPI_t));
data/daq-3.0.0-alpha5/test/api_base_test.c:242: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(&test2_module, &test_module, sizeof(DAQ_ModuleAPI_t));
data/daq-3.0.0-alpha5/test/api_base_test.c:246: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(&test3_module, &test_module, sizeof(DAQ_ModuleAPI_t));
data/daq-3.0.0-alpha5/test/api_base_test.c:251: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(&test4_module, &test_module, sizeof(DAQ_ModuleAPI_t));
data/daq-3.0.0-alpha5/test/mock_stdio.c:33:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char stdout_mock_buffer[4096];
data/daq-3.0.0-alpha5/test/mock_stdio.c:36:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char stderr_mock_buffer[4096];
data/daq-3.0.0-alpha5/example/daqtest.c:751:9:  [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(cfg->delay * 1000);
data/daq-3.0.0-alpha5/modules/afpacket/daq_afpacket.c:387:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(ifr.ifr_name, device, sizeof(ifr.ifr_name));
data/daq-3.0.0-alpha5/modules/afpacket/daq_afpacket.c:825:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (*dev == ':' || ((len = strlen(dev)) > 0 && *(dev + len - 1) == ':') ||
data/daq-3.0.0-alpha5/modules/netmap/daq_netmap.c:255:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(req->nr_name, device, sizeof(req->nr_name));
data/daq-3.0.0-alpha5/modules/netmap/daq_netmap.c:411:32:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (*dev == ':' || ((len = strlen(dev)) > 0 && *(dev + len - 1) == ':') || 

ANALYSIS SUMMARY:

Hits = 72
Lines analyzed = 14058 in approximately 0.46 seconds (30545 lines/second)
Physical Source Lines of Code (SLOC) = 9817
Hits@level = [0] 324 [1]   5 [2]  54 [3]   2 [4]  11 [5]   0
Hits@level+ = [0+] 396 [1+]  72 [2+]  67 [3+]  13 [4+]  11 [5+]   0
Hits/KSLOC@level+ = [0+] 40.3382 [1+] 7.33422 [2+] 6.8249 [3+] 1.32423 [4+] 1.12051 [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.