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/ucarp-1.5.2/src/gettext.h
Examining data/ucarp-1.5.2/src/ucarp.c
Examining data/ucarp-1.5.2/src/ucarp.h
Examining data/ucarp-1.5.2/src/carp.c
Examining data/ucarp-1.5.2/src/carp_p.h
Examining data/ucarp-1.5.2/src/ucarp_p.h
Examining data/ucarp-1.5.2/src/ip_carp.h
Examining data/ucarp-1.5.2/src/crypto-sha1.c
Examining data/ucarp-1.5.2/src/crypto.h
Examining data/ucarp-1.5.2/src/crypto-sha1.h
Examining data/ucarp-1.5.2/src/globals.h
Examining data/ucarp-1.5.2/src/fillmac.c
Examining data/ucarp-1.5.2/src/fillmac.h
Examining data/ucarp-1.5.2/src/bsd-getopt_long.h
Examining data/ucarp-1.5.2/src/bsd-getopt_long.c
Examining data/ucarp-1.5.2/src/garp.c
Examining data/ucarp-1.5.2/src/garp.h
Examining data/ucarp-1.5.2/src/spawn.c
Examining data/ucarp-1.5.2/src/spawn.h
Examining data/ucarp-1.5.2/src/fakesnprintf.c
Examining data/ucarp-1.5.2/src/fakesnprintf.h
Examining data/ucarp-1.5.2/src/mysnprintf.c
Examining data/ucarp-1.5.2/src/mysnprintf.h
Examining data/ucarp-1.5.2/src/log.c
Examining data/ucarp-1.5.2/src/log.h
Examining data/ucarp-1.5.2/src/daemonize.c
Examining data/ucarp-1.5.2/src/daemonize.h
Examining data/ucarp-1.5.2/src/syslognames.h

FINAL RESULTS:

