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/lbcd-3.5.2/server/tmp_full.c
Examining data/lbcd-3.5.2/server/kernel.c
Examining data/lbcd-3.5.2/server/load.c
Examining data/lbcd-3.5.2/server/internal.h
Examining data/lbcd-3.5.2/server/arch/osf.c
Examining data/lbcd-3.5.2/server/arch/irix.c
Examining data/lbcd-3.5.2/server/arch/bsd.c
Examining data/lbcd-3.5.2/server/arch/aix.c
Examining data/lbcd-3.5.2/server/arch/solaris.c
Examining data/lbcd-3.5.2/server/arch/linux.c
Examining data/lbcd-3.5.2/server/arch/hpux10.c
Examining data/lbcd-3.5.2/server/arch/hpux9.c
Examining data/lbcd-3.5.2/server/arch/darwin.c
Examining data/lbcd-3.5.2/server/protocol.h
Examining data/lbcd-3.5.2/server/get_user.c
Examining data/lbcd-3.5.2/server/lbcd.c
Examining data/lbcd-3.5.2/server/server.c
Examining data/lbcd-3.5.2/server/weight.c
Examining data/lbcd-3.5.2/util/network.h
Examining data/lbcd-3.5.2/util/messages.h
Examining data/lbcd-3.5.2/util/vector.c
Examining data/lbcd-3.5.2/util/xmalloc.h
Examining data/lbcd-3.5.2/util/vector.h
Examining data/lbcd-3.5.2/util/messages.c
Examining data/lbcd-3.5.2/util/fdflag.c
Examining data/lbcd-3.5.2/util/fdflag.h
Examining data/lbcd-3.5.2/util/xwrite.h
Examining data/lbcd-3.5.2/util/network.c
Examining data/lbcd-3.5.2/util/xmalloc.c
Examining data/lbcd-3.5.2/util/macros.h
Examining data/lbcd-3.5.2/util/xwrite.c
Examining data/lbcd-3.5.2/tests/server/errors-t.c
Examining data/lbcd-3.5.2/tests/server/basic-t.c
Examining data/lbcd-3.5.2/tests/util/fakewrite.c
Examining data/lbcd-3.5.2/tests/util/xwrite-t.c
Examining data/lbcd-3.5.2/tests/util/network/addr-ipv4-t.c
Examining data/lbcd-3.5.2/tests/util/network/client-t.c
Examining data/lbcd-3.5.2/tests/util/network/addr-ipv6-t.c
Examining data/lbcd-3.5.2/tests/util/network/server-t.c
Examining data/lbcd-3.5.2/tests/util/vector-t.c
Examining data/lbcd-3.5.2/tests/util/messages-t.c
Examining data/lbcd-3.5.2/tests/util/xmalloc.c
Examining data/lbcd-3.5.2/tests/util/xwrite.c
Examining data/lbcd-3.5.2/tests/util/fdflag-t.c
Examining data/lbcd-3.5.2/tests/portable/daemon-t.c
Examining data/lbcd-3.5.2/tests/portable/inet_aton-t.c
Examining data/lbcd-3.5.2/tests/portable/strlcpy-t.c
Examining data/lbcd-3.5.2/tests/portable/getnameinfo-t.c
Examining data/lbcd-3.5.2/tests/portable/strlcat.c
Examining data/lbcd-3.5.2/tests/portable/inet_ntop.c
Examining data/lbcd-3.5.2/tests/portable/snprintf-t.c
Examining data/lbcd-3.5.2/tests/portable/snprintf.c
Examining data/lbcd-3.5.2/tests/portable/strlcat-t.c
Examining data/lbcd-3.5.2/tests/portable/strlcpy.c
Examining data/lbcd-3.5.2/tests/portable/asprintf.c
Examining data/lbcd-3.5.2/tests/portable/getaddrinfo.c
Examining data/lbcd-3.5.2/tests/portable/inet_ntoa-t.c
Examining data/lbcd-3.5.2/tests/portable/daemon.c
Examining data/lbcd-3.5.2/tests/portable/getnameinfo.c
Examining data/lbcd-3.5.2/tests/portable/asprintf-t.c
Examining data/lbcd-3.5.2/tests/portable/inet_ntop-t.c
Examining data/lbcd-3.5.2/tests/portable/inet_aton.c
Examining data/lbcd-3.5.2/tests/portable/inet_ntoa.c
Examining data/lbcd-3.5.2/tests/portable/strndup.c
Examining data/lbcd-3.5.2/tests/portable/getaddrinfo-t.c
Examining data/lbcd-3.5.2/tests/portable/strndup-t.c
Examining data/lbcd-3.5.2/tests/runtests.c
Examining data/lbcd-3.5.2/tests/tap/string.c
Examining data/lbcd-3.5.2/tests/tap/basic.c
Examining data/lbcd-3.5.2/tests/tap/process.c
Examining data/lbcd-3.5.2/tests/tap/basic.h
Examining data/lbcd-3.5.2/tests/tap/lbcd.c
Examining data/lbcd-3.5.2/tests/tap/string.h
Examining data/lbcd-3.5.2/tests/tap/lbcd.h
Examining data/lbcd-3.5.2/tests/tap/macros.h
Examining data/lbcd-3.5.2/tests/tap/process.h
Examining data/lbcd-3.5.2/portable/getnameinfo.h
Examining data/lbcd-3.5.2/portable/dummy.c
Examining data/lbcd-3.5.2/portable/system.h
Examining data/lbcd-3.5.2/portable/getaddrinfo.h
Examining data/lbcd-3.5.2/portable/socket.h
Examining data/lbcd-3.5.2/portable/sd-daemon.h
Examining data/lbcd-3.5.2/portable/strlcat.c
Examining data/lbcd-3.5.2/portable/inet_ntop.c
Examining data/lbcd-3.5.2/portable/snprintf.c
Examining data/lbcd-3.5.2/portable/strlcpy.c
Examining data/lbcd-3.5.2/portable/asprintf.c
Examining data/lbcd-3.5.2/portable/mkstemp.c
Examining data/lbcd-3.5.2/portable/getaddrinfo.c
Examining data/lbcd-3.5.2/portable/reallocarray.c
Examining data/lbcd-3.5.2/portable/daemon.c
Examining data/lbcd-3.5.2/portable/getnameinfo.c
Examining data/lbcd-3.5.2/portable/uio.h
Examining data/lbcd-3.5.2/portable/inet_aton.c
Examining data/lbcd-3.5.2/portable/inet_ntoa.c
Examining data/lbcd-3.5.2/portable/stdbool.h
Examining data/lbcd-3.5.2/portable/statvfs.h
Examining data/lbcd-3.5.2/portable/strndup.c
Examining data/lbcd-3.5.2/portable/macros.h
Examining data/lbcd-3.5.2/modules/pop.c
Examining data/lbcd-3.5.2/modules/tcp_socket.c
Examining data/lbcd-3.5.2/modules/smtp.c
Examining data/lbcd-3.5.2/modules/monlist.h
Examining data/lbcd-3.5.2/modules/check_reply.c
Examining data/lbcd-3.5.2/modules/ntp.c
Examining data/lbcd-3.5.2/modules/imap.c
Examining data/lbcd-3.5.2/modules/ldap.c
Examining data/lbcd-3.5.2/modules/modules.h
Examining data/lbcd-3.5.2/modules/nntp.c
Examining data/lbcd-3.5.2/modules/http.c
Examining data/lbcd-3.5.2/modules/tcp.c
Examining data/lbcd-3.5.2/modules/udp_socket.c
Examining data/lbcd-3.5.2/modules/ftp.c
Examining data/lbcd-3.5.2/modules/monlist.c

