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/remctl-3.16/client/remctl.h
Examining data/remctl-3.16/client/api.c
Examining data/remctl-3.16/client/client-v1.c
Examining data/remctl-3.16/client/client-v2.c
Examining data/remctl-3.16/client/error.c
Examining data/remctl-3.16/client/internal.h
Examining data/remctl-3.16/client/open.c
Examining data/remctl-3.16/client/remctl.c
Examining data/remctl-3.16/php/php_remctl.c
Examining data/remctl-3.16/php/php5_remctl.c
Examining data/remctl-3.16/portable/asprintf.c
Examining data/remctl-3.16/portable/daemon.c
Examining data/remctl-3.16/portable/getaddrinfo.c
Examining data/remctl-3.16/portable/getnameinfo.c
Examining data/remctl-3.16/portable/getopt.c
Examining data/remctl-3.16/portable/gssapi-mech.c
Examining data/remctl-3.16/portable/inet_aton.c
Examining data/remctl-3.16/portable/inet_ntoa.c
Examining data/remctl-3.16/portable/inet_ntop.c
Examining data/remctl-3.16/portable/krb5-extra.c
Examining data/remctl-3.16/portable/mkstemp.c
Examining data/remctl-3.16/portable/reallocarray.c
Examining data/remctl-3.16/portable/setenv.c
Examining data/remctl-3.16/portable/snprintf.c
Examining data/remctl-3.16/portable/strndup.c
Examining data/remctl-3.16/portable/dummy.c
Examining data/remctl-3.16/portable/event.h
Examining data/remctl-3.16/portable/getaddrinfo.h
Examining data/remctl-3.16/portable/getnameinfo.h
Examining data/remctl-3.16/portable/getopt.h
Examining data/remctl-3.16/portable/gssapi.h
Examining data/remctl-3.16/portable/krb5.h
Examining data/remctl-3.16/portable/macros.h
Examining data/remctl-3.16/portable/sd-daemon.h
Examining data/remctl-3.16/portable/socket.h
Examining data/remctl-3.16/portable/stdbool.h
Examining data/remctl-3.16/portable/system.h
Examining data/remctl-3.16/portable/uio.h
Examining data/remctl-3.16/portable/event-extra.c
Examining data/remctl-3.16/portable/winsock.c
Examining data/remctl-3.16/python/_remctlmodule.c
Examining data/remctl-3.16/ruby/remctl.c
Examining data/remctl-3.16/server/commands.c
Examining data/remctl-3.16/server/config.c
Examining data/remctl-3.16/server/event-util.c
Examining data/remctl-3.16/server/logging.c
Examining data/remctl-3.16/server/internal.h
Examining data/remctl-3.16/server/process.c
Examining data/remctl-3.16/server/remctl-shell.c
Examining data/remctl-3.16/server/server-ssh.c
Examining data/remctl-3.16/server/generic.c
Examining data/remctl-3.16/server/remctld.c
Examining data/remctl-3.16/server/server-v1.c
Examining data/remctl-3.16/server/server-v2.c
Examining data/remctl-3.16/tests/client/api-t.c
Examining data/remctl-3.16/tests/client/ccache-t.c
Examining data/remctl-3.16/tests/client/large-t.c
Examining data/remctl-3.16/tests/client/open-t.c
Examining data/remctl-3.16/tests/client/source-ip-t.c
Examining data/remctl-3.16/tests/client/timeout-t.c
Examining data/remctl-3.16/tests/data/cmd-background.c
Examining data/remctl-3.16/tests/data/cmd-closed.c
Examining data/remctl-3.16/tests/data/cmd-large-output.c
Examining data/remctl-3.16/tests/data/cmd-sigpipe.c
Examining data/remctl-3.16/tests/data/cmd-stdin.c
Examining data/remctl-3.16/tests/data/cmd-streaming.c
Examining data/remctl-3.16/tests/data/cmd-user.c
Examining data/remctl-3.16/tests/portable/asprintf-t.c
Examining data/remctl-3.16/tests/portable/asprintf.c
Examining data/remctl-3.16/tests/portable/daemon-t.c
Examining data/remctl-3.16/tests/portable/daemon.c
Examining data/remctl-3.16/tests/portable/getaddrinfo-t.c
Examining data/remctl-3.16/tests/portable/getaddrinfo.c
Examining data/remctl-3.16/tests/portable/getnameinfo-t.c
Examining data/remctl-3.16/tests/portable/getnameinfo.c
Examining data/remctl-3.16/tests/portable/getopt-t.c
Examining data/remctl-3.16/tests/portable/getopt.c
Examining data/remctl-3.16/tests/portable/inet_aton-t.c
Examining data/remctl-3.16/tests/portable/inet_aton.c
Examining data/remctl-3.16/tests/portable/inet_ntoa-t.c
Examining data/remctl-3.16/tests/portable/inet_ntoa.c
Examining data/remctl-3.16/tests/portable/inet_ntop-t.c
Examining data/remctl-3.16/tests/portable/inet_ntop.c
Examining data/remctl-3.16/tests/portable/mkstemp-t.c
Examining data/remctl-3.16/tests/portable/mkstemp.c
Examining data/remctl-3.16/tests/portable/setenv-t.c
Examining data/remctl-3.16/tests/portable/setenv.c
Examining data/remctl-3.16/tests/portable/snprintf-t.c
Examining data/remctl-3.16/tests/portable/snprintf.c
Examining data/remctl-3.16/tests/server/acl/localgroup-t.c
Examining data/remctl-3.16/tests/server/acl/fake-getgrnam.c
Examining data/remctl-3.16/tests/server/acl/fake-getgrnam.h
Examining data/remctl-3.16/tests/server/acl/fake-getpwnam.c
Examining data/remctl-3.16/tests/server/acl/fake-getpwnam.h
Examining data/remctl-3.16/tests/server/accept-t.c
Examining data/remctl-3.16/tests/server/acl-t.c
Examining data/remctl-3.16/tests/server/anonymous-t.c
Examining data/remctl-3.16/tests/server/bind-t.c
Examining data/remctl-3.16/tests/server/config-t.c
Examining data/remctl-3.16/tests/server/continue-t.c
Examining data/remctl-3.16/tests/server/empty-t.c
Examining data/remctl-3.16/tests/server/env-t.c
Examining data/remctl-3.16/tests/server/errors-t.c
Examining data/remctl-3.16/tests/server/help-t.c
Examining data/remctl-3.16/tests/server/invalid-t.c
Examining data/remctl-3.16/tests/server/logging-t.c
Examining data/remctl-3.16/tests/server/noop-t.c
Examining data/remctl-3.16/tests/server/ssh-parse-t.c
Examining data/remctl-3.16/tests/server/stdin-t.c
Examining data/remctl-3.16/tests/server/streaming-t.c
Examining data/remctl-3.16/tests/server/sudo-t.c
Examining data/remctl-3.16/tests/server/summary-t.c
Examining data/remctl-3.16/tests/server/user-t.c
Examining data/remctl-3.16/tests/server/version-t.c
Examining data/remctl-3.16/tests/tap/basic.c
Examining data/remctl-3.16/tests/tap/basic.h
Examining data/remctl-3.16/tests/tap/kerberos.c
Examining data/remctl-3.16/tests/tap/kerberos.h
Examining data/remctl-3.16/tests/tap/messages.c
Examining data/remctl-3.16/tests/tap/messages.h
Examining data/remctl-3.16/tests/tap/macros.h
Examining data/remctl-3.16/tests/tap/process.c
Examining data/remctl-3.16/tests/tap/process.h
Examining data/remctl-3.16/tests/tap/remctl.c
Examining data/remctl-3.16/tests/tap/remctl.h
Examining data/remctl-3.16/tests/tap/string.c
Examining data/remctl-3.16/tests/tap/string.h
Examining data/remctl-3.16/tests/util/network/addr-ipv4-t.c
Examining data/remctl-3.16/tests/util/network/addr-ipv6-t.c
Examining data/remctl-3.16/tests/util/network/client-t.c
Examining data/remctl-3.16/tests/util/network/server-t.c
Examining data/remctl-3.16/tests/util/buffer-t.c
Examining data/remctl-3.16/tests/util/fdflag-t.c
Examining data/remctl-3.16/tests/util/faketoken.c
Examining data/remctl-3.16/tests/util/faketoken.h
Examining data/remctl-3.16/tests/util/gss-tokens.c
Examining data/remctl-3.16/tests/util/gss-tokens-t.c
Examining data/remctl-3.16/tests/util/messages-krb5-t.c
Examining data/remctl-3.16/tests/util/messages-t.c
Examining data/remctl-3.16/tests/util/tokens-t.c
Examining data/remctl-3.16/tests/util/vector-t.c
Examining data/remctl-3.16/tests/util/xmalloc.c
Examining data/remctl-3.16/tests/util/fakewrite.c
Examining data/remctl-3.16/tests/util/fakewrite.h
Examining data/remctl-3.16/tests/util/xwrite.c
Examining data/remctl-3.16/tests/util/xwrite-t.c
Examining data/remctl-3.16/tests/runtests.c
Examining data/remctl-3.16/util/buffer.c
Examining data/remctl-3.16/util/buffer.h
Examining data/remctl-3.16/util/fdflag.c
Examining data/remctl-3.16/util/fdflag.h
Examining data/remctl-3.16/util/gss-errors.c
Examining data/remctl-3.16/util/gss-errors.h
Examining data/remctl-3.16/util/gss-tokens.c
Examining data/remctl-3.16/util/gss-tokens.h
Examining data/remctl-3.16/util/macros.h
Examining data/remctl-3.16/util/messages.c
Examining data/remctl-3.16/util/messages.h
Examining data/remctl-3.16/util/network.c
Examining data/remctl-3.16/util/network.h
Examining data/remctl-3.16/util/protocol.h
Examining data/remctl-3.16/util/tokens.c
Examining data/remctl-3.16/util/tokens.h
Examining data/remctl-3.16/util/vector.c
Examining data/remctl-3.16/util/vector.h
Examining data/remctl-3.16/util/xmalloc.c
Examining data/remctl-3.16/util/xmalloc.h
Examining data/remctl-3.16/util/xwrite.c
Examining data/remctl-3.16/util/xwrite.h
Examining data/remctl-3.16/util/messages-krb5.c
Examining data/remctl-3.16/util/messages-krb5.h