data/ucarp-1.5.2/src/bsd-getopt_long.c:207:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf(stderr, ambig, (int)current_argv_len,
data/ucarp-1.5.2/src/bsd-getopt_long.c:217:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf(stderr, noarg, (int)current_argv_len,
data/ucarp-1.5.2/src/bsd-getopt_long.c:247:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf(stderr, recargstring,
data/ucarp-1.5.2/src/bsd-getopt_long.c:265:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, illoptstring, current_argv);
data/ucarp-1.5.2/src/bsd-getopt_long.c:431:13:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
            fprintf(stderr, illoptchar, optchar);
data/ucarp-1.5.2/src/bsd-getopt_long.c:442:17:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                fprintf(stderr, recargchar, optchar);
data/ucarp-1.5.2/src/bsd-getopt_long.c:464:21:  [4] (format) fprintf:
  If format strings can be influenced by an attacker, they can be exploited
  (CWE-134). Use a constant for the format specification.
                    fprintf(stderr, recargchar, optchar);
data/ucarp-1.5.2/src/fakesnprintf.h:12:10:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# define snprintf  fakesnprintf_snprintf
data/ucarp-1.5.2/src/fakesnprintf.h:13:10:  [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.
# define vsnprintf fakesnprintf_vsnprintf
data/ucarp-1.5.2/src/log.c:15: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(line, sizeof line, format, va);
data/ucarp-1.5.2/src/mysnprintf.c:34:9:  [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.
    v = vsnprintf(str, size, format, va);
data/ucarp-1.5.2/src/mysnprintf.h:19:19:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
# warning Unknown snprintf() type
data/ucarp-1.5.2/src/spawn.c:23:2:  [4] (shell) execl:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
	execl(script, script, interface, vaddr_arg, xparam, (char *) NULL);
data/ucarp-1.5.2/src/bsd-getopt_long.c:299:28:  [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.
        posixly_correct = (getenv("POSIXLY_CORRECT") != NULL);
data/ucarp-1.5.2/src/bsd-getopt_long.h:109:10:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
#  undef getopt_long
data/ucarp-1.5.2/src/bsd-getopt_long.h:110:11:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
#  define getopt_long(A, B, C, D, E) pure_getopt_long(A, B, C, D, E)
data/ucarp-1.5.2/src/bsd-getopt_long.h:113:10:  [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.
#  undef getopt
data/ucarp-1.5.2/src/bsd-getopt_long.h:114:11:  [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.
#  define getopt(A, B, C) pure_getopt(A, B, C)
data/ucarp-1.5.2/src/carp.c:161:26:  [3] (random) random:
  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.
        sc->sc_counter = random();        
data/ucarp-1.5.2/src/carp.c:167:27:  [3] (random) random:
  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.
        sc->sc_counter += random();
data/ucarp-1.5.2/src/carp.c:234:22:  [3] (random) random:
  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.
    ip.ip_id = htons(random() & 0xffff);
data/ucarp-1.5.2/src/ucarp.c:73:5:  [3] (random) srandom:
  This function is not sufficiently random for security-related functions
  such as key and nonce creation (CWE-327). Use a more secure technique for
  acquiring random values.
    srandom((unsigned int) (tv.tv_sec ^ tv.tv_usec ^ (getpid() << 16)));
data/ucarp-1.5.2/src/ucarp.c:75: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((unsigned int) (tv.tv_sec ^ tv.tv_usec ^ (getpid() << 16)));
data/ucarp-1.5.2/src/ucarp.c:100:22:  [3] (buffer) getopt_long:
  Some older implementations do not protect against internal buffer overflows
  (CWE-120, CWE-20). Check implementation on installation, or limit the size
  of all string inputs.
    while ((fodder = getopt_long(argc, argv, GETOPT_OPTIONS, long_options,
data/ucarp-1.5.2/src/bsd-getopt_long.c:152:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            ((char **) nargv)[pos] = nargv[cstart];
data/ucarp-1.5.2/src/bsd-getopt_long.c:154:15:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
            ((char **)nargv)[cstart] = swap;
data/ucarp-1.5.2/src/carp.c:89: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(sc->sc_pad, sc->sc_key, sizeof sc->sc_key);
data/ucarp-1.5.2/src/carp.c:141: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(&ctx, &sc->sc_sha1, sizeof ctx);
data/ucarp-1.5.2/src/carp.c:241: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(&ip.ip_src, &srcip, sizeof ip.ip_src);    
data/ucarp-1.5.2/src/carp.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(&ip.ip_dst.s_addr, inaddr_carp_group, sizeof ip.ip_dst.s_addr);
data/ucarp-1.5.2/src/carp.c:274: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(pkt, &eh, sizeof eh);
data/ucarp-1.5.2/src/carp.c:275: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(pkt + sizeof eh, &ip, sizeof ip);
data/ucarp-1.5.2/src/carp.c:276: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(pkt + sizeof ip + sizeof eh, &ch, sizeof ch);
data/ucarp-1.5.2/src/carp.c:431: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(&etherhead, sp, sizeof etherhead);
data/ucarp-1.5.2/src/carp.c:452: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(&iphead, sp, sizeof iphead);    
data/ucarp-1.5.2/src/carp.c:485: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(&ch, sp + ip_len, sizeof ch);
data/ucarp-1.5.2/src/carp.c:524:22:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 md2[20];            
data/ucarp-1.5.2/src/carp.c:526: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(&ctx, &sc.sc_sha1, sizeof ctx);
data/ucarp-1.5.2/src/carp.c:682: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.
    static char rule[256];
data/ucarp-1.5.2/src/carp.c:700: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[PCAP_ERRBUF_SIZE];
data/ucarp-1.5.2/src/carp.c:727: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(sc.sc_key, pass, passlen);
data/ucarp-1.5.2/src/crypto-sha1.c:55:42:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 unsigned char buffer[64])
data/ucarp-1.5.2/src/crypto-sha1.c:59:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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 c[64];
data/ucarp-1.5.2/src/crypto-sha1.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(block, buffer, 64);
data/ucarp-1.5.2/src/crypto-sha1.c:196: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(&context->buffer[j], data, (i = 64 - j));
data/ucarp-1.5.2/src/crypto-sha1.c:204: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(&context->buffer[j], &data[i], len - i);
data/ucarp-1.5.2/src/crypto-sha1.c:210:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void SHA1Final(unsigned char digest[20], SHA1_CTX * context)
data/ucarp-1.5.2/src/crypto-sha1.c:213: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 finalcount[8];
data/ucarp-1.5.2/src/crypto-sha1.h:15: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   buffer[64];
data/ucarp-1.5.2/src/crypto-sha1.h:21:25:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
void SHA1Final(unsigned char digest[20], SHA1_CTX * context);
data/ucarp-1.5.2/src/daemonize.c:26:23:  [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 ((fodder = open("/dev/null", O_RDONLY)) == -1) {
data/ucarp-1.5.2/src/daemonize.c:34:19:  [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 ((fodder = open("/dev/null", O_WRONLY)) == -1) {
data/ucarp-1.5.2/src/fakesnprintf.c:73: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(*str, pnt, maxlenc);
data/ucarp-1.5.2/src/fakesnprintf.c:186: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 vals[256];
data/ucarp-1.5.2/src/fakesnprintf.c:226: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 vals[256];
data/ucarp-1.5.2/src/fakesnprintf.c:262: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 vals[512];
data/ucarp-1.5.2/src/fillmac.c:70: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(hwaddr, &ifr.ifr_hwaddr.sa_data, sizeof hwaddr);
data/ucarp-1.5.2/src/fillmac.c:97:17:  [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(hwaddr, ea, sizeof hwaddr);
data/ucarp-1.5.2/src/fillmac.c:145: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(&arpreq.arp_pa, &lifr->lifr_addr, sizeof arpreq.arp_pa);
data/ucarp-1.5.2/src/fillmac.c:152: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(hwaddr, &arpreq.arp_ha.sa_data, sizeof hwaddr);
data/ucarp-1.5.2/src/garp.c:13: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.
    static unsigned char arp[28] = {
data/ucarp-1.5.2/src/garp.c:39: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(&arp[8], hwaddr, sizeof hwaddr);        /* Sender MAC */
data/ucarp-1.5.2/src/garp.c:40: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(&arp[14], &vaddr.s_addr, (size_t) 4U);  /* Sender IP */
data/ucarp-1.5.2/src/garp.c:41: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(&arp[18], hwaddr, sizeof hwaddr);       /* Target MAC */
data/ucarp-1.5.2/src/garp.c:42: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(&arp[24], &vaddr.s_addr, (size_t) 4U);  /* Target IP */
data/ucarp-1.5.2/src/garp.c:45: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(&eh.ether_shost, hwaddr, sizeof hwaddr);
data/ucarp-1.5.2/src/garp.c:53: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(pkt, &eh, sizeof eh);
data/ucarp-1.5.2/src/garp.c:54: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(pkt + sizeof eh, arp, sizeof arp);
data/ucarp-1.5.2/src/globals.h:25:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
GLOBAL0(unsigned char hwaddr[6]);
data/ucarp-1.5.2/src/globals.h:33: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.
GLOBAL(unsigned char inaddr_carp_group[4], { 224 _COMA_ 0 _COMA_ 0 _COMA_ 18 });
data/ucarp-1.5.2/src/ip_carp.h:72:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   carp_md[20];    /* SHA1 HMAC */
data/ucarp-1.5.2/src/ip_carp.h:124:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (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   carpr_key[CARP_KEY_LEN];
data/ucarp-1.5.2/src/log.c:12: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 line[MAX_SYSLOG_LINE];
data/ucarp-1.5.2/src/ucarp.c:132: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 buf[512U];
data/ucarp-1.5.2/src/ucarp.c:135:23:  [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).
            if ((pw = fopen(optarg, "r")) == NULL) {
data/ucarp-1.5.2/src/ucarp.h:204: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 sc_key[CARP_KEY_LEN];
data/ucarp-1.5.2/src/ucarp.h:205: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 sc_pad[CARP_HMAC_PAD];
data/ucarp-1.5.2/src/bsd-getopt_long.c:182: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).
        current_argv_len = strlen(current_argv);
data/ucarp-1.5.2/src/bsd-getopt_long.c:190: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).
        if (strlen(long_options[i].name) == current_argv_len) {
data/ucarp-1.5.2/src/carp.c:721: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).
        const size_t passlen = strlen(pass) + (size_t) 1U;
data/ucarp-1.5.2/src/carp.c:795: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).
    if (strlen(interface) >= sizeof iface.ifr_name) {
data/ucarp-1.5.2/src/carp.c:799:5:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
    strncpy(iface.ifr_name, interface, sizeof iface.ifr_name);
data/ucarp-1.5.2/src/fakesnprintf.c:53: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).
    maxlenc = strlen(pnt);
data/ucarp-1.5.2/src/fillmac.c:50: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).
        if (strlen(interface) >= sizeof ifr.ifr_name) {
data/ucarp-1.5.2/src/fillmac.c:54:9:  [1] (buffer) strncpy:
  Easily used incorrectly; doesn't always \0-terminate or check for invalid
  pointers [MS-banned] (CWE-120).
        strncpy(ifr.ifr_name, interface, sizeof ifr.ifr_name);

ANALYSIS SUMMARY:

Hits = 85
Lines analyzed = 3663 in approximately 0.12 seconds (29946 lines/second)
Physical Source Lines of Code (SLOC) = 2870
Hits@level = [0]   4 [1]   8 [2]  53 [3]  11 [4]  13 [5]   0
Hits@level+ = [0+]  89 [1+]  85 [2+]  77 [3+]  24 [4+]  13 [5+]   0
Hits/KSLOC@level+ = [0+] 31.0105 [1+] 29.6167 [2+] 26.8293 [3+] 8.36237 [4+] 4.52962 [5+]   0
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.