FINAL RESULTS:

data/lbcd-3.5.2/modules/ldap.c:24:20:  [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.
# define LDAP_EXEC execl
data/lbcd-3.5.2/modules/ldap.c:26:20:  [4] (shell) execlp:
  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.
# define LDAP_EXEC execlp
data/lbcd-3.5.2/portable/asprintf.c:37:31:  [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.
    __attribute__((__format__(printf, 2, 3)));
data/lbcd-3.5.2/portable/asprintf.c:62:14:  [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.
    needed = vsnprintf(NULL, 0, fmt, args_copy);
data/lbcd-3.5.2/portable/asprintf.c:71:14:  [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.
    status = vsnprintf(*strp, needed + 1, fmt, args);
data/lbcd-3.5.2/portable/snprintf.c:22:9:  [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.
# undef snprintf
data/lbcd-3.5.2/portable/snprintf.c:23: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.
# undef vsnprintf
data/lbcd-3.5.2/portable/snprintf.c:24: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 test_snprintf
data/lbcd-3.5.2/portable/snprintf.c:25: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 test_vsnprintf
data/lbcd-3.5.2/portable/snprintf.c:127:5:  [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.
int snprintf (char *str, size_t count, const char *fmt, ...);
data/lbcd-3.5.2/portable/snprintf.c:128: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.
int vsnprintf (char *str, size_t count, const char *fmt, va_list arg);
data/lbcd-3.5.2/portable/snprintf.c:843: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.
int vsnprintf (char *str, size_t count, const char *fmt, va_list args)
data/lbcd-3.5.2/portable/snprintf.c:852:5:  [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.
int snprintf (char *str,size_t count,const char *fmt,...)
data/lbcd-3.5.2/portable/snprintf.c:854:5:  [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.
int snprintf (va_alist) va_dcl
data/lbcd-3.5.2/portable/snprintf.c:869:11:  [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.
  total = vsnprintf(str, count, fmt, ap);
data/lbcd-3.5.2/portable/snprintf.c:922:7:  [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.
      snprintf (buf1, sizeof (buf1), fp_fmt[x], fp_nums[y]);
data/lbcd-3.5.2/portable/snprintf.c:923:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (buf2, fp_fmt[x], fp_nums[y]);
data/lbcd-3.5.2/portable/snprintf.c:936:7:  [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.
      snprintf (buf1, sizeof (buf1), int_fmt[x], int_nums[y]);
data/lbcd-3.5.2/portable/snprintf.c:937:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (buf2, int_fmt[x], int_nums[y]);
data/lbcd-3.5.2/portable/system.h:78: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 _snprintf
data/lbcd-3.5.2/portable/system.h:78: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.
# define snprintf _snprintf
data/lbcd-3.5.2/portable/system.h:125:31:  [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.
    __attribute__((__format__(printf, 2, 3)));
data/lbcd-3.5.2/portable/system.h:129:12:  [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.
extern int snprintf(char *, size_t, const char *, ...)
data/lbcd-3.5.2/portable/system.h:130:31:  [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.
    __attribute__((__format__(printf, 3, 4)));
data/lbcd-3.5.2/portable/system.h:133:12:  [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.
extern int vsnprintf(char *, size_t, const char *, va_list);
data/lbcd-3.5.2/server/lbcd.c:561:17:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
            if (access(lbcd_helper, X_OK) != 0)
data/lbcd-3.5.2/server/load.c:64:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access("/etc/nologin", F_OK) == 0)
data/lbcd-3.5.2/server/server.c:39:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(LBCD_SENTINEL_FILE, F_OK) == 0)
data/lbcd-3.5.2/server/weight.c:253:13:  [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(lbcd_command, lbcd_command, (char *) 0);
data/lbcd-3.5.2/tests/portable/asprintf-t.c:25:31:  [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.
    __attribute__((__format__(printf, 2, 3)));
data/lbcd-3.5.2/tests/portable/daemon-t.c:63:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access("daemon-sentinel", F_OK) == 0) {
data/lbcd-3.5.2/tests/portable/daemon-t.c:71:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access("daemon-sentinel", F_OK) == 0) {
data/lbcd-3.5.2/tests/portable/snprintf-t.c:166:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            count = sprintf(lgbuf, fp_formats[i], fp_nums[j]);
data/lbcd-3.5.2/tests/portable/snprintf-t.c:171:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            count = sprintf(lgbuf, int_formats[i], int_nums[j]);
data/lbcd-3.5.2/tests/portable/snprintf-t.c:176:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            count = sprintf(lgbuf, uint_formats[i], uint_nums[j]);
data/lbcd-3.5.2/tests/portable/snprintf-t.c:181:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            count = sprintf(lgbuf, llong_formats[i], llong_nums[j]);
data/lbcd-3.5.2/tests/portable/snprintf-t.c:186:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            count = sprintf(lgbuf, ullong_formats[i], ullong_nums[j]);
data/lbcd-3.5.2/tests/runtests.c:278:58:  [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.
    __attribute__((__nonnull__, __noreturn__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/tests/runtests.c:302:5:  [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.
    vfprintf(stderr, format, args);
data/lbcd-3.5.2/tests/runtests.c:538:13:  [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.
        if (execl(path, path, (char *) 0) == -1)
data/lbcd-3.5.2/tests/runtests.c:1144:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(path, X_OK) < 0)
data/lbcd-3.5.2/tests/runtests.c:1456:9:  [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.
    if (execl(path, path, (char *) 0) == -1)
data/lbcd-3.5.2/tests/runtests.c:1488:13:  [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.
            printf(usage_message, program, program, program, usage_extra);
data/lbcd-3.5.2/tests/runtests.c:1509:9:  [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, usage_message, program, program, program, usage_extra);
data/lbcd-3.5.2/tests/runtests.c:1541:9:  [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.
        printf(banner, shortlist);
data/lbcd-3.5.2/tests/tap/basic.c:135:13:  [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(format, args);              \
data/lbcd-3.5.2/tests/tap/basic.c:432:9:  [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(format, args);
data/lbcd-3.5.2/tests/tap/basic.c:588: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(format, args);
data/lbcd-3.5.2/tests/tap/basic.c:610: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(format, args);
data/lbcd-3.5.2/tests/tap/basic.c:631: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(format, args);
data/lbcd-3.5.2/tests/tap/basic.c:653: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(format, args);
data/lbcd-3.5.2/tests/tap/basic.c:842:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(path, R_OK) == 0)
data/lbcd-3.5.2/tests/tap/basic.c:883:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(path, X_OK) < 0)
data/lbcd-3.5.2/tests/tap/basic.h:66:45:  [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.
    __attribute__((__noreturn__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/tests/tap/basic.h:75:31:  [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.
    __attribute__((__format__(printf, 2, 3)));
data/lbcd-3.5.2/tests/tap/basic.h:77:31:  [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.
    __attribute__((__format__(printf, 2, 0)));
data/lbcd-3.5.2/tests/tap/basic.h:79:31:  [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.
    __attribute__((__format__(printf, 1, 2)));
data/lbcd-3.5.2/tests/tap/basic.h:86:31:  [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.
    __attribute__((__format__(printf, 3, 4)));
data/lbcd-3.5.2/tests/tap/basic.h:88:31:  [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.
    __attribute__((__format__(printf, 2, 3)));
data/lbcd-3.5.2/tests/tap/basic.h:95:31:  [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.
    __attribute__((__format__(printf, 3, 4)));
data/lbcd-3.5.2/tests/tap/basic.h:97:31:  [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.
    __attribute__((__format__(printf, 3, 4)));
data/lbcd-3.5.2/tests/tap/basic.h:99:31:  [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.
    __attribute__((__format__(printf, 3, 4)));
data/lbcd-3.5.2/tests/tap/basic.h:103:58:  [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.
    __attribute__((__noreturn__, __nonnull__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/tests/tap/basic.h:105:58:  [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.
    __attribute__((__noreturn__, __nonnull__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/tests/tap/basic.h:109:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/tests/tap/basic.h:111:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/tests/tap/lbcd.c:41:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(pidfile, F_OK) == 0)
data/lbcd-3.5.2/tests/tap/process.c:195:5:  [4] (shell) execvp:
  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.
    execvp(argv[0], argv);
data/lbcd-3.5.2/tests/tap/process.c:450:13:  [4] (shell) execv:
  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.
        if (execv(argv[0], (char *const *) argv) < 0)
data/lbcd-3.5.2/tests/tap/process.c:460:42:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    for (i = 0; i < PROCESS_WAIT * 10 && access(pidfile, F_OK) != 0; i++) {
data/lbcd-3.5.2/tests/tap/process.c:470:9:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (access(pidfile, F_OK) != 0) {
data/lbcd-3.5.2/tests/tap/process.h:54:31:  [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.
    __attribute__((__format__(printf, 5, 6), __nonnull__(1)));
data/lbcd-3.5.2/tests/tap/string.h:43:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 2, 3)));
data/lbcd-3.5.2/tests/util/fdflag-t.c:114:9:  [4] (shell) execlp:
  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.
        execlp("sh", "sh", "-c",
data/lbcd-3.5.2/tests/util/messages-t.c:97:5:  [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.
    vfprintf(stderr, format, args);
data/lbcd-3.5.2/util/messages.c:195:5:  [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.
    vfprintf(stdout, fmt, args);
data/lbcd-3.5.2/util/messages.c:213:5:  [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.
    vfprintf(stderr, fmt, args);
data/lbcd-3.5.2/util/messages.c:240:14:  [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.
    status = vsnprintf(buffer, len + 1, fmt, args);
data/lbcd-3.5.2/util/messages.c:300:14:  [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.
    length = vsnprintf(NULL, 0, format, args);
data/lbcd-3.5.2/util/messages.c:319:14:  [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.
    length = vsnprintf(NULL, 0, format, args);
data/lbcd-3.5.2/util/messages.c:339:14:  [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.
    length = vsnprintf(NULL, 0, format, args);
data/lbcd-3.5.2/util/messages.c:358:14:  [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.
    length = vsnprintf(NULL, 0, format, args);
data/lbcd-3.5.2/util/messages.c:378:14:  [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.
    length = vsnprintf(NULL, 0, format, args);
data/lbcd-3.5.2/util/messages.c:397:14:  [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.
    length = vsnprintf(NULL, 0, format, args);
data/lbcd-3.5.2/util/messages.c:417:14:  [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.
    length = vsnprintf(NULL, 0, format, args);
data/lbcd-3.5.2/util/messages.h:50:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/util/messages.h:52:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/util/messages.h:54:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/util/messages.h:56:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/util/messages.h:58:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/util/messages.h:60:58:  [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.
    __attribute__((__nonnull__, __noreturn__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/util/messages.h:62:58:  [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.
    __attribute__((__nonnull__, __noreturn__, __format__(printf, 1, 2)));
data/lbcd-3.5.2/util/vector.c:542:12:  [4] (shell) execv:
  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.
    return execv(path, (char * const *) vector->strings);
data/lbcd-3.5.2/util/vector.c:552:12:  [4] (shell) execv:
  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.
    return execv(path, (char * const *) vector->strings);
data/lbcd-3.5.2/util/xmalloc.c:229:18:  [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.
        status = vsnprintf(NULL, 0, fmt, args_copy);
data/lbcd-3.5.2/util/xmalloc.c:253:18:  [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.
        status = vsnprintf(NULL, 0, fmt, args_copy);
data/lbcd-3.5.2/util/xmalloc.c:275:18:  [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.
        status = vsnprintf(NULL, 0, fmt, args_copy);
data/lbcd-3.5.2/util/xmalloc.h:98:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 4, 5)));
data/lbcd-3.5.2/util/xmalloc.h:101:44:  [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.
    __attribute__((__nonnull__, __format__(printf, 2, 3)));
data/lbcd-3.5.2/server/lbcd.c:551:17:  [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 ((c = getopt(argc, argv, "a:b:c:dfhlP:p:RStT:w:Z")) != EOF) {
data/lbcd-3.5.2/tests/runtests.c:1482:22:  [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 ((option = getopt(argc, argv, "b:hl:os:v")) != EOF) {
data/lbcd-3.5.2/tests/runtests.c:1517:9:  [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.
    if (getenv("C_TAP_VERBOSE") != NULL)
data/lbcd-3.5.2/tests/tap/basic.c:838:16:  [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.
        base = getenv(envs[i]);
data/lbcd-3.5.2/tests/tap/basic.c:879:13:  [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.
    build = getenv("BUILD");
data/lbcd-3.5.2/modules/http.c:46: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).
        port = (short) atoi(portarg);
data/lbcd-3.5.2/modules/http.c:58: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 buf[17];
data/lbcd-3.5.2/modules/ldap.c:66: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[128];
data/lbcd-3.5.2/modules/ldap.c:93:26:  [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).
                retval = atoi(buf + 16);
data/lbcd-3.5.2/modules/monlist.h:51: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 data[32];              /* Data area */
data/lbcd-3.5.2/modules/monlist.h:74: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 data[RESP_DATA_SIZE];  /* Data area */
data/lbcd-3.5.2/modules/tcp.c:75: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).
        port = (short) atoi(portarg);
data/lbcd-3.5.2/portable/daemon.c:65:10:  [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).
    fd = open("/dev/tty", O_RDWR);
data/lbcd-3.5.2/portable/daemon.c:81: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).
        fd = open("/dev/null", O_RDWR, 0);
data/lbcd-3.5.2/portable/getnameinfo.c:74: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(node, name, namelen + 1);
data/lbcd-3.5.2/portable/getnameinfo.c:123: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(node, name, namelen + 1);
data/lbcd-3.5.2/portable/getnameinfo.c:149: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(service, srv->s_name, namelen + 1);
data/lbcd-3.5.2/portable/inet_ntoa.c:40: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 buf[16];
data/lbcd-3.5.2/portable/inet_ntoa.c:44:5:  [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(buf, "%u.%u.%u.%u",
data/lbcd-3.5.2/portable/mkstemp.c:37:9:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
# undef mkstemp
data/lbcd-3.5.2/portable/mkstemp.c:38:10:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
# define mkstemp test_mkstemp
data/lbcd-3.5.2/portable/mkstemp.c:50:1:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
mkstemp(char *template)
data/lbcd-3.5.2/portable/mkstemp.c:88: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).
        fd = open(template, O_RDWR | O_CREAT | O_EXCL, 0600);
data/lbcd-3.5.2/portable/snprintf.c:515: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 convert[24];
data/lbcd-3.5.2/portable/snprintf.c:645: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 iconvert[24];
data/lbcd-3.5.2/portable/snprintf.c:646: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 fconvert[24];
data/lbcd-3.5.2/portable/snprintf.c:880: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 buf1[LONG_STRING];
data/lbcd-3.5.2/portable/snprintf.c:881: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 buf2[LONG_STRING];
data/lbcd-3.5.2/portable/socket.h:96: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 __ss_pad1[SS_PAD1SIZE_];
data/lbcd-3.5.2/portable/socket.h:98: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 __ss_pad2[SS_PAD2SIZE_];
data/lbcd-3.5.2/portable/socket.h:106: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 __ss_pad1[SS_PAD1SIZE_];
data/lbcd-3.5.2/portable/socket.h:108: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 __ss_pad2[SS_PAD2SIZE_];
data/lbcd-3.5.2/portable/strlcat.c:48: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(dst + used, src, copy);
data/lbcd-3.5.2/portable/strlcpy.c:46: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(dst, src, copy);
data/lbcd-3.5.2/portable/strndup.c:52: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(copy, s, length);
data/lbcd-3.5.2/portable/system.h:109:25:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
#  define va_copy(d, s) memcpy(&(d), &(s), sizeof(va_list))
data/lbcd-3.5.2/portable/system.h:139:12:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
extern int mkstemp(char *);
data/lbcd-3.5.2/server/arch/aix.c:42:17:  [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).
    kernel_fd = open(C_KMEM, O_RDONLY);
data/lbcd-3.5.2/server/arch/hpux10.c:56:10:  [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).
    fd = open(UTMPX_FILE, O_RDONLY | O_NONBLOCK);
data/lbcd-3.5.2/server/arch/hpux9.c:41:17:  [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).
    kernel_fd = open(C_KMEM, O_RDONLY);
data/lbcd-3.5.2/server/arch/irix.c:46:15:  [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).
    kmem_fd = open("/dev/kmem", O_RDONLY);
data/lbcd-3.5.2/server/arch/linux.c:30:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen("/proc/loadavg", "r");
data/lbcd-3.5.2/server/arch/linux.c:56:10:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
    fp = fopen("/proc/uptime", "r");
data/lbcd-3.5.2/server/arch/solaris.c:99:10:  [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).
    fd = open(UTMPX_FILE, O_RDONLY | O_NONBLOCK);
data/lbcd-3.5.2/server/get_user.c:213: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).
        fd = open(utmp, O_RDONLY);
data/lbcd-3.5.2/server/lbcd.c:198: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 raw[LBCD_MAXMESG];
data/lbcd-3.5.2/server/lbcd.c:199: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 source[INET6_ADDRSTRLEN] = "UNKNOWN";
data/lbcd-3.5.2/server/lbcd.c:254: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(request->addr, &addr, addrlen);
data/lbcd-3.5.2/server/lbcd.c:442:15:  [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).
        pid = fopen(config->pid_file, "w");
data/lbcd-3.5.2/server/lbcd.c:581:27:  [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).
            config.port = atoi(optarg);
data/lbcd-3.5.2/server/lbcd.c:593:31:  [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).
            service_timeout = atoi(optarg);
data/lbcd-3.5.2/server/protocol.h:49: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.
typedef char lbcd_name_type[32];
data/lbcd-3.5.2/server/weight.c:153:26:  [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).
        default_weight = atoi(service);
data/lbcd-3.5.2/server/weight.c:154:29:  [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).
        default_increment = atoi(cp);
data/lbcd-3.5.2/server/weight.c:258: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[128];
data/lbcd-3.5.2/tests/portable/daemon-t.c:46:10:  [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).
    fd = open("daemon-sentinel", O_RDWR | O_CREAT, 0666);
data/lbcd-3.5.2/tests/portable/daemon-t.c:84: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 start[BUFSIZ], dir[BUFSIZ];
data/lbcd-3.5.2/tests/portable/daemon-t.c:98: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).
        fd = open("/dev/tty", O_RDONLY);
data/lbcd-3.5.2/tests/portable/getnameinfo-t.c:36: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 node[256], service[256];
data/lbcd-3.5.2/tests/portable/inet_ntop-t.c:38: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 result[INET_ADDRSTRLEN];
data/lbcd-3.5.2/tests/portable/snprintf-t.c:106: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 buf[128];
data/lbcd-3.5.2/tests/portable/snprintf-t.c:124: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 lgbuf[128];
data/lbcd-3.5.2/tests/portable/strlcat-t.c:29: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[10] = "";
data/lbcd-3.5.2/tests/portable/strlcpy-t.c:29: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[10];
data/lbcd-3.5.2/tests/portable/strndup-t.c:31: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[3];
data/lbcd-3.5.2/tests/portable/strndup-t.c:48: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(buffer, "foo", 3);
data/lbcd-3.5.2/tests/runtests.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(p, s, len);
data/lbcd-3.5.2/tests/runtests.c:428: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(result + offset, string, strlen(string));
data/lbcd-3.5.2/tests/runtests.c:517:16:  [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).
        infd = open("/dev/null", O_RDONLY);
data/lbcd-3.5.2/tests/runtests.c:528:17:  [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).
        errfd = open("/dev/null", O_WRONLY);
data/lbcd-3.5.2/tests/runtests.c:1029: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[BUFSIZ];
data/lbcd-3.5.2/tests/runtests.c:1170: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 *bases[3], *suffix, *base;
data/lbcd-3.5.2/tests/runtests.c:1172: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 *suffixes[3] = { "-t", ".t", "" };
data/lbcd-3.5.2/tests/runtests.c:1210: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[BUFSIZ];
data/lbcd-3.5.2/tests/runtests.c:1222: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 = fopen(filename, "r");
data/lbcd-3.5.2/tests/server/errors-t.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(buffer, &request, sizeof(request));
data/lbcd-3.5.2/tests/tap/basic.c:178: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(result + offset, string, strlen(string));
data/lbcd-3.5.2/tests/tap/basic.c:670:18:  [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->file = fopen(file->name, "r");
data/lbcd-3.5.2/tests/tap/basic.c:793: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(p, s, len);
data/lbcd-3.5.2/tests/tap/basic.c:817: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(copy, s, length);
data/lbcd-3.5.2/tests/tap/process.c:367: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[BUFSIZ];
data/lbcd-3.5.2/tests/tap/process.c:370: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 = fopen(path, "r");
data/lbcd-3.5.2/tests/tap/process.c:420:14:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
    log_fd = mkstemp(process->logfile);
data/lbcd-3.5.2/tests/util/fakewrite.c:44:1:  [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 write_buffer[256];
data/lbcd-3.5.2/tests/util/fakewrite.c:78: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(write_buffer + write_offset, data, total);
data/lbcd-3.5.2/tests/util/fakewrite.c:107: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(write_buffer + offset, data, total);
data/lbcd-3.5.2/tests/util/fakewrite.c:134: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(write_buffer + write_offset, iov[i].iov_base, n);
data/lbcd-3.5.2/tests/util/messages-t.c:182: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 buff[32];
data/lbcd-3.5.2/tests/util/messages-t.c:201:5:  [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(buff, "%d", EPERM);
data/lbcd-3.5.2/tests/util/network/addr-ipv4-t.c:61: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[INET6_ADDRSTRLEN];
data/lbcd-3.5.2/tests/util/network/addr-ipv6-t.c:63: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[INET6_ADDRSTRLEN];
data/lbcd-3.5.2/tests/util/network/client-t.c:141: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[512];
data/lbcd-3.5.2/tests/util/network/client-t.c:308: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[4];
data/lbcd-3.5.2/tests/util/network/server-t.c:160: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[512];
data/lbcd-3.5.2/tests/util/network/server-t.c:447: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[BUFSIZ];
data/lbcd-3.5.2/tests/util/xmalloc.c:185: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(string, "test", 5);
data/lbcd-3.5.2/tests/util/xmalloc.c:193: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(string, "test", 4);
data/lbcd-3.5.2/tests/util/xwrite-t.c:40:1:  [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 data[256];
data/lbcd-3.5.2/util/network.c:300: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 service[16], name[INET6_ADDRSTRLEN];
data/lbcd-3.5.2/util/network.c:610: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 portbuf[16];
data/lbcd-3.5.2/util/xmalloc.c:185: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(p, s, len);
data/lbcd-3.5.2/util/xmalloc.c:211: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(copy, s, length);
data/lbcd-3.5.2/util/xwrite.c:194: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(tmpiov, iov + i, iovleft * sizeof(struct iovec));
data/lbcd-3.5.2/util/xwrite.c:212:31:  [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.
        tmpiov[i].iov_base = (char *) tmpiov[i].iov_base + offset;
data/lbcd-3.5.2/modules/check_reply.c:45: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(token);
data/lbcd-3.5.2/portable/getnameinfo.c:70: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).
    namelen = strlen(name);
data/lbcd-3.5.2/portable/getnameinfo.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).
    namelen = strlen(name);
data/lbcd-3.5.2/portable/getnameinfo.c:146: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).
            namelen = strlen(srv->s_name);
data/lbcd-3.5.2/portable/mkstemp.c:64:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(template);
data/lbcd-3.5.2/portable/snprintf.c:479: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).
    strln = strlen (value);
data/lbcd-3.5.2/portable/socket.h:280:41:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
# define socket_read(fd, b, s)          read((fd), (b), (s))
data/lbcd-3.5.2/portable/strlcat.c:44:12:  [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).
    used = strlen(dst);
data/lbcd-3.5.2/portable/strlcat.c:45:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(src);
data/lbcd-3.5.2/portable/strlcpy.c:43:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    length = strlen(src);
data/lbcd-3.5.2/server/arch/aix.c:75:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    status = read(kernel_fd, dest, dest_len);
data/lbcd-3.5.2/server/arch/hpux10.c:61:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((nread = read(fd, &ut, sizeof(ut))) > 0) {
data/lbcd-3.5.2/server/arch/hpux9.c:74:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    status = read(kernel_fd, dest, dest_len);
data/lbcd-3.5.2/server/arch/irix.c:84:14:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    status = read(kmem_fd, (void *) load, sizeof(load));
data/lbcd-3.5.2/server/arch/solaris.c:104:25:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while ((nread = read(fd, &ut, sizeof(ut))) > 0) {
data/lbcd-3.5.2/server/get_user.c:218:16:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        while (read(fd, &ut, sizeof(ut)) > 0) {
data/lbcd-3.5.2/server/weight.c:85: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 (!isdigit((int) service[strlen(service) - 1]))
data/lbcd-3.5.2/tests/runtests.c:378: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(s) + 1;
data/lbcd-3.5.2/tests/runtests.c:414: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 (length >= UINT_MAX - strlen(string)) {
data/lbcd-3.5.2/tests/runtests.c:418:19:  [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).
        length += strlen(string);
data/lbcd-3.5.2/tests/runtests.c:428: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).
        memcpy(result + offset, string, strlen(string));
data/lbcd-3.5.2/tests/runtests.c:429:19:  [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).
        offset += strlen(string);
data/lbcd-3.5.2/tests/runtests.c:659: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).
                    ts->reason[strlen(ts->reason) - 1] = '\0';
data/lbcd-3.5.2/tests/runtests.c:722: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).
        bail = skip_whitespace(bail + strlen("Bail out!"));
data/lbcd-3.5.2/tests/runtests.c:726:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            length = strlen(bail);
data/lbcd-3.5.2/tests/runtests.c:742:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    if (line[strlen(line) - 1] != '\n')
data/lbcd-3.5.2/tests/runtests.c:1228: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).
        length = strlen(buffer) - 1;
data/lbcd-3.5.2/tests/runtests.c:1237: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(testname) == 0)
data/lbcd-3.5.2/tests/runtests.c:1334: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).
        length = strlen(current->ts->file);
data/lbcd-3.5.2/tests/runtests.c:1359:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            for (i = strlen(ts->file); i < longest; i++)
data/lbcd-3.5.2/tests/tap/basic.c:166: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 (length >= UINT_MAX - strlen(string))
data/lbcd-3.5.2/tests/tap/basic.c:168:19:  [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).
        length += strlen(string);
data/lbcd-3.5.2/tests/tap/basic.c:178: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).
        memcpy(result + offset, string, strlen(string));
data/lbcd-3.5.2/tests/tap/basic.c:179:19:  [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).
        offset += strlen(string);
data/lbcd-3.5.2/tests/tap/basic.c:233:22:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
            length = strlen(file->buffer);
data/lbcd-3.5.2/tests/tap/basic.c:789: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(s) + 1;
data/lbcd-3.5.2/tests/tap/process.c:136:19:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
            ret = read(fds[0], buf + count, buflen - count - 1);
data/lbcd-3.5.2/tests/util/fdflag-t.c:98:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        status = read(data, buffer, sizeof(buffer));
data/lbcd-3.5.2/tests/util/fdflag-t.c:111:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        if (read(data, buffer, sizeof(buffer)) < (ssize_t) sizeof(buffer))
data/lbcd-3.5.2/util/vector.c:477:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    seplen = strlen(separator);
data/lbcd-3.5.2/util/vector.c:479:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert(SIZE_MAX - size >= strlen(vector->strings[i]) + seplen + 1);
data/lbcd-3.5.2/util/vector.c:480:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size += strlen(vector->strings[i]);
data/lbcd-3.5.2/util/vector.c:510:14:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    seplen = strlen(separator);
data/lbcd-3.5.2/util/vector.c:512:35:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        assert(SIZE_MAX - size >= strlen(vector->strings[i]));
data/lbcd-3.5.2/util/vector.c:513:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        size += strlen(vector->strings[i]);
data/lbcd-3.5.2/util/xmalloc.c:179: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(s) + 1;

ANALYSIS SUMMARY:

Hits = 249
Lines analyzed = 18550 in approximately 0.97 seconds (19077 lines/second)
Physical Source Lines of Code (SLOC) = 11044
Hits@level = [0] 143 [1]  46 [2]  99 [3]   5 [4]  99 [5]   0
Hits@level+ = [0+] 392 [1+] 249 [2+] 203 [3+] 104 [4+]  99 [5+]   0
Hits/KSLOC@level+ = [0+] 35.4944 [1+] 22.5462 [2+] 18.381 [3+] 9.41688 [4+] 8.96414 [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.