FINAL RESULTS:

data/remctl-3.16/client/internal.h:59: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), __nonnull__));
data/remctl-3.16/portable/asprintf.c:39: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/remctl-3.16/portable/asprintf.c:41: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/remctl-3.16/portable/asprintf.c:65: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/remctl-3.16/portable/asprintf.c:74: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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/portable/snprintf.c:142: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/remctl-3.16/portable/snprintf.c:143: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/remctl-3.16/portable/snprintf.c:874: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/remctl-3.16/portable/snprintf.c:881: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/remctl-3.16/portable/snprintf.c:887: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/remctl-3.16/portable/snprintf.c:940: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/remctl-3.16/portable/snprintf.c:941:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (buf2, fp_fmt[x], fp_nums[y]);
data/remctl-3.16/portable/snprintf.c:954: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/remctl-3.16/portable/snprintf.c:955:7:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
      sprintf (buf2, int_fmt[x], int_nums[y]);
data/remctl-3.16/portable/system.h:85: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/remctl-3.16/portable/system.h:85: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/remctl-3.16/portable/system.h:132: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/remctl-3.16/portable/system.h:134: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/remctl-3.16/portable/system.h:137: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/remctl-3.16/portable/system.h:138: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/remctl-3.16/portable/system.h:141: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/remctl-3.16/portable/system.h:142: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, 0)));
data/remctl-3.16/server/process.c:297: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(argv0, (char **) process->argv) < 0)
data/remctl-3.16/server/remctl-shell.c:61:5:  [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(output, usage_message);
data/remctl-3.16/server/remctld.c:101:5:  [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(output, usage_message);
data/remctl-3.16/tests/client/open-t.c:174:16:  [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.
        while (access(pidfile, F_OK) < 0) {
data/remctl-3.16/tests/portable/asprintf-t.c:27: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/remctl-3.16/tests/portable/asprintf-t.c:29: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/remctl-3.16/tests/portable/asprintf-t.c:31:38:  [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.
static int __attribute__((__format__(printf, 2, 3)))
data/remctl-3.16/tests/portable/daemon-t.c:65: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/remctl-3.16/tests/portable/daemon-t.c:73: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/remctl-3.16/tests/portable/mkstemp-t.c:63:8:  [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.
    ok(access(template, F_OK) == 0, "...and the file exists");
data/remctl-3.16/tests/portable/snprintf-t.c:167:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            count = sprintf(lgbuf, fp_formats[i], fp_nums[j]);
data/remctl-3.16/tests/portable/snprintf-t.c:172:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            count = sprintf(lgbuf, int_formats[i], int_nums[j]);
data/remctl-3.16/tests/portable/snprintf-t.c:177:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            count = sprintf(lgbuf, uint_formats[i], uint_nums[j]);
data/remctl-3.16/tests/portable/snprintf-t.c:182:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            count = sprintf(lgbuf, llong_formats[i], llong_nums[j]);
data/remctl-3.16/tests/portable/snprintf-t.c:187:21:  [4] (format) sprintf:
  Potential format string problem (CWE-134). Make format string constant.
            count = sprintf(lgbuf, ullong_formats[i], ullong_nums[j]);
data/remctl-3.16/tests/runtests.c:295: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/remctl-3.16/tests/runtests.c:297: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/remctl-3.16/tests/runtests.c:321: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/remctl-3.16/tests/runtests.c:341: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/remctl-3.16/tests/runtests.c:619: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(command[0], command) == -1)
data/remctl-3.16/tests/runtests.c:1228: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/remctl-3.16/tests/runtests.c:1651: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/remctl-3.16/tests/runtests.c:1686: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/remctl-3.16/tests/runtests.c:1707: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/remctl-3.16/tests/runtests.c:1749: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/remctl-3.16/tests/server/ssh-parse-t.c:22:39:  [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.
static bool __attribute__((__format__(printf, 3, 4)))
data/remctl-3.16/tests/tap/basic.c:137: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/remctl-3.16/tests/tap/basic.c:458: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/remctl-3.16/tests/tap/basic.c:677: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/remctl-3.16/tests/tap/basic.c:699: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/remctl-3.16/tests/tap/basic.c:720: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/remctl-3.16/tests/tap/basic.c:742: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/remctl-3.16/tests/tap/basic.c:933: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/remctl-3.16/tests/tap/basic.c:974: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/remctl-3.16/tests/tap/basic.h:68: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/remctl-3.16/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, 3)));
data/remctl-3.16/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, 2, 0)));
data/remctl-3.16/tests/tap/basic.h:81: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/remctl-3.16/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, 3, 4)));
data/remctl-3.16/tests/tap/basic.h:90: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/remctl-3.16/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/remctl-3.16/tests/tap/basic.h:101: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/remctl-3.16/tests/tap/basic.h:103: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/remctl-3.16/tests/tap/basic.h:105: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/remctl-3.16/tests/tap/basic.h:107: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, 4, 5)));
data/remctl-3.16/tests/tap/basic.h:111: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/remctl-3.16/tests/tap/basic.h:113: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/remctl-3.16/tests/tap/basic.h:117: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/remctl-3.16/tests/tap/basic.h:119: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/remctl-3.16/tests/tap/kerberos.c:197:18:  [4] (shell) system:
  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.
        status = system(command);
data/remctl-3.16/tests/tap/kerberos.h:114:61:  [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__(3), __format__(printf, 3, 4)));
data/remctl-3.16/tests/tap/kerberos.h:118:47:  [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__(3), __format__(printf, 3, 4)));
data/remctl-3.16/tests/tap/messages.c:53:39:  [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.
static void __attribute__((__format__(printf, 2, 0)))
data/remctl-3.16/tests/tap/process.c:199: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/remctl-3.16/tests/tap/process.c:458: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/remctl-3.16/tests/tap/process.c:468: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/remctl-3.16/tests/tap/process.c:478: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/remctl-3.16/tests/tap/process.h:56: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/remctl-3.16/tests/tap/remctl.c:85: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/remctl-3.16/tests/tap/string.h:45: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/remctl-3.16/tests/tap/string.h:47: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, 0)));
data/remctl-3.16/tests/util/buffer-t.c:37:39:  [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.
static void __attribute__((__format__(printf, 2, 3)))
data/remctl-3.16/tests/util/buffer-t.c:51:39:  [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.
static void __attribute__((__format__(printf, 2, 3)))
data/remctl-3.16/tests/util/fdflag-t.c:116: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/remctl-3.16/tests/util/messages-t.c:139:39:  [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.
static void __attribute__((__format__(printf, 2, 0)))
data/remctl-3.16/tests/util/messages-t.c:143: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/remctl-3.16/tests/util/tokens-t.c:96:12:  [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.
    while (access("server-ready", F_OK) != 0) {
data/remctl-3.16/tests/util/xmalloc.c:270:39:  [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.
static void __attribute__((__format__(printf, 2, 3)))
data/remctl-3.16/util/buffer.c:157: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->data + total, avail, format, args_copy);
data/remctl-3.16/util/buffer.c:166: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(buffer->data + total, avail, format, args);
data/remctl-3.16/util/buffer.h:98: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), __nonnull__));
data/remctl-3.16/util/buffer.h:100: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), __nonnull__));
data/remctl-3.16/util/buffer.h:108: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), __nonnull__));
data/remctl-3.16/util/buffer.h:110: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), __nonnull__));
data/remctl-3.16/util/messages-krb5.h:49:61:  [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__(3), __noreturn__, __format__(printf, 3, 4)));
data/remctl-3.16/util/messages-krb5.h:51:47:  [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__(3), __format__(printf, 3, 4)));
data/remctl-3.16/util/messages.c:196: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/remctl-3.16/util/messages.c:214: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/remctl-3.16/util/messages.c:229:39:  [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.
static void __attribute__((__format__(printf, 3, 0)))
data/remctl-3.16/util/messages.c:241: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/remctl-3.16/util/messages.c:301: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/remctl-3.16/util/messages.c:320: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/remctl-3.16/util/messages.c:340: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/remctl-3.16/util/messages.c:359: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/remctl-3.16/util/messages.c:379: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/remctl-3.16/util/messages.c:398: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/remctl-3.16/util/messages.c:418: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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/util/messages.h:60: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/remctl-3.16/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/remctl-3.16/util/messages.h:64: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/remctl-3.16/util/messages.h:89: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), __nonnull__));
data/remctl-3.16/util/messages.h:91: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), __nonnull__));
data/remctl-3.16/util/messages.h:93: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), __nonnull__));
data/remctl-3.16/util/messages.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, 2, 0), __nonnull__));
data/remctl-3.16/util/messages.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, 2, 0), __nonnull__));
data/remctl-3.16/util/messages.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, 2, 0), __nonnull__));
data/remctl-3.16/util/messages.h:101: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), __nonnull__));
data/remctl-3.16/util/messages.h:103: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), __nonnull__));
data/remctl-3.16/util/messages.h:107: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/remctl-3.16/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/remctl-3.16/util/vector.c:562: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/remctl-3.16/util/xmalloc.c:231: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/remctl-3.16/util/xmalloc.c:255: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/remctl-3.16/util/xmalloc.c:278: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/remctl-3.16/util/xmalloc.h:94: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, 0)));
data/remctl-3.16/util/xmalloc.h:99: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/remctl-3.16/util/xmalloc.h:102: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/remctl-3.16/client/remctl.c:144: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:dhp:s:t:v")) != EOF) {
data/remctl-3.16/portable/getopt.c:45:9:  [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/remctl-3.16/portable/getopt.c:50: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.
# define getopt test_getopt
data/remctl-3.16/portable/getopt.c:78:1:  [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.
getopt(int argc, char *argv[], const char *optstring)
data/remctl-3.16/portable/getopt.c:102: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("POSIXLY_CORRECT") != NULL) {
data/remctl-3.16/portable/getopt.c:142:34:  [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.
                        option = getopt(argc, argv, optstring);
data/remctl-3.16/portable/getopt.h:66:5:  [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.
int getopt(int argc, char *argv[], const char *opts);
data/remctl-3.16/portable/setenv.c:42:23:  [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 (!overwrite && getenv(name) != NULL)
data/remctl-3.16/server/remctl-shell.c:115: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, "c:df:hqS")) != EOF) {
data/remctl-3.16/server/remctl-shell.c:155:26:  [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.
        command_string = getenv("SSH_ORIGINAL_COMMAND");
data/remctl-3.16/server/remctld.c:540: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:dFf:hk:mP:p:Ss:vZ")) != EOF) {
data/remctl-3.16/server/server-ssh.c:247: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.
        user = getenv("REMCTL_USER");
data/remctl-3.16/server/server-ssh.c:250:18:  [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.
    ssh_client = getenv("SSH_CONNECTION");
data/remctl-3.16/tests/client/ccache-t.c:54: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.
    cache = getenv("KRB5CCNAME");
data/remctl-3.16/tests/portable/setenv-t.c:39: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(test_var))
data/remctl-3.16/tests/portable/setenv-t.c:43: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.
    is_string(test_value1, getenv(test_var), "...and getenv correct");
data/remctl-3.16/tests/portable/setenv-t.c:45: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.
    is_string(test_value1, getenv(test_var), "...and getenv unchanged");
data/remctl-3.16/tests/portable/setenv-t.c:47: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.
    is_string(test_value2, getenv(test_var), "...and getenv changed");
data/remctl-3.16/tests/portable/setenv-t.c:49:19:  [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.
    is_string("", getenv(test_var), "...and getenv correct");
data/remctl-3.16/tests/runtests.c:1326:24:  [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.
            valgrind = getenv("C_TAP_VALGRIND");
data/remctl-3.16/tests/runtests.c:1352:23:  [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.
            libtool = getenv("C_TAP_LIBTOOL");
data/remctl-3.16/tests/runtests.c:1680: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/remctl-3.16/tests/runtests.c:1715: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/remctl-3.16/tests/server/acl-t.c:81:15:  [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 (chdir(getenv("C_TAP_SOURCE")) < 0)
data/remctl-3.16/tests/server/config-t.c:52:15:  [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 (chdir(getenv("C_TAP_SOURCE")) < 0)
data/remctl-3.16/tests/server/sudo-t.c:30:15:  [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 (chdir(getenv("C_TAP_BUILD")) < 0)
data/remctl-3.16/tests/tap/basic.c:929: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/remctl-3.16/tests/tap/basic.c:970: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("C_TAP_BUILD");
data/remctl-3.16/tests/tap/remctl.c:90: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.
    valgrind = getenv("C_TAP_VALGRIND");
data/remctl-3.16/tests/util/tokens-t.c:147:15:  [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 (chdir(getenv("C_TAP_BUILD")) < 0)
data/remctl-3.16/client/api.c:126: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 + oldlen, output->data, output->length);
data/remctl-3.16/client/client-v1.c:71: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, &data, 4);
data/remctl-3.16/client/client-v1.c:80: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(p, &data, 4);
data/remctl-3.16/client/client-v1.c:82: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(p, command[i].iov_base, command[i].iov_len);
data/remctl-3.16/client/client-v1.c:158: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(&data, p, 4);
data/remctl-3.16/client/client-v1.c:161: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(&data, p, 4);
data/remctl-3.16/client/client-v1.c:188: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(r->output->data, p, length);
data/remctl-3.16/client/client-v2.c:119: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(p, &data, 4);
data/remctl-3.16/client/client-v2.c:142: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(p, &data, 4);
data/remctl-3.16/client/client-v2.c:151: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(p, (char *) command[iov].iov_base + offset, delta);
data/remctl-3.16/client/client-v2.c:151:24:  [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.
            memcpy(p, (char *) command[iov].iov_base + offset, delta);
data/remctl-3.16/client/client-v2.c:186: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[2] = { 2, MESSAGE_QUIT };
data/remctl-3.16/client/client-v2.c:258: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(&data, p, 4);
data/remctl-3.16/client/client-v2.c:270: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(r->output->data, p, size);
data/remctl-3.16/client/client-v2.c:347:9:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
        memcpy(&data, p + 2, 4);
data/remctl-3.16/client/client-v2.c:377: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[2] = { 3, MESSAGE_NOOP };
data/remctl-3.16/client/open.c:44: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/remctl-3.16/php/php5_remctl.c:202:20:  [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.
            efree((char *) command[i]);
data/remctl-3.16/php/php5_remctl.c:394: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(cmd_vec[i].iov_base, Z_STRVAL_PP(data), cmd_vec[i].iov_len);
data/remctl-3.16/php/php_remctl.c:193:20:  [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.
            efree((char *) command[i]);
data/remctl-3.16/php/php_remctl.c:385: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(cmd_vec[i].iov_base, Z_STRVAL_P(data), cmd_vec[i].iov_len);
data/remctl-3.16/portable/daemon.c:66: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/remctl-3.16/portable/daemon.c:82: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/remctl-3.16/portable/getnameinfo.c:76: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/remctl-3.16/portable/getnameinfo.c:125: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/remctl-3.16/portable/getnameinfo.c:151: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/remctl-3.16/portable/inet_ntoa.c:42: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/remctl-3.16/portable/inet_ntoa.c:46: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/remctl-3.16/portable/mkstemp.c:38: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/remctl-3.16/portable/mkstemp.c:39: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/remctl-3.16/portable/mkstemp.c:51: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/remctl-3.16/portable/mkstemp.c:89: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/remctl-3.16/portable/snprintf.c:534: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/remctl-3.16/portable/snprintf.c:672: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/remctl-3.16/portable/snprintf.c:673: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/remctl-3.16/portable/snprintf.c:898: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/remctl-3.16/portable/snprintf.c:899: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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/portable/strndup.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(copy, s, length);
data/remctl-3.16/portable/system.h:116: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/remctl-3.16/portable/system.h:148: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/remctl-3.16/server/config.c:440: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(name, "r");
data/remctl-3.16/server/config.c:605: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/remctl-3.16/server/config.c:612: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(aclfile, "r");
data/remctl-3.16/server/config.c:912: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 error[BUFSIZ];
data/remctl-3.16/server/config.c:959: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/remctl-3.16/server/generic.c:236: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(&tmp, p, 4);
data/remctl-3.16/server/generic.c:269: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(&tmp, p, 4);
data/remctl-3.16/server/generic.c:283: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(argv[count]->iov_base, p, arglen);
data/remctl-3.16/server/process.c:217:18:  [2] (misc) open:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
            fd = open("/dev/null", O_RDONLY);
data/remctl-3.16/server/remctld.c:347: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).
    fd = mkstemp(template);
data/remctl-3.16/server/remctld.c:380: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 ip[INET6_ADDRSTRLEN];
data/remctl-3.16/server/server-ssh.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(argv[i]->iov_base, args->strings[i], length);
data/remctl-3.16/server/server-v1.c:127: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, &tmp, 4);
data/remctl-3.16/server/server-v1.c:130: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, &tmp, 4);
data/remctl-3.16/server/server-v2.c:69: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, &tmp, 4);
data/remctl-3.16/server/server-v2.c:146: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[1 + 1 + 1];
data/remctl-3.16/server/server-v2.c:199: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, &tmp, 4);
data/remctl-3.16/server/server-v2.c:202: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, &tmp, 4);
data/remctl-3.16/server/server-v2.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(p, message, strlen(message));
data/remctl-3.16/server/server-v2.c:231: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[1 + 1 + 1];
data/remctl-3.16/server/server-v2.c:265: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[1 + 1];
data/remctl-3.16/server/server-v2.c:418: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(buffer + total, p, length);
data/remctl-3.16/tests/client/open-t.c:68: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(pidfile, O_WRONLY | O_CREAT | O_TRUNC, 0666);
data/remctl-3.16/tests/data/cmd-background.c:37:19:  [2] (misc) fopen:
  Check when opening files - can an attacker redirect it (via symlinks),
  force the opening of special file type (e.g., device files), move things
  around to create a race condition, control its ancestors, or change its
  contents? (CWE-362).
        pidfile = fopen(path, "w");
data/remctl-3.16/tests/portable/daemon-t.c:48: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/remctl-3.16/tests/portable/daemon-t.c:86: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/remctl-3.16/tests/portable/daemon-t.c:100: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/remctl-3.16/tests/portable/getnameinfo-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 node[256], service[256];
data/remctl-3.16/tests/portable/inet_ntop-t.c:40: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/remctl-3.16/tests/portable/mkstemp-t.c:37: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[256];
data/remctl-3.16/tests/portable/snprintf-t.c:107: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/remctl-3.16/tests/portable/snprintf-t.c:125: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/remctl-3.16/tests/runtests.c:422: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/remctl-3.16/tests/runtests.c:450: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, len);
data/remctl-3.16/tests/runtests.c:496: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/remctl-3.16/tests/runtests.c:598: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/remctl-3.16/tests/runtests.c:609: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/remctl-3.16/tests/runtests.c:1111: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/remctl-3.16/tests/runtests.c:1254: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/remctl-3.16/tests/runtests.c:1256: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/remctl-3.16/tests/runtests.c:1385: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/remctl-3.16/tests/runtests.c:1397: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/remctl-3.16/tests/server/acl-t.c:78: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 *acls[5];
data/remctl-3.16/tests/server/acl/localgroup-t.c:81: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 *acls[5];
data/remctl-3.16/tests/server/acl/localgroup-t.c:126: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 long_principal[VERY_LONG_PRINCIPAL];
data/remctl-3.16/tests/server/acl/localgroup-t.c:127: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 *acls[5];
data/remctl-3.16/tests/server/bind-t.c: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 service[16];
data/remctl-3.16/tests/server/continue-t.c:42: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/remctl-3.16/tests/server/continue-t.c:61: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, prefix_first, sizeof(prefix_first));
data/remctl-3.16/tests/server/continue-t.c:62: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 + sizeof(prefix_first), data, 2);
data/remctl-3.16/tests/server/continue-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, prefix_next, sizeof(prefix_next));
data/remctl-3.16/tests/server/continue-t.c:69: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 + sizeof(prefix_next), data + 2, 4);
data/remctl-3.16/tests/server/continue-t.c:75: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, prefix_next, sizeof(prefix_next));
data/remctl-3.16/tests/server/continue-t.c:76: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 + sizeof(prefix_next), data + 6, 13);
data/remctl-3.16/tests/server/continue-t.c:82: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, prefix_last, sizeof(prefix_last));
data/remctl-3.16/tests/server/continue-t.c:83: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 + sizeof(prefix_last), data + 19, sizeof(data) - 19);
data/remctl-3.16/tests/server/empty-t.c:38: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).
    conf = fopen(confpath, "w");
data/remctl-3.16/tests/server/invalid-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 buffer[BUFSIZ];
data/remctl-3.16/tests/server/invalid-t.c:88: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, prefix, sizeof(prefix));
data/remctl-3.16/tests/server/invalid-t.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(buffer + sizeof(prefix), data, length);
data/remctl-3.16/tests/server/user-t.c:130: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).
    conf = fopen(confpath, "w");
data/remctl-3.16/tests/tap/basic.c:180: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/remctl-3.16/tests/tap/basic.c:759: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/remctl-3.16/tests/tap/basic.c:884: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/remctl-3.16/tests/tap/basic.c:908: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/remctl-3.16/tests/tap/kerberos.c:169: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 principal[BUFSIZ], *command;
data/remctl-3.16/tests/tap/kerberos.c:180: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/remctl-3.16/tests/tap/kerberos.c:295: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/remctl-3.16/tests/tap/kerberos.c:327:16:  [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/remctl-3.16/tests/tap/kerberos.c:366:16:  [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/remctl-3.16/tests/tap/kerberos.c:435: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 *argv[3];
data/remctl-3.16/tests/tap/process.c:375: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/remctl-3.16/tests/tap/process.c:378: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/remctl-3.16/tests/tap/process.c:428: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/remctl-3.16/tests/util/buffer-t.c:130: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("buffer-test", O_RDWR | O_CREAT | O_TRUNC, 0666);
data/remctl-3.16/tests/util/buffer-t.c:212: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("buffer-test", O_RDWR | O_CREAT | O_TRUNC, 0666);
data/remctl-3.16/tests/util/faketoken.c:24: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 send_buffer[2048];
data/remctl-3.16/tests/util/faketoken.c:29: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 recv_buffer[2048];
data/remctl-3.16/tests/util/faketoken.c:50: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(send_buffer, tok->value, tok->length);
data/remctl-3.16/tests/util/faketoken.c:69: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(tok->value, recv_buffer, recv_length);
data/remctl-3.16/tests/util/faketoken.h:33:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char send_buffer[2048];
data/remctl-3.16/tests/util/faketoken.h:38:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char recv_buffer[2048];
data/remctl-3.16/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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/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/remctl-3.16/tests/util/fakewrite.h:47:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
extern char write_buffer[256];
data/remctl-3.16/tests/util/gss-tokens-t.c:98: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(recv_buffer, send_buffer, send_length);
data/remctl-3.16/tests/util/gss-tokens-t.c:120: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(recv_buffer, server_tok.value, server_tok.length);
data/remctl-3.16/tests/util/gss-tokens-t.c:136: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(recv_buffer, client_tok.value, client_tok.length);
data/remctl-3.16/tests/util/gss-tokens-t.c:143: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(recv_buffer, send_buffer, send_length);
data/remctl-3.16/tests/util/messages-t.c:270: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/remctl-3.16/tests/util/messages-t.c:289: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/remctl-3.16/tests/util/network/addr-ipv4-t.c:67: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/remctl-3.16/tests/util/network/addr-ipv6-t.c:65: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/remctl-3.16/tests/util/network/client-t.c:143: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/remctl-3.16/tests/util/network/client-t.c:311: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/remctl-3.16/tests/util/network/server-t.c:192: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/remctl-3.16/tests/util/network/server-t.c:499: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/remctl-3.16/tests/util/tokens-t.c:66: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).
    marker = open("server-ready", O_WRONLY | O_CREAT | O_TRUNC, 0666);
data/remctl-3.16/tests/util/tokens-t.c:127: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.value, "hello", 5);
data/remctl-3.16/tests/util/tokens-t.c:140: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[20];
data/remctl-3.16/tests/util/tokens-t.c:286: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).
    server = open("/dev/full", O_RDWR);
data/remctl-3.16/tests/util/tokens-t.c:291: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.value, "hello", 5);
data/remctl-3.16/tests/util/xmalloc.c:188: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/remctl-3.16/tests/util/xmalloc.c:196: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/remctl-3.16/tests/util/xwrite-t.c:43:8:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
static char data[256];
data/remctl-3.16/util/buffer.c:138: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->data + total, data, length);
data/remctl-3.16/util/network.c:285: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/remctl-3.16/util/network.c:595: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/remctl-3.16/util/tokens.c:73: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, &char_flags, 1);
data/remctl-3.16/util/tokens.c:75: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 + 1, &len, sizeof(OM_uint32));
data/remctl-3.16/util/tokens.c:76: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 + 1 + sizeof(OM_uint32), tok->value, tok->length);
data/remctl-3.16/util/vector.c:486: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(string + offset, separator, seplen);
data/remctl-3.16/util/vector.c:490: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(string + offset, vector->strings[i], length);
data/remctl-3.16/util/vector.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(string + offset, separator, seplen);
data/remctl-3.16/util/vector.c:530: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(string + offset, vector->strings[i], length);
data/remctl-3.16/util/xmalloc.c:187: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/remctl-3.16/util/xmalloc.c:213: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/remctl-3.16/util/xwrite.c:195: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/remctl-3.16/util/xwrite.c:213: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/remctl-3.16/client/api.c:113: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).
        oldlen = strlen(old);
data/remctl-3.16/client/api.c:556:29:  [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).
        vector[i].iov_len = strlen(command[i]);
data/remctl-3.16/client/open.c:112:26:  [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).
    name_buffer.length = strlen(principal) + 1;
data/remctl-3.16/portable/getnameinfo.c:72: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/remctl-3.16/portable/getnameinfo.c:122: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/remctl-3.16/portable/getnameinfo.c:148: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/remctl-3.16/portable/mkstemp.c:65: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/remctl-3.16/portable/snprintf.c:498: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).
    strln = (int) strlen (value);
data/remctl-3.16/portable/socket.h:258: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/remctl-3.16/server/config.c:397: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(handler->name) == length)
data/remctl-3.16/server/config.c:447: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);
data/remctl-3.16/server/config.c:476: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(buffer);
data/remctl-3.16/server/config.c:620: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);
data/remctl-3.16/server/config.c:884:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    status = pcre_exec(regex, NULL, user, (int) strlen(user), 0, 0, NULL, 0);
data/remctl-3.16/server/remctld.c:172:21:  [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).
    buffer.length = strlen(buffer.value) + 1;
data/remctl-3.16/server/server-ssh.c:132: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(args->strings[i]);
data/remctl-3.16/server/server-ssh.c:215:49:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    status = xwrite(client->stderr_fd, message, strlen(message));
data/remctl-3.16/server/server-v2.c:189: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(message) >= UINT32_MAX - 1 - 1 - 4 - 4)
data/remctl-3.16/server/server-v2.c:191:36:  [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).
    token.length = 1 + 1 + 4 + 4 + strlen(message);
data/remctl-3.16/server/server-v2.c:201:29:  [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).
    tmp = htonl((OM_uint32) strlen(message));
data/remctl-3.16/server/server-v2.c:204:24:  [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(p, message, strlen(message));
data/remctl-3.16/tests/client/ccache-t.c:83: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).
                      strlen("hello world\n")) == 0,
data/remctl-3.16/tests/client/ccache-t.c:85:20:  [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).
            is_int(strlen("hello world\n"), output->length, "correct length");
data/remctl-3.16/tests/client/large-t.c:37:26:  [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).
    command[0].iov_len = strlen("test");
data/remctl-3.16/tests/client/large-t.c:39:26:  [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).
    command[1].iov_len = strlen("noauth");
data/remctl-3.16/tests/client/source-ip-t.c:49:48:  [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).
        ok(memcmp("127.0.0.1\n", output->data, strlen("127.0.0.1\n")) == 0,
data/remctl-3.16/tests/client/source-ip-t.c:51:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        is_int(strlen("127.0.0.1\n"), output->length, "correct length");
data/remctl-3.16/tests/client/source-ip-t.c:59: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).
                strlen("cannot connect to ::1 (port 14373): ")) == 0)
data/remctl-3.16/tests/client/source-ip-t.c:61:21:  [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).
                    strlen("unknown host ::1: ")) == 0)),
data/remctl-3.16/tests/client/timeout-t.c:60:44:  [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).
        ok(memcmp("hello\n", output->data, strlen("hello\n")) == 0,
data/remctl-3.16/tests/client/timeout-t.c:62:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        is_int(strlen("hello\n"), output->length, "  correct length");
data/remctl-3.16/tests/data/cmd-closed.c:25:13:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    count = read(0, &buffer, 1);
data/remctl-3.16/tests/data/cmd-stdin.c:46:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        status = read(0, buffer, 1024 * 1024);
data/remctl-3.16/tests/data/cmd-stdin.c:50:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        status = read(0, buffer + status, 1024 * 1024 - status);
data/remctl-3.16/tests/data/cmd-stdin.c:56:30:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:56:58:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:58:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        status = read(0, buffer, 1024 * 1024);
data/remctl-3.16/tests/data/cmd-stdin.c:61:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        status = read(0, buffer + status, 1024 * 1024 - status);
data/remctl-3.16/tests/data/cmd-stdin.c:65:30:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:65:58:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:69:30:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:69:58:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:72:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        status = read(0, buffer, 1024 * 1024);
data/remctl-3.16/tests/data/cmd-stdin.c:76:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        status = read(0, buffer + status, 1024 * 1024 - status);
data/remctl-3.16/tests/data/cmd-stdin.c:81:30:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:81:58:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:88:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                status = read(0, p, left);
data/remctl-3.16/tests/data/cmd-stdin.c:98:30:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:98:58:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:108:26:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
                status = read(0, p, left);
data/remctl-3.16/tests/data/cmd-stdin.c:118:30:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/data/cmd-stdin.c:118:58:  [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 (write(1, "Okay", strlen("Okay")) < (ssize_t) strlen("Okay"))
data/remctl-3.16/tests/portable/mkstemp-t.c:72: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/remctl-3.16/tests/portable/mkstemp-t.c:75:20:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
    is_int(length, read(fd, buffer, length), "...and the data is there");
data/remctl-3.16/tests/runtests.c:417: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/remctl-3.16/tests/runtests.c:482: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/remctl-3.16/tests/runtests.c:486: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/remctl-3.16/tests/runtests.c:496: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/remctl-3.16/tests/runtests.c:497: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/remctl-3.16/tests/runtests.c:741: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/remctl-3.16/tests/runtests.c:804: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/remctl-3.16/tests/runtests.c:808: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/remctl-3.16/tests/runtests.c:824: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/remctl-3.16/tests/runtests.c:1403: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/remctl-3.16/tests/runtests.c:1412: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(start) == 0)
data/remctl-3.16/tests/runtests.c:1530: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/remctl-3.16/tests/runtests.c:1555: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/remctl-3.16/tests/server/accept-t.c:58:26:  [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).
    name_buffer.length = strlen(principal) + 1;
data/remctl-3.16/tests/server/acl-t.c:285:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
               strlen("TEST:0: compilation of regex '*host/.*' failed:")) == 0,
data/remctl-3.16/tests/server/anonymous-t.c:72:33:  [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).
                 (unsigned int) strlen(realm), realm,
data/remctl-3.16/tests/server/anonymous-t.c:73: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).
                 strlen(KRB5_WELLKNOWN_NAME), KRB5_WELLKNOWN_NAME,
data/remctl-3.16/tests/server/anonymous-t.c:74: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).
                 strlen(KRB5_ANON_NAME), KRB5_ANON_NAME, NULL);
data/remctl-3.16/tests/server/bind-t.c:92:20:  [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).
            is_int(strlen(addr) + 1, output->length, "... length ok");
data/remctl-3.16/tests/server/config-t.c:36: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).
        p += strlen("not found");
data/remctl-3.16/tests/server/invalid-t.c:64:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        is_int(strlen(message), output->length, "right length for %s",
data/remctl-3.16/tests/server/invalid-t.c:66:31:  [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 (output->length <= strlen(message))
data/remctl-3.16/tests/server/logging-t.c:36:27:  [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).
    command[0]->iov_len = strlen("foo");
data/remctl-3.16/tests/server/logging-t.c:46:27:  [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).
    command[1]->iov_len = strlen("f\1o\33o\37o\177");
data/remctl-3.16/tests/server/logging-t.c:58:27:  [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).
    command[1]->iov_len = strlen("bar");
data/remctl-3.16/tests/server/logging-t.c:60:27:  [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).
    command[2]->iov_len = strlen("arg1");
data/remctl-3.16/tests/server/logging-t.c:62:27:  [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).
    command[3]->iov_len = strlen("arg2");
data/remctl-3.16/tests/server/ssh-parse-t.c:30: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(wanted);
data/remctl-3.16/tests/server/stdin-t.c:37:26:  [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).
    command[0].iov_len = strlen("test");
data/remctl-3.16/tests/server/stdin-t.c:39:26:  [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).
    command[1].iov_len = strlen("stdin");
data/remctl-3.16/tests/server/stdin-t.c:41:26:  [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).
    command[2].iov_len = strlen(test);
data/remctl-3.16/tests/server/stdin-t.c:57:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        is_int(strlen("Okay"), output->length, "...and is right length");
data/remctl-3.16/tests/server/user-t.c:83:10:  [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).
    data[strlen(data) - 1] = '\0';
data/remctl-3.16/tests/tap/basic.c:168: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/remctl-3.16/tests/tap/basic.c:170: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/remctl-3.16/tests/tap/basic.c:180: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/remctl-3.16/tests/tap/basic.c:181: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/remctl-3.16/tests/tap/basic.c:222: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(file->buffer);
data/remctl-3.16/tests/tap/basic.c:880: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/remctl-3.16/tests/tap/kerberos.c:189: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).
    if (principal[strlen(principal) - 1] != '\n')
data/remctl-3.16/tests/tap/kerberos.c:191: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).
    principal[strlen(principal) - 1] = '\0';
data/remctl-3.16/tests/tap/kerberos.c:334:20:  [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 (buffer[strlen(buffer) - 1] != '\n')
data/remctl-3.16/tests/tap/kerberos.c:336:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buffer[strlen(buffer) - 1] = '\0';
data/remctl-3.16/tests/tap/kerberos.c:341:20:  [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 (buffer[strlen(buffer) - 1] != '\n')
data/remctl-3.16/tests/tap/kerberos.c:343:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buffer[strlen(buffer) - 1] = '\0';
data/remctl-3.16/tests/tap/kerberos.c:370:20:  [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 (buffer[strlen(buffer) - 1] != '\n')
data/remctl-3.16/tests/tap/kerberos.c:372:16:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
        buffer[strlen(buffer) - 1] = '\0';
data/remctl-3.16/tests/tap/process.c:138: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/remctl-3.16/tests/util/fdflag-t.c:100: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/remctl-3.16/tests/util/fdflag-t.c:113: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/remctl-3.16/tests/util/gss-tokens-t.c:42: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).
    name_buf.length = strlen(config->principal) + 1;
data/remctl-3.16/tests/util/tokens-t.c:161:18:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        length = read(client, buffer, 12);
data/remctl-3.16/util/buffer.c:249: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(string);
data/remctl-3.16/util/buffer.c:276:17:  [1] (buffer) read:
  Check buffer boundaries if used in a loop including recursive loops
  (CWE-120, CWE-20).
        count = read(fd, buffer->data + used, buffer->size - used);
data/remctl-3.16/util/vector.c:473: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/remctl-3.16/util/vector.c:475: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/remctl-3.16/util/vector.c:476: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/remctl-3.16/util/vector.c:489: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(vector->strings[i]);
data/remctl-3.16/util/vector.c:513: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/remctl-3.16/util/vector.c:515: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/remctl-3.16/util/vector.c:516: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/remctl-3.16/util/vector.c:529: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(vector->strings[i]);
data/remctl-3.16/util/xmalloc.c:181: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 = 449
Lines analyzed = 32897 in approximately 1.14 seconds (28969 lines/second)
Physical Source Lines of Code (SLOC) = 20128
Hits@level = [0] 129 [1] 117 [2] 165 [3]  30 [4] 137 [5]   0
Hits@level+ = [0+] 578 [1+] 449 [2+] 332 [3+] 167 [4+] 137 [5+]   0
Hits/KSLOC@level+ = [0+] 28.7162 [1+] 22.3072 [2+] 16.4944 [3+] 8.2969 [4+] 6.80644 [